diff --git a/lib/.kiota.log b/lib/.kiota.log index c03d2e8b5b..dd26ebc5bc 100644 --- a/lib/.kiota.log +++ b/lib/.kiota.log @@ -1,701 +1,1405 @@ -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /admin/edge/internetExplorerMode/siteLists/{browserSiteList-id}/publish is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/calendar/events/{event-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/calendar/events/{event-id}/instances/{event-id1}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/calendarView/{event-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/calendarView/{event-id}/instances/{event-id1}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/conversations/{conversation-id}/threads/{conversationThread-id}/posts/{post-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/conversations/{conversation-id}/threads/{conversationThread-id}/posts/{post-id}/inReplyTo/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/events/{event-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/events/{event-id}/instances/{event-id1}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/assignLicense is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /applications/{application-id}/synchronization/jobs/{synchronizationJob-id}/schema/directories/{directoryDefinition-id}/discover is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /applications/{application-id}/synchronization/jobs/{synchronizationJob-id}/schema/parseExpression is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/onenote/notebooks/{notebook-id}/copyNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /applications/{application-id}/synchronization/templates/{synchronizationTemplate-id}/schema/directories/{directoryDefinition-id}/discover is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/copyToNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /applications/{application-id}/synchronization/templates/{synchronizationTemplate-id}/schema/parseExpression is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/copyToSectionGroup is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /applicationTemplates/{applicationTemplate-id}/instantiate is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/copyToNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/copyToSectionGroup is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/onenote/notebooks/getNotebookFromWebUrl is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/onenote/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/onenote/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/copyToNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/copyToSectionGroup is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/onenote/sections/{onenoteSection-id}/copyToNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/onenote/sections/{onenoteSection-id}/copyToSectionGroup is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /communications/calls/{call-id}/addLargeGalleryView is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /communications/calls/{call-id}/cancelMediaProcessing is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /communications/calls/{call-id}/mute is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /communications/calls/{call-id}/playPrompt is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/contentTypes/addCopy is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /communications/calls/{call-id}/recordResponse is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/contentTypes/addCopyFromContentTypeHub is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /communications/calls/{call-id}/subscribeToTone is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/lists/{list-id}/contentTypes/addCopy is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /communications/calls/{call-id}/unmute is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/lists/{list-id}/contentTypes/addCopyFromContentTypeHub is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /communications/calls/{call-id}/updateRecordingStatus is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /communications/calls/{call-id}/participants/{participant-id}/mute is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/getByPath(path='{path}') is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/onenote/notebooks/{notebook-id}/copyNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /communications/calls/{call-id}/participants/{participant-id}/startHoldMusic is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/copyToNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /communications/calls/{call-id}/participants/{participant-id}/stopHoldMusic is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/copyToSectionGroup is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /communications/calls/{call-id}/participants/invite is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /communications/onlineMeetings/createOrGet is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/copyToNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/copyToSectionGroup is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/onenote/notebooks/getNotebookFromWebUrl is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /deviceAppManagement/vppTokens/{vppToken-id}/syncLicenses is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/onenote/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/onenote/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /deviceManagement/userExperienceAnalyticsSummarizeWorkFromAnywhereDevices() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/copyToNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /deviceManagement/mobileAppTroubleshootingEvents/{mobileAppTroubleshootingEvent-id}/appLogCollectionRequests/{appLogCollectionRequest-id}/createDownloadUrl is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/copyToSectionGroup is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/onenote/sections/{onenoteSection-id}/copyToNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/onenote/sections/{onenoteSection-id}/copyToSectionGroup is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/sites/{site-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/team/channels/{channel-id}/provisionEmail is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /domains/{domain-id}/verify is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/team/primaryChannel/provisionEmail is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/copy is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/threads/{conversationThread-id}/posts/{post-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/createLink is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/threads/{conversationThread-id}/posts/{post-id}/inReplyTo/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/extractSensitivityLabels is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/follow is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /identity/apiConnectors/{identityApiConnector-id}/uploadClientCertificate is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/preview is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /identity/b2xUserFlows/{b2xIdentityUserFlow-id}/apiConnectorConfiguration/postAttributeCollection/uploadClientCertificate is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/restore is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /identity/b2xUserFlows/{b2xIdentityUserFlow-id}/apiConnectorConfiguration/postFederationSignup/uploadClientCertificate is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/abs is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /identity/b2xUserFlows/{b2xIdentityUserFlow-id}/userAttributeAssignments/getOrder() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/accrInt is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy-id}/updateAllowedCombinations is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/accrIntM is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy-id}/usage() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/acos is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/acosh is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /identityGovernance/accessReviews/historyDefinitions/{accessReviewHistoryDefinition-id}/instances/{accessReviewHistoryInstance-id}/generateDownloadUri is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/acot is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/acoth is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/amorDegrc is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/microsoft.graph.identityGovernance.createNewVersion is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/amorLinc is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/microsoft.graph.identityGovernance.restore is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/and is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/runs/{run-id}/userProcessingResults/microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime}) is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/arabic is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/areas is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/runs/microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime}) is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/asc is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/taskReports/microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime}) is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/asin is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/userProcessingResults/microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime}) is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/asinh is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/microsoft.graph.identityGovernance.createNewVersion is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/atan is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/microsoft.graph.identityGovernance.restore is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/atan2 is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/runs/{run-id}/userProcessingResults/microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime}) is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/atanh is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/runs/microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime}) is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/aveDev is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/taskReports/microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime}) is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/average is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/userProcessingResults/microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime}) is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/averageA is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/averageIf is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/calendar/calendarView/{event-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/averageIfs is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/calendar/calendarView/{event-id}/instances/{event-id1}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/bahtText is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/base is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/calendar/events/{event-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/besselI is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/calendar/events/{event-id}/instances/{event-id1}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/besselJ is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/besselK is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/besselY is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/instances/{event-id1}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/beta_Dist is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/beta_Inv is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances/{event-id1}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/bin2Dec is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/calendars/{calendar-id}/calendarView/{event-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/bin2Hex is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/calendars/{calendar-id}/calendarView/{event-id}/instances/{event-id1}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/bin2Oct is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/binom_Dist is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/calendars/{calendar-id}/events/{event-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/binom_Dist_Range is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/calendars/{calendar-id}/events/{event-id}/instances/{event-id1}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/binom_Inv is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/calendarView/{event-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/bitand is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/calendarView/{event-id}/instances/{event-id1}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/bitlshift is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/bitor is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/bitrshift is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/bitxor is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/ceiling_Math is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/events/{event-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/events/{event-id}/instances/{event-id1}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/ceiling_Precise is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/char is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/joinedTeams/{team-id}/channels/{channel-id}/provisionEmail is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/chiSq_Dist is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/chiSq_Dist_RT is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/chiSq_Inv is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/chiSq_Inv_RT is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/joinedTeams/{team-id}/primaryChannel/provisionEmail is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/choose is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/clean is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/code is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/columns is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/combin is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/combina is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/complex is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/concatenate is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/confidence_Norm is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/confidence_T is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/mailFolders/{mailFolder-id}/messages/{message-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/convert is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/cos is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/cosh is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/cot is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/coth is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/count is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/countA is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/countBlank is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/messages/{message-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/countIf is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/countIfs is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/coupDayBs is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/coupDays is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/coupDaysNc is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/assignLicense is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/coupNcd is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/coupNum is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/exportDeviceAndAppManagementData() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/coupPcd is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/exportDeviceAndAppManagementData(skip={skip},top={top}) is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/csc is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/findMeetingTimes is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/csch is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/cumIPmt is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/reprocessLicenseAssignment is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/cumPrinc is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/date is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/onenote/notebooks/{notebook-id}/copyNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/datevalue is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/copyToNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/daverage is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/copyToSectionGroup is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/day is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/days is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/days360 is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/copyToNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/db is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/copyToSectionGroup is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/dbcs is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/dcount is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/dcountA is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/onenote/notebooks/getNotebookFromWebUrl is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/ddb is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/onenote/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/dec2Bin is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/onenote/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/dec2Hex is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/copyToNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/dec2Oct is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/copyToSectionGroup is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/decimal is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/degrees is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/delta is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/onenote/sections/{onenoteSection-id}/copyToNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/devSq is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/onenote/sections/{onenoteSection-id}/copyToSectionGroup is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/dget is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/disc is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/dmax is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/dmin is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/onlineMeetings/createOrGet is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/dollar is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /me/todo/lists/{todoTaskList-id}/tasks/{todoTask-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/dollarDe is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/dollarFr is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/dproduct is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/dstDev is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/dstDevP is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/dsum is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /policies/authenticationStrengthPolicies/{authenticationStrengthPolicy-id}/updateAllowedCombinations is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/duration is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /policies/authenticationStrengthPolicies/{authenticationStrengthPolicy-id}/usage() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/dvar is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /print/printers/{printer-id}/jobs/{printJob-id}/documents/{printDocument-id}/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/dvarP is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /print/printers/{printer-id}/jobs/{printJob-id}/redirect is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/ecma_Ceiling is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /print/printers/{printer-id}/jobs/{printJob-id}/start is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/edate is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /print/shares/{printerShare-id}/jobs/{printJob-id}/documents/{printDocument-id}/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/effect is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /print/shares/{printerShare-id}/jobs/{printJob-id}/redirect is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/eoMonth is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /print/shares/{printerShare-id}/jobs/{printJob-id}/start is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/erf is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /reports/deviceConfigurationDeviceActivity() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/erf_Precise is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /reports/deviceConfigurationUserActivity() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/erfC is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /reports/managedDeviceEnrollmentFailureDetails() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/erfC_Precise is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /reports/managedDeviceEnrollmentFailureDetails(skip={skip},top={top},filter='{filter}',skipToken='{skipToken}') is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/error_Type is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /reports/managedDeviceEnrollmentTopFailures() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/even is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /reports/managedDeviceEnrollmentTopFailures(period='{period}') is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/exact is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/exp is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/expon_Dist is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /security/microsoft.graph.security.runHuntingQuery is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/f_Dist is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/f_Dist_RT is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /servicePrincipals/{servicePrincipal-id}/synchronization/jobs/{synchronizationJob-id}/schema/directories/{directoryDefinition-id}/discover is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/f_Inv is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/f_Inv_RT is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /servicePrincipals/{servicePrincipal-id}/synchronization/jobs/{synchronizationJob-id}/schema/parseExpression is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/fact is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /servicePrincipals/{servicePrincipal-id}/synchronization/templates/{synchronizationTemplate-id}/schema/directories/{directoryDefinition-id}/discover is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/factDouble is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /servicePrincipals/{servicePrincipal-id}/synchronization/templates/{synchronizationTemplate-id}/schema/parseExpression is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/false is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/find is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /shares/{sharedDriveItem-id}/list/contentTypes/addCopy is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/findB is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /shares/{sharedDriveItem-id}/list/contentTypes/addCopyFromContentTypeHub is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/fisher is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/fisherInv is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/contentTypes/addCopy is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/fixed is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/contentTypes/addCopyFromContentTypeHub is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/floor_Math is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/lists/{list-id}/contentTypes/addCopy is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/floor_Precise is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/lists/{list-id}/contentTypes/addCopyFromContentTypeHub is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/fv is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/fvschedule is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/getByPath(path='{path}') is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/gamma is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/onenote/notebooks/{notebook-id}/copyNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/gamma_Dist is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/copyToNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/gamma_Inv is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/copyToSectionGroup is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/gammaLn is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/gammaLn_Precise is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/gauss is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/copyToNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/gcd is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/copyToSectionGroup is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/geoMean is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/geStep is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/harMean is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/onenote/notebooks/getNotebookFromWebUrl is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/hex2Bin is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/onenote/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/hex2Dec is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/onenote/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/hex2Oct is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/copyToNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/hlookup is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/copyToSectionGroup is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/hour is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/hyperlink is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/hypGeom_Dist is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/onenote/sections/{onenoteSection-id}/copyToNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/if is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/onenote/sections/{onenoteSection-id}/copyToSectionGroup is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imAbs is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imaginary is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /sites/{site-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imArgument is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imConjugate is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /teams/{team-id}/channels/{channel-id}/provisionEmail is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imCos is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imCosh is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imCot is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imCsc is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /teams/{team-id}/primaryChannel/provisionEmail is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imCsch is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imDiv is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /teamwork/deletedTeams/{deletedTeam-id}/channels/{channel-id}/provisionEmail is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imExp is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /tenantRelationships/findTenantInformationByDomainName(domainName='{domainName}') is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imLn is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /tenantRelationships/findTenantInformationByTenantId(tenantId='{tenantId}') is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imLog10 is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/authentication/methods/{authenticationMethod-id}/resetPassword is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imLog2 is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/calendar/calendarView/{event-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imPower is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/calendar/calendarView/{event-id}/instances/{event-id1}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imProduct is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imReal is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/calendar/events/{event-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imSec is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/calendar/events/{event-id}/instances/{event-id1}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imSech is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imSin is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/instances/{event-id1}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imSinh is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imSqrt is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances/{event-id1}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imSub is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imSum is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/imTan is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/instances/{event-id1}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/int is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/intRate is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/calendars/{calendar-id}/events/{event-id}/instances/{event-id1}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/ipmt is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/irr is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/calendarView/{event-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/isErr is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/calendarView/{event-id}/instances/{event-id1}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/isError is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/isEven is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/isFormula is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/isLogical is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/isNA is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/events/{event-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/isNonText is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/events/{event-id}/instances/{event-id1}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/isNumber is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/iso_Ceiling is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/joinedTeams/{team-id}/channels/{channel-id}/provisionEmail is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/isOdd is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/isoWeekNum is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/ispmt is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/isref is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/joinedTeams/{team-id}/primaryChannel/provisionEmail is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/isText is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/kurt is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/large is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/lcm is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/left is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/leftb is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/len is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/lenb is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/ln is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/log is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/log10 is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/logNorm_Dist is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/logNorm_Inv is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/lookup is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/lower is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/match is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/messages/{message-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/max is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/maxA is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/mduration is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/median is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/mid is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/midb is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/assignLicense is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/min is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/exportDeviceAndAppManagementData() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/minA is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/exportDeviceAndAppManagementData(skip={skip},top={top}) is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/minute is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/findMeetingTimes is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/mirr is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/reprocessLicenseAssignment is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/mod is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/month is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/onenote/notebooks/{notebook-id}/copyNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/mround is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/copyToNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/multiNomial is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/copyToSectionGroup is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/n is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/na is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/negBinom_Dist is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/networkDays is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/copyToNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/networkDays_Intl is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/copyToSectionGroup is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/nominal is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/norm_Dist is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/norm_Inv is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/onenote/notebooks/getNotebookFromWebUrl is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/norm_S_Dist is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/onenote/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/norm_S_Inv is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/onenote/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/not is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/copyToNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/now is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/copyToSectionGroup is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/nper is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/npv is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/numberValue is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/onenote/sections/{onenoteSection-id}/copyToNotebook is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/oct2Bin is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/onenote/sections/{onenoteSection-id}/copyToSectionGroup is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/oct2Dec is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/copyToSection is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/oct2Hex is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/preview() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/odd is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/onlineMeetings/createOrGet is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/oddFPrice is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/oddFYield is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /users/{user-id}/todo/lists/{todoTaskList-id}/tasks/{todoTask-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/oddLPrice is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/oddLYield is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/percentile_Exc is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/or is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/percentile_Inc is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/pduration is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/percentRank_Exc is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/proper is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/percentRank_Inc is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/pv is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/permut is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/quartile_Exc is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/permutationa is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/quartile_Inc is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/phi is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/quotient is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/pi is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/radians is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/pmt is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/rand is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/poisson_Dist is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/randBetween is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/power is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/rank_Avg is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/ppmt is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/rank_Eq is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/price is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/rate is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/priceDisc is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/received is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/priceMat is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/replace is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/product is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/replaceB is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/rightb is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/rept is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/roman is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/right is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/round is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/roundDown is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/skew is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/skew_p is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/roundUp is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/rows is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/sln is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/rri is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/small is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/sqrt is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/sec is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/sqrtPi is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/sech is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/second is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/standardize is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/seriesSum is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/stDev_P is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/stDev_S is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/sheet is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/stDevA is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/sheets is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/stDevPA is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/sign is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/substitute is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/sin is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/subtotal is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/sinh is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/sumSq is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/sum is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/sumIf is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/syd is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/sumIfs is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/t is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/today is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/t_Dist is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/trim is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/t_Dist_2T is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/trimMean is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/t_Dist_RT is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/true is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/t_Inv is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/t_Inv_2T is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/trunc is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/tan is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/type is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/unichar is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/tanh is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/unicode is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/tbillEq is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/tbillPrice is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/upper is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/tbillYield is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/usdollar is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/text is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/value is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/time is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/var_P is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/timevalue is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/var_S is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/vlookup is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/varA is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/weekday is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/varPA is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/weekNum is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/vdb is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/weibull_Dist is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/sessionInfoResource(key='{key}') is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/workDay is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/workDay_Intl is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/tableRowOperationResult(key='{key}') is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/xirr is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/names/{workbookNamedItem-id}/range() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/xnpv is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/names/add is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/xor is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/names/addFormulaLocal is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/year is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/tables/{workbookTable-id}/columns/{workbookTableColumn-id}/dataBodyRange() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/yearFrac is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/tables/{workbookTable-id}/columns/{workbookTableColumn-id}/headerRowRange() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/yield is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/yieldDisc is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/tables/{workbookTable-id}/columns/{workbookTableColumn-id}/range() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/yieldMat is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/tables/{workbookTable-id}/columns/{workbookTableColumn-id}/totalRowRange() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/functions/z_Test is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/tables/{workbookTable-id}/columns/add is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/createSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/tables/{workbookTable-id}/columns/itemAt(index={index}) is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/tables/{workbookTable-id}/totalRowRange() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/tables/{workbookTable-id}/convertToRange is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/tables/{workbookTable-id}/rows/{workbookTableRow-id}/range() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/tables/{workbookTable-id}/dataBodyRange() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/tables/{workbookTable-id}/rows/add is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/tables/{workbookTable-id}/headerRowRange() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/tables/{workbookTable-id}/rows/itemAt(index={index}) is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/tables/{workbookTable-id}/range() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/tables/add is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/charts/add is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/charts/item(name='{name}') is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/tables/itemAt(index={index}) is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/charts/itemAt(index={index}) is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/cell(row={row},column={column}) is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/charts/{workbookChart-id}/series/{workbookChartSeries-id}/points/itemAt(index={index}) is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/range() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/charts/{workbookChart-id}/series/itemAt(index={index}) is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/range(address='{address}') is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/tables/{workbookTable-id}/columns/add is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/usedRange() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/tables/{workbookTable-id}/columns/itemAt(index={index}) is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/usedRange(valuesOnly={valuesOnly}) is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/tables/{workbookTable-id}/convertToRange is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/names/{workbookNamedItem-id}/range() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/tables/{workbookTable-id}/dataBodyRange() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/names/add is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/tables/{workbookTable-id}/headerRowRange() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/names/addFormulaLocal is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/tables/{workbookTable-id}/columns/{workbookTableColumn-id}/dataBodyRange() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/tables/{workbookTable-id}/range() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/tables/{workbookTable-id}/columns/{workbookTableColumn-id}/headerRowRange() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/tables/{workbookTable-id}/totalRowRange() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/tables/{workbookTable-id}/rows/{workbookTableRow-id}/range() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/tables/{workbookTable-id}/columns/{workbookTableColumn-id}/range() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/tables/{workbookTable-id}/columns/{workbookTableColumn-id}/totalRowRange() is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/tables/{workbookTable-id}/rows/add is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/list/contentTypes/addCopy is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/tables/{workbookTable-id}/rows/itemAt(index={index}) is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/list/contentTypes/addCopyFromContentTypeHub is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/tables/add is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/tables/itemAt(index={index}) is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/classes/{educationClass-id}/assignments/{educationAssignment-id}/publish is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/add is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/classes/{educationClass-id}/assignments/{educationAssignment-id}/setUpFeedbackResourcesFolder is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/classes/{educationClass-id}/assignments/{educationAssignment-id}/submissions/{educationSubmission-id}/return is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/classes/{educationClass-id}/assignments/{educationAssignment-id}/setUpResourcesFolder is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/classes/{educationClass-id}/assignments/{educationAssignment-id}/submissions/{educationSubmission-id}/setUpResourcesFolder is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/classes/{educationClass-id}/assignments/{educationAssignment-id}/submissions/{educationSubmission-id}/submit is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/classes/{educationClass-id}/assignments/{educationAssignment-id}/submissions/{educationSubmission-id}/reassign is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/classes/{educationClass-id}/assignments/{educationAssignment-id}/submissions/{educationSubmission-id}/unsubmit is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/users/{educationUser-id}/assignments/{educationAssignment-id}/publish is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/me/assignments/{educationAssignment-id}/publish is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/users/{educationUser-id}/assignments/{educationAssignment-id}/setUpFeedbackResourcesFolder is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/users/{educationUser-id}/assignments/{educationAssignment-id}/setUpResourcesFolder is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/me/assignments/{educationAssignment-id}/setUpFeedbackResourcesFolder is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/me/assignments/{educationAssignment-id}/setUpResourcesFolder is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/users/{educationUser-id}/assignments/{educationAssignment-id}/submissions/{educationSubmission-id}/reassign is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/me/assignments/{educationAssignment-id}/submissions/{educationSubmission-id}/reassign is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/users/{educationUser-id}/assignments/{educationAssignment-id}/submissions/{educationSubmission-id}/return is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/users/{educationUser-id}/assignments/{educationAssignment-id}/submissions/{educationSubmission-id}/setUpResourcesFolder is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/me/assignments/{educationAssignment-id}/submissions/{educationSubmission-id}/return is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/me/assignments/{educationAssignment-id}/submissions/{educationSubmission-id}/setUpResourcesFolder is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/users/{educationUser-id}/assignments/{educationAssignment-id}/submissions/{educationSubmission-id}/submit is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/me/assignments/{educationAssignment-id}/submissions/{educationSubmission-id}/submit is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/users/{educationUser-id}/assignments/{educationAssignment-id}/submissions/{educationSubmission-id}/unsubmit is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /education/me/assignments/{educationAssignment-id}/submissions/{educationSubmission-id}/unsubmit is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/calendar/calendarView/{event-id}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. -Warning: KiotaBuilder OpenAPI warning: #/ - The schema /groups/{group-id}/calendar/calendarView/{event-id}/instances/{event-id1}/attachments/createUploadSession is a polymorphic type but does not define a discriminator. This will result in a serialization errors. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1admin~1serviceAnnouncement~1healthOverviews~1{serviceHealth-id}~1issues~1{serviceHealthIssue-id}~1incidentReport()/get/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1admin~1serviceAnnouncement~1issues~1{serviceHealthIssue-id}~1incidentReport()/get/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1applications~1validateProperties/post/requestBody/content/application~1json/schema/properties/onBehalfOfUserId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1chats~1{chat-id}~1markChatUnreadForUser/post/requestBody/content/application~1json/schema/properties/lastMessageReadDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1chats~1{chat-id}~1sendActivityNotification/post/requestBody/content/application~1json/schema/properties/chainId - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1communications~1callRecords~1microsoft.graph.callRecords.getDirectRoutingCalls(fromDateTime={fromDateTime},toDateTime={toDateTime})/parameters/0/schema - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1communications~1callRecords~1microsoft.graph.callRecords.getDirectRoutingCalls(fromDateTime={fromDateTime},toDateTime={toDateTime})/parameters/1/schema - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1communications~1callRecords~1microsoft.graph.callRecords.getPstnCalls(fromDateTime={fromDateTime},toDateTime={toDateTime})/parameters/0/schema - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1communications~1callRecords~1microsoft.graph.callRecords.getPstnCalls(fromDateTime={fromDateTime},toDateTime={toDateTime})/parameters/1/schema - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1communications~1calls~1{call-id}~1answer/post/requestBody/content/application~1json/schema/properties/participantCapacity - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1communications~1calls~1{call-id}~1recordResponse/post/requestBody/content/application~1json/schema/properties/initialSilenceTimeoutInSeconds - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1communications~1calls~1{call-id}~1recordResponse/post/requestBody/content/application~1json/schema/properties/maxSilenceTimeoutInSeconds - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1communications~1calls~1{call-id}~1recordResponse/post/requestBody/content/application~1json/schema/properties/maxRecordDurationInSeconds - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1communications~1calls~1{call-id}~1redirect/post/requestBody/content/application~1json/schema/properties/timeout - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1communications~1calls~1{call-id}~1sendDtmfTones/post/requestBody/content/application~1json/schema/properties/delayBetweenTonesMs - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1communications~1onlineMeetings~1createOrGet/post/requestBody/content/application~1json/schema/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1communications~1onlineMeetings~1createOrGet/post/requestBody/content/application~1json/schema/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1communications~1onlineMeetings~1getAllRecordings(meetingOrganizerUserId='@meetingOrganizerUserId',startDateTime=@startDateTime,endDateTime=@endDateTime)/parameters/1/schema - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1communications~1onlineMeetings~1getAllRecordings(meetingOrganizerUserId='@meetingOrganizerUserId',startDateTime=@startDateTime,endDateTime=@endDateTime)/parameters/2/schema - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1communications~1onlineMeetings~1getAllTranscripts(meetingOrganizerUserId='@meetingOrganizerUserId',startDateTime=@startDateTime,endDateTime=@endDateTime)/parameters/1/schema - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1communications~1onlineMeetings~1getAllTranscripts(meetingOrganizerUserId='@meetingOrganizerUserId',startDateTime=@startDateTime,endDateTime=@endDateTime)/parameters/2/schema - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1communications~1presences~1{presence-id}~1setPresence/post/requestBody/content/application~1json/schema/properties/expirationDuration - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1communications~1presences~1{presence-id}~1setUserPreferredPresence/post/requestBody/content/application~1json/schema/properties/expirationDuration - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1contacts~1validateProperties/post/requestBody/content/application~1json/schema/properties/onBehalfOfUserId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1contracts~1validateProperties/post/requestBody/content/application~1json/schema/properties/onBehalfOfUserId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getCachedReport/post/requestBody/content/application~1json/schema/properties/skip - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getCachedReport/post/requestBody/content/application~1json/schema/properties/top - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getCachedReport/post/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getCompliancePolicyNonComplianceReport/post/requestBody/content/application~1json/schema/properties/skip - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getCompliancePolicyNonComplianceReport/post/requestBody/content/application~1json/schema/properties/top - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getCompliancePolicyNonComplianceReport/post/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getCompliancePolicyNonComplianceSummaryReport/post/requestBody/content/application~1json/schema/properties/skip - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getCompliancePolicyNonComplianceSummaryReport/post/requestBody/content/application~1json/schema/properties/top - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getCompliancePolicyNonComplianceSummaryReport/post/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getComplianceSettingNonComplianceReport/post/requestBody/content/application~1json/schema/properties/skip - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getComplianceSettingNonComplianceReport/post/requestBody/content/application~1json/schema/properties/top - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getComplianceSettingNonComplianceReport/post/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getConfigurationPolicyNonComplianceReport/post/requestBody/content/application~1json/schema/properties/skip - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getConfigurationPolicyNonComplianceReport/post/requestBody/content/application~1json/schema/properties/top - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getConfigurationPolicyNonComplianceReport/post/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getConfigurationPolicyNonComplianceSummaryReport/post/requestBody/content/application~1json/schema/properties/skip - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getConfigurationPolicyNonComplianceSummaryReport/post/requestBody/content/application~1json/schema/properties/top - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getConfigurationPolicyNonComplianceSummaryReport/post/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getConfigurationSettingNonComplianceReport/post/requestBody/content/application~1json/schema/properties/skip - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getConfigurationSettingNonComplianceReport/post/requestBody/content/application~1json/schema/properties/top - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getConfigurationSettingNonComplianceReport/post/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getDeviceManagementIntentPerSettingContributingProfiles/post/requestBody/content/application~1json/schema/properties/skip - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getDeviceManagementIntentPerSettingContributingProfiles/post/requestBody/content/application~1json/schema/properties/top - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getDeviceManagementIntentPerSettingContributingProfiles/post/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getDeviceManagementIntentSettingsReport/post/requestBody/content/application~1json/schema/properties/skip - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getDeviceManagementIntentSettingsReport/post/requestBody/content/application~1json/schema/properties/top - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getDeviceManagementIntentSettingsReport/post/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getDeviceNonComplianceReport/post/requestBody/content/application~1json/schema/properties/skip - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getDeviceNonComplianceReport/post/requestBody/content/application~1json/schema/properties/top - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getDeviceNonComplianceReport/post/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getDevicesWithoutCompliancePolicyReport/post/requestBody/content/application~1json/schema/properties/skip - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getDevicesWithoutCompliancePolicyReport/post/requestBody/content/application~1json/schema/properties/top - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getDevicesWithoutCompliancePolicyReport/post/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getHistoricalReport/post/requestBody/content/application~1json/schema/properties/skip - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getHistoricalReport/post/requestBody/content/application~1json/schema/properties/top - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getHistoricalReport/post/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getNoncompliantDevicesAndSettingsReport/post/requestBody/content/application~1json/schema/properties/skip - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getNoncompliantDevicesAndSettingsReport/post/requestBody/content/application~1json/schema/properties/top - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getNoncompliantDevicesAndSettingsReport/post/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getPolicyNonComplianceMetadata/post/requestBody/content/application~1json/schema/properties/skip - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getPolicyNonComplianceMetadata/post/requestBody/content/application~1json/schema/properties/top - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getPolicyNonComplianceMetadata/post/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getPolicyNonComplianceReport/post/requestBody/content/application~1json/schema/properties/skip - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getPolicyNonComplianceReport/post/requestBody/content/application~1json/schema/properties/top - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getPolicyNonComplianceReport/post/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getPolicyNonComplianceSummaryReport/post/requestBody/content/application~1json/schema/properties/skip - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getPolicyNonComplianceSummaryReport/post/requestBody/content/application~1json/schema/properties/top - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getPolicyNonComplianceSummaryReport/post/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getReportFilters/post/requestBody/content/application~1json/schema/properties/skip - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getReportFilters/post/requestBody/content/application~1json/schema/properties/top - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getReportFilters/post/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getSettingNonComplianceReport/post/requestBody/content/application~1json/schema/properties/skip - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getSettingNonComplianceReport/post/requestBody/content/application~1json/schema/properties/top - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1getSettingNonComplianceReport/post/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1retrieveDeviceAppInstallationStatusReport/post/requestBody/content/application~1json/schema/properties/skip - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1retrieveDeviceAppInstallationStatusReport/post/requestBody/content/application~1json/schema/properties/top - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1deviceManagement~1reports~1retrieveDeviceAppInstallationStatusReport/post/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1devices~1validateProperties/post/requestBody/content/application~1json/schema/properties/onBehalfOfUserId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1directory~1deletedItems~1validateProperties/post/requestBody/content/application~1json/schema/properties/onBehalfOfUserId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1directoryObjects~1validateProperties/post/requestBody/content/application~1json/schema/properties/onBehalfOfUserId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1directoryRoles~1validateProperties/post/requestBody/content/application~1json/schema/properties/onBehalfOfUserId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1directoryRoleTemplates~1validateProperties/post/requestBody/content/application~1json/schema/properties/onBehalfOfUserId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1createLink/post/requestBody/content/application~1json/schema/properties/expirationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1preview/post/requestBody/content/application~1json/schema/properties/zoom/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1names~1{workbookNamedItem-id}~1range()~1columnsAfter(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1names~1{workbookNamedItem-id}~1range()~1columnsBefore(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1names~1{workbookNamedItem-id}~1range()~1rowsAbove(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1names~1{workbookNamedItem-id}~1range()~1rowsBelow(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1dataBodyRange()~1columnsAfter(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1dataBodyRange()~1columnsBefore(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1dataBodyRange()~1rowsAbove(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1dataBodyRange()~1rowsBelow(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1headerRowRange()~1columnsAfter(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1headerRowRange()~1columnsBefore(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1headerRowRange()~1rowsAbove(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1headerRowRange()~1rowsBelow(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1range()~1columnsAfter(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1range()~1columnsBefore(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1range()~1rowsAbove(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1range()~1rowsBelow(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1totalRowRange()~1columnsAfter(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1totalRowRange()~1columnsBefore(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1totalRowRange()~1rowsAbove(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1totalRowRange()~1rowsBelow(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1columns~1add/post/requestBody/content/application~1json/schema/properties/index - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1dataBodyRange()~1columnsAfter(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1dataBodyRange()~1columnsBefore(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1dataBodyRange()~1rowsAbove(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1dataBodyRange()~1rowsBelow(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1headerRowRange()~1columnsAfter(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1headerRowRange()~1columnsBefore(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1headerRowRange()~1rowsAbove(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1headerRowRange()~1rowsBelow(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1range()~1columnsAfter(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1range()~1columnsBefore(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1range()~1rowsAbove(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1range()~1rowsBelow(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1totalRowRange()~1columnsAfter(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1totalRowRange()~1columnsBefore(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1totalRowRange()~1rowsAbove(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1totalRowRange()~1rowsBelow(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1rows~1{workbookTableRow-id}~1range()~1columnsAfter(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1rows~1{workbookTableRow-id}~1range()~1columnsBefore(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1rows~1{workbookTableRow-id}~1range()~1rowsAbove(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1rows~1{workbookTableRow-id}~1range()~1rowsBelow(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1tables~1{workbookTable-id}~1rows~1add/post/requestBody/content/application~1json/schema/properties/index - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1cell(row={row},column={column})~1columnsAfter(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1cell(row={row},column={column})~1columnsBefore(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1cell(row={row},column={column})~1rowsAbove(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1cell(row={row},column={column})~1rowsBelow(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1range()~1columnsAfter(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1range()~1columnsBefore(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1range()~1rowsAbove(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1range()~1rowsBelow(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1range(address='{address}')~1columnsAfter(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1range(address='{address}')~1columnsBefore(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1range(address='{address}')~1rowsAbove(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1range(address='{address}')~1rowsBelow(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1usedRange()~1columnsAfter(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1usedRange()~1columnsBefore(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1usedRange()~1rowsAbove(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1usedRange()~1rowsBelow(count={count})/parameters/3/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1usedRange(valuesOnly={valuesOnly})~1columnsAfter(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1usedRange(valuesOnly={valuesOnly})~1columnsBefore(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1usedRange(valuesOnly={valuesOnly})~1rowsAbove(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1usedRange(valuesOnly={valuesOnly})~1rowsBelow(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1names~1{workbookNamedItem-id}~1range()~1columnsAfter(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1names~1{workbookNamedItem-id}~1range()~1columnsBefore(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1names~1{workbookNamedItem-id}~1range()~1rowsAbove(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1names~1{workbookNamedItem-id}~1range()~1rowsBelow(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1dataBodyRange()~1columnsAfter(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1dataBodyRange()~1columnsBefore(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1dataBodyRange()~1rowsAbove(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1dataBodyRange()~1rowsBelow(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1headerRowRange()~1columnsAfter(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1headerRowRange()~1columnsBefore(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1headerRowRange()~1rowsAbove(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1headerRowRange()~1rowsBelow(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1range()~1columnsAfter(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1range()~1columnsBefore(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1range()~1rowsAbove(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1range()~1rowsBelow(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1totalRowRange()~1columnsAfter(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1totalRowRange()~1columnsBefore(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1totalRowRange()~1rowsAbove(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1columns~1{workbookTableColumn-id}~1totalRowRange()~1rowsBelow(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1columns~1add/post/requestBody/content/application~1json/schema/properties/index - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1dataBodyRange()~1columnsAfter(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1dataBodyRange()~1columnsBefore(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1dataBodyRange()~1rowsAbove(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1dataBodyRange()~1rowsBelow(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1headerRowRange()~1columnsAfter(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1headerRowRange()~1columnsBefore(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1headerRowRange()~1rowsAbove(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1headerRowRange()~1rowsBelow(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1range()~1columnsAfter(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1range()~1columnsBefore(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1range()~1rowsAbove(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1range()~1rowsBelow(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1totalRowRange()~1columnsAfter(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1totalRowRange()~1columnsBefore(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1totalRowRange()~1rowsAbove(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1totalRowRange()~1rowsBelow(count={count})/parameters/4/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1rows~1{workbookTableRow-id}~1range()~1columnsAfter(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1rows~1{workbookTableRow-id}~1range()~1columnsBefore(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1rows~1{workbookTableRow-id}~1range()~1rowsAbove(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1rows~1{workbookTableRow-id}~1range()~1rowsBelow(count={count})/parameters/5/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1items~1{driveItem-id}~1workbook~1worksheets~1{workbookWorksheet-id}~1tables~1{workbookTable-id}~1rows~1add/post/requestBody/content/application~1json/schema/properties/index - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1drives~1{drive-id}~1list~1items~1{listItem-id}~1createLink/post/requestBody/content/application~1json/schema/properties/expirationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1groups~1{group-id}~1calendar~1getSchedule/post/requestBody/content/application~1json/schema/properties/AvailabilityViewInterval - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1groups~1{group-id}~1validateProperties/post/requestBody/content/application~1json/schema/properties/onBehalfOfUserId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1groups~1{group-id}~1sites~1{site-id}~1lists~1{list-id}~1items~1{listItem-id}~1createLink/post/requestBody/content/application~1json/schema/properties/expirationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1groups~1{group-id}~1team~1sendActivityNotification/post/requestBody/content/application~1json/schema/properties/chainId - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1groups~1{group-id}~1team~1schedule~1share/post/requestBody/content/application~1json/schema/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1groups~1{group-id}~1team~1schedule~1share/post/requestBody/content/application~1json/schema/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1groups~1validateProperties/post/requestBody/content/application~1json/schema/properties/onBehalfOfUserId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1groupSettingTemplates~1validateProperties/post/requestBody/content/application~1json/schema/properties/onBehalfOfUserId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1me~1calendar~1getSchedule/post/requestBody/content/application~1json/schema/properties/AvailabilityViewInterval - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1me~1calendarGroups~1{calendarGroup-id}~1calendars~1{calendar-id}~1getSchedule/post/requestBody/content/application~1json/schema/properties/AvailabilityViewInterval - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1me~1calendars~1{calendar-id}~1getSchedule/post/requestBody/content/application~1json/schema/properties/AvailabilityViewInterval - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1me~1chats~1{chat-id}~1markChatUnreadForUser/post/requestBody/content/application~1json/schema/properties/lastMessageReadDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1me~1chats~1{chat-id}~1sendActivityNotification/post/requestBody/content/application~1json/schema/properties/chainId - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1me~1joinedTeams~1{team-id}~1sendActivityNotification/post/requestBody/content/application~1json/schema/properties/chainId - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1me~1joinedTeams~1{team-id}~1schedule~1share/post/requestBody/content/application~1json/schema/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1me~1joinedTeams~1{team-id}~1schedule~1share/post/requestBody/content/application~1json/schema/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1me~1onlineMeetings~1createOrGet/post/requestBody/content/application~1json/schema/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1me~1onlineMeetings~1createOrGet/post/requestBody/content/application~1json/schema/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1me~1onlineMeetings~1getAllRecordings(meetingOrganizerUserId='@meetingOrganizerUserId',startDateTime=@startDateTime,endDateTime=@endDateTime)/parameters/1/schema - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1me~1onlineMeetings~1getAllRecordings(meetingOrganizerUserId='@meetingOrganizerUserId',startDateTime=@startDateTime,endDateTime=@endDateTime)/parameters/2/schema - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1me~1onlineMeetings~1getAllTranscripts(meetingOrganizerUserId='@meetingOrganizerUserId',startDateTime=@startDateTime,endDateTime=@endDateTime)/parameters/1/schema - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1me~1onlineMeetings~1getAllTranscripts(meetingOrganizerUserId='@meetingOrganizerUserId',startDateTime=@startDateTime,endDateTime=@endDateTime)/parameters/2/schema - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1me~1presence~1setPresence/post/requestBody/content/application~1json/schema/properties/expirationDuration - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1me~1presence~1setUserPreferredPresence/post/requestBody/content/application~1json/schema/properties/expirationDuration - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1me~1teamwork~1sendActivityNotification/post/requestBody/content/application~1json/schema/properties/chainId - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1organization~1validateProperties/post/requestBody/content/application~1json/schema/properties/onBehalfOfUserId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1permissionGrants~1validateProperties/post/requestBody/content/application~1json/schema/properties/onBehalfOfUserId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1privacy~1subjectRightsRequests~1{subjectRightsRequest-id}~1getFinalAttachment()/get/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1privacy~1subjectRightsRequests~1{subjectRightsRequest-id}~1getFinalReport()/get/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1reports~1getGroupArchivedPrintJobs(groupId='{groupId}',startDateTime={startDateTime},endDateTime={endDateTime})/parameters/1/schema - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1reports~1getGroupArchivedPrintJobs(groupId='{groupId}',startDateTime={startDateTime},endDateTime={endDateTime})/parameters/2/schema - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1reports~1getPrinterArchivedPrintJobs(printerId='{printerId}',startDateTime={startDateTime},endDateTime={endDateTime})/parameters/1/schema - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1reports~1getPrinterArchivedPrintJobs(printerId='{printerId}',startDateTime={startDateTime},endDateTime={endDateTime})/parameters/2/schema - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1reports~1getUserArchivedPrintJobs(userId='{userId}',startDateTime={startDateTime},endDateTime={endDateTime})/parameters/1/schema - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1reports~1getUserArchivedPrintJobs(userId='{userId}',startDateTime={startDateTime},endDateTime={endDateTime})/parameters/2/schema - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1reports~1managedDeviceEnrollmentFailureDetails(skip={skip},top={top},filter='{filter}',skipToken='{skipToken}')/parameters/0/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1reports~1managedDeviceEnrollmentFailureDetails(skip={skip},top={top},filter='{filter}',skipToken='{skipToken}')/parameters/1/schema - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1security~1subjectRightsRequests~1{subjectRightsRequest-id}~1getFinalAttachment()/get/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1security~1subjectRightsRequests~1{subjectRightsRequest-id}~1getFinalReport()/get/responses/2XX/content/application~1octet-stream/schema/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1servicePrincipals~1{servicePrincipal-id}~1addTokenSigningCertificate/post/requestBody/content/application~1json/schema/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1servicePrincipals~1validateProperties/post/requestBody/content/application~1json/schema/properties/onBehalfOfUserId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1shares~1{sharedDriveItem-id}~1list~1items~1{listItem-id}~1createLink/post/requestBody/content/application~1json/schema/properties/expirationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1sites~1{site-id}~1lists~1{list-id}~1items~1{listItem-id}~1createLink/post/requestBody/content/application~1json/schema/properties/expirationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1teams~1{team-id}~1sendActivityNotification/post/requestBody/content/application~1json/schema/properties/chainId - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1teams~1{team-id}~1schedule~1share/post/requestBody/content/application~1json/schema/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1teams~1{team-id}~1schedule~1share/post/requestBody/content/application~1json/schema/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1teamwork~1sendActivityNotificationToRecipients/post/requestBody/content/application~1json/schema/properties/chainId - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1users~1{user-id}~1calendar~1getSchedule/post/requestBody/content/application~1json/schema/properties/AvailabilityViewInterval - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1users~1{user-id}~1calendarGroups~1{calendarGroup-id}~1calendars~1{calendar-id}~1getSchedule/post/requestBody/content/application~1json/schema/properties/AvailabilityViewInterval - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1users~1{user-id}~1calendars~1{calendar-id}~1getSchedule/post/requestBody/content/application~1json/schema/properties/AvailabilityViewInterval - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1users~1{user-id}~1chats~1{chat-id}~1markChatUnreadForUser/post/requestBody/content/application~1json/schema/properties/lastMessageReadDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1users~1{user-id}~1chats~1{chat-id}~1sendActivityNotification/post/requestBody/content/application~1json/schema/properties/chainId - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1users~1{user-id}~1joinedTeams~1{team-id}~1sendActivityNotification/post/requestBody/content/application~1json/schema/properties/chainId - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1users~1{user-id}~1joinedTeams~1{team-id}~1schedule~1share/post/requestBody/content/application~1json/schema/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1users~1{user-id}~1joinedTeams~1{team-id}~1schedule~1share/post/requestBody/content/application~1json/schema/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1users~1{user-id}~1onlineMeetings~1createOrGet/post/requestBody/content/application~1json/schema/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1users~1{user-id}~1onlineMeetings~1createOrGet/post/requestBody/content/application~1json/schema/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1users~1{user-id}~1onlineMeetings~1getAllRecordings(meetingOrganizerUserId='@meetingOrganizerUserId',startDateTime=@startDateTime,endDateTime=@endDateTime)/parameters/2/schema - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1users~1{user-id}~1onlineMeetings~1getAllRecordings(meetingOrganizerUserId='@meetingOrganizerUserId',startDateTime=@startDateTime,endDateTime=@endDateTime)/parameters/3/schema - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1users~1{user-id}~1onlineMeetings~1getAllTranscripts(meetingOrganizerUserId='@meetingOrganizerUserId',startDateTime=@startDateTime,endDateTime=@endDateTime)/parameters/2/schema - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1users~1{user-id}~1onlineMeetings~1getAllTranscripts(meetingOrganizerUserId='@meetingOrganizerUserId',startDateTime=@startDateTime,endDateTime=@endDateTime)/parameters/3/schema - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1users~1{user-id}~1presence~1setPresence/post/requestBody/content/application~1json/schema/properties/expirationDuration - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1users~1{user-id}~1presence~1setUserPreferredPresence/post/requestBody/content/application~1json/schema/properties/expirationDuration - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1users~1{user-id}~1teamwork~1sendActivityNotification/post/requestBody/content/application~1json/schema/properties/chainId - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/paths/~1users~1validateProperties/post/requestBody/content/application~1json/schema/properties/onBehalfOfUserId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessPackage/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessPackage/allOf/1/properties/modifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessPackageAssignment/allOf/1/properties/expiredDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessPackageAssignmentPolicy/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessPackageAssignmentPolicy/allOf/1/properties/modifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessPackageAssignmentRequest/allOf/1/properties/completedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessPackageAssignmentRequest/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessPackageAssignmentRequestWorkflowExtension/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessPackageAssignmentRequestWorkflowExtension/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessPackageAssignmentWorkflowExtension/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessPackageAssignmentWorkflowExtension/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessPackageCatalog/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessPackageCatalog/allOf/1/properties/modifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessPackageQuestion/allOf/1/properties/sequence - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessPackageResource/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessPackageResource/allOf/1/properties/modifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessPackageResourceEnvironment/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessPackageResourceEnvironment/allOf/1/properties/modifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessPackageResourceRequest/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessPackageResourceRoleScope/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessReviewHistoryInstance/allOf/1/properties/fulfilledDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessReviewHistoryInstance/allOf/1/properties/reviewHistoryPeriodEndDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessReviewHistoryInstance/allOf/1/properties/reviewHistoryPeriodStartDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessReviewInstance/allOf/1/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessReviewInstance/allOf/1/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessReviewInstanceDecisionItem/allOf/1/properties/appliedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessReviewInstanceDecisionItem/allOf/1/properties/reviewedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessReviewReviewer/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessReviewScheduleDefinition/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessReviewScheduleDefinition/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessReviewStage/allOf/1/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessReviewStage/allOf/1/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.activityHistoryItem/allOf/1/properties/activeDurationSeconds - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.activityHistoryItem/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.activityHistoryItem/allOf/1/properties/expirationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.activityHistoryItem/allOf/1/properties/lastActiveDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.activityHistoryItem/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.agreement/allOf/1/properties/userReacceptRequiredFrequency - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.agreementAcceptance/allOf/1/properties/expirationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.agreementAcceptance/allOf/1/properties/recordedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.agreementFileProperties/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.alert/allOf/1/properties/closedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.alert/allOf/1/properties/confidence - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.alert/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.alert/allOf/1/properties/eventDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.alert/allOf/1/properties/lastEventDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.alert/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidCompliancePolicy/allOf/1/properties/passwordExpirationDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidCompliancePolicy/allOf/1/properties/passwordMinimumLength - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidCompliancePolicy/allOf/1/properties/passwordMinutesOfInactivityBeforeLock - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidCompliancePolicy/allOf/1/properties/passwordPreviousPasswordBlockCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidGeneralDeviceConfiguration/allOf/1/properties/passwordExpirationDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidGeneralDeviceConfiguration/allOf/1/properties/passwordMinimumLength - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidGeneralDeviceConfiguration/allOf/1/properties/passwordMinutesOfInactivityBeforeScreenTimeout - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidGeneralDeviceConfiguration/allOf/1/properties/passwordPreviousPasswordBlockCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidGeneralDeviceConfiguration/allOf/1/properties/passwordSignInFailureCountBeforeFactoryReset - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidWorkProfileCompliancePolicy/allOf/1/properties/passwordExpirationDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidWorkProfileCompliancePolicy/allOf/1/properties/passwordMinimumLength - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidWorkProfileCompliancePolicy/allOf/1/properties/passwordMinutesOfInactivityBeforeLock - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidWorkProfileCompliancePolicy/allOf/1/properties/passwordPreviousPasswordBlockCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidWorkProfileGeneralDeviceConfiguration/allOf/1/properties/passwordExpirationDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidWorkProfileGeneralDeviceConfiguration/allOf/1/properties/passwordMinimumLength - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidWorkProfileGeneralDeviceConfiguration/allOf/1/properties/passwordMinutesOfInactivityBeforeScreenTimeout - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidWorkProfileGeneralDeviceConfiguration/allOf/1/properties/passwordPreviousPasswordBlockCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidWorkProfileGeneralDeviceConfiguration/allOf/1/properties/passwordSignInFailureCountBeforeFactoryReset - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidWorkProfileGeneralDeviceConfiguration/allOf/1/properties/workProfilePasswordExpirationDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidWorkProfileGeneralDeviceConfiguration/allOf/1/properties/workProfilePasswordMinimumLength - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidWorkProfileGeneralDeviceConfiguration/allOf/1/properties/workProfilePasswordMinLetterCharacters - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidWorkProfileGeneralDeviceConfiguration/allOf/1/properties/workProfilePasswordMinLowerCaseCharacters - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidWorkProfileGeneralDeviceConfiguration/allOf/1/properties/workProfilePasswordMinNonLetterCharacters - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidWorkProfileGeneralDeviceConfiguration/allOf/1/properties/workProfilePasswordMinNumericCharacters - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidWorkProfileGeneralDeviceConfiguration/allOf/1/properties/workProfilePasswordMinSymbolCharacters - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidWorkProfileGeneralDeviceConfiguration/allOf/1/properties/workProfilePasswordMinUpperCaseCharacters - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidWorkProfileGeneralDeviceConfiguration/allOf/1/properties/workProfilePasswordMinutesOfInactivityBeforeScreenTimeout - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidWorkProfileGeneralDeviceConfiguration/allOf/1/properties/workProfilePasswordPreviousPasswordBlockCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.androidWorkProfileGeneralDeviceConfiguration/allOf/1/properties/workProfilePasswordSignInFailureCountBeforeFactoryReset - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.application/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.application/allOf/1/properties/tokenEncryptionKeyId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.appLogCollectionRequest/allOf/1/properties/completedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.appRoleAssignment/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.appRoleAssignment/allOf/1/properties/principalId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.appRoleAssignment/allOf/1/properties/resourceId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.approvalStage/allOf/1/properties/reviewedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.attachment/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.attachmentBase/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.attachmentSession/allOf/1/properties/content - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.attachmentSession/allOf/1/properties/expirationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.attendanceRecord/allOf/1/properties/totalAttendanceInSeconds - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.attributeSet/allOf/1/properties/maxAttributesPerSet - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.authenticationMethodsPolicy/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.authenticationMethodsPolicy/allOf/1/properties/reconfirmationInDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.authoredNote/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.authorizationPolicy/allOf/1/properties/guestUserRoleId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.baseItemVersion/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.bookingAppointment/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.bookingAppointment/allOf/1/properties/lastUpdatedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.bookingAppointment/allOf/1/properties/price/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.bookingBusiness/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.bookingBusiness/allOf/1/properties/lastUpdatedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.bookingCustomer/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.bookingCustomer/allOf/1/properties/lastUpdatedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.bookingCustomQuestion/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.bookingCustomQuestion/allOf/1/properties/lastUpdatedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.bookingService/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.bookingService/allOf/1/properties/defaultPrice/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.bookingService/allOf/1/properties/lastUpdatedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.bookingStaffMember/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.bookingStaffMember/allOf/1/properties/lastUpdatedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.browserSharedCookie/allOf/1/properties/deletedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.browserSite/allOf/1/properties/deletedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.browserSiteList/allOf/1/properties/publishedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.calendarGroup/allOf/1/properties/classId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecording/allOf/1/properties/content - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecording/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecording/allOf/1/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callTranscript/allOf/1/properties/content - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callTranscript/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callTranscript/allOf/1/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callTranscript/allOf/1/properties/metadataContent - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.changeTrackedEntity/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.changeTrackedEntity/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.channel/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.chat/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.chat/allOf/1/properties/lastUpdatedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.chatMessage/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.chatMessage/allOf/1/properties/deletedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.chatMessage/allOf/1/properties/lastEditedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.chatMessage/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.chatMessageInfo/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.checklistItem/allOf/1/properties/checkedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.cloudClipboardItem/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.cloudPC/allOf/1/properties/gracePeriodEndDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.cloudPcDeviceImage/allOf/1/properties/expirationDate - The format date is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.cloudPcDeviceImage/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.cloudPcGalleryImage/allOf/1/properties/endDate - The format date is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.cloudPcGalleryImage/allOf/1/properties/expirationDate - The format date is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.cloudPcGalleryImage/allOf/1/properties/sizeInGB - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.cloudPcGalleryImage/allOf/1/properties/startDate - The format date is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.cloudPcProvisioningPolicy/allOf/1/properties/gracePeriodInHours - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.cloudPcUserSetting/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.cloudPcUserSetting/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.cloudPcUserSettingAssignment/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.companySubscription/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.companySubscription/allOf/1/properties/nextLifecycleDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.companySubscription/allOf/1/properties/totalLicenses - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.conditionalAccessPolicy/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.conditionalAccessPolicy/allOf/1/properties/modifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.connectedOrganization/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.connectedOrganization/allOf/1/properties/modifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.contact/allOf/1/properties/birthday - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.contract/allOf/1/properties/customerId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.conversationMember/allOf/1/properties/visibleHistoryStartDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.dataPolicyOperation/allOf/1/properties/completedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.dataPolicyOperation/allOf/1/properties/progress/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.dayNote/allOf/1/properties/dayNoteDate - The format date is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.delegatedAdminAccessAssignment/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.delegatedAdminAccessAssignment/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.delegatedAdminRelationship/allOf/1/properties/activatedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.delegatedAdminRelationship/allOf/1/properties/autoExtendDuration - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.delegatedAdminRelationship/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.delegatedAdminRelationship/allOf/1/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.delegatedAdminRelationship/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.delegatedAdminRelationshipRequest/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.delegatedAdminRelationshipRequest/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.deltaParticipants/allOf/1/properties/sequenceNumber - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.device/allOf/1/properties/approximateLastSignInDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.device/allOf/1/properties/complianceExpirationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.device/allOf/1/properties/deviceVersion - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.device/allOf/1/properties/onPremisesLastSyncDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.device/allOf/1/properties/registrationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.deviceLogCollectionResponse/allOf/1/properties/expirationDateTimeUTC - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.deviceLogCollectionResponse/allOf/1/properties/receivedDateTimeUTC - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.deviceLogCollectionResponse/allOf/1/properties/requestedDateTimeUTC - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.deviceLogCollectionResponse/allOf/1/properties/sizeInKB/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.deviceManagementPartner/allOf/1/properties/whenPartnerDevicesWillBeMarkedAsNonCompliantDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.deviceManagementPartner/allOf/1/properties/whenPartnerDevicesWillBeRemovedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.directoryDefinition/allOf/1/properties/discoveryDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.directoryObject/allOf/1/properties/deletedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.directoryObjectPartnerReference/allOf/1/properties/externalPartnerTenantId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.documentSetVersion/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.domain/allOf/1/properties/passwordNotificationWindowInDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.domain/allOf/1/properties/passwordValidityPeriodInDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.domainDnsMxRecord/allOf/1/properties/preference - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.domainDnsSrvRecord/allOf/1/properties/port - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.domainDnsSrvRecord/allOf/1/properties/priority - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.domainDnsSrvRecord/allOf/1/properties/weight - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.driveItem/allOf/1/properties/content - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.driveItem/allOf/1/properties/size - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.driveItemVersion/allOf/1/properties/content - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.driveItemVersion/allOf/1/properties/size - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationAssignment/allOf/1/properties/assignDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationAssignment/allOf/1/properties/assignedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationAssignment/allOf/1/properties/closeDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationAssignment/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationAssignment/allOf/1/properties/dueDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationAssignment/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationAssignmentDefaults/allOf/1/properties/dueTime - The format time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationModule/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationModule/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationOutcome/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationRubric/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationRubric/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationSubmission/allOf/1/properties/excusedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationSubmission/allOf/1/properties/reassignedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationSubmission/allOf/1/properties/returnedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationSubmission/allOf/1/properties/submittedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationSubmission/allOf/1/properties/unsubmittedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationUser/allOf/1/properties/refreshTokensValidFromDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.endUserNotification/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.endUserNotification/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.enterpriseCodeSigningCertificate/allOf/1/properties/content - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.entitlementManagementSettings/allOf/1/properties/durationUntilExternalUserDeletedAfterBlocked - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.event/allOf/1/properties/originalStart - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.event/allOf/1/properties/reminderMinutesBeforeStart - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.fido2AuthenticationMethod/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.fileAttachment/allOf/1/properties/contentBytes - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.governanceInsight/allOf/1/properties/insightCreatedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.granularMailboxRestoreArtifact/allOf/1/properties/artifactCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.group/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.group/allOf/1/properties/expirationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.group/allOf/1/properties/onPremisesLastSyncDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.group/allOf/1/properties/renewedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.group/allOf/1/properties/unseenCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.groupLifecyclePolicy/allOf/1/properties/groupLifetimeInDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.horizontalSectionColumn/allOf/1/properties/width - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.identityUserFlow/allOf/1/properties/userFlowTypeVersion/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.importedWindowsAutopilotDeviceIdentity/allOf/1/properties/hardwareIdentifier - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.iosCompliancePolicy/allOf/1/properties/passcodeExpirationDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.iosCompliancePolicy/allOf/1/properties/passcodeMinimumCharacterSetCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.iosCompliancePolicy/allOf/1/properties/passcodeMinimumLength - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.iosCompliancePolicy/allOf/1/properties/passcodeMinutesOfInactivityBeforeLock - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.iosCompliancePolicy/allOf/1/properties/passcodePreviousPasscodeBlockCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.iosGeneralDeviceConfiguration/allOf/1/properties/passcodeExpirationDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.iosGeneralDeviceConfiguration/allOf/1/properties/passcodeMinimumCharacterSetCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.iosGeneralDeviceConfiguration/allOf/1/properties/passcodeMinimumLength - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.iosGeneralDeviceConfiguration/allOf/1/properties/passcodeMinutesOfInactivityBeforeLock - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.iosGeneralDeviceConfiguration/allOf/1/properties/passcodeMinutesOfInactivityBeforeScreenTimeout - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.iosGeneralDeviceConfiguration/allOf/1/properties/passcodePreviousPasscodeBlockCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.iosGeneralDeviceConfiguration/allOf/1/properties/passcodeSignInFailureCountBeforeWipe - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.iosLobApp/allOf/1/properties/expirationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.iosMobileAppConfiguration/allOf/1/properties/encodedSettingXml - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.iosUpdateConfiguration/allOf/1/properties/utcTimeOffsetInMinutes - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.iosVppApp/allOf/1/properties/releaseDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.itemActivity/allOf/1/properties/activityDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.itemActivityStat/allOf/1/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.itemActivityStat/allOf/1/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.itemRetentionLabel/allOf/1/properties/labelAppliedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.landingPage/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.landingPage/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.learningAssignment/allOf/1/properties/assignedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.learningContent/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.learningContent/allOf/1/properties/duration - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.learningContent/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.learningContent/allOf/1/properties/numberOfPages - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.learningCourseActivity/allOf/1/properties/completedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.learningCourseActivity/allOf/1/properties/completionPercentage - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.learningSelfInitiatedCourse/allOf/1/properties/startedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.licenseDetails/allOf/1/properties/skuId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.loginPage/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.loginPage/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.longRunningOperation/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.longRunningOperation/allOf/1/properties/lastActionDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.macOSCompliancePolicy/allOf/1/properties/passwordExpirationDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.macOSCompliancePolicy/allOf/1/properties/passwordMinimumCharacterSetCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.macOSCompliancePolicy/allOf/1/properties/passwordMinimumLength - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.macOSCompliancePolicy/allOf/1/properties/passwordMinutesOfInactivityBeforeLock - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.macOSCompliancePolicy/allOf/1/properties/passwordPreviousPasswordBlockCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.macOSGeneralDeviceConfiguration/allOf/1/properties/passwordExpirationDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.macOSGeneralDeviceConfiguration/allOf/1/properties/passwordMinimumCharacterSetCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.macOSGeneralDeviceConfiguration/allOf/1/properties/passwordMinimumLength - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.macOSGeneralDeviceConfiguration/allOf/1/properties/passwordMinutesOfInactivityBeforeLock - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.macOSGeneralDeviceConfiguration/allOf/1/properties/passwordMinutesOfInactivityBeforeScreenTimeout - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.macOSGeneralDeviceConfiguration/allOf/1/properties/passwordPreviousPasswordBlockCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.mailFolder/allOf/1/properties/childFolderCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.mailFolder/allOf/1/properties/totalItemCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.mailFolder/allOf/1/properties/unreadItemCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.malwareStateForWindowsDevice/allOf/1/properties/detectionCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.malwareStateForWindowsDevice/allOf/1/properties/initialDetectionDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.malwareStateForWindowsDevice/allOf/1/properties/lastStateChangeDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.managedIOSLobApp/allOf/1/properties/expirationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.meetingAttendanceReport/allOf/1/properties/meetingEndDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.meetingAttendanceReport/allOf/1/properties/meetingStartDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.meetingAttendanceReport/allOf/1/properties/totalParticipantCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.message/allOf/1/properties/conversationIndex - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.message/allOf/1/properties/receivedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.message/allOf/1/properties/sentDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.messageRule/allOf/1/properties/sequence - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.microsoftAuthenticatorAuthenticationMethod/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.mobileAppContentFile/allOf/1/properties/azureStorageUriExpirationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.mobileAppContentFile/allOf/1/properties/manifest - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.multiTenantOrganization/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.multiTenantOrganizationMember/allOf/1/properties/addedByTenantId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.multiTenantOrganizationMember/allOf/1/properties/addedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.multiTenantOrganizationMember/allOf/1/properties/joinedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.namedLocation/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.namedLocation/allOf/1/properties/modifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.offerShiftRequest/allOf/1/properties/recipientActionDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.onenoteEntityHierarchyModel/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.onenoteEntitySchemaObjectModel/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.onenotePage/allOf/1/properties/content - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.onenotePage/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.onenotePage/allOf/1/properties/level - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.onenotePage/allOf/1/properties/order - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.onenoteResource/allOf/1/properties/content - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.onlineMeeting/allOf/1/properties/attendeeReport - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.onlineMeeting/allOf/1/properties/creationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.onlineMeeting/allOf/1/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.onlineMeeting/allOf/1/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.operation/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.operation/allOf/1/properties/lastActionDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.organization/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.organization/allOf/1/properties/onPremisesLastSyncDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.organizationalBrandingProperties/allOf/1/properties/backgroundImage - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.organizationalBrandingProperties/allOf/1/properties/bannerLogo - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.organizationalBrandingProperties/allOf/1/properties/customCSS - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.organizationalBrandingProperties/allOf/1/properties/favicon - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.organizationalBrandingProperties/allOf/1/properties/headerLogo - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.organizationalBrandingProperties/allOf/1/properties/squareLogo - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.organizationalBrandingProperties/allOf/1/properties/squareLogoDark - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.orgContact/allOf/1/properties/onPremisesLastSyncDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.outlookItem/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.outlookItem/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.participant/allOf/1/properties/rosterSequenceNumber - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.passwordAuthenticationMethod/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.payload/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.payload/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.payload/allOf/1/properties/predictedCompromiseRate/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.permission/allOf/1/properties/expirationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.plannerPlan/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.plannerTask/allOf/1/properties/activeChecklistItemCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.plannerTask/allOf/1/properties/checklistItemCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.plannerTask/allOf/1/properties/completedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.plannerTask/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.plannerTask/allOf/1/properties/dueDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.plannerTask/allOf/1/properties/percentComplete - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.plannerTask/allOf/1/properties/priority - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.plannerTask/allOf/1/properties/referenceCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.plannerTask/allOf/1/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printDocument/allOf/1/properties/downloadedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printDocument/allOf/1/properties/uploadedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printer/allOf/1/properties/lastSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printJob/allOf/1/properties/acknowledgedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printJob/allOf/1/properties/errorCode - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printUsage/allOf/1/properties/blackAndWhitePageCount - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printUsage/allOf/1/properties/colorPageCount - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printUsage/allOf/1/properties/completedJobCount - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printUsage/allOf/1/properties/doubleSidedSheetCount - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printUsage/allOf/1/properties/mediaSheetCount - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printUsage/allOf/1/properties/pageCount - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printUsage/allOf/1/properties/singleSidedSheetCount - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.privilegedAccessSchedule/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.privilegedAccessSchedule/allOf/1/properties/modifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.privilegedAccessScheduleInstance/allOf/1/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.privilegedAccessScheduleInstance/allOf/1/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.profilePhoto/allOf/1/properties/height - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.profilePhoto/allOf/1/properties/width - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.protectionPolicyBase/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.protectionPolicyBase/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.protectionRuleBase/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.protectionRuleBase/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.protectionUnitBase/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.protectionUnitBase/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.provisioningObjectSummary/allOf/1/properties/durationInMilliseconds - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.recycleBinItem/allOf/1/properties/deletedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.recycleBinItem/allOf/1/properties/size - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.relyingPartyDetailedSummary/allOf/1/properties/signInSuccessRate/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.request/allOf/1/properties/completedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.request/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.restoreArtifactBase/allOf/1/properties/completionDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.restoreArtifactBase/allOf/1/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.restorePoint/allOf/1/properties/expirationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.restorePoint/allOf/1/properties/protectionDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.restoreSessionBase/allOf/1/properties/completedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.restoreSessionBase/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.restoreSessionBase/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.richLongRunningOperation/allOf/1/properties/percentageComplete - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.riskDetection/allOf/1/properties/activityDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.riskDetection/allOf/1/properties/detectedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.riskDetection/allOf/1/properties/lastUpdatedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.riskyServicePrincipal/allOf/1/properties/riskLastUpdatedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.riskyUser/allOf/1/properties/riskLastUpdatedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.room/allOf/1/properties/capacity - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.room/allOf/1/properties/floorNumber - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.scheduleChangeRequest/allOf/1/properties/managerActionDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.scheduleChangeRequest/allOf/1/properties/senderDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.secureScore/allOf/1/properties/activeUserCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.secureScore/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.secureScore/allOf/1/properties/currentScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.secureScore/allOf/1/properties/licensedUserCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.secureScore/allOf/1/properties/maxScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.secureScoreControlProfile/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.secureScoreControlProfile/allOf/1/properties/maxScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.secureScoreControlProfile/allOf/1/properties/rank - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.serviceAnnouncementAttachment/allOf/1/properties/content - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.serviceAnnouncementAttachment/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.serviceAnnouncementBase/allOf/1/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.serviceApp/allOf/1/properties/effectiveDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.serviceApp/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.serviceApp/allOf/1/properties/registrationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.servicePrincipal/allOf/1/properties/appOwnerOrganizationId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.servicePrincipal/allOf/1/properties/tokenEncryptionKeyId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.servicePrincipalRiskDetection/allOf/1/properties/activityDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.servicePrincipalRiskDetection/allOf/1/properties/detectedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.servicePrincipalRiskDetection/allOf/1/properties/lastUpdatedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.serviceUpdateMessage/allOf/1/properties/actionRequiredByDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.serviceUpdateMessage/allOf/1/properties/attachmentsArchive - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.sharedPCConfiguration/allOf/1/properties/idleTimeBeforeSleepInSeconds - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.sharedPCConfiguration/allOf/1/properties/maintenanceStartTime - The format time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.sharepointSettings/allOf/1/properties/allowedDomainGuidsForSyncApp/items - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.sharepointSettings/allOf/1/properties/deletedUserPersonalSiteRetentionPeriodInDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.sharepointSettings/allOf/1/properties/personalSiteDefaultStorageLimitInMB - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.sharepointSettings/allOf/1/properties/siteCreationDefaultStorageLimitInMB - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.simulation/allOf/1/properties/completionDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.simulation/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.simulation/allOf/1/properties/durationInDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.simulation/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.simulation/allOf/1/properties/launchDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.simulationAutomation/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.simulationAutomation/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.simulationAutomation/allOf/1/properties/lastRunDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.simulationAutomation/allOf/1/properties/nextRunDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.simulationAutomationRun/allOf/1/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.simulationAutomationRun/allOf/1/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.storageQuotaBreakdown/allOf/1/properties/used - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.subjectRightsRequest/allOf/1/properties/closedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.subjectRightsRequest/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.subjectRightsRequest/allOf/1/properties/internalDueDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.subjectRightsRequest/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.subscribedSku/allOf/1/properties/consumedUnits - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.subscribedSku/allOf/1/properties/skuId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.team/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teamsAppDefinition/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teamworkHostedContent/allOf/1/properties/contentBytes - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teamworkTag/allOf/1/properties/memberCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.temporaryAccessPassAuthenticationMethod/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.temporaryAccessPassAuthenticationMethod/allOf/1/properties/lifetimeInMinutes - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.temporaryAccessPassAuthenticationMethod/allOf/1/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.temporaryAccessPassAuthenticationMethodConfiguration/allOf/1/properties/defaultLength - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.temporaryAccessPassAuthenticationMethodConfiguration/allOf/1/properties/defaultLifetimeInMinutes - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.temporaryAccessPassAuthenticationMethodConfiguration/allOf/1/properties/maximumLifetimeInMinutes - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.temporaryAccessPassAuthenticationMethodConfiguration/allOf/1/properties/minimumLifetimeInMinutes - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.threatAssessmentRequest/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.threatAssessmentResult/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.timeOffRequest/allOf/1/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.timeOffRequest/allOf/1/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.training/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.training/allOf/1/properties/durationInMinutes - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.training/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.trainingLanguageDetail/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.trainingLanguageDetail/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.trending/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.trending/allOf/1/properties/weight/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.unifiedRoleAssignmentScheduleInstance/allOf/1/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.unifiedRoleAssignmentScheduleInstance/allOf/1/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.unifiedRoleEligibilityScheduleInstance/allOf/1/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.unifiedRoleEligibilityScheduleInstance/allOf/1/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.unifiedRoleManagementPolicy/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.unifiedRoleManagementPolicyExpirationRule/allOf/1/properties/maximumDuration - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.unifiedRoleScheduleBase/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.unifiedRoleScheduleBase/allOf/1/properties/modifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.unifiedStorageQuota/allOf/1/properties/deleted - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.unifiedStorageQuota/allOf/1/properties/remaining - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.unifiedStorageQuota/allOf/1/properties/total - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.unifiedStorageQuota/allOf/1/properties/used - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.user/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.user/allOf/1/properties/employeeHireDate - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.user/allOf/1/properties/employeeLeaveDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.user/allOf/1/properties/externalUserStateChangeDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.user/allOf/1/properties/lastPasswordChangeDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.user/allOf/1/properties/onPremisesLastSyncDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.user/allOf/1/properties/signInSessionsValidFromDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userActivity/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userActivity/allOf/1/properties/expirationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userActivity/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsAppHealthApplicationPerformance/allOf/1/properties/appHealthScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsAppHealthDeviceModelPerformance/allOf/1/properties/modelAppHealthScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsAppHealthDevicePerformance/allOf/1/properties/deviceAppHealthScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsAppHealthOSVersionPerformance/allOf/1/properties/osVersionAppHealthScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsDevicePerformance/allOf/1/properties/averageBlueScreens/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsDevicePerformance/allOf/1/properties/averageRestarts/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsDevicePerformance/allOf/1/properties/modelStartupPerformanceScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsDevicePerformance/allOf/1/properties/startupPerformanceScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsDeviceScores/allOf/1/properties/appReliabilityScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsDeviceScores/allOf/1/properties/batteryHealthScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsDeviceScores/allOf/1/properties/endpointAnalyticsScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsDeviceScores/allOf/1/properties/startupPerformanceScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsDeviceScores/allOf/1/properties/workFromAnywhereScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsMetric/allOf/1/properties/value/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsModelScores/allOf/1/properties/appReliabilityScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsModelScores/allOf/1/properties/batteryHealthScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsModelScores/allOf/1/properties/endpointAnalyticsScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsModelScores/allOf/1/properties/startupPerformanceScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsModelScores/allOf/1/properties/workFromAnywhereScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsWorkFromAnywhereDevice/allOf/1/properties/cloudIdentityScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsWorkFromAnywhereDevice/allOf/1/properties/cloudManagementScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsWorkFromAnywhereDevice/allOf/1/properties/cloudProvisioningScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsWorkFromAnywhereDevice/allOf/1/properties/windowsScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsWorkFromAnywhereDevice/allOf/1/properties/workFromAnywhereScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric/allOf/1/properties/osCheckFailedPercentage/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric/allOf/1/properties/processor64BitCheckFailedPercentage/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric/allOf/1/properties/processorCoreCountCheckFailedPercentage/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric/allOf/1/properties/processorFamilyCheckFailedPercentage/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric/allOf/1/properties/processorSpeedCheckFailedPercentage/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric/allOf/1/properties/ramCheckFailedPercentage/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric/allOf/1/properties/secureBootCheckFailedPercentage/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric/allOf/1/properties/storageCheckFailedPercentage/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric/allOf/1/properties/tpmCheckFailedPercentage/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsWorkFromAnywhereModelPerformance/allOf/1/properties/cloudIdentityScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsWorkFromAnywhereModelPerformance/allOf/1/properties/cloudManagementScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsWorkFromAnywhereModelPerformance/allOf/1/properties/cloudProvisioningScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsWorkFromAnywhereModelPerformance/allOf/1/properties/windowsScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userExperienceAnalyticsWorkFromAnywhereModelPerformance/allOf/1/properties/workFromAnywhereScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userSignInInsight/allOf/1/properties/lastSignInDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.virtualEventRegistration/allOf/1/properties/cancelationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.virtualEventRegistration/allOf/1/properties/registrationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.virtualEventRegistrationConfiguration/allOf/1/properties/capacity - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.win32LobApp/allOf/1/properties/minimumCpuSpeedInMHz - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.win32LobApp/allOf/1/properties/minimumFreeDiskSpaceInMB - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.win32LobApp/allOf/1/properties/minimumMemoryInMB - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.win32LobApp/allOf/1/properties/minimumNumberOfProcessors - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10CompliancePolicy/allOf/1/properties/passwordExpirationDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10CompliancePolicy/allOf/1/properties/passwordMinimumCharacterSetCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10CompliancePolicy/allOf/1/properties/passwordMinimumLength - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10CompliancePolicy/allOf/1/properties/passwordMinutesOfInactivityBeforeLock - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10CompliancePolicy/allOf/1/properties/passwordPreviousPasswordBlockCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10EndpointProtectionConfiguration/allOf/1/properties/defenderExploitProtectionXml - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10EndpointProtectionConfiguration/allOf/1/properties/firewallIdleTimeoutForSecurityAssociationInSeconds - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10GeneralConfiguration/allOf/1/properties/defenderDaysBeforeDeletingQuarantinedMalware - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10GeneralConfiguration/allOf/1/properties/defenderScanMaxCpu - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10GeneralConfiguration/allOf/1/properties/defenderScheduledQuickScanTime - The format time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10GeneralConfiguration/allOf/1/properties/defenderScheduledScanTime - The format time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10GeneralConfiguration/allOf/1/properties/defenderSignatureUpdateIntervalInHours - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10GeneralConfiguration/allOf/1/properties/enterpriseCloudPrintDiscoveryMaxLimit - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10GeneralConfiguration/allOf/1/properties/lockScreenTimeoutInSeconds - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10GeneralConfiguration/allOf/1/properties/passwordExpirationDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10GeneralConfiguration/allOf/1/properties/passwordMinimumCharacterSetCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10GeneralConfiguration/allOf/1/properties/passwordMinimumLength - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10GeneralConfiguration/allOf/1/properties/passwordMinutesOfInactivityBeforeScreenTimeout - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10GeneralConfiguration/allOf/1/properties/passwordPreviousPasswordBlockCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10GeneralConfiguration/allOf/1/properties/passwordSignInFailureCountBeforeFactoryReset - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10GeneralConfiguration/allOf/1/properties/startMenuLayoutEdgeAssetsXml - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10GeneralConfiguration/allOf/1/properties/startMenuLayoutXml - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10GeneralConfiguration/allOf/1/properties/wiFiScanInterval - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10MobileCompliancePolicy/allOf/1/properties/passwordExpirationDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10MobileCompliancePolicy/allOf/1/properties/passwordMinimumCharacterSetCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10MobileCompliancePolicy/allOf/1/properties/passwordMinimumLength - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10MobileCompliancePolicy/allOf/1/properties/passwordMinutesOfInactivityBeforeLock - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10MobileCompliancePolicy/allOf/1/properties/passwordPreviousPasswordBlockCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10TeamGeneralConfiguration/allOf/1/properties/maintenanceWindowDurationInHours - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10TeamGeneralConfiguration/allOf/1/properties/maintenanceWindowStartTime - The format time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10TeamGeneralConfiguration/allOf/1/properties/settingsDefaultVolume - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10TeamGeneralConfiguration/allOf/1/properties/settingsScreenTimeoutInMinutes - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10TeamGeneralConfiguration/allOf/1/properties/settingsSessionTimeoutInMinutes - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows10TeamGeneralConfiguration/allOf/1/properties/settingsSleepTimeoutInMinutes - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows81CompliancePolicy/allOf/1/properties/passwordExpirationDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows81CompliancePolicy/allOf/1/properties/passwordMinimumCharacterSetCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows81CompliancePolicy/allOf/1/properties/passwordMinimumLength - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows81CompliancePolicy/allOf/1/properties/passwordMinutesOfInactivityBeforeLock - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows81CompliancePolicy/allOf/1/properties/passwordPreviousPasswordBlockCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows81GeneralConfiguration/allOf/1/properties/passwordExpirationDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows81GeneralConfiguration/allOf/1/properties/passwordMinimumCharacterSetCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows81GeneralConfiguration/allOf/1/properties/passwordMinimumLength - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows81GeneralConfiguration/allOf/1/properties/passwordMinutesOfInactivityBeforeScreenTimeout - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows81GeneralConfiguration/allOf/1/properties/passwordPreviousPasswordBlockCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windows81GeneralConfiguration/allOf/1/properties/passwordSignInFailureCountBeforeFactoryReset - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsDeviceMalwareState/allOf/1/properties/detectionCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsDeviceMalwareState/allOf/1/properties/initialDetectionDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsDeviceMalwareState/allOf/1/properties/lastStateChangeDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsHelloForBusinessAuthenticationMethod/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsInformationProtection/allOf/1/properties/rightsManagementServicesTemplateId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsInformationProtectionAppLockerFile/allOf/1/properties/file - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsMalwareInformation/allOf/1/properties/lastDetectionDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsPhone81CompliancePolicy/allOf/1/properties/passwordExpirationDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsPhone81CompliancePolicy/allOf/1/properties/passwordMinimumCharacterSetCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsPhone81CompliancePolicy/allOf/1/properties/passwordMinimumLength - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsPhone81CompliancePolicy/allOf/1/properties/passwordMinutesOfInactivityBeforeLock - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsPhone81CompliancePolicy/allOf/1/properties/passwordPreviousPasswordBlockCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsPhone81GeneralConfiguration/allOf/1/properties/passwordExpirationDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsPhone81GeneralConfiguration/allOf/1/properties/passwordMinimumCharacterSetCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsPhone81GeneralConfiguration/allOf/1/properties/passwordMinimumLength - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsPhone81GeneralConfiguration/allOf/1/properties/passwordMinutesOfInactivityBeforeScreenTimeout - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsPhone81GeneralConfiguration/allOf/1/properties/passwordPreviousPasswordBlockCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsPhone81GeneralConfiguration/allOf/1/properties/passwordSignInFailureCountBeforeFactoryReset - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsProtectionState/allOf/1/properties/lastFullScanDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsProtectionState/allOf/1/properties/lastQuickScanDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsProtectionState/allOf/1/properties/lastReportedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsSettingInstance/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsUpdateForBusinessConfiguration/allOf/1/properties/deadlineForFeatureUpdatesInDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsUpdateForBusinessConfiguration/allOf/1/properties/deadlineForQualityUpdatesInDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsUpdateForBusinessConfiguration/allOf/1/properties/deadlineGracePeriodInDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsUpdateForBusinessConfiguration/allOf/1/properties/engagedRestartDeadlineInDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsUpdateForBusinessConfiguration/allOf/1/properties/engagedRestartSnoozeScheduleInDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsUpdateForBusinessConfiguration/allOf/1/properties/engagedRestartTransitionScheduleInDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsUpdateForBusinessConfiguration/allOf/1/properties/featureUpdatesPauseStartDate - The format date is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsUpdateForBusinessConfiguration/allOf/1/properties/featureUpdatesRollbackWindowInDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsUpdateForBusinessConfiguration/allOf/1/properties/qualityUpdatesPauseStartDate - The format date is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsUpdateForBusinessConfiguration/allOf/1/properties/scheduleImminentRestartWarningInMinutes - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsUpdateForBusinessConfiguration/allOf/1/properties/scheduleRestartWarningInHours - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.workbookChart/allOf/1/properties/height/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.workbookChart/allOf/1/properties/left/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.workbookChart/allOf/1/properties/top/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.workbookChart/allOf/1/properties/width/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.workbookChartFont/allOf/1/properties/size/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.workbookRangeFont/allOf/1/properties/size/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.workbookRangeFormat/allOf/1/properties/columnWidth/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.workbookRangeFormat/allOf/1/properties/rowHeight/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.workforceIntegration/allOf/1/properties/apiVersion - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessPackageApprovalStage/properties/durationBeforeAutomaticDenial - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessPackageApprovalStage/properties/durationBeforeEscalation - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessPackageAutomaticRequestSettings/properties/gracePeriodBeforeAccessRemoval - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessReviewInactiveUsersQueryScope/allOf/1/properties/inactiveDuration - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.accessReviewScheduleSettings/properties/recommendationLookBackDuration - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.addIn/properties/id - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.aggregationOption/properties/size - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.agreementFileData/properties/data - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.alertHistoryState/properties/updatedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.alteredQueryToken/properties/length - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.alteredQueryToken/properties/offset - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.alternativeSecurityId/properties/key - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.alternativeSecurityId/properties/type - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.apiApplication/properties/knownClientApplications/items - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.apiApplication/properties/requestedAccessTokenVersion - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.archivedPrintJob/properties/acquiredDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.archivedPrintJob/properties/completionDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.assignedLicense/properties/skuId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.assignedPlan/properties/assignedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.assignedPlan/properties/servicePlanId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.assignedTrainingInfo/properties/assignedUserCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.assignedTrainingInfo/properties/completedUserCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.attachmentInfo/properties/size - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.attachmentItem/properties/size - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.attackSimulationRepeatOffender/properties/repeatOffenceCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.attackSimulationSimulationUserCoverage/properties/clickCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.attackSimulationSimulationUserCoverage/properties/compromisedCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.attackSimulationSimulationUserCoverage/properties/latestSimulationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.attackSimulationSimulationUserCoverage/properties/simulationCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.attendanceInterval/properties/durationInSeconds - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.attendanceInterval/properties/joinDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.attendanceInterval/properties/leaveDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.audio/properties/bitrate - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.audio/properties/disc - The format int16 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.audio/properties/discCount - The format int16 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.audio/properties/duration - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.audio/properties/track - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.audio/properties/trackCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.audio/properties/year - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.averageComparativeScore/properties/averageScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.bookingsAvailabilityWindow/allOf/1/properties/endDate - The format date is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.bookingsAvailabilityWindow/allOf/1/properties/startDate - The format date is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.bucketAggregationDefinition/properties/minimumCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.bundle/properties/childCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callEndedEventMessageDetail/allOf/1/properties/callDuration - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecordingEventMessageDetail/allOf/1/properties/callRecordingDuration - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callTranscriptionInfo/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.certification/properties/certificationExpirationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.certification/properties/lastCertificationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.channelSummary/properties/guestsCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.channelSummary/properties/membersCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.channelSummary/properties/ownersCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.chatMessageMention/properties/id - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.chatViewpoint/properties/lastMessageReadDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.coachmarkLocation/properties/length - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.coachmarkLocation/properties/offset - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.contentTypeOrder/properties/position - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.controlScore/properties/score/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.CopyNotebookModel/properties/createdTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.CopyNotebookModel/properties/lastModifiedTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.customExtensionCallbackConfiguration/properties/timeoutDuration - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.customExtensionClientConfiguration/properties/maximumRetries - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.customExtensionClientConfiguration/properties/timeoutInMilliseconds - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.customTimeZone/allOf/1/properties/bias - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.customTrainingSetting/allOf/1/properties/durationInMinutes - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.daylightTimeZoneOffset/allOf/1/properties/daylightBias - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.deviceAndAppManagementData/properties/content - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.deviceGeoLocation/properties/altitude/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.deviceGeoLocation/properties/heading/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.deviceGeoLocation/properties/horizontalAccuracy/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.deviceGeoLocation/properties/latitude/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.deviceGeoLocation/properties/longitude/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.deviceGeoLocation/properties/speed/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.deviceGeoLocation/properties/verticalAccuracy/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.domainState/properties/lastActionDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.driveItemUploadableProperties/properties/fileSize - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationAssignmentGrade/properties/gradedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationAssignmentPointsGrade/allOf/1/properties/points/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationAssignmentPointsGradeType/allOf/1/properties/maxPoints/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationFeedback/properties/feedbackDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationResource/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationResource/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationStudent/properties/birthDate - The format date is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationTerm/properties/endDate - The format date is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.educationTerm/properties/startDate - The format date is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.entitlementManagementSchedule/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.expirationPattern/properties/duration - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.expirationPattern/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.fileEncryptionInfo/properties/encryptionKey - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.fileEncryptionInfo/properties/fileDigest - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.fileEncryptionInfo/properties/initializationVector - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.fileEncryptionInfo/properties/mac - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.fileEncryptionInfo/properties/macKey - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.fileStorageContainerSettings/properties/itemMajorVersionLimit - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.fileSystemInfo/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.fileSystemInfo/properties/lastAccessedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.fileSystemInfo/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.folder/properties/childCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.geoCoordinates/properties/altitude/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.geoCoordinates/properties/latitude/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.geoCoordinates/properties/longitude/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.idleSessionSignOut/properties/signOutAfterInSeconds - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.idleSessionSignOut/properties/warnAfterInSeconds - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.image/properties/height - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.image/properties/width - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.incompleteData/properties/missingDataBeforeDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.insightValueDouble/allOf/1/properties/value/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.integerRange/properties/end - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.integerRange/properties/start - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.itemActionStat/properties/actionCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.itemActionStat/properties/actorCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.keyCredential/properties/customKeyIdentifier - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.keyCredential/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.keyCredential/properties/key - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.keyCredential/properties/keyId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.keyCredential/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.keyCredentialConfiguration/properties/maxLifetime - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.keyCredentialConfiguration/properties/restrictForAppsCreatedAfterDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.licenseAssignmentState/properties/disabledPlans/items - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.licenseAssignmentState/properties/lastUpdatedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.licenseAssignmentState/properties/skuId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.licenseUnitsDetail/properties/enabled - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.licenseUnitsDetail/properties/lockedOut - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.licenseUnitsDetail/properties/suspended - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.licenseUnitsDetail/properties/warning - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.mailTips/properties/externalMemberCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.mailTips/properties/maxMessageSize - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.mailTips/properties/totalMemberCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.meetingTimeSuggestion/properties/confidence/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.meetingTimeSuggestion/properties/order - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.membersAddedEventMessageDetail/allOf/1/properties/visibleHistoryStartDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.messagePinnedEventMessageDetail/allOf/1/properties/eventDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.messageSecurityState/properties/messageReceivedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.messageUnpinnedEventMessageDetail/allOf/1/properties/eventDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.microsoftCustomTrainingSetting/allOf/1/properties/completionDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.microsoftManagedTrainingSetting/allOf/1/properties/completionDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.mimeContent/properties/value - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.mobileAppInstallTimeSettings/properties/deadlineDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.mobileAppInstallTimeSettings/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.networkConnection/properties/domainRegisteredDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.numberColumn/properties/maximum/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.numberColumn/properties/minimum/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.omaSettingFloatingPoint/allOf/1/properties/value/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.onPremisesAccidentalDeletionPrevention/properties/alertThreshold - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.onPremisesProvisioningError/properties/occurredDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.outlookGeoCoordinates/properties/accuracy/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.outlookGeoCoordinates/properties/altitude/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.outlookGeoCoordinates/properties/altitudeAccuracy/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.outlookGeoCoordinates/properties/latitude/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.outlookGeoCoordinates/properties/longitude/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.passwordCredential/properties/customKeyIdentifier - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.passwordCredential/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.passwordCredential/properties/keyId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.passwordCredential/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.passwordCredentialConfiguration/properties/maxLifetime - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.passwordCredentialConfiguration/properties/restrictForAppsCreatedAfterDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.pendingContentUpdate/properties/queuedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.photo/properties/exposureDenominator/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.photo/properties/exposureNumerator/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.photo/properties/fNumber/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.photo/properties/focalLength/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.photo/properties/iso - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.photo/properties/orientation - The format int16 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.photo/properties/takenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.plannerAssignment/properties/assignedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.plannerChecklistItem/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.plannerExternalReference/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.presenceStatusMessage/properties/publishedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printerCapabilities/properties/bottomMargins/items - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printerCapabilities/properties/dpis/items - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printerCapabilities/properties/leftMargins/items - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printerCapabilities/properties/pagesPerSheet/items - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printerCapabilities/properties/rightMargins/items - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printerCapabilities/properties/topMargins/items - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printerDefaults/properties/copiesPerJob - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printerDefaults/properties/dpi - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printerDefaults/properties/pagesPerSheet - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printerLocation/properties/altitudeInMeters - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printerLocation/properties/latitude/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printerLocation/properties/longitude/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printerShareViewpoint/properties/lastUsedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printJobConfiguration/properties/copies - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printJobConfiguration/properties/dpi - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printJobConfiguration/properties/pagesPerSheet - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printMargin/properties/bottom - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printMargin/properties/left - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printMargin/properties/right - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.printMargin/properties/top - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.process/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.process/properties/parentProcessCreatedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.process/properties/parentProcessId - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.process/properties/processId - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.quota/properties/deleted - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.quota/properties/remaining - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.quota/properties/total - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.quota/properties/used - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.reactionsFacet/properties/commentCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.reactionsFacet/properties/likeCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.reactionsFacet/properties/shareCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.recentNotebook/properties/lastAccessedTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.recommendedAction/properties/potentialScoreImpact/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.recurrenceRange/properties/endDate - The format date is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.recurrenceRange/properties/startDate - The format date is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.recycleBinSettings/properties/retentionPeriodOverrideDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.redirectUriSettings/properties/index - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.registryKeyState/properties/processId - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.remoteItem/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.remoteItem/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.remoteItem/properties/size - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.report/properties/content - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.requestorManager/allOf/1/properties/managerLevel - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.requestSchedule/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.responseStatus/properties/time - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.restorePointSearchResult/properties/artifactHitCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.retentionSetting/properties/period - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.rubricQuality/properties/weight/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.scheduleEntity/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.scheduleEntity/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.scoredEmailAddress/properties/relevanceScore/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.searchBucket/properties/count - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.searchHit/properties/rank - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.searchHitsContainer/properties/total - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.secureScoreControlStateUpdate/properties/updatedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.selfSignedCertificate/properties/customKeyIdentifier - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.selfSignedCertificate/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.selfSignedCertificate/properties/key - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.selfSignedCertificate/properties/keyId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.selfSignedCertificate/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.servicePlanInfo/properties/servicePlanId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.serviceProvisioningError/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.serviceStatus/properties/gracePeriodDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.serviceStatus/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.serviceStatus/properties/restoreAllowedTillDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.shared/properties/sharedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.sharedPCAccountManagerPolicy/properties/cacheAccountsAboveDiskFreePercentage - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.sharedPCAccountManagerPolicy/properties/inactiveThresholdDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.sharedPCAccountManagerPolicy/properties/removeAccountsBelowDiskFreePercentage - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.sharingDetail/properties/sharedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.shiftActivity/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.shiftActivity/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.signInActivity/properties/lastNonInteractiveSignInDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.signInActivity/properties/lastSignInDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.signInActivity/properties/lastSuccessfulSignInDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.signInFrequencySessionControl/allOf/1/properties/value - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.signingCertificateUpdateStatus/properties/lastRunDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.signInStatus/properties/errorCode - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.simulationEvent/properties/count - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.simulationEventsContent/properties/compromisedRate/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.simulationReportOverview/properties/resolvedTargetsCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.sizeRange/properties/maximumSize - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.sizeRange/properties/minimumSize - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.standardTimeZoneOffset/properties/dayOccurrence - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.standardTimeZoneOffset/properties/month - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.standardTimeZoneOffset/properties/time - The format time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.standardTimeZoneOffset/properties/year - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.subjectRightsRequestDetail/properties/excludedItemCount - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.subjectRightsRequestDetail/properties/itemCount - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.subjectRightsRequestDetail/properties/itemNeedReview - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.subjectRightsRequestDetail/properties/signedOffItemCount - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.subjectRightsRequestDetail/properties/totalItemSize - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.subjectRightsRequestHistory/properties/eventDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.synchronizationSchedule/properties/expiration - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.targetManager/allOf/1/properties/managerLevel - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teamSummary/properties/guestsCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teamSummary/properties/membersCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teamSummary/properties/ownersCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teleconferenceDeviceMediaQuality/properties/averageInboundJitter - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teleconferenceDeviceMediaQuality/properties/averageInboundPacketLossRateInPercentage/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teleconferenceDeviceMediaQuality/properties/averageInboundRoundTripDelay - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teleconferenceDeviceMediaQuality/properties/averageOutboundJitter - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teleconferenceDeviceMediaQuality/properties/averageOutboundPacketLossRateInPercentage/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teleconferenceDeviceMediaQuality/properties/averageOutboundRoundTripDelay - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teleconferenceDeviceMediaQuality/properties/inboundPackets - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teleconferenceDeviceMediaQuality/properties/localPort - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teleconferenceDeviceMediaQuality/properties/maximumInboundJitter - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teleconferenceDeviceMediaQuality/properties/maximumInboundPacketLossRateInPercentage/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teleconferenceDeviceMediaQuality/properties/maximumInboundRoundTripDelay - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teleconferenceDeviceMediaQuality/properties/maximumOutboundJitter - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teleconferenceDeviceMediaQuality/properties/maximumOutboundPacketLossRateInPercentage/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teleconferenceDeviceMediaQuality/properties/maximumOutboundRoundTripDelay - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teleconferenceDeviceMediaQuality/properties/mediaDuration - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teleconferenceDeviceMediaQuality/properties/networkLinkSpeedInBytes - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teleconferenceDeviceMediaQuality/properties/outboundPackets - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teleconferenceDeviceMediaQuality/properties/remotePort - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teleconferenceDeviceVideoQuality/allOf/1/properties/averageInboundBitRate/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teleconferenceDeviceVideoQuality/allOf/1/properties/averageInboundFrameRate/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teleconferenceDeviceVideoQuality/allOf/1/properties/averageOutboundBitRate/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.teleconferenceDeviceVideoQuality/allOf/1/properties/averageOutboundFrameRate/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.termsExpiration/properties/frequency - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.termsExpiration/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.textColumn/properties/linesForEditing - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.textColumn/properties/maxLength - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.thumbnail/properties/content - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.thumbnail/properties/height - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.thumbnail/properties/width - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.timePeriod/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.timePeriod/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.timeRange/properties/endTime - The format time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.timeRange/properties/startTime - The format time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.trainingEventsContent/properties/trainingsAssignedUserCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.unifiedApprovalStage/properties/approvalStageTimeOutInDays - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.unifiedApprovalStage/properties/escalationTimeInMinutes - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.uploadSession/properties/expirationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.uriClickSecurityState/properties/clickDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.usageDetails/properties/lastAccessedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.usageDetails/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userLastSignInRecommendationInsightSetting/allOf/1/properties/recommendationLookBackDuration - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userSecurityState/properties/logonDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userSimulationDetails/properties/assignedTrainingsCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userSimulationDetails/properties/completedTrainingsCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userSimulationDetails/properties/compromisedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userSimulationDetails/properties/inProgressTrainingsCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userSimulationDetails/properties/reportedPhishDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userSimulationEventInfo/properties/eventDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userTrainingContentEventInfo/properties/contentDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userTrainingContentEventInfo/properties/potentialScoreImpact/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userTrainingStatusInfo/properties/assignedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.userTrainingStatusInfo/properties/completionDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.verifiedPublisher/properties/addedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.video/properties/audioBitsPerSample - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.video/properties/audioChannels - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.video/properties/audioSamplesPerSecond - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.video/properties/bitrate - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.video/properties/duration - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.video/properties/frameRate/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.video/properties/height - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.video/properties/width - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.virtualEventPresenterDetails/properties/photo - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.webPartPosition/properties/columnId/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.webPartPosition/properties/horizontalSectionId/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.webPartPosition/properties/webPartIndex/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.win32LobAppRestartSettings/properties/restartNotificationSnoozeDurationInMinutes - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.windowsInformationProtectionDataRecoveryCertificate/properties/certificate - The format base64url is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.workingHours/properties/endTime - The format time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.workingHours/properties/startTime - The format time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.deviceInfo/properties/captureNotFunctioningEventRatio/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.deviceInfo/properties/cpuInsufficentEventRatio/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.deviceInfo/properties/deviceClippingEventRatio/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.deviceInfo/properties/deviceGlitchEventRatio/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.deviceInfo/properties/howlingEventCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.deviceInfo/properties/initialSignalLevelRootMeanSquare/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.deviceInfo/properties/lowSpeechLevelEventRatio/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.deviceInfo/properties/lowSpeechToNoiseEventRatio/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.deviceInfo/properties/micGlitchRate/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.deviceInfo/properties/receivedNoiseLevel - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.deviceInfo/properties/receivedSignalLevel - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.deviceInfo/properties/renderMuteEventRatio/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.deviceInfo/properties/renderNotFunctioningEventRatio/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.deviceInfo/properties/renderZeroVolumeEventRatio/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.deviceInfo/properties/sentNoiseLevel - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.deviceInfo/properties/sentSignalLevel - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.deviceInfo/properties/speakerGlitchRate/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.directRoutingLogRow/properties/callEndSubReason - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.directRoutingLogRow/properties/duration - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.directRoutingLogRow/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.directRoutingLogRow/properties/failureDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.directRoutingLogRow/properties/finalSipCode - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.directRoutingLogRow/properties/inviteDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.directRoutingLogRow/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/averageAudioDegradation/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/averageAudioNetworkJitter - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/averageBandwidthEstimate - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/averageFreezeDuration - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/averageJitter - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/averagePacketLossRate/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/averageRatioOfConcealedSamples/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/averageReceivedFrameRate/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/averageRoundTripTime - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/averageVideoFrameLossPercentage/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/averageVideoFrameRate/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/averageVideoPacketLossRate/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/lowFrameRateRatio/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/lowVideoProcessingCapabilityRatio/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/maxAudioNetworkJitter - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/maxJitter - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/maxPacketLossRate/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/maxRatioOfConcealedSamples/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/maxRoundTripTime - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/packetUtilization - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/postForwardErrorCorrectionPacketLossRate/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/rmsFreezeDuration - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.mediaStream/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.networkInfo/properties/bandwidthLowEventRatio/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.networkInfo/properties/delayEventRatio/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.networkInfo/properties/linkSpeed - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.networkInfo/properties/port - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.networkInfo/properties/receivedQualityEventRatio/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.networkInfo/properties/relayPort - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.networkInfo/properties/sentQualityEventRatio/oneOf/0 - The format float is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.networkInfo/properties/wifiBatteryCharge - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.networkInfo/properties/wifiChannel - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.networkInfo/properties/wifiSignalStrength - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.participantEndpoint/allOf/1/properties/cpuCoresCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.participantEndpoint/allOf/1/properties/cpuProcessorSpeedInMhz - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.pstnCallLogRow/properties/charge - The format decimal is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.pstnCallLogRow/properties/connectionCharge - The format decimal is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.pstnCallLogRow/properties/duration - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.pstnCallLogRow/properties/endDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.pstnCallLogRow/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.traceRouteHop/properties/hopCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.callRecords.traceRouteHop/properties/roundTripTime - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.externalConnectors.urlToItemResolverBase/properties/priority - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.identityGovernance.customTaskExtension/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.identityGovernance.customTaskExtension/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.identityGovernance.run/allOf/1/properties/completedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.identityGovernance.run/allOf/1/properties/lastUpdatedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.identityGovernance.run/allOf/1/properties/startedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.identityGovernance.taskProcessingResult/allOf/1/properties/completedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.identityGovernance.taskProcessingResult/allOf/1/properties/startedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.identityGovernance.taskReport/allOf/1/properties/completedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.identityGovernance.taskReport/allOf/1/properties/startedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.identityGovernance.userProcessingResult/allOf/1/properties/completedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.identityGovernance.userProcessingResult/allOf/1/properties/startedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.identityGovernance.workflow/allOf/1/properties/deletedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.identityGovernance.workflow/allOf/1/properties/nextScheduleRunDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.identityGovernance.workflow/allOf/1/properties/version - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.identityGovernance.workflowBase/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.identityGovernance.workflowBase/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.search.bookmark/allOf/1/properties/availabilityEndDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.search.bookmark/allOf/1/properties/availabilityStartDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.search.qna/allOf/1/properties/availabilityEndDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.search.qna/allOf/1/properties/availabilityStartDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.search.searchAnswer/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.alert/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.alert/allOf/1/properties/firstActivityDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.alert/allOf/1/properties/lastActivityDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.alert/allOf/1/properties/lastUpdateDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.alert/allOf/1/properties/resolvedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.case/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.case/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.caseOperation/allOf/1/properties/completedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.caseOperation/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.caseOperation/allOf/1/properties/percentProgress - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.dataSet/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.dataSource/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.dataSourceContainer/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.dataSourceContainer/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.dataSourceContainer/allOf/1/properties/releasedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.ediscoveryCase/allOf/1/properties/closedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.ediscoveryCustodian/allOf/1/properties/acknowledgedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.ediscoveryEstimateOperation/allOf/1/properties/indexedItemCount - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.ediscoveryEstimateOperation/allOf/1/properties/indexedItemsSize - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.ediscoveryEstimateOperation/allOf/1/properties/mailboxCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.ediscoveryEstimateOperation/allOf/1/properties/siteCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.ediscoveryEstimateOperation/allOf/1/properties/unindexedItemCount - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.ediscoveryEstimateOperation/allOf/1/properties/unindexedItemsSize - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.filePlanDescriptorTemplate/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.host/allOf/1/properties/firstSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.host/allOf/1/properties/lastSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.hostPair/allOf/1/properties/firstSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.hostPair/allOf/1/properties/lastSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.hostPort/allOf/1/properties/firstSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.hostPort/allOf/1/properties/lastScanDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.hostPort/allOf/1/properties/lastSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.hostPort/allOf/1/properties/timesObserved - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.hostSslCertificate/allOf/1/properties/firstSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.hostSslCertificate/allOf/1/properties/lastSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.intelligenceProfileIndicator/allOf/1/properties/lastSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.retentionEvent/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.retentionEvent/allOf/1/properties/eventTriggerDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.retentionEvent/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.retentionEvent/allOf/1/properties/lastStatusUpdateDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.retentionEventType/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.retentionEventType/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.retentionLabel/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.retentionLabel/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.search/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.search/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.sslCertificate/allOf/1/properties/expirationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.sslCertificate/allOf/1/properties/firstSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.sslCertificate/allOf/1/properties/issueDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.sslCertificate/allOf/1/properties/lastSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.subdomain/allOf/1/properties/firstSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.tag/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.whoisBaseRecord/allOf/1/properties/expirationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.whoisBaseRecord/allOf/1/properties/firstSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.whoisBaseRecord/allOf/1/properties/lastSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.whoisBaseRecord/allOf/1/properties/lastUpdateDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.whoisBaseRecord/allOf/1/properties/registrationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.analyzedMessageEvidence/allOf/1/properties/attachmentsCount - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.analyzedMessageEvidence/allOf/1/properties/receivedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.analyzedMessageEvidence/allOf/1/properties/urlCount - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.cloudApplicationEvidence/allOf/1/properties/appId - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.cloudApplicationEvidence/allOf/1/properties/instanceId - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.cloudApplicationEvidence/allOf/1/properties/saasAppId - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.cloudLogonSessionEvidence/allOf/1/properties/previousLogonDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.cloudLogonSessionEvidence/allOf/1/properties/startUtcDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.cvssSummary/properties/score/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.deviceEvidence/allOf/1/properties/firstSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.deviceEvidence/allOf/1/properties/osBuild - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.deviceEvidence/allOf/1/properties/rbacGroupId - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.exportFileMetadata/properties/size - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.fileDetails/properties/fileSize - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.geoLocation/properties/latitude/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.geoLocation/properties/longitude/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.googleCloudResourceEvidence/allOf/1/properties/projectNumber - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.hostLogonSessionEvidence/allOf/1/properties/endUtcDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.hostLogonSessionEvidence/allOf/1/properties/startUtcDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.hostPortBanner/properties/firstSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.hostPortBanner/properties/lastSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.hostPortBanner/properties/timesObserved - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.hostPortComponent/properties/firstSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.hostPortComponent/properties/lastSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.hostSslCertificatePort/properties/firstSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.hostSslCertificatePort/properties/lastSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.hostSslCertificatePort/properties/port - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.mailboxConfigurationEvidence/allOf/1/properties/externalDirectoryObjectId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.mailClusterEvidence/allOf/1/properties/emailCount - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.networkConnectionEvidence/allOf/1/properties/destinationPort - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.networkConnectionEvidence/allOf/1/properties/sourcePort - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.ocrSettings/properties/maxImageSize - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.ocrSettings/properties/timeout - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.processEvidence/allOf/1/properties/parentProcessCreationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.processEvidence/allOf/1/properties/parentProcessId - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.processEvidence/allOf/1/properties/processCreationDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.processEvidence/allOf/1/properties/processId - The format int64 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.redundancyDetectionSettings/properties/maxWords - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.redundancyDetectionSettings/properties/minWords - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.redundancyDetectionSettings/properties/similarityThreshold - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.retentionDurationInDays/allOf/1/properties/days - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.sasTokenEvidence/allOf/1/properties/expiryDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.sasTokenEvidence/allOf/1/properties/startDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.submissionMailEvidence/allOf/1/properties/submissionDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.teamsMessageEvidence/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.teamsMessageEvidence/allOf/1/properties/owningTenantId - The format uuid is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.teamsMessageEvidence/allOf/1/properties/receivedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.topicModelingSettings/properties/topicCount - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.whoisNameserver/properties/firstSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.security.whoisNameserver/properties/lastSeenDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.termStore.group/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.termStore.set/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.termStore.term/allOf/1/properties/createdDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.termStore.term/allOf/1/properties/lastModifiedDateTime - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/microsoft.graph.ODataErrors.InnerError/properties/date - The format date-time is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/schemas/BaseCollectionPaginationCountResponse/properties/@odata.count - The format int64 is not supported by Kiota for the type Null, Integer and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/requestBodies/findMeetingTimesRequestBody/content/application~1json/schema/properties/meetingDuration - The format duration is not supported by Kiota for the type Null, String and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/requestBodies/findMeetingTimesRequestBody/content/application~1json/schema/properties/maxCandidates - The format int32 is not supported by Kiota for the type Null, Number and the string type will be used. +Warning: KiotaBuilder OpenAPI warning: #/components/requestBodies/findMeetingTimesRequestBody/content/application~1json/schema/properties/minimumAttendeePercentage/oneOf/0 - The format double is not supported by Kiota for the type Null, Number and the string type will be used. diff --git a/lib/admin/admin_request_builder.rb b/lib/admin/admin_request_builder.rb index 96ca3d7537..823f6d1aac 100644 --- a/lib/admin/admin_request_builder.rb +++ b/lib/admin/admin_request_builder.rb @@ -4,6 +4,9 @@ require_relative '../models/o_data_errors_o_data_error' require_relative './admin' require_relative './edge/edge_request_builder' +require_relative './microsoft365_apps/microsoft365_apps_request_builder' +require_relative './people/people_request_builder' +require_relative './report_settings/report_settings_request_builder' require_relative './service_announcement/service_announcement_request_builder' require_relative './sharepoint/sharepoint_request_builder' @@ -19,6 +22,21 @@ def edge() return MicrosoftGraph::Admin::Edge::EdgeRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to manage the microsoft365Apps property of the microsoft.graph.admin entity. + def microsoft365_apps() + return MicrosoftGraph::Admin::Microsoft365Apps::Microsoft365AppsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the people property of the microsoft.graph.admin entity. + def people() + return MicrosoftGraph::Admin::People::PeopleRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the reportSettings property of the microsoft.graph.admin entity. + def report_settings() + return MicrosoftGraph::Admin::ReportSettings::ReportSettingsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to manage the serviceAnnouncement property of the microsoft.graph.admin entity. def service_announcement() return MicrosoftGraph::Admin::ServiceAnnouncement::ServiceAnnouncementRequestBuilder.new(@path_parameters, @request_adapter) @@ -35,7 +53,7 @@ def sharepoint() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/admin{?%24expand,%24select}") end ## ## Get admin @@ -47,8 +65,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Admin.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +80,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Admin.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,15 +90,15 @@ def patch(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a admin_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AdminRequestBuilder.new(raw_url, @request_adapter) + end ## # Get admin diff --git a/lib/admin/edge/edge_request_builder.rb b/lib/admin/edge/edge_request_builder.rb index 10ea2df2fe..9d2708779e 100644 --- a/lib/admin/edge/edge_request_builder.rb +++ b/lib/admin/edge/edge_request_builder.rb @@ -25,7 +25,7 @@ def internet_explorer_mode() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/edge{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/admin/edge{?%24expand,%24select}") end ## ## Delete navigation property edge for admin @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Edge.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Edge.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a edge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EdgeRequestBuilder.new(raw_url, @request_adapter) + end ## # A container for Microsoft Edge resources. Read-only. diff --git a/lib/admin/edge/internet_explorer_mode/internet_explorer_mode_request_builder.rb b/lib/admin/edge/internet_explorer_mode/internet_explorer_mode_request_builder.rb index 59b3072570..60a22fad28 100644 --- a/lib/admin/edge/internet_explorer_mode/internet_explorer_mode_request_builder.rb +++ b/lib/admin/edge/internet_explorer_mode/internet_explorer_mode_request_builder.rb @@ -27,7 +27,7 @@ def site_lists() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/edge/internetExplorerMode{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/admin/edge/internetExplorerMode{?%24expand,%24select}") end ## ## Delete navigation property internetExplorerMode for admin @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::InternetExplorerMode.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::InternetExplorerMode.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,13 +77,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,15 +94,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,17 +114,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a internet_explorer_mode_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InternetExplorerModeRequestBuilder.new(raw_url, @request_adapter) + end ## # A container for Internet Explorer mode resources. diff --git a/lib/admin/edge/internet_explorer_mode/site_lists/count/count_request_builder.rb b/lib/admin/edge/internet_explorer_mode/site_lists/count/count_request_builder.rb index c107b384a6..557042df6a 100644 --- a/lib/admin/edge/internet_explorer_mode/site_lists/count/count_request_builder.rb +++ b/lib/admin/edge/internet_explorer_mode/site_lists/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/admin/edge/internet_explorer_mode/site_lists/item/browser_site_list_item_request_builder.rb b/lib/admin/edge/internet_explorer_mode/site_lists/item/browser_site_list_item_request_builder.rb index 2952ccdbce..197b0f7c66 100644 --- a/lib/admin/edge/internet_explorer_mode/site_lists/item/browser_site_list_item_request_builder.rb +++ b/lib/admin/edge/internet_explorer_mode/site_lists/item/browser_site_list_item_request_builder.rb @@ -43,7 +43,7 @@ def sites() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}{?%24expand,%24select}") end ## ## Delete a browserSiteList object. @@ -55,8 +55,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -69,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BrowserSiteList.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,8 +83,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BrowserSiteList.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -96,13 +93,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,15 +110,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,17 +130,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a browser_site_list_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BrowserSiteListItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a browserSiteList that contains browserSite and browserSharedCookie resources. diff --git a/lib/admin/edge/internet_explorer_mode/site_lists/item/publish/publish_post_request_body.rb b/lib/admin/edge/internet_explorer_mode/site_lists/item/publish/publish_post_request_body.rb index 9049d8e869..bb9c975e18 100644 --- a/lib/admin/edge/internet_explorer_mode/site_lists/item/publish/publish_post_request_body.rb +++ b/lib/admin/edge/internet_explorer_mode/site_lists/item/publish/publish_post_request_body.rb @@ -31,22 +31,22 @@ class PublishPostRequestBody # The sites property @sites ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new publishPostRequestBody and sets the default values. + ## Instantiates a new PublishPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/admin/edge/internet_explorer_mode/site_lists/item/publish/publish_request_builder.rb b/lib/admin/edge/internet_explorer_mode/site_lists/item/publish/publish_request_builder.rb index 8b3351a9ef..20b0b67774 100644 --- a/lib/admin/edge/internet_explorer_mode/site_lists/item/publish/publish_request_builder.rb +++ b/lib/admin/edge/internet_explorer_mode/site_lists/item/publish/publish_request_builder.rb @@ -41,8 +41,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BrowserSiteList.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a publish_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PublishRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/admin/edge/internet_explorer_mode/site_lists/item/shared_cookies/count/count_request_builder.rb b/lib/admin/edge/internet_explorer_mode/site_lists/item/shared_cookies/count/count_request_builder.rb index d555bf6459..96e38c41f7 100644 --- a/lib/admin/edge/internet_explorer_mode/site_lists/item/shared_cookies/count/count_request_builder.rb +++ b/lib/admin/edge/internet_explorer_mode/site_lists/item/shared_cookies/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sharedCookies/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sharedCookies/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/admin/edge/internet_explorer_mode/site_lists/item/shared_cookies/item/browser_shared_cookie_item_request_builder.rb b/lib/admin/edge/internet_explorer_mode/site_lists/item/shared_cookies/item/browser_shared_cookie_item_request_builder.rb index 85c9ffa047..4487ecfcd4 100644 --- a/lib/admin/edge/internet_explorer_mode/site_lists/item/shared_cookies/item/browser_shared_cookie_item_request_builder.rb +++ b/lib/admin/edge/internet_explorer_mode/site_lists/item/shared_cookies/item/browser_shared_cookie_item_request_builder.rb @@ -29,7 +29,7 @@ class BrowserSharedCookieItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sharedCookies/{browserSharedCookie%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sharedCookies/{browserSharedCookie%2Did}{?%24expand,%24select}") end ## ## Delete a browserSharedCookie from a browserSiteList. @@ -41,8 +41,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BrowserSharedCookie.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BrowserSharedCookie.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,13 +79,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -98,15 +96,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,17 +116,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a browser_shared_cookie_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BrowserSharedCookieItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode. diff --git a/lib/admin/edge/internet_explorer_mode/site_lists/item/shared_cookies/shared_cookies_request_builder.rb b/lib/admin/edge/internet_explorer_mode/site_lists/item/shared_cookies/shared_cookies_request_builder.rb index a751d27c45..1e72621862 100644 --- a/lib/admin/edge/internet_explorer_mode/site_lists/item/shared_cookies/shared_cookies_request_builder.rb +++ b/lib/admin/edge/internet_explorer_mode/site_lists/item/shared_cookies/shared_cookies_request_builder.rb @@ -46,7 +46,7 @@ def by_browser_shared_cookie_id(browser_shared_cookie_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sharedCookies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sharedCookies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a list of the browserSharedCookie objects and their properties. @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BrowserSharedCookieCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,8 +73,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BrowserSharedCookie.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,15 +83,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,17 +103,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a shared_cookies_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SharedCookiesRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a list of the browserSharedCookie objects and their properties. diff --git a/lib/admin/edge/internet_explorer_mode/site_lists/item/sites/count/count_request_builder.rb b/lib/admin/edge/internet_explorer_mode/site_lists/item/sites/count/count_request_builder.rb index 7133e5c60c..ae8cc13fd1 100644 --- a/lib/admin/edge/internet_explorer_mode/site_lists/item/sites/count/count_request_builder.rb +++ b/lib/admin/edge/internet_explorer_mode/site_lists/item/sites/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sites/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sites/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/admin/edge/internet_explorer_mode/site_lists/item/sites/item/browser_site_item_request_builder.rb b/lib/admin/edge/internet_explorer_mode/site_lists/item/sites/item/browser_site_item_request_builder.rb index e2a500ce9f..fb44874dad 100644 --- a/lib/admin/edge/internet_explorer_mode/site_lists/item/sites/item/browser_site_item_request_builder.rb +++ b/lib/admin/edge/internet_explorer_mode/site_lists/item/sites/item/browser_site_item_request_builder.rb @@ -29,7 +29,7 @@ class BrowserSiteItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sites/{browserSite%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sites/{browserSite%2Did}{?%24expand,%24select}") end ## ## Delete a browserSite from a browserSiteList. @@ -41,8 +41,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BrowserSite.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BrowserSite.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,13 +79,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -98,15 +96,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,17 +116,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a browser_site_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BrowserSiteItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a browserSite that resides on a browserSiteList. diff --git a/lib/admin/edge/internet_explorer_mode/site_lists/item/sites/sites_request_builder.rb b/lib/admin/edge/internet_explorer_mode/site_lists/item/sites/sites_request_builder.rb index 8d4d525010..82f7e32190 100644 --- a/lib/admin/edge/internet_explorer_mode/site_lists/item/sites/sites_request_builder.rb +++ b/lib/admin/edge/internet_explorer_mode/site_lists/item/sites/sites_request_builder.rb @@ -46,7 +46,7 @@ def by_browser_site_id(browser_site_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sites{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sites{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a list of the browserSite objects and their properties. @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BrowserSiteCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,8 +73,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BrowserSite.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,15 +83,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,17 +103,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sites_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SitesRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a list of the browserSite objects and their properties. diff --git a/lib/admin/edge/internet_explorer_mode/site_lists/site_lists_request_builder.rb b/lib/admin/edge/internet_explorer_mode/site_lists/site_lists_request_builder.rb index dcff595295..f8ec51e3d1 100644 --- a/lib/admin/edge/internet_explorer_mode/site_lists/site_lists_request_builder.rb +++ b/lib/admin/edge/internet_explorer_mode/site_lists/site_lists_request_builder.rb @@ -42,7 +42,7 @@ def by_browser_site_list_id(browser_site_list_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a list of the browserSiteList objects and their properties. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BrowserSiteListCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BrowserSiteList.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a site_lists_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SiteListsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a list of the browserSiteList objects and their properties. diff --git a/lib/chats/item/permission_grants/item/restore/restore.rb b/lib/admin/microsoft365_apps/installation_options/installation_options.rb similarity index 100% rename from lib/chats/item/permission_grants/item/restore/restore.rb rename to lib/admin/microsoft365_apps/installation_options/installation_options.rb diff --git a/lib/admin/microsoft365_apps/installation_options/installation_options_request_builder.rb b/lib/admin/microsoft365_apps/installation_options/installation_options_request_builder.rb new file mode 100644 index 0000000000..c4cb9b98b6 --- /dev/null +++ b/lib/admin/microsoft365_apps/installation_options/installation_options_request_builder.rb @@ -0,0 +1,163 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/m365_apps_installation_options' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../admin' +require_relative '../microsoft365_apps' +require_relative './installation_options' + +module MicrosoftGraph + module Admin + module Microsoft365Apps + module InstallationOptions + ## + # Provides operations to manage the installationOptions property of the microsoft.graph.adminMicrosoft365Apps entity. + class InstallationOptionsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InstallationOptionsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/admin/microsoft365Apps/installationOptions{?%24expand,%24select}") + end + ## + ## Delete navigation property installationOptions for admin + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Read the properties and relationships of an m365AppsInstallationOptions object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of m365_apps_installation_options + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::M365AppsInstallationOptions.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the properties of an m365AppsInstallationOptions object. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of m365_apps_installation_options + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::M365AppsInstallationOptions.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property installationOptions for admin + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Read the properties and relationships of an m365AppsInstallationOptions object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the properties of an m365AppsInstallationOptions object. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a installation_options_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InstallationOptionsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Read the properties and relationships of an m365AppsInstallationOptions object. + class InstallationOptionsRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/graph_mobile_lob_app/count/count.rb b/lib/admin/microsoft365_apps/microsoft365_apps.rb similarity index 100% rename from lib/device_app_management/mobile_apps/graph_mobile_lob_app/count/count.rb rename to lib/admin/microsoft365_apps/microsoft365_apps.rb diff --git a/lib/admin/microsoft365_apps/microsoft365_apps_request_builder.rb b/lib/admin/microsoft365_apps/microsoft365_apps_request_builder.rb new file mode 100644 index 0000000000..244876243c --- /dev/null +++ b/lib/admin/microsoft365_apps/microsoft365_apps_request_builder.rb @@ -0,0 +1,166 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/admin_microsoft365_apps' +require_relative '../../models/o_data_errors_o_data_error' +require_relative '../admin' +require_relative './installation_options/installation_options_request_builder' +require_relative './microsoft365_apps' + +module MicrosoftGraph + module Admin + module Microsoft365Apps + ## + # Provides operations to manage the microsoft365Apps property of the microsoft.graph.admin entity. + class Microsoft365AppsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the installationOptions property of the microsoft.graph.adminMicrosoft365Apps entity. + def installation_options() + return MicrosoftGraph::Admin::Microsoft365Apps::InstallationOptions::InstallationOptionsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new Microsoft365AppsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/admin/microsoft365Apps{?%24expand,%24select}") + end + ## + ## Delete navigation property microsoft365Apps for admin + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## A container for the Microsoft 365 apps admin functionality. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of admin_microsoft365_apps + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdminMicrosoft365Apps.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property microsoft365Apps in admin + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of admin_microsoft365_apps + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdminMicrosoft365Apps.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property microsoft365Apps for admin + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## A container for the Microsoft 365 apps admin functionality. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property microsoft365Apps in admin + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a microsoft365_apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return Microsoft365AppsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # A container for the Microsoft 365 apps admin functionality. + class Microsoft365AppsRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/graph_mobile_lob_app/graph_mobile_lob_app.rb b/lib/admin/people/item_insights/item_insights.rb similarity index 100% rename from lib/device_app_management/mobile_apps/graph_mobile_lob_app/graph_mobile_lob_app.rb rename to lib/admin/people/item_insights/item_insights.rb diff --git a/lib/admin/people/item_insights/item_insights_request_builder.rb b/lib/admin/people/item_insights/item_insights_request_builder.rb new file mode 100644 index 0000000000..4aeed83cec --- /dev/null +++ b/lib/admin/people/item_insights/item_insights_request_builder.rb @@ -0,0 +1,163 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/insights_settings' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../admin' +require_relative '../people' +require_relative './item_insights' + +module MicrosoftGraph + module Admin + module People + module ItemInsights + ## + # Provides operations to manage the itemInsights property of the microsoft.graph.peopleAdminSettings entity. + class ItemInsightsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ItemInsightsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/admin/people/itemInsights{?%24expand,%24select}") + end + ## + ## Delete navigation property itemInsights for admin + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Get the properties of an insightsSettings object to display or return item insights in an organization. To learn how to customize the privacy of item insights in an organization, see Customize item insights privacy in Microsoft Graph. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of insights_settings + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::InsightsSettings.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update privacy settings to display or return the specified type of insights in an organization. Currently, itemInsights is the only supported type of settings. To learn more about customizing insights privacy for your organization, see Customize item insights privacy in Microsoft Graph. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of insights_settings + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::InsightsSettings.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property itemInsights for admin + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Get the properties of an insightsSettings object to display or return item insights in an organization. To learn how to customize the privacy of item insights in an organization, see Customize item insights privacy in Microsoft Graph. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update privacy settings to display or return the specified type of insights in an organization. Currently, itemInsights is the only supported type of settings. To learn more about customizing insights privacy for your organization, see Customize item insights privacy in Microsoft Graph. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a item_insights_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemInsightsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the properties of an insightsSettings object to display or return item insights in an organization. To learn how to customize the privacy of item insights in an organization, see Customize item insights privacy in Microsoft Graph. + class ItemInsightsRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_mobile_lob_app/graph_mobile_lob_app.rb b/lib/admin/people/people.rb similarity index 100% rename from lib/device_app_management/mobile_apps/item/graph_mobile_lob_app/graph_mobile_lob_app.rb rename to lib/admin/people/people.rb diff --git a/lib/admin/people/people_request_builder.rb b/lib/admin/people/people_request_builder.rb new file mode 100644 index 0000000000..1e5d7f38c7 --- /dev/null +++ b/lib/admin/people/people_request_builder.rb @@ -0,0 +1,113 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/o_data_errors_o_data_error' +require_relative '../../models/people_admin_settings' +require_relative '../admin' +require_relative './item_insights/item_insights_request_builder' +require_relative './people' +require_relative './profile_card_properties/profile_card_properties_request_builder' +require_relative './pronouns/pronouns_request_builder' + +module MicrosoftGraph + module Admin + module People + ## + # Provides operations to manage the people property of the microsoft.graph.admin entity. + class PeopleRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the itemInsights property of the microsoft.graph.peopleAdminSettings entity. + def item_insights() + return MicrosoftGraph::Admin::People::ItemInsights::ItemInsightsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity. + def profile_card_properties() + return MicrosoftGraph::Admin::People::ProfileCardProperties::ProfileCardPropertiesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the pronouns property of the microsoft.graph.peopleAdminSettings entity. + def pronouns() + return MicrosoftGraph::Admin::People::Pronouns::PronounsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new PeopleRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/admin/people{?%24expand,%24select}") + end + ## + ## Retrieve the properties and relationships of a peopleAdminSettings object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of people_admin_settings + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PeopleAdminSettings.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Retrieve the properties and relationships of a peopleAdminSettings object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a people_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PeopleRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Retrieve the properties and relationships of a peopleAdminSettings object. + class PeopleRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end +end diff --git a/lib/groups/item/photos/count/count.rb b/lib/admin/people/profile_card_properties/count/count.rb similarity index 100% rename from lib/groups/item/photos/count/count.rb rename to lib/admin/people/profile_card_properties/count/count.rb diff --git a/lib/admin/people/profile_card_properties/count/count_request_builder.rb b/lib/admin/people/profile_card_properties/count/count_request_builder.rb new file mode 100644 index 0000000000..9bcdb93856 --- /dev/null +++ b/lib/admin/people/profile_card_properties/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../admin' +require_relative '../../people' +require_relative '../profile_card_properties' +require_relative './count' + +module MicrosoftGraph + module Admin + module People + module ProfileCardProperties + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/admin/people/profileCardProperties/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/invitations/item/item.rb b/lib/admin/people/profile_card_properties/item/item.rb similarity index 100% rename from lib/invitations/item/item.rb rename to lib/admin/people/profile_card_properties/item/item.rb diff --git a/lib/admin/people/profile_card_properties/item/profile_card_property_item_request_builder.rb b/lib/admin/people/profile_card_properties/item/profile_card_property_item_request_builder.rb new file mode 100644 index 0000000000..4649e93e69 --- /dev/null +++ b/lib/admin/people/profile_card_properties/item/profile_card_property_item_request_builder.rb @@ -0,0 +1,166 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../../models/profile_card_property' +require_relative '../../../admin' +require_relative '../../people' +require_relative '../profile_card_properties' +require_relative './item' + +module MicrosoftGraph + module Admin + module People + module ProfileCardProperties + module Item + ## + # Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity. + class ProfileCardPropertyItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ProfileCardPropertyItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/admin/people/profileCardProperties/{profileCardProperty%2Did}{?%24expand,%24select}") + end + ## + ## Delete the profileCardProperty object specified by its directoryPropertyName from the organization's profile card, and remove any localized customizations for that property. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Retrieve the properties of a profileCardProperty entity. The profileCardProperty is identified by its directoryPropertyName property. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of profile_card_property + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ProfileCardProperty.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the properties of a profileCardProperty object, identified by its directoryPropertyName property. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of profile_card_property + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ProfileCardProperty.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete the profileCardProperty object specified by its directoryPropertyName from the organization's profile card, and remove any localized customizations for that property. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Retrieve the properties of a profileCardProperty entity. The profileCardProperty is identified by its directoryPropertyName property. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the properties of a profileCardProperty object, identified by its directoryPropertyName property. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a profile_card_property_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ProfileCardPropertyItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Retrieve the properties of a profileCardProperty entity. The profileCardProperty is identified by its directoryPropertyName property. + class ProfileCardPropertyItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/permission_grants/item/restore/restore.rb b/lib/admin/people/profile_card_properties/profile_card_properties.rb similarity index 100% rename from lib/groups/item/permission_grants/item/restore/restore.rb rename to lib/admin/people/profile_card_properties/profile_card_properties.rb diff --git a/lib/admin/people/profile_card_properties/profile_card_properties_request_builder.rb b/lib/admin/people/profile_card_properties/profile_card_properties_request_builder.rb new file mode 100644 index 0000000000..35d7eb5d8b --- /dev/null +++ b/lib/admin/people/profile_card_properties/profile_card_properties_request_builder.rb @@ -0,0 +1,182 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../../models/profile_card_property' +require_relative '../../../models/profile_card_property_collection_response' +require_relative '../../admin' +require_relative '../people' +require_relative './count/count_request_builder' +require_relative './item/profile_card_property_item_request_builder' +require_relative './profile_card_properties' + +module MicrosoftGraph + module Admin + module People + module ProfileCardProperties + ## + # Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity. + class ProfileCardPropertiesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Admin::People::ProfileCardProperties::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity. + ## @param profile_card_property_id The unique identifier of profileCardProperty + ## @return a profile_card_property_item_request_builder + ## + def by_profile_card_property_id(profile_card_property_id) + raise StandardError, 'profile_card_property_id cannot be null' if profile_card_property_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["profileCardProperty%2Did"] = profile_card_property_id + return MicrosoftGraph::Admin::People::ProfileCardProperties::Item::ProfileCardPropertyItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ProfileCardPropertiesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/admin/people/profileCardProperties{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get a collection of profileCardProperty resources for an organization. Each resource is identified by its directoryPropertyName property. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of profile_card_property_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ProfileCardPropertyCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create a new profileCardProperty for an organization. The new property is identified by its directoryPropertyName property. For more information about how to add properties to the profile card for an organization, see Add or remove custom attributes on a profile card using the profile card API. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of profile_card_property + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ProfileCardProperty.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get a collection of profileCardProperty resources for an organization. Each resource is identified by its directoryPropertyName property. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create a new profileCardProperty for an organization. The new property is identified by its directoryPropertyName property. For more information about how to add properties to the profile card for an organization, see Add or remove custom attributes on a profile card using the profile card API. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a profile_card_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ProfileCardPropertiesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get a collection of profileCardProperty resources for an organization. Each resource is identified by its directoryPropertyName property. + class ProfileCardPropertiesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/permission_grants/item/restore/restore.rb b/lib/admin/people/pronouns/pronouns.rb similarity index 100% rename from lib/groups/item/team/permission_grants/item/restore/restore.rb rename to lib/admin/people/pronouns/pronouns.rb diff --git a/lib/admin/people/pronouns/pronouns_request_builder.rb b/lib/admin/people/pronouns/pronouns_request_builder.rb new file mode 100644 index 0000000000..41f0740297 --- /dev/null +++ b/lib/admin/people/pronouns/pronouns_request_builder.rb @@ -0,0 +1,133 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../../models/pronouns_settings' +require_relative '../../admin' +require_relative '../people' +require_relative './pronouns' + +module MicrosoftGraph + module Admin + module People + module Pronouns + ## + # Provides operations to manage the pronouns property of the microsoft.graph.peopleAdminSettings entity. + class PronounsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new PronounsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/admin/people/pronouns{?%24expand,%24select}") + end + ## + ## Get the properties of the pronounsSettings resource for an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of pronouns_settings + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PronounsSettings.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the properties of a pronounsSettings object in an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of pronouns_settings + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PronounsSettings.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the properties of the pronounsSettings resource for an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the properties of a pronounsSettings object in an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a pronouns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PronounsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the properties of the pronounsSettings resource for an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. + class PronounsRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/invitations/item/invited_user/invited_user.rb b/lib/admin/report_settings/report_settings.rb similarity index 100% rename from lib/invitations/item/invited_user/invited_user.rb rename to lib/admin/report_settings/report_settings.rb diff --git a/lib/admin/report_settings/report_settings_request_builder.rb b/lib/admin/report_settings/report_settings_request_builder.rb new file mode 100644 index 0000000000..d49e8e102f --- /dev/null +++ b/lib/admin/report_settings/report_settings_request_builder.rb @@ -0,0 +1,160 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/admin_report_settings' +require_relative '../../models/o_data_errors_o_data_error' +require_relative '../admin' +require_relative './report_settings' + +module MicrosoftGraph + module Admin + module ReportSettings + ## + # Provides operations to manage the reportSettings property of the microsoft.graph.admin entity. + class ReportSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ReportSettingsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/admin/reportSettings{?%24expand,%24select}") + end + ## + ## Delete navigation property reportSettings for admin + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Get the tenant-level settings for Microsoft 365 reports. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of admin_report_settings + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdminReportSettings.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update tenant-level settings for Microsoft 365 reports. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of admin_report_settings + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdminReportSettings.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property reportSettings for admin + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Get the tenant-level settings for Microsoft 365 reports. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update tenant-level settings for Microsoft 365 reports. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a report_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReportSettingsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the tenant-level settings for Microsoft 365 reports. + class ReportSettingsRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end +end diff --git a/lib/admin/service_announcement/health_overviews/count/count_request_builder.rb b/lib/admin/service_announcement/health_overviews/count/count_request_builder.rb index 7d97c2053a..924af1c074 100644 --- a/lib/admin/service_announcement/health_overviews/count/count_request_builder.rb +++ b/lib/admin/service_announcement/health_overviews/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/healthOverviews/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/healthOverviews/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/admin/service_announcement/health_overviews/health_overviews_request_builder.rb b/lib/admin/service_announcement/health_overviews/health_overviews_request_builder.rb index f501d02cae..d00775ffc9 100644 --- a/lib/admin/service_announcement/health_overviews/health_overviews_request_builder.rb +++ b/lib/admin/service_announcement/health_overviews/health_overviews_request_builder.rb @@ -40,7 +40,7 @@ def by_service_health_id(service_health_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/healthOverviews{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/healthOverviews{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve the serviceHealth resources from the healthOverviews navigation property. This operation provides the health report of all subscribed services for a tenant. @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceHealthCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceHealth.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,15 +77,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a health_overviews_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HealthOverviewsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the serviceHealth resources from the healthOverviews navigation property. This operation provides the health report of all subscribed services for a tenant. diff --git a/lib/admin/service_announcement/health_overviews/item/issues/count/count_request_builder.rb b/lib/admin/service_announcement/health_overviews/item/issues/count/count_request_builder.rb index 8f78dca087..30112d6a3b 100644 --- a/lib/admin/service_announcement/health_overviews/item/issues/count/count_request_builder.rb +++ b/lib/admin/service_announcement/health_overviews/item/issues/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}/issues/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}/issues/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/admin/service_announcement/health_overviews/item/issues/issues_request_builder.rb b/lib/admin/service_announcement/health_overviews/item/issues/issues_request_builder.rb index 19c07fbe6b..06a24ef28f 100644 --- a/lib/admin/service_announcement/health_overviews/item/issues/issues_request_builder.rb +++ b/lib/admin/service_announcement/health_overviews/item/issues/issues_request_builder.rb @@ -44,7 +44,7 @@ def by_service_health_issue_id(service_health_issue_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}/issues{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}/issues{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## A collection of issues that happened on the service, with detailed information for each issue. @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceHealthIssueCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,8 +71,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceHealthIssue.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,15 +81,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,17 +101,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a issues_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IssuesRequestBuilder.new(raw_url, @request_adapter) + end ## # A collection of issues that happened on the service, with detailed information for each issue. diff --git a/lib/admin/service_announcement/health_overviews/item/issues/item/incident_report/incident_report_request_builder.rb b/lib/admin/service_announcement/health_overviews/item/issues/item/incident_report/incident_report_request_builder.rb index 52cab454b4..a745251c1a 100644 --- a/lib/admin/service_announcement/health_overviews/item/issues/item/incident_report/incident_report_request_builder.rb +++ b/lib/admin/service_announcement/health_overviews/item/issues/item/incident_report/incident_report_request_builder.rb @@ -31,7 +31,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}/issues/{serviceHealthIssue%2Did}/incidentReport()") end ## - ## Invoke function incidentReport + ## Provide the Post-Incident Review (PIR) document of a specified service issue for tenant. An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document does not exist for the issue. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## @@ -40,26 +40,35 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Invoke function incidentReport + ## Provide the Post-Incident Review (PIR) document of a specified service issue for tenant. An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document does not exist for the issue. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a incident_report_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IncidentReportRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/admin/service_announcement/health_overviews/item/issues/item/service_health_issue_item_request_builder.rb b/lib/admin/service_announcement/health_overviews/item/issues/item/service_health_issue_item_request_builder.rb index 63d273dc50..08f94649e9 100644 --- a/lib/admin/service_announcement/health_overviews/item/issues/item/service_health_issue_item_request_builder.rb +++ b/lib/admin/service_announcement/health_overviews/item/issues/item/service_health_issue_item_request_builder.rb @@ -33,7 +33,7 @@ def incident_report() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}/issues/{serviceHealthIssue%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}/issues/{serviceHealthIssue%2Did}{?%24expand,%24select}") end ## ## Delete navigation property issues for admin @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceHealthIssue.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceHealthIssue.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,13 +83,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -102,15 +100,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,17 +120,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_health_issue_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceHealthIssueItemRequestBuilder.new(raw_url, @request_adapter) + end ## # A collection of issues that happened on the service, with detailed information for each issue. diff --git a/lib/admin/service_announcement/health_overviews/item/service_health_item_request_builder.rb b/lib/admin/service_announcement/health_overviews/item/service_health_item_request_builder.rb index db0eaa4129..12c841416b 100644 --- a/lib/admin/service_announcement/health_overviews/item/service_health_item_request_builder.rb +++ b/lib/admin/service_announcement/health_overviews/item/service_health_item_request_builder.rb @@ -29,7 +29,7 @@ def issues() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}{?%24expand,%24select}") end ## ## Delete navigation property healthOverviews for admin @@ -41,8 +41,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceHealth.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceHealth.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,13 +79,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -98,15 +96,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,17 +116,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_health_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceHealthItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of a serviceHealth object. This operation provides the health information of a specified service for a tenant. diff --git a/lib/admin/service_announcement/issues/count/count_request_builder.rb b/lib/admin/service_announcement/issues/count/count_request_builder.rb index e7c0134fa7..fab1fcb8e8 100644 --- a/lib/admin/service_announcement/issues/count/count_request_builder.rb +++ b/lib/admin/service_announcement/issues/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/issues/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/issues/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/admin/service_announcement/issues/issues_request_builder.rb b/lib/admin/service_announcement/issues/issues_request_builder.rb index 3a2b5248c2..dc53d73249 100644 --- a/lib/admin/service_announcement/issues/issues_request_builder.rb +++ b/lib/admin/service_announcement/issues/issues_request_builder.rb @@ -40,7 +40,7 @@ def by_service_health_issue_id(service_health_issue_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/issues{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/issues{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve serviceHealthIssue resources from the issues navigation property. This operation retrieves information about all service health issues that exist for the tenant. @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceHealthIssueCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceHealthIssue.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,15 +77,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a issues_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IssuesRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve serviceHealthIssue resources from the issues navigation property. This operation retrieves information about all service health issues that exist for the tenant. diff --git a/lib/admin/service_announcement/issues/item/incident_report/incident_report_request_builder.rb b/lib/admin/service_announcement/issues/item/incident_report/incident_report_request_builder.rb index f14ceb21a3..f7a1d08c88 100644 --- a/lib/admin/service_announcement/issues/item/incident_report/incident_report_request_builder.rb +++ b/lib/admin/service_announcement/issues/item/incident_report/incident_report_request_builder.rb @@ -27,7 +27,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/issues/{serviceHealthIssue%2Did}/incidentReport()") end ## - ## Invoke function incidentReport + ## Provide the Post-Incident Review (PIR) document of a specified service issue for tenant. An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document does not exist for the issue. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## @@ -36,26 +36,35 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Invoke function incidentReport + ## Provide the Post-Incident Review (PIR) document of a specified service issue for tenant. An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document does not exist for the issue. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a incident_report_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IncidentReportRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/admin/service_announcement/issues/item/service_health_issue_item_request_builder.rb b/lib/admin/service_announcement/issues/item/service_health_issue_item_request_builder.rb index 867e65ddcf..14e5e22e73 100644 --- a/lib/admin/service_announcement/issues/item/service_health_issue_item_request_builder.rb +++ b/lib/admin/service_announcement/issues/item/service_health_issue_item_request_builder.rb @@ -29,7 +29,7 @@ def incident_report() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/issues/{serviceHealthIssue%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/issues/{serviceHealthIssue%2Did}{?%24expand,%24select}") end ## ## Delete navigation property issues for admin @@ -41,8 +41,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceHealthIssue.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceHealthIssue.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,13 +79,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -98,15 +96,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,17 +116,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_health_issue_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceHealthIssueItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant. diff --git a/lib/admin/service_announcement/messages/archive/archive.rb b/lib/admin/service_announcement/messages/archive/archive.rb index 5323b65ebd..1e2f6fecd5 100644 --- a/lib/admin/service_announcement/messages/archive/archive.rb +++ b/lib/admin/service_announcement/messages/archive/archive.rb @@ -1,2 +1,2 @@ require_relative 'archive_post_request_body' -require_relative 'archive_response' +require_relative 'archive_post_response' diff --git a/lib/admin/service_announcement/messages/archive/archive_post_request_body.rb b/lib/admin/service_announcement/messages/archive/archive_post_request_body.rb index a4f154c234..34daa921f1 100644 --- a/lib/admin/service_announcement/messages/archive/archive_post_request_body.rb +++ b/lib/admin/service_announcement/messages/archive/archive_post_request_body.rb @@ -19,22 +19,22 @@ class ArchivePostRequestBody # The messageIds property @message_ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new archivePostRequestBody and sets the default values. + ## Instantiates a new ArchivePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/admin/service_announcement/messages/archive/archive_post_response.rb b/lib/admin/service_announcement/messages/archive/archive_post_response.rb new file mode 100644 index 0000000000..ebf8e35224 --- /dev/null +++ b/lib/admin/service_announcement/messages/archive/archive_post_response.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../admin' +require_relative '../../service_announcement' +require_relative '../messages' +require_relative './archive' + +module MicrosoftGraph + module Admin + module ServiceAnnouncement + module Messages + module Archive + class ArchivePostResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new ArchivePostResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a archive_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ArchivePostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a boolean + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/admin/service_announcement/messages/archive/archive_request_builder.rb b/lib/admin/service_announcement/messages/archive/archive_request_builder.rb index fb6d24eeea..54e8d7e764 100644 --- a/lib/admin/service_announcement/messages/archive/archive_request_builder.rb +++ b/lib/admin/service_announcement/messages/archive/archive_request_builder.rb @@ -28,7 +28,7 @@ def initialize(path_parameters, request_adapter) ## Archive a list of serviceUpdateMessages for the signed in user. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of archive_response + ## @return a Fiber of archive_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -36,9 +36,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Admin::ServiceAnnouncement::Messages::Archive::ArchiveResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Admin::ServiceAnnouncement::Messages::Archive::ArchivePostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Archive a list of serviceUpdateMessages for the signed in user. @@ -49,17 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a archive_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ArchiveRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/admin/service_announcement/messages/archive/archive_response.rb b/lib/admin/service_announcement/messages/archive/archive_response.rb deleted file mode 100644 index 7a7d707183..0000000000 --- a/lib/admin/service_announcement/messages/archive/archive_response.rb +++ /dev/null @@ -1,91 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../admin' -require_relative '../../service_announcement' -require_relative '../messages' -require_relative './archive' - -module MicrosoftGraph - module Admin - module ServiceAnnouncement - module Messages - module Archive - class ArchiveResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new archiveResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a archive_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return ArchiveResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_boolean_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a boolean - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/admin/service_announcement/messages/count/count_request_builder.rb b/lib/admin/service_announcement/messages/count/count_request_builder.rb index 998f48a9c9..415fb6bd85 100644 --- a/lib/admin/service_announcement/messages/count/count_request_builder.rb +++ b/lib/admin/service_announcement/messages/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/messages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/messages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/admin/service_announcement/messages/favorite/favorite.rb b/lib/admin/service_announcement/messages/favorite/favorite.rb index 4f9054622f..06d5b02786 100644 --- a/lib/admin/service_announcement/messages/favorite/favorite.rb +++ b/lib/admin/service_announcement/messages/favorite/favorite.rb @@ -1,2 +1,2 @@ require_relative 'favorite_post_request_body' -require_relative 'favorite_response' +require_relative 'favorite_post_response' diff --git a/lib/admin/service_announcement/messages/favorite/favorite_post_request_body.rb b/lib/admin/service_announcement/messages/favorite/favorite_post_request_body.rb index d6e0735045..df916e56bc 100644 --- a/lib/admin/service_announcement/messages/favorite/favorite_post_request_body.rb +++ b/lib/admin/service_announcement/messages/favorite/favorite_post_request_body.rb @@ -19,22 +19,22 @@ class FavoritePostRequestBody # The messageIds property @message_ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new favoritePostRequestBody and sets the default values. + ## Instantiates a new FavoritePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/admin/service_announcement/messages/favorite/favorite_post_response.rb b/lib/admin/service_announcement/messages/favorite/favorite_post_response.rb new file mode 100644 index 0000000000..76b7784411 --- /dev/null +++ b/lib/admin/service_announcement/messages/favorite/favorite_post_response.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../admin' +require_relative '../../service_announcement' +require_relative '../messages' +require_relative './favorite' + +module MicrosoftGraph + module Admin + module ServiceAnnouncement + module Messages + module Favorite + class FavoritePostResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new FavoritePostResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a favorite_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return FavoritePostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a boolean + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/admin/service_announcement/messages/favorite/favorite_request_builder.rb b/lib/admin/service_announcement/messages/favorite/favorite_request_builder.rb index be3552c9db..e788d0e5ef 100644 --- a/lib/admin/service_announcement/messages/favorite/favorite_request_builder.rb +++ b/lib/admin/service_announcement/messages/favorite/favorite_request_builder.rb @@ -28,7 +28,7 @@ def initialize(path_parameters, request_adapter) ## Change the status of a list of serviceUpdateMessages to favorite for the signed in user. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of favorite_response + ## @return a Fiber of favorite_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -36,9 +36,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Admin::ServiceAnnouncement::Messages::Favorite::FavoriteResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Admin::ServiceAnnouncement::Messages::Favorite::FavoritePostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Change the status of a list of serviceUpdateMessages to favorite for the signed in user. @@ -49,17 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a favorite_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FavoriteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/admin/service_announcement/messages/favorite/favorite_response.rb b/lib/admin/service_announcement/messages/favorite/favorite_response.rb deleted file mode 100644 index 56f648e902..0000000000 --- a/lib/admin/service_announcement/messages/favorite/favorite_response.rb +++ /dev/null @@ -1,91 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../admin' -require_relative '../../service_announcement' -require_relative '../messages' -require_relative './favorite' - -module MicrosoftGraph - module Admin - module ServiceAnnouncement - module Messages - module Favorite - class FavoriteResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new favoriteResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a favorite_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return FavoriteResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_boolean_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a boolean - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/admin/service_announcement/messages/item/attachments/attachments_request_builder.rb b/lib/admin/service_announcement/messages/item/attachments/attachments_request_builder.rb index e64024b209..f536039700 100644 --- a/lib/admin/service_announcement/messages/item/attachments/attachments_request_builder.rb +++ b/lib/admin/service_announcement/messages/item/attachments/attachments_request_builder.rb @@ -44,7 +44,7 @@ def by_service_announcement_attachment_id(service_announcement_attachment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/messages/{serviceUpdateMessage%2Did}/attachments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/messages/{serviceUpdateMessage%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the list of attachments associated with a service message. @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceAnnouncementAttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,8 +71,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceAnnouncementAttachment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,15 +81,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,17 +101,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the list of attachments associated with a service message. diff --git a/lib/admin/service_announcement/messages/item/attachments/count/count_request_builder.rb b/lib/admin/service_announcement/messages/item/attachments/count/count_request_builder.rb index 7804a2abdf..1b3335ad2a 100644 --- a/lib/admin/service_announcement/messages/item/attachments/count/count_request_builder.rb +++ b/lib/admin/service_announcement/messages/item/attachments/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/messages/{serviceUpdateMessage%2Did}/attachments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/messages/{serviceUpdateMessage%2Did}/attachments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/admin/service_announcement/messages/item/attachments/item/content/content_request_builder.rb b/lib/admin/service_announcement/messages/item/attachments/item/content/content_request_builder.rb index 479a9be1c9..33a2365430 100644 --- a/lib/admin/service_announcement/messages/item/attachments/item/content/content_request_builder.rb +++ b/lib/admin/service_announcement/messages/item/attachments/item/content/content_request_builder.rb @@ -34,6 +34,19 @@ def initialize(path_parameters, request_adapter) ## ## The attachment content. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Read the properties and relationships of a serviceAnnouncementAttachment object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## def get(request_configuration=nil) @@ -41,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -57,8 +69,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceAnnouncementAttachment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,15 +77,33 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Read the properties and relationships of a serviceAnnouncementAttachment object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -86,17 +115,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/admin/service_announcement/messages/item/attachments/item/service_announcement_attachment_item_request_builder.rb b/lib/admin/service_announcement/messages/item/attachments/item/service_announcement_attachment_item_request_builder.rb index 919934fe61..c05d413f61 100644 --- a/lib/admin/service_announcement/messages/item/attachments/item/service_announcement_attachment_item_request_builder.rb +++ b/lib/admin/service_announcement/messages/item/attachments/item/service_announcement_attachment_item_request_builder.rb @@ -33,7 +33,7 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/messages/{serviceUpdateMessage%2Did}/attachments/{serviceAnnouncementAttachment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/messages/{serviceUpdateMessage%2Did}/attachments/{serviceAnnouncementAttachment%2Did}{?%24expand,%24select}") end ## ## Delete navigation property attachments for admin @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceAnnouncementAttachment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceAnnouncementAttachment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,13 +83,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -102,15 +100,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,17 +120,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_announcement_attachment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceAnnouncementAttachmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of a serviceAnnouncementAttachment object. diff --git a/lib/admin/service_announcement/messages/item/attachments_archive/attachments_archive_request_builder.rb b/lib/admin/service_announcement/messages/item/attachments_archive/attachments_archive_request_builder.rb index 785587cc4d..c616619102 100644 --- a/lib/admin/service_announcement/messages/item/attachments_archive/attachments_archive_request_builder.rb +++ b/lib/admin/service_announcement/messages/item/attachments_archive/attachments_archive_request_builder.rb @@ -29,6 +29,19 @@ def initialize(path_parameters, request_adapter) ## ## The zip file that contains all attachments for a message. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Get the list of attachments associated with a service message. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## def get(request_configuration=nil) @@ -36,8 +49,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -52,8 +64,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -61,15 +72,33 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Get the list of attachments associated with a service message. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -81,16 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachments_archive_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentsArchiveRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/admin/service_announcement/messages/item/service_update_message_item_request_builder.rb b/lib/admin/service_announcement/messages/item/service_update_message_item_request_builder.rb index 55d06ccf01..d0340e850a 100644 --- a/lib/admin/service_announcement/messages/item/service_update_message_item_request_builder.rb +++ b/lib/admin/service_announcement/messages/item/service_update_message_item_request_builder.rb @@ -35,7 +35,7 @@ def attachments_archive() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/messages/{serviceUpdateMessage%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/messages/{serviceUpdateMessage%2Did}{?%24expand,%24select}") end ## ## Delete navigation property messages for admin @@ -47,8 +47,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceUpdateMessage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceUpdateMessage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,13 +85,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -104,15 +102,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,17 +122,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_update_message_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceUpdateMessageItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. diff --git a/lib/admin/service_announcement/messages/mark_read/mark_read.rb b/lib/admin/service_announcement/messages/mark_read/mark_read.rb index ef84448414..bb9796d621 100644 --- a/lib/admin/service_announcement/messages/mark_read/mark_read.rb +++ b/lib/admin/service_announcement/messages/mark_read/mark_read.rb @@ -1,2 +1,2 @@ require_relative 'mark_read_post_request_body' -require_relative 'mark_read_response' +require_relative 'mark_read_post_response' diff --git a/lib/admin/service_announcement/messages/mark_read/mark_read_post_request_body.rb b/lib/admin/service_announcement/messages/mark_read/mark_read_post_request_body.rb index ea24c4c33d..186576c546 100644 --- a/lib/admin/service_announcement/messages/mark_read/mark_read_post_request_body.rb +++ b/lib/admin/service_announcement/messages/mark_read/mark_read_post_request_body.rb @@ -19,22 +19,22 @@ class MarkReadPostRequestBody # The messageIds property @message_ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new markReadPostRequestBody and sets the default values. + ## Instantiates a new MarkReadPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/admin/service_announcement/messages/mark_read/mark_read_post_response.rb b/lib/admin/service_announcement/messages/mark_read/mark_read_post_response.rb new file mode 100644 index 0000000000..1dbd3359ae --- /dev/null +++ b/lib/admin/service_announcement/messages/mark_read/mark_read_post_response.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../admin' +require_relative '../../service_announcement' +require_relative '../messages' +require_relative './mark_read' + +module MicrosoftGraph + module Admin + module ServiceAnnouncement + module Messages + module MarkRead + class MarkReadPostResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MarkReadPostResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a mark_read_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MarkReadPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a boolean + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/admin/service_announcement/messages/mark_read/mark_read_request_builder.rb b/lib/admin/service_announcement/messages/mark_read/mark_read_request_builder.rb index acaeaf4fc3..1f36ffde98 100644 --- a/lib/admin/service_announcement/messages/mark_read/mark_read_request_builder.rb +++ b/lib/admin/service_announcement/messages/mark_read/mark_read_request_builder.rb @@ -28,7 +28,7 @@ def initialize(path_parameters, request_adapter) ## Mark a list of serviceUpdateMessages as read for the signed in user. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of mark_read_response + ## @return a Fiber of mark_read_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -36,9 +36,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Admin::ServiceAnnouncement::Messages::MarkRead::MarkReadResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Admin::ServiceAnnouncement::Messages::MarkRead::MarkReadPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Mark a list of serviceUpdateMessages as read for the signed in user. @@ -49,17 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mark_read_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MarkReadRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/admin/service_announcement/messages/mark_read/mark_read_response.rb b/lib/admin/service_announcement/messages/mark_read/mark_read_response.rb deleted file mode 100644 index c9f382fdcc..0000000000 --- a/lib/admin/service_announcement/messages/mark_read/mark_read_response.rb +++ /dev/null @@ -1,91 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../admin' -require_relative '../../service_announcement' -require_relative '../messages' -require_relative './mark_read' - -module MicrosoftGraph - module Admin - module ServiceAnnouncement - module Messages - module MarkRead - class MarkReadResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new markReadResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a mark_read_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return MarkReadResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_boolean_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a boolean - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/admin/service_announcement/messages/mark_unread/mark_unread.rb b/lib/admin/service_announcement/messages/mark_unread/mark_unread.rb index 03bff86859..f2f2147043 100644 --- a/lib/admin/service_announcement/messages/mark_unread/mark_unread.rb +++ b/lib/admin/service_announcement/messages/mark_unread/mark_unread.rb @@ -1,2 +1,2 @@ require_relative 'mark_unread_post_request_body' -require_relative 'mark_unread_response' +require_relative 'mark_unread_post_response' diff --git a/lib/admin/service_announcement/messages/mark_unread/mark_unread_post_request_body.rb b/lib/admin/service_announcement/messages/mark_unread/mark_unread_post_request_body.rb index 1fa852aefe..e5981c22f6 100644 --- a/lib/admin/service_announcement/messages/mark_unread/mark_unread_post_request_body.rb +++ b/lib/admin/service_announcement/messages/mark_unread/mark_unread_post_request_body.rb @@ -19,22 +19,22 @@ class MarkUnreadPostRequestBody # The messageIds property @message_ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new markUnreadPostRequestBody and sets the default values. + ## Instantiates a new MarkUnreadPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/admin/service_announcement/messages/mark_unread/mark_unread_post_response.rb b/lib/admin/service_announcement/messages/mark_unread/mark_unread_post_response.rb new file mode 100644 index 0000000000..cd82a6a074 --- /dev/null +++ b/lib/admin/service_announcement/messages/mark_unread/mark_unread_post_response.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../admin' +require_relative '../../service_announcement' +require_relative '../messages' +require_relative './mark_unread' + +module MicrosoftGraph + module Admin + module ServiceAnnouncement + module Messages + module MarkUnread + class MarkUnreadPostResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MarkUnreadPostResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a mark_unread_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MarkUnreadPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a boolean + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/admin/service_announcement/messages/mark_unread/mark_unread_request_builder.rb b/lib/admin/service_announcement/messages/mark_unread/mark_unread_request_builder.rb index 4c78bf4325..23143b163f 100644 --- a/lib/admin/service_announcement/messages/mark_unread/mark_unread_request_builder.rb +++ b/lib/admin/service_announcement/messages/mark_unread/mark_unread_request_builder.rb @@ -28,7 +28,7 @@ def initialize(path_parameters, request_adapter) ## Mark a list of serviceUpdateMessages as unread for the signed in user. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of mark_unread_response + ## @return a Fiber of mark_unread_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -36,9 +36,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Admin::ServiceAnnouncement::Messages::MarkUnread::MarkUnreadResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Admin::ServiceAnnouncement::Messages::MarkUnread::MarkUnreadPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Mark a list of serviceUpdateMessages as unread for the signed in user. @@ -49,17 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mark_unread_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MarkUnreadRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/admin/service_announcement/messages/mark_unread/mark_unread_response.rb b/lib/admin/service_announcement/messages/mark_unread/mark_unread_response.rb deleted file mode 100644 index 2a1d2b26ca..0000000000 --- a/lib/admin/service_announcement/messages/mark_unread/mark_unread_response.rb +++ /dev/null @@ -1,91 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../admin' -require_relative '../../service_announcement' -require_relative '../messages' -require_relative './mark_unread' - -module MicrosoftGraph - module Admin - module ServiceAnnouncement - module Messages - module MarkUnread - class MarkUnreadResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new markUnreadResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a mark_unread_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return MarkUnreadResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_boolean_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a boolean - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/admin/service_announcement/messages/messages_request_builder.rb b/lib/admin/service_announcement/messages/messages_request_builder.rb index 9b99c68f21..7749a4b7af 100644 --- a/lib/admin/service_announcement/messages/messages_request_builder.rb +++ b/lib/admin/service_announcement/messages/messages_request_builder.rb @@ -76,7 +76,7 @@ def by_service_update_message_id(service_update_message_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/messages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve the serviceUpdateMessage resources from the messages navigation property. This operation retrieves all service update messages that exist for the tenant. @@ -88,8 +88,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceUpdateMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -104,8 +103,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceUpdateMessage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -115,15 +113,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -135,17 +133,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a messages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MessagesRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the serviceUpdateMessage resources from the messages navigation property. This operation retrieves all service update messages that exist for the tenant. diff --git a/lib/admin/service_announcement/messages/unarchive/unarchive.rb b/lib/admin/service_announcement/messages/unarchive/unarchive.rb index f096252cba..0e592965d3 100644 --- a/lib/admin/service_announcement/messages/unarchive/unarchive.rb +++ b/lib/admin/service_announcement/messages/unarchive/unarchive.rb @@ -1,2 +1,2 @@ require_relative 'unarchive_post_request_body' -require_relative 'unarchive_response' +require_relative 'unarchive_post_response' diff --git a/lib/admin/service_announcement/messages/unarchive/unarchive_post_request_body.rb b/lib/admin/service_announcement/messages/unarchive/unarchive_post_request_body.rb index ff8b07fa8e..56200ee3a8 100644 --- a/lib/admin/service_announcement/messages/unarchive/unarchive_post_request_body.rb +++ b/lib/admin/service_announcement/messages/unarchive/unarchive_post_request_body.rb @@ -19,22 +19,22 @@ class UnarchivePostRequestBody # The messageIds property @message_ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new unarchivePostRequestBody and sets the default values. + ## Instantiates a new UnarchivePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/admin/service_announcement/messages/unarchive/unarchive_post_response.rb b/lib/admin/service_announcement/messages/unarchive/unarchive_post_response.rb new file mode 100644 index 0000000000..6a40131c51 --- /dev/null +++ b/lib/admin/service_announcement/messages/unarchive/unarchive_post_response.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../admin' +require_relative '../../service_announcement' +require_relative '../messages' +require_relative './unarchive' + +module MicrosoftGraph + module Admin + module ServiceAnnouncement + module Messages + module Unarchive + class UnarchivePostResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new UnarchivePostResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a unarchive_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return UnarchivePostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a boolean + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/admin/service_announcement/messages/unarchive/unarchive_request_builder.rb b/lib/admin/service_announcement/messages/unarchive/unarchive_request_builder.rb index e52fcb3a88..8a7e7316b9 100644 --- a/lib/admin/service_announcement/messages/unarchive/unarchive_request_builder.rb +++ b/lib/admin/service_announcement/messages/unarchive/unarchive_request_builder.rb @@ -28,7 +28,7 @@ def initialize(path_parameters, request_adapter) ## Unarchive a list of serviceUpdateMessages for the signed in user. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of unarchive_response + ## @return a Fiber of unarchive_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -36,9 +36,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Admin::ServiceAnnouncement::Messages::Unarchive::UnarchiveResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Admin::ServiceAnnouncement::Messages::Unarchive::UnarchivePostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Unarchive a list of serviceUpdateMessages for the signed in user. @@ -49,17 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unarchive_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnarchiveRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/admin/service_announcement/messages/unarchive/unarchive_response.rb b/lib/admin/service_announcement/messages/unarchive/unarchive_response.rb deleted file mode 100644 index 951cfac3e5..0000000000 --- a/lib/admin/service_announcement/messages/unarchive/unarchive_response.rb +++ /dev/null @@ -1,91 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../admin' -require_relative '../../service_announcement' -require_relative '../messages' -require_relative './unarchive' - -module MicrosoftGraph - module Admin - module ServiceAnnouncement - module Messages - module Unarchive - class UnarchiveResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new unarchiveResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a unarchive_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return UnarchiveResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_boolean_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a boolean - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/admin/service_announcement/messages/unfavorite/unfavorite.rb b/lib/admin/service_announcement/messages/unfavorite/unfavorite.rb index cce41bc8d6..a9bb903be2 100644 --- a/lib/admin/service_announcement/messages/unfavorite/unfavorite.rb +++ b/lib/admin/service_announcement/messages/unfavorite/unfavorite.rb @@ -1,2 +1,2 @@ require_relative 'unfavorite_post_request_body' -require_relative 'unfavorite_response' +require_relative 'unfavorite_post_response' diff --git a/lib/admin/service_announcement/messages/unfavorite/unfavorite_post_request_body.rb b/lib/admin/service_announcement/messages/unfavorite/unfavorite_post_request_body.rb index 4bea822e6c..69e922d476 100644 --- a/lib/admin/service_announcement/messages/unfavorite/unfavorite_post_request_body.rb +++ b/lib/admin/service_announcement/messages/unfavorite/unfavorite_post_request_body.rb @@ -19,22 +19,22 @@ class UnfavoritePostRequestBody # The messageIds property @message_ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new unfavoritePostRequestBody and sets the default values. + ## Instantiates a new UnfavoritePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/admin/service_announcement/messages/unfavorite/unfavorite_post_response.rb b/lib/admin/service_announcement/messages/unfavorite/unfavorite_post_response.rb new file mode 100644 index 0000000000..bf91ccd4ba --- /dev/null +++ b/lib/admin/service_announcement/messages/unfavorite/unfavorite_post_response.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../admin' +require_relative '../../service_announcement' +require_relative '../messages' +require_relative './unfavorite' + +module MicrosoftGraph + module Admin + module ServiceAnnouncement + module Messages + module Unfavorite + class UnfavoritePostResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new UnfavoritePostResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a unfavorite_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return UnfavoritePostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a boolean + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/admin/service_announcement/messages/unfavorite/unfavorite_request_builder.rb b/lib/admin/service_announcement/messages/unfavorite/unfavorite_request_builder.rb index 7dc57dcf12..60b9f5c430 100644 --- a/lib/admin/service_announcement/messages/unfavorite/unfavorite_request_builder.rb +++ b/lib/admin/service_announcement/messages/unfavorite/unfavorite_request_builder.rb @@ -28,7 +28,7 @@ def initialize(path_parameters, request_adapter) ## Remove the favorite status of serviceUpdateMessages for the signed in user. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of unfavorite_response + ## @return a Fiber of unfavorite_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -36,9 +36,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Admin::ServiceAnnouncement::Messages::Unfavorite::UnfavoriteResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Admin::ServiceAnnouncement::Messages::Unfavorite::UnfavoritePostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Remove the favorite status of serviceUpdateMessages for the signed in user. @@ -49,17 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unfavorite_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnfavoriteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/admin/service_announcement/messages/unfavorite/unfavorite_response.rb b/lib/admin/service_announcement/messages/unfavorite/unfavorite_response.rb deleted file mode 100644 index 5f83394609..0000000000 --- a/lib/admin/service_announcement/messages/unfavorite/unfavorite_response.rb +++ /dev/null @@ -1,91 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../admin' -require_relative '../../service_announcement' -require_relative '../messages' -require_relative './unfavorite' - -module MicrosoftGraph - module Admin - module ServiceAnnouncement - module Messages - module Unfavorite - class UnfavoriteResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new unfavoriteResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a unfavorite_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return UnfavoriteResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_boolean_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a boolean - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/admin/service_announcement/service_announcement_request_builder.rb b/lib/admin/service_announcement/service_announcement_request_builder.rb index 54cc981d40..b3f5652733 100644 --- a/lib/admin/service_announcement/service_announcement_request_builder.rb +++ b/lib/admin/service_announcement/service_announcement_request_builder.rb @@ -37,7 +37,7 @@ def messages() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement{?%24expand,%24select}") end ## ## Delete navigation property serviceAnnouncement for admin @@ -49,8 +49,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceAnnouncement.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,8 +77,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceAnnouncement.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,13 +87,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -106,15 +104,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,17 +124,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_announcement_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceAnnouncementRequestBuilder.new(raw_url, @request_adapter) + end ## # A container for service communications resources. Read-only. diff --git a/lib/admin/sharepoint/settings/settings_request_builder.rb b/lib/admin/sharepoint/settings/settings_request_builder.rb index ef24f3b2ba..486b926543 100644 --- a/lib/admin/sharepoint/settings/settings_request_builder.rb +++ b/lib/admin/sharepoint/settings/settings_request_builder.rb @@ -21,7 +21,7 @@ class SettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/sharepoint/settings{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/admin/sharepoint/settings{?%24expand,%24select}") end ## ## Delete navigation property settings for admin @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SharepointSettings.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SharepointSettings.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SettingsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the tenant-level settings for SharePoint and OneDrive. diff --git a/lib/admin/sharepoint/sharepoint_request_builder.rb b/lib/admin/sharepoint/sharepoint_request_builder.rb index b32c14dbc2..004cf58f02 100644 --- a/lib/admin/sharepoint/sharepoint_request_builder.rb +++ b/lib/admin/sharepoint/sharepoint_request_builder.rb @@ -25,7 +25,7 @@ def settings() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/admin/sharepoint{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/admin/sharepoint{?%24expand,%24select}") end ## ## Delete navigation property sharepoint for admin @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Sharepoint.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Sharepoint.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sharepoint_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SharepointRequestBuilder.new(raw_url, @request_adapter) + end ## # Get sharepoint from admin diff --git a/lib/agreement_acceptances/agreement_acceptances_request_builder.rb b/lib/agreement_acceptances/agreement_acceptances_request_builder.rb index b9655173ee..3467c9019d 100644 --- a/lib/agreement_acceptances/agreement_acceptances_request_builder.rb +++ b/lib/agreement_acceptances/agreement_acceptances_request_builder.rb @@ -30,7 +30,7 @@ def by_agreement_acceptance_id(agreement_acceptance_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/agreementAcceptances{?%24search,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/agreementAcceptances{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get entities from agreementAcceptances @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementAcceptanceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,8 +57,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementAcceptance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,15 +67,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -89,22 +87,43 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a agreement_acceptances_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AgreementAcceptancesRequestBuilder.new(raw_url, @request_adapter) + end ## # Get entities from agreementAcceptances class AgreementAcceptancesRequestBuilderGetQueryParameters + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby ## # Search items by search phrases attr_accessor :search @@ -112,6 +131,12 @@ class AgreementAcceptancesRequestBuilderGetQueryParameters # Select properties to be returned attr_accessor :select ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -119,10 +144,22 @@ class AgreementAcceptancesRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" when "search" return "%24search" when "select" return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" else return original_name end diff --git a/lib/agreement_acceptances/item/agreement_acceptance_item_request_builder.rb b/lib/agreement_acceptances/item/agreement_acceptance_item_request_builder.rb index 9ee6de49d6..b1f06e459d 100644 --- a/lib/agreement_acceptances/item/agreement_acceptance_item_request_builder.rb +++ b/lib/agreement_acceptances/item/agreement_acceptance_item_request_builder.rb @@ -31,8 +31,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementAcceptance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -61,8 +59,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementAcceptance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,13 +69,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -88,15 +86,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,17 +106,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a agreement_acceptance_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AgreementAcceptanceItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get entity from agreementAcceptances by key diff --git a/lib/agreements/agreements_request_builder.rb b/lib/agreements/agreements_request_builder.rb index 4c96328460..55efe4d3c2 100644 --- a/lib/agreements/agreements_request_builder.rb +++ b/lib/agreements/agreements_request_builder.rb @@ -30,7 +30,7 @@ def by_agreement_id(agreement_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/agreements{?%24search,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/agreements{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get entities from agreements @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,8 +57,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Agreement.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,15 +67,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -89,22 +87,43 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a agreements_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AgreementsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get entities from agreements class AgreementsRequestBuilderGetQueryParameters + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby ## # Search items by search phrases attr_accessor :search @@ -112,6 +131,12 @@ class AgreementsRequestBuilderGetQueryParameters # Select properties to be returned attr_accessor :select ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -119,10 +144,22 @@ class AgreementsRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" when "search" return "%24search" when "select" return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" else return original_name end diff --git a/lib/agreements/item/acceptances/acceptances_request_builder.rb b/lib/agreements/item/acceptances/acceptances_request_builder.rb index 7d4759e199..15bc3e7502 100644 --- a/lib/agreements/item/acceptances/acceptances_request_builder.rb +++ b/lib/agreements/item/acceptances/acceptances_request_builder.rb @@ -40,10 +40,10 @@ def by_agreement_acceptance_id(agreement_acceptance_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/acceptances{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/acceptances{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the details about the acceptance records for a specific agreement. + ## Read-only. Information about acceptances of this agreement. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of agreement_acceptance_collection_response ## @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementAcceptanceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,26 +67,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementAcceptance.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the details about the acceptance records for a specific agreement. + ## Read-only. Information about acceptances of this agreement. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,20 +97,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a acceptances_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AcceptancesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the details about the acceptance records for a specific agreement. + # Read-only. Information about acceptances of this agreement. class AcceptancesRequestBuilderGetQueryParameters ## diff --git a/lib/agreements/item/acceptances/count/count_request_builder.rb b/lib/agreements/item/acceptances/count/count_request_builder.rb index 92412381fa..4231edd944 100644 --- a/lib/agreements/item/acceptances/count/count_request_builder.rb +++ b/lib/agreements/item/acceptances/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/acceptances/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/acceptances/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/agreements/item/acceptances/item/agreement_acceptance_item_request_builder.rb b/lib/agreements/item/acceptances/item/agreement_acceptance_item_request_builder.rb index 866f8709f7..b273e6c75a 100644 --- a/lib/agreements/item/acceptances/item/agreement_acceptance_item_request_builder.rb +++ b/lib/agreements/item/acceptances/item/agreement_acceptance_item_request_builder.rb @@ -23,7 +23,7 @@ class AgreementAcceptanceItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/acceptances/{agreementAcceptance%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/acceptances/{agreementAcceptance%2Did}{?%24expand,%24select}") end ## ## Delete navigation property acceptances for agreements @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementAcceptance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementAcceptance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a agreement_acceptance_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AgreementAcceptanceItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Information about acceptances of this agreement. diff --git a/lib/agreements/item/agreement_item_request_builder.rb b/lib/agreements/item/agreement_item_request_builder.rb index ac188f5495..b1c8d55ccc 100644 --- a/lib/agreements/item/agreement_item_request_builder.rb +++ b/lib/agreements/item/agreement_item_request_builder.rb @@ -49,8 +49,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Agreement.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,8 +77,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Agreement.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,13 +87,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -106,15 +104,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,17 +124,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a agreement_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AgreementItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get entity from agreements by key diff --git a/lib/agreements/item/file/file_request_builder.rb b/lib/agreements/item/file/file_request_builder.rb index 2969552fe5..1126f9b453 100644 --- a/lib/agreements/item/file/file_request_builder.rb +++ b/lib/agreements/item/file/file_request_builder.rb @@ -27,7 +27,7 @@ def localizations() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/file{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/file{?%24expand,%24select}") end ## ## Delete navigation property file for agreements @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementFile.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementFile.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,13 +77,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,15 +94,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,17 +114,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a file_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FileRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. diff --git a/lib/agreements/item/file/localizations/count/count_request_builder.rb b/lib/agreements/item/file/localizations/count/count_request_builder.rb index 51a49eaafc..021691d9d2 100644 --- a/lib/agreements/item/file/localizations/count/count_request_builder.rb +++ b/lib/agreements/item/file/localizations/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/file/localizations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/file/localizations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/agreements/item/file/localizations/item/agreement_file_localization_item_request_builder.rb b/lib/agreements/item/file/localizations/item/agreement_file_localization_item_request_builder.rb index 77d2457115..08e3a3c5fd 100644 --- a/lib/agreements/item/file/localizations/item/agreement_file_localization_item_request_builder.rb +++ b/lib/agreements/item/file/localizations/item/agreement_file_localization_item_request_builder.rb @@ -31,7 +31,7 @@ def versions() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/file/localizations/{agreementFileLocalization%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/file/localizations/{agreementFileLocalization%2Did}{?%24expand,%24select}") end ## ## Delete navigation property localizations for agreements @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementFileLocalization.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementFileLocalization.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,15 +98,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a agreement_file_localization_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AgreementFileLocalizationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The localized version of the terms of use agreement files attached to the agreement. diff --git a/lib/agreements/item/file/localizations/item/versions/count/count_request_builder.rb b/lib/agreements/item/file/localizations/item/versions/count/count_request_builder.rb index df88395fc2..7b0e1bc240 100644 --- a/lib/agreements/item/file/localizations/item/versions/count/count_request_builder.rb +++ b/lib/agreements/item/file/localizations/item/versions/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/file/localizations/{agreementFileLocalization%2Did}/versions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/file/localizations/{agreementFileLocalization%2Did}/versions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/agreements/item/file/localizations/item/versions/item/agreement_file_version_item_request_builder.rb b/lib/agreements/item/file/localizations/item/versions/item/agreement_file_version_item_request_builder.rb index 59c0383a01..55ca0cf623 100644 --- a/lib/agreements/item/file/localizations/item/versions/item/agreement_file_version_item_request_builder.rb +++ b/lib/agreements/item/file/localizations/item/versions/item/agreement_file_version_item_request_builder.rb @@ -29,7 +29,7 @@ class AgreementFileVersionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseR ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/file/localizations/{agreementFileLocalization%2Did}/versions/{agreementFileVersion%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/file/localizations/{agreementFileLocalization%2Did}/versions/{agreementFileVersion%2Did}{?%24expand,%24select}") end ## ## Delete navigation property versions for agreements @@ -41,12 +41,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + ## Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of agreement_file_version ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementFileVersion.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementFileVersion.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,31 +79,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + ## Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,20 +116,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a agreement_file_version_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AgreementFileVersionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + # Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. class AgreementFileVersionItemRequestBuilderGetQueryParameters ## diff --git a/lib/agreements/item/file/localizations/item/versions/versions_request_builder.rb b/lib/agreements/item/file/localizations/item/versions/versions_request_builder.rb index 9ed3a6bc0c..8e292f6b05 100644 --- a/lib/agreements/item/file/localizations/item/versions/versions_request_builder.rb +++ b/lib/agreements/item/file/localizations/item/versions/versions_request_builder.rb @@ -46,10 +46,10 @@ def by_agreement_file_version_id(agreement_file_version_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/file/localizations/{agreementFileLocalization%2Did}/versions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/file/localizations/{agreementFileLocalization%2Did}/versions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + ## Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of agreement_file_version_collection_response ## @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementFileVersionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,26 +73,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementFileVersion.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + ## Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a versions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VersionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + # Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. class VersionsRequestBuilderGetQueryParameters ## diff --git a/lib/agreements/item/file/localizations/localizations_request_builder.rb b/lib/agreements/item/file/localizations/localizations_request_builder.rb index 723461bbed..0fdd9378a2 100644 --- a/lib/agreements/item/file/localizations/localizations_request_builder.rb +++ b/lib/agreements/item/file/localizations/localizations_request_builder.rb @@ -42,7 +42,7 @@ def by_agreement_file_localization_id(agreement_file_localization_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/file/localizations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/file/localizations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a list of the default and localized agreement files. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementFileLocalizationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementFileLocalization.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a localizations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LocalizationsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a list of the default and localized agreement files. diff --git a/lib/agreements/item/files/count/count_request_builder.rb b/lib/agreements/item/files/count/count_request_builder.rb index 99d4920d10..92bebc7dfd 100644 --- a/lib/agreements/item/files/count/count_request_builder.rb +++ b/lib/agreements/item/files/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/files/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/files/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/agreements/item/files/files_request_builder.rb b/lib/agreements/item/files/files_request_builder.rb index eb9b82ec49..772b7e1941 100644 --- a/lib/agreements/item/files/files_request_builder.rb +++ b/lib/agreements/item/files/files_request_builder.rb @@ -40,7 +40,7 @@ def by_agreement_file_localization_id(agreement_file_localization_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## PDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead. Supports $expand. @@ -52,12 +52,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementFileLocalizationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new localized agreement file. + ## Create new navigation property to files for agreements ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of agreement_file_localization @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementFileLocalization.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,19 +77,19 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new localized agreement file. + ## Create new navigation property to files for agreements ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a files_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilesRequestBuilder.new(raw_url, @request_adapter) + end ## # PDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead. Supports $expand. diff --git a/lib/agreements/item/files/item/agreement_file_localization_item_request_builder.rb b/lib/agreements/item/files/item/agreement_file_localization_item_request_builder.rb index 47137f1065..ddfd78e069 100644 --- a/lib/agreements/item/files/item/agreement_file_localization_item_request_builder.rb +++ b/lib/agreements/item/files/item/agreement_file_localization_item_request_builder.rb @@ -29,7 +29,7 @@ def versions() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/files/{agreementFileLocalization%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/files/{agreementFileLocalization%2Did}{?%24expand,%24select}") end ## ## Delete navigation property files for agreements @@ -41,8 +41,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementFileLocalization.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementFileLocalization.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,13 +79,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -98,15 +96,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,17 +116,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a agreement_file_localization_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AgreementFileLocalizationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # PDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead. Supports $expand. diff --git a/lib/agreements/item/files/item/versions/count/count_request_builder.rb b/lib/agreements/item/files/item/versions/count/count_request_builder.rb index b1b03a4c6c..6035633750 100644 --- a/lib/agreements/item/files/item/versions/count/count_request_builder.rb +++ b/lib/agreements/item/files/item/versions/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/files/{agreementFileLocalization%2Did}/versions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/files/{agreementFileLocalization%2Did}/versions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/agreements/item/files/item/versions/item/agreement_file_version_item_request_builder.rb b/lib/agreements/item/files/item/versions/item/agreement_file_version_item_request_builder.rb index 68a2d78069..61dcf128b8 100644 --- a/lib/agreements/item/files/item/versions/item/agreement_file_version_item_request_builder.rb +++ b/lib/agreements/item/files/item/versions/item/agreement_file_version_item_request_builder.rb @@ -27,7 +27,7 @@ class AgreementFileVersionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseR ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/files/{agreementFileLocalization%2Did}/versions/{agreementFileVersion%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/files/{agreementFileLocalization%2Did}/versions/{agreementFileVersion%2Did}{?%24expand,%24select}") end ## ## Delete navigation property versions for agreements @@ -39,12 +39,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + ## Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of agreement_file_version ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementFileVersion.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementFileVersion.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,31 +77,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + ## Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,20 +114,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a agreement_file_version_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AgreementFileVersionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + # Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. class AgreementFileVersionItemRequestBuilderGetQueryParameters ## diff --git a/lib/agreements/item/files/item/versions/versions_request_builder.rb b/lib/agreements/item/files/item/versions/versions_request_builder.rb index 51855fc81b..405a36e436 100644 --- a/lib/agreements/item/files/item/versions/versions_request_builder.rb +++ b/lib/agreements/item/files/item/versions/versions_request_builder.rb @@ -44,10 +44,10 @@ def by_agreement_file_version_id(agreement_file_version_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/files/{agreementFileLocalization%2Did}/versions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/agreements/{agreement%2Did}/files/{agreementFileLocalization%2Did}/versions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + ## Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of agreement_file_version_collection_response ## @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementFileVersionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,26 +71,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AgreementFileVersion.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + ## Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a versions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VersionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + # Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. class VersionsRequestBuilderGetQueryParameters ## diff --git a/lib/app_catalogs/app_catalogs_request_builder.rb b/lib/app_catalogs/app_catalogs_request_builder.rb index 0dae3d8621..b448aaea21 100644 --- a/lib/app_catalogs/app_catalogs_request_builder.rb +++ b/lib/app_catalogs/app_catalogs_request_builder.rb @@ -23,7 +23,7 @@ def teams_apps() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/appCatalogs{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/appCatalogs{?%24expand,%24select}") end ## ## Get appCatalogs @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppCatalogs.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -51,8 +50,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppCatalogs.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,15 +60,15 @@ def patch(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -82,17 +80,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a app_catalogs_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AppCatalogsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get appCatalogs diff --git a/lib/app_catalogs/teams_apps/count/count_request_builder.rb b/lib/app_catalogs/teams_apps/count/count_request_builder.rb index 606e387820..54ca3fb0a0 100644 --- a/lib/app_catalogs/teams_apps/count/count_request_builder.rb +++ b/lib/app_catalogs/teams_apps/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/appCatalogs/teamsApps/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/appCatalogs/teamsApps/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/app_catalogs/teams_apps/item/app_definitions/app_definitions_request_builder.rb b/lib/app_catalogs/teams_apps/item/app_definitions/app_definitions_request_builder.rb index a5cbef9366..6aa33c8107 100644 --- a/lib/app_catalogs/teams_apps/item/app_definitions/app_definitions_request_builder.rb +++ b/lib/app_catalogs/teams_apps/item/app_definitions/app_definitions_request_builder.rb @@ -42,7 +42,7 @@ def by_teams_app_definition_id(teams_app_definition_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The details for each version of the app. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsAppDefinitionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsAppDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a app_definitions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AppDefinitionsRequestBuilder.new(raw_url, @request_adapter) + end ## # The details for each version of the app. diff --git a/lib/app_catalogs/teams_apps/item/app_definitions/count/count_request_builder.rb b/lib/app_catalogs/teams_apps/item/app_definitions/count/count_request_builder.rb index c452a9f9e8..41f2fefa2f 100644 --- a/lib/app_catalogs/teams_apps/item/app_definitions/count/count_request_builder.rb +++ b/lib/app_catalogs/teams_apps/item/app_definitions/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/app_catalogs/teams_apps/item/app_definitions/item/bot/bot_request_builder.rb b/lib/app_catalogs/teams_apps/item/app_definitions/item/bot/bot_request_builder.rb index 69214c91ac..53e45da34d 100644 --- a/lib/app_catalogs/teams_apps/item/app_definitions/item/bot/bot_request_builder.rb +++ b/lib/app_catalogs/teams_apps/item/app_definitions/item/bot/bot_request_builder.rb @@ -27,7 +27,7 @@ class BotRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/{teamsAppDefinition%2Did}/bot{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/{teamsAppDefinition%2Did}/bot{?%24expand,%24select}") end ## ## Delete navigation property bot for appCatalogs @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamworkBot.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamworkBot.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,13 +77,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,15 +94,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,17 +114,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bot_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BotRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the bot associated with a specific definition of the TeamsApp. diff --git a/lib/app_catalogs/teams_apps/item/app_definitions/item/teams_app_definition_item_request_builder.rb b/lib/app_catalogs/teams_apps/item/app_definitions/item/teams_app_definition_item_request_builder.rb index 80f7a59fa4..28bd2c270e 100644 --- a/lib/app_catalogs/teams_apps/item/app_definitions/item/teams_app_definition_item_request_builder.rb +++ b/lib/app_catalogs/teams_apps/item/app_definitions/item/teams_app_definition_item_request_builder.rb @@ -31,7 +31,7 @@ def bot() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/{teamsAppDefinition%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/{teamsAppDefinition%2Did}{?%24expand,%24select}") end ## ## Delete navigation property appDefinitions for appCatalogs @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsAppDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Publish an app to the Microsoft Teams apps catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource will have a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. + ## Publish an app to the Microsoft Teams app catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource has a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teams_app_definition @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsAppDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,19 +98,19 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Publish an app to the Microsoft Teams apps catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource will have a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. + ## Publish an app to the Microsoft Teams app catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource has a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a teams_app_definition_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TeamsAppDefinitionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The details for each version of the app. diff --git a/lib/app_catalogs/teams_apps/item/teams_app_item_request_builder.rb b/lib/app_catalogs/teams_apps/item/teams_app_item_request_builder.rb index 811ab19869..e9056bf8b9 100644 --- a/lib/app_catalogs/teams_apps/item/teams_app_item_request_builder.rb +++ b/lib/app_catalogs/teams_apps/item/teams_app_item_request_builder.rb @@ -27,10 +27,10 @@ def app_definitions() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}{?%24expand,%24select}") end ## - ## Delete teamsApp + ## Delete an app from an organization's app catalog (the tenant app catalog). To delete an app, the distributionMethod property for the app must be set to organization. You can also use this API to remove a submitted app from the review process. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsApp.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,24 +67,24 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsApp.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete teamsApp + ## Delete an app from an organization's app catalog (the tenant app catalog). To delete an app, the distributionMethod property for the app must be set to organization. You can also use this API to remove a submitted app from the review process. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,15 +94,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,17 +114,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a teams_app_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TeamsAppItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get teamsApps from appCatalogs diff --git a/lib/app_catalogs/teams_apps/teams_apps_request_builder.rb b/lib/app_catalogs/teams_apps/teams_apps_request_builder.rb index 4cc7b23ddd..8376b60f9e 100644 --- a/lib/app_catalogs/teams_apps/teams_apps_request_builder.rb +++ b/lib/app_catalogs/teams_apps/teams_apps_request_builder.rb @@ -38,10 +38,10 @@ def by_teams_app_id(teams_app_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/appCatalogs/teamsApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/appCatalogs/teamsApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store, as well as apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. + ## List apps from the Microsoft Teams app catalog, including apps from the Microsoft Teams store and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teams_app_collection_response ## @@ -50,12 +50,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Publish an app to the Microsoft Teams apps catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource will have a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. + ## Publish an app to the Microsoft Teams app catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource has a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teams_app @@ -66,30 +65,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsApp.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store, as well as apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. + ## List apps from the Microsoft Teams app catalog, including apps from the Microsoft Teams store and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Publish an app to the Microsoft Teams apps catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource will have a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. + ## Publish an app to the Microsoft Teams app catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource has a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -97,20 +95,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a teams_apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TeamsAppsRequestBuilder.new(raw_url, @request_adapter) + end ## - # List apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store, as well as apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. + # List apps from the Microsoft Teams app catalog, including apps from the Microsoft Teams store and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. class TeamsAppsRequestBuilderGetQueryParameters ## diff --git a/lib/application_templates/application_templates_request_builder.rb b/lib/application_templates/application_templates_request_builder.rb index 1c632699ec..693a3650bd 100644 --- a/lib/application_templates/application_templates_request_builder.rb +++ b/lib/application_templates/application_templates_request_builder.rb @@ -35,10 +35,10 @@ def by_application_template_id(application_template_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applicationTemplates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applicationTemplates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of applicationTemplate objects from the Azure AD application gallery. + ## Retrieve a list of applicationTemplate objects from the Microsoft Entra application gallery. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of application_template_collection_response ## @@ -47,31 +47,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ApplicationTemplateCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of applicationTemplate objects from the Azure AD application gallery. + ## Retrieve a list of applicationTemplate objects from the Microsoft Entra application gallery. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a application_templates_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplicationTemplatesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of applicationTemplate objects from the Azure AD application gallery. + # Retrieve a list of applicationTemplate objects from the Microsoft Entra application gallery. class ApplicationTemplatesRequestBuilderGetQueryParameters ## diff --git a/lib/application_templates/count/count_request_builder.rb b/lib/application_templates/count/count_request_builder.rb index 5edd1fa0c3..8e880bab67 100644 --- a/lib/application_templates/count/count_request_builder.rb +++ b/lib/application_templates/count/count_request_builder.rb @@ -18,7 +18,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applicationTemplates/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/applicationTemplates/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -30,8 +30,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -41,17 +40,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/application_templates/item/application_template_item_request_builder.rb b/lib/application_templates/item/application_template_item_request_builder.rb index db46ae9654..dc8dfa2a78 100644 --- a/lib/application_templates/item/application_template_item_request_builder.rb +++ b/lib/application_templates/item/application_template_item_request_builder.rb @@ -25,7 +25,7 @@ def instantiate() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applicationTemplates/{applicationTemplate%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applicationTemplates/{applicationTemplate%2Did}{?%24expand,%24select}") end ## ## Retrieve the properties of an applicationTemplate object. @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ApplicationTemplate.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a application_template_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplicationTemplateItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties of an applicationTemplate object. diff --git a/lib/application_templates/item/instantiate/instantiate_post_request_body.rb b/lib/application_templates/item/instantiate/instantiate_post_request_body.rb index 5828f5c0d9..4b014bdf6b 100644 --- a/lib/application_templates/item/instantiate/instantiate_post_request_body.rb +++ b/lib/application_templates/item/instantiate/instantiate_post_request_body.rb @@ -17,22 +17,25 @@ class InstantiatePostRequestBody # The displayName property @display_name ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + # The serviceManagementReference property + @service_management_reference + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new instantiatePostRequestBody and sets the default values. + ## Instantiates a new InstantiatePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -69,6 +72,7 @@ def display_name=(value) def get_field_deserializers() return { "displayName" => lambda {|n| @display_name = n.get_string_value() }, + "serviceManagementReference" => lambda {|n| @service_management_reference = n.get_string_value() }, } end ## @@ -79,8 +83,24 @@ def get_field_deserializers() def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("displayName", @display_name) + writer.write_string_value("serviceManagementReference", @service_management_reference) writer.write_additional_data(@additional_data) end + ## + ## Gets the serviceManagementReference property value. The serviceManagementReference property + ## @return a string + ## + def service_management_reference + return @service_management_reference + end + ## + ## Sets the serviceManagementReference property value. The serviceManagementReference property + ## @param value Value to set for the serviceManagementReference property. + ## @return a void + ## + def service_management_reference=(value) + @service_management_reference = value + end end end end diff --git a/lib/application_templates/item/instantiate/instantiate_request_builder.rb b/lib/application_templates/item/instantiate/instantiate_request_builder.rb index 989ce2fa02..7c10c8f6fa 100644 --- a/lib/application_templates/item/instantiate/instantiate_request_builder.rb +++ b/lib/application_templates/item/instantiate/instantiate_request_builder.rb @@ -24,7 +24,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/applicationTemplates/{applicationTemplate%2Did}/instantiate") end ## - ## Add an instance of an application from the Azure AD application gallery into your directory. You can also use this API to instantiate non-gallery apps. Use the following ID for the applicationTemplate object: 8adf8e6e-67b2-4cf2-a259-e3dc5476c621. + ## Add an instance of an application from the Microsoft Entra application gallery into your directory. For non-gallery apps, use an application template with one of the following IDs to configure different single sign-on (SSO) modes like SAML SSO and password-based SSO. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of application_service_principal @@ -35,12 +35,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ApplicationServicePrincipal.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Add an instance of an application from the Azure AD application gallery into your directory. You can also use this API to instantiate non-gallery apps. Use the following ID for the applicationTemplate object: 8adf8e6e-67b2-4cf2-a259-e3dc5476c621. + ## Add an instance of an application from the Microsoft Entra application gallery into your directory. For non-gallery apps, use an application template with one of the following IDs to configure different single sign-on (SSO) modes like SAML SSO and password-based SSO. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -48,17 +47,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a instantiate_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InstantiateRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/applications_request_builder.rb b/lib/applications/applications_request_builder.rb index 6d678342cc..611abf72a2 100644 --- a/lib/applications/applications_request_builder.rb +++ b/lib/applications/applications_request_builder.rb @@ -60,7 +60,7 @@ def by_application_id(application_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the list of applications in this organization. @@ -72,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ApplicationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,8 +87,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Application.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,15 +97,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -119,17 +117,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a applications_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplicationsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the list of applications in this organization. diff --git a/lib/applications/count/count_request_builder.rb b/lib/applications/count/count_request_builder.rb index 932b137e45..eae16c822c 100644 --- a/lib/applications/count/count_request_builder.rb +++ b/lib/applications/count/count_request_builder.rb @@ -18,7 +18,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/applications/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -30,8 +30,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -41,17 +40,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/applications/delta/delta.rb b/lib/applications/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/applications/delta/delta.rb +++ b/lib/applications/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/applications/delta/delta_get_response.rb b/lib/applications/delta/delta_get_response.rb new file mode 100644 index 0000000000..17f06d5d7d --- /dev/null +++ b/lib/applications/delta/delta_get_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/application' +require_relative '../../models/base_delta_function_response' +require_relative '../applications' +require_relative './delta' + +module MicrosoftGraph + module Applications + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Application.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a application + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/applications/delta/delta_request_builder.rb b/lib/applications/delta/delta_request_builder.rb index 1dfdf9264a..cf20263883 100644 --- a/lib/applications/delta/delta_request_builder.rb +++ b/lib/applications/delta/delta_request_builder.rb @@ -18,49 +18,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/applications/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## 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. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Applications::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Applications::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## 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. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # 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. class DeltaRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -88,6 +99,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/applications/delta/delta_response.rb b/lib/applications/delta/delta_response.rb deleted file mode 100644 index f1a5008a68..0000000000 --- a/lib/applications/delta/delta_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/application' -require_relative '../../models/base_delta_function_response' -require_relative '../applications' -require_relative './delta' - -module MicrosoftGraph - module Applications - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Application.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a application - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/applications/get_available_extension_properties/get_available_extension_properties.rb b/lib/applications/get_available_extension_properties/get_available_extension_properties.rb index b6fee576bf..ce1b642cad 100644 --- a/lib/applications/get_available_extension_properties/get_available_extension_properties.rb +++ b/lib/applications/get_available_extension_properties/get_available_extension_properties.rb @@ -1,2 +1,2 @@ require_relative 'get_available_extension_properties_post_request_body' -require_relative 'get_available_extension_properties_response' +require_relative 'get_available_extension_properties_post_response' diff --git a/lib/applications/get_available_extension_properties/get_available_extension_properties_post_request_body.rb b/lib/applications/get_available_extension_properties/get_available_extension_properties_post_request_body.rb index cfd82c9c0b..b0c7f515b8 100644 --- a/lib/applications/get_available_extension_properties/get_available_extension_properties_post_request_body.rb +++ b/lib/applications/get_available_extension_properties/get_available_extension_properties_post_request_body.rb @@ -15,22 +15,22 @@ class GetAvailableExtensionPropertiesPostRequestBody # The isSyncedFromOnPremises property @is_synced_from_on_premises ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getAvailableExtensionPropertiesPostRequestBody and sets the default values. + ## Instantiates a new GetAvailableExtensionPropertiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/applications/get_available_extension_properties/get_available_extension_properties_post_response.rb b/lib/applications/get_available_extension_properties/get_available_extension_properties_post_response.rb new file mode 100644 index 0000000000..dc9d1df2ff --- /dev/null +++ b/lib/applications/get_available_extension_properties/get_available_extension_properties_post_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_collection_pagination_count_response' +require_relative '../../models/extension_property' +require_relative '../applications' +require_relative './get_available_extension_properties' + +module MicrosoftGraph + module Applications + module GetAvailableExtensionProperties + class GetAvailableExtensionPropertiesPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetAvailableExtensionPropertiesPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_available_extension_properties_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetAvailableExtensionPropertiesPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a extension_property + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/applications/get_available_extension_properties/get_available_extension_properties_request_builder.rb b/lib/applications/get_available_extension_properties/get_available_extension_properties_request_builder.rb index 2edae38c75..a4be12e089 100644 --- a/lib/applications/get_available_extension_properties/get_available_extension_properties_request_builder.rb +++ b/lib/applications/get_available_extension_properties/get_available_extension_properties_request_builder.rb @@ -21,10 +21,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/applications/getAvailableExtensionProperties") end ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_available_extension_properties_response + ## @return a Fiber of get_available_extension_properties_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -32,12 +32,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Applications::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Applications::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -45,17 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_available_extension_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetAvailableExtensionPropertiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/get_available_extension_properties/get_available_extension_properties_response.rb b/lib/applications/get_available_extension_properties/get_available_extension_properties_response.rb deleted file mode 100644 index 56f65a9d28..0000000000 --- a/lib/applications/get_available_extension_properties/get_available_extension_properties_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_collection_pagination_count_response' -require_relative '../../models/extension_property' -require_relative '../applications' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module Applications - module GetAvailableExtensionProperties - class GetAvailableExtensionPropertiesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_available_extension_properties_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAvailableExtensionPropertiesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a extension_property - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/applications/get_by_ids/get_by_ids.rb b/lib/applications/get_by_ids/get_by_ids.rb index e4b0824834..131a179969 100644 --- a/lib/applications/get_by_ids/get_by_ids.rb +++ b/lib/applications/get_by_ids/get_by_ids.rb @@ -1,2 +1,2 @@ require_relative 'get_by_ids_post_request_body' -require_relative 'get_by_ids_response' +require_relative 'get_by_ids_post_response' diff --git a/lib/applications/get_by_ids/get_by_ids_post_request_body.rb b/lib/applications/get_by_ids/get_by_ids_post_request_body.rb index e1c9d39050..6d073d4578 100644 --- a/lib/applications/get_by_ids/get_by_ids_post_request_body.rb +++ b/lib/applications/get_by_ids/get_by_ids_post_request_body.rb @@ -18,22 +18,22 @@ class GetByIdsPostRequestBody # The types property @types ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getByIdsPostRequestBody and sets the default values. + ## Instantiates a new GetByIdsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/applications/get_by_ids/get_by_ids_post_response.rb b/lib/applications/get_by_ids/get_by_ids_post_response.rb new file mode 100644 index 0000000000..2f2bd90b8e --- /dev/null +++ b/lib/applications/get_by_ids/get_by_ids_post_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_collection_pagination_count_response' +require_relative '../../models/directory_object' +require_relative '../applications' +require_relative './get_by_ids' + +module MicrosoftGraph + module Applications + module GetByIds + class GetByIdsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetByIdsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_by_ids_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetByIdsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a directory_object + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/applications/get_by_ids/get_by_ids_request_builder.rb b/lib/applications/get_by_ids/get_by_ids_request_builder.rb index ad10e50a42..5fcd347150 100644 --- a/lib/applications/get_by_ids/get_by_ids_request_builder.rb +++ b/lib/applications/get_by_ids/get_by_ids_request_builder.rb @@ -24,7 +24,7 @@ def initialize(path_parameters, request_adapter) ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_by_ids_response + ## @return a Fiber of get_by_ids_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -32,9 +32,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Applications::GetByIds::GetByIdsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Applications::GetByIds::GetByIdsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: @@ -45,17 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_by_ids_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetByIdsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/get_by_ids/get_by_ids_response.rb b/lib/applications/get_by_ids/get_by_ids_response.rb deleted file mode 100644 index eb4a643f55..0000000000 --- a/lib/applications/get_by_ids/get_by_ids_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_collection_pagination_count_response' -require_relative '../../models/directory_object' -require_relative '../applications' -require_relative './get_by_ids' - -module MicrosoftGraph - module Applications - module GetByIds - class GetByIdsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getByIdsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_by_ids_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetByIdsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/applications/item/add_key/add_key_post_request_body.rb b/lib/applications/item/add_key/add_key_post_request_body.rb index 6f211cc98b..b09d977a3b 100644 --- a/lib/applications/item/add_key/add_key_post_request_body.rb +++ b/lib/applications/item/add_key/add_key_post_request_body.rb @@ -25,22 +25,22 @@ class AddKeyPostRequestBody # The proof property @proof ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new addKeyPostRequestBody and sets the default values. + ## Instantiates a new AddKeyPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/applications/item/add_key/add_key_request_builder.rb b/lib/applications/item/add_key/add_key_request_builder.rb index 8b4da979a9..db19d9f0cf 100644 --- a/lib/applications/item/add_key/add_key_request_builder.rb +++ b/lib/applications/item/add_key/add_key_request_builder.rb @@ -35,8 +35,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::KeyCredential.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_key_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddKeyRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/item/add_password/add_password_post_request_body.rb b/lib/applications/item/add_password/add_password_post_request_body.rb index 605126243a..0461f41dfc 100644 --- a/lib/applications/item/add_password/add_password_post_request_body.rb +++ b/lib/applications/item/add_password/add_password_post_request_body.rb @@ -18,22 +18,22 @@ class AddPasswordPostRequestBody # The passwordCredential property @password_credential ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new addPasswordPostRequestBody and sets the default values. + ## Instantiates a new AddPasswordPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/applications/item/add_password/add_password_request_builder.rb b/lib/applications/item/add_password/add_password_request_builder.rb index a1e4a2978e..d14521ecec 100644 --- a/lib/applications/item/add_password/add_password_request_builder.rb +++ b/lib/applications/item/add_password/add_password_request_builder.rb @@ -24,7 +24,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/addPassword") end ## - ## Adds a strong password or secret to an application. + ## Adds a strong password or secret to an application. You can also add passwords while creating the application. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of password_credential @@ -35,12 +35,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PasswordCredential.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Adds a strong password or secret to an application. + ## Adds a strong password or secret to an application. You can also add passwords while creating the application. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -48,17 +47,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_password_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddPasswordRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/item/app_management_policies/app_management_policies_request_builder.rb b/lib/applications/item/app_management_policies/app_management_policies_request_builder.rb index bf74c383d8..bd54e8fc04 100644 --- a/lib/applications/item/app_management_policies/app_management_policies_request_builder.rb +++ b/lib/applications/item/app_management_policies/app_management_policies_request_builder.rb @@ -29,7 +29,7 @@ def ref() end ## ## Gets an item from the MicrosoftGraph.applications.item.appManagementPolicies.item collection - ## @param app_management_policy_id Unique identifier of the item + ## @param app_management_policy_id The unique identifier of appManagementPolicy ## @return a app_management_policy_item_request_builder ## def by_app_management_policy_id(app_management_policy_id) @@ -45,7 +45,7 @@ def by_app_management_policy_id(app_management_policy_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The appManagementPolicy applied to this application. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppManagementPolicyCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a app_management_policies_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AppManagementPoliciesRequestBuilder.new(raw_url, @request_adapter) + end ## # The appManagementPolicy applied to this application. diff --git a/lib/applications/item/app_management_policies/count/count_request_builder.rb b/lib/applications/item/app_management_policies/count/count_request_builder.rb index 3e1bf37948..881d32c511 100644 --- a/lib/applications/item/app_management_policies/count/count_request_builder.rb +++ b/lib/applications/item/app_management_policies/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/applications/item/app_management_policies/item/ref/ref_request_builder.rb b/lib/applications/item/app_management_policies/item/ref/ref_request_builder.rb index 2cc3c0d103..644eb5be6a 100644 --- a/lib/applications/item/app_management_policies/item/ref/ref_request_builder.rb +++ b/lib/applications/item/app_management_policies/item/ref/ref_request_builder.rb @@ -24,7 +24,7 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/{appManagementPolicy%2Did}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/{appManagementPolicy%2Did}/$ref") end ## ## Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. @@ -36,8 +36,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,38 +46,24 @@ def delete(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/applications/item/app_management_policies/ref/ref_request_builder.rb b/lib/applications/item/app_management_policies/ref/ref_request_builder.rb index 66be8afd53..27a8537875 100644 --- a/lib/applications/item/app_management_policies/ref/ref_request_builder.rb +++ b/lib/applications/item/app_management_policies/ref/ref_request_builder.rb @@ -24,7 +24,20 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") + end + ## + ## Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) end ## ## The appManagementPolicy applied to this application. @@ -36,8 +49,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,26 +64,43 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## + ## Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/applications/{application%2Did}/appManagementPolicies/$ref?@id={%40id}' + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## ## The appManagementPolicy applied to this application. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/applications/{application%2Did}/appManagementPolicies/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -83,16 +112,49 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/applications/{application%2Did}/appManagementPolicies/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end ## # The appManagementPolicy applied to this application. diff --git a/lib/applications/item/application_item_request_builder.rb b/lib/applications/item/application_item_request_builder.rb index 2150da9884..f8a0782030 100644 --- a/lib/applications/item/application_item_request_builder.rb +++ b/lib/applications/item/application_item_request_builder.rb @@ -11,6 +11,7 @@ require_relative './created_on_behalf_of/created_on_behalf_of_request_builder' require_relative './extension_properties/extension_properties_request_builder' require_relative './federated_identity_credentials/federated_identity_credentials_request_builder' +require_relative './federated_identity_credentials_with_name/federated_identity_credentials_with_name_request_builder' require_relative './get_member_groups/get_member_groups_request_builder' require_relative './get_member_objects/get_member_objects_request_builder' require_relative './home_realm_discovery_policies/home_realm_discovery_policies_request_builder' @@ -145,7 +146,7 @@ def unset_verified_publisher() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}{?%24expand,%24select}") end ## ## 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. @@ -157,11 +158,19 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## + ## Provides operations to manage the federatedIdentityCredentials property of the microsoft.graph.application entity. + ## @param name Alternate key of federatedIdentityCredential + ## @return a federated_identity_credentials_with_name_request_builder + ## + def federated_identity_credentials_with_name(name) + raise StandardError, 'name cannot be null' if name.nil? + return FederatedIdentityCredentialsWithNameRequestBuilder.new(@path_parameters, @request_adapter, name) + end + ## ## Get the properties and relationships of an application object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of application @@ -171,12 +180,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Application.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of an application object. + ## Create a new application object if it doesn't exist, or update the properties of an existing application object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of application @@ -187,8 +195,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Application.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -198,13 +205,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -214,19 +222,19 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of an application object. + ## Create a new application object if it doesn't exist, or update the properties of an existing application object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -234,17 +242,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a application_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplicationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the properties and relationships of an application object. diff --git a/lib/applications/item/check_member_groups/check_member_groups.rb b/lib/applications/item/check_member_groups/check_member_groups.rb index 938b908522..98148024fe 100644 --- a/lib/applications/item/check_member_groups/check_member_groups.rb +++ b/lib/applications/item/check_member_groups/check_member_groups.rb @@ -1,2 +1,2 @@ require_relative 'check_member_groups_post_request_body' -require_relative 'check_member_groups_response' +require_relative 'check_member_groups_post_response' diff --git a/lib/applications/item/check_member_groups/check_member_groups_post_request_body.rb b/lib/applications/item/check_member_groups/check_member_groups_post_request_body.rb index 39e524886f..a30e21c86a 100644 --- a/lib/applications/item/check_member_groups/check_member_groups_post_request_body.rb +++ b/lib/applications/item/check_member_groups/check_member_groups_post_request_body.rb @@ -17,22 +17,22 @@ class CheckMemberGroupsPostRequestBody # The groupIds property @group_ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new checkMemberGroupsPostRequestBody and sets the default values. + ## Instantiates a new CheckMemberGroupsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/applications/item/check_member_groups/check_member_groups_post_response.rb b/lib/applications/item/check_member_groups/check_member_groups_post_response.rb new file mode 100644 index 0000000000..874e1173c7 --- /dev/null +++ b/lib/applications/item/check_member_groups/check_member_groups_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../applications' +require_relative '../item' +require_relative './check_member_groups' + +module MicrosoftGraph + module Applications + module Item + module CheckMemberGroups + class CheckMemberGroupsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new CheckMemberGroupsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a check_member_groups_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CheckMemberGroupsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/applications/item/check_member_groups/check_member_groups_request_builder.rb b/lib/applications/item/check_member_groups/check_member_groups_request_builder.rb index b6026177e7..64f62e1de3 100644 --- a/lib/applications/item/check_member_groups/check_member_groups_request_builder.rb +++ b/lib/applications/item/check_member_groups/check_member_groups_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/checkMemberGroups") end ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + ## Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_groups_response + ## @return a Fiber of check_member_groups_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Applications::Item::CheckMemberGroups::CheckMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Applications::Item::CheckMemberGroups::CheckMemberGroupsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + ## Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a check_member_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CheckMemberGroupsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/item/check_member_groups/check_member_groups_response.rb b/lib/applications/item/check_member_groups/check_member_groups_response.rb deleted file mode 100644 index b38c29521c..0000000000 --- a/lib/applications/item/check_member_groups/check_member_groups_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../applications' -require_relative '../item' -require_relative './check_member_groups' - -module MicrosoftGraph - module Applications - module Item - module CheckMemberGroups - class CheckMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/applications/item/check_member_objects/check_member_objects.rb b/lib/applications/item/check_member_objects/check_member_objects.rb index 67fbf971e7..1826285d49 100644 --- a/lib/applications/item/check_member_objects/check_member_objects.rb +++ b/lib/applications/item/check_member_objects/check_member_objects.rb @@ -1,2 +1,2 @@ require_relative 'check_member_objects_post_request_body' -require_relative 'check_member_objects_response' +require_relative 'check_member_objects_post_response' diff --git a/lib/applications/item/check_member_objects/check_member_objects_post_request_body.rb b/lib/applications/item/check_member_objects/check_member_objects_post_request_body.rb index e8c83db13f..5356d095ab 100644 --- a/lib/applications/item/check_member_objects/check_member_objects_post_request_body.rb +++ b/lib/applications/item/check_member_objects/check_member_objects_post_request_body.rb @@ -17,22 +17,22 @@ class CheckMemberObjectsPostRequestBody # The ids property @ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new checkMemberObjectsPostRequestBody and sets the default values. + ## Instantiates a new CheckMemberObjectsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/applications/item/check_member_objects/check_member_objects_post_response.rb b/lib/applications/item/check_member_objects/check_member_objects_post_response.rb new file mode 100644 index 0000000000..bdd7daa4a2 --- /dev/null +++ b/lib/applications/item/check_member_objects/check_member_objects_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../applications' +require_relative '../item' +require_relative './check_member_objects' + +module MicrosoftGraph + module Applications + module Item + module CheckMemberObjects + class CheckMemberObjectsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new CheckMemberObjectsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a check_member_objects_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CheckMemberObjectsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/applications/item/check_member_objects/check_member_objects_request_builder.rb b/lib/applications/item/check_member_objects/check_member_objects_request_builder.rb index 7244f6e072..3b4ed99340 100644 --- a/lib/applications/item/check_member_objects/check_member_objects_request_builder.rb +++ b/lib/applications/item/check_member_objects/check_member_objects_request_builder.rb @@ -26,7 +26,7 @@ def initialize(path_parameters, request_adapter) ## Invoke action checkMemberObjects ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_objects_response + ## @return a Fiber of check_member_objects_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,9 +34,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Applications::Item::CheckMemberObjects::CheckMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Applications::Item::CheckMemberObjects::CheckMemberObjectsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke action checkMemberObjects @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a check_member_objects_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CheckMemberObjectsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/item/check_member_objects/check_member_objects_response.rb b/lib/applications/item/check_member_objects/check_member_objects_response.rb deleted file mode 100644 index e6b325c386..0000000000 --- a/lib/applications/item/check_member_objects/check_member_objects_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../applications' -require_relative '../item' -require_relative './check_member_objects' - -module MicrosoftGraph - module Applications - module Item - module CheckMemberObjects - class CheckMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/applications/item/created_on_behalf_of/created_on_behalf_of_request_builder.rb b/lib/applications/item/created_on_behalf_of/created_on_behalf_of_request_builder.rb index a0e3a37ec4..6f4b98b350 100644 --- a/lib/applications/item/created_on_behalf_of/created_on_behalf_of_request_builder.rb +++ b/lib/applications/item/created_on_behalf_of/created_on_behalf_of_request_builder.rb @@ -21,7 +21,7 @@ class CreatedOnBehalfOfRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestB ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/createdOnBehalfOf{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/createdOnBehalfOf{?%24expand,%24select}") end ## ## Supports $filter (/$count eq 0, /$count ne 0). Read-only. @@ -33,8 +33,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -44,17 +43,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a created_on_behalf_of_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreatedOnBehalfOfRequestBuilder.new(raw_url, @request_adapter) + end ## # Supports $filter (/$count eq 0, /$count ne 0). Read-only. diff --git a/lib/applications/item/extension_properties/count/count_request_builder.rb b/lib/applications/item/extension_properties/count/count_request_builder.rb index 8346176f7e..bc6a0cb65b 100644 --- a/lib/applications/item/extension_properties/count/count_request_builder.rb +++ b/lib/applications/item/extension_properties/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/extensionProperties/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/extensionProperties/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/applications/item/extension_properties/extension_properties_request_builder.rb b/lib/applications/item/extension_properties/extension_properties_request_builder.rb index c7fca0a4e1..ee5ff4f53b 100644 --- a/lib/applications/item/extension_properties/extension_properties_request_builder.rb +++ b/lib/applications/item/extension_properties/extension_properties_request_builder.rb @@ -40,7 +40,7 @@ def by_extension_property_id(extension_property_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/extensionProperties{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/extensionProperties{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve the list of directory extension definitions, represented by extensionProperty objects on an application. @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExtensionPropertyCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,15 +77,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extension_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionPropertiesRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the list of directory extension definitions, represented by extensionProperty objects on an application. diff --git a/lib/applications/item/extension_properties/item/extension_property_item_request_builder.rb b/lib/applications/item/extension_properties/item/extension_property_item_request_builder.rb index 0e60b6cc6f..bbab718b7b 100644 --- a/lib/applications/item/extension_properties/item/extension_property_item_request_builder.rb +++ b/lib/applications/item/extension_properties/item/extension_property_item_request_builder.rb @@ -23,7 +23,7 @@ class ExtensionPropertyItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/extensionProperties/{extensionProperty%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/extensionProperties/{extensionProperty%2Did}{?%24expand,%24select}") end ## ## Delete a directory extension definition represented by an extensionProperty object. You can delete only directory extensions that aren't synced from on-premises active directory (AD). @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extension_property_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionPropertyItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read a directory extension definition represented by an extensionProperty object. diff --git a/lib/applications/item/federated_identity_credentials/count/count_request_builder.rb b/lib/applications/item/federated_identity_credentials/count/count_request_builder.rb index 446197d792..15d75055e3 100644 --- a/lib/applications/item/federated_identity_credentials/count/count_request_builder.rb +++ b/lib/applications/item/federated_identity_credentials/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/applications/item/federated_identity_credentials/federated_identity_credentials_request_builder.rb b/lib/applications/item/federated_identity_credentials/federated_identity_credentials_request_builder.rb index c279723e80..8adb4024f4 100644 --- a/lib/applications/item/federated_identity_credentials/federated_identity_credentials_request_builder.rb +++ b/lib/applications/item/federated_identity_credentials/federated_identity_credentials_request_builder.rb @@ -40,7 +40,7 @@ def by_federated_identity_credential_id(federated_identity_credential_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a list of the federatedIdentityCredential objects and their properties. @@ -52,12 +52,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::FederatedIdentityCredentialCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new federatedIdentityCredential object for an application. By configuring a trust relationship between your Azure AD application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + ## Create a new federatedIdentityCredential object for an application. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of federated_identity_credential @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::FederatedIdentityCredential.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,19 +77,19 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new federatedIdentityCredential object for an application. By configuring a trust relationship between your Azure AD application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + ## Create a new federatedIdentityCredential object for an application. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a federated_identity_credentials_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FederatedIdentityCredentialsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a list of the federatedIdentityCredential objects and their properties. diff --git a/lib/applications/item/federated_identity_credentials/item/federated_identity_credential_item_request_builder.rb b/lib/applications/item/federated_identity_credentials/item/federated_identity_credential_item_request_builder.rb index 6b34c0a8de..5b200936a1 100644 --- a/lib/applications/item/federated_identity_credentials/item/federated_identity_credential_item_request_builder.rb +++ b/lib/applications/item/federated_identity_credentials/item/federated_identity_credential_item_request_builder.rb @@ -23,7 +23,7 @@ class FederatedIdentityCredentialItemRequestBuilder < MicrosoftKiotaAbstractions ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials/{federatedIdentityCredential%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials/{federatedIdentityCredential%2Did}{?%24expand,%24select}") end ## ## Delete a federatedIdentityCredential object from an application. @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,12 +48,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::FederatedIdentityCredential.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of a federatedIdentityCredential object. + ## Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of federated_identity_credential @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::FederatedIdentityCredential.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,19 +90,19 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of a federatedIdentityCredential object. + ## Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a federated_identity_credential_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FederatedIdentityCredentialItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of a federatedIdentityCredential object. diff --git a/lib/invitations/item/invited_user/mailbox_settings/mailbox_settings.rb b/lib/applications/item/federated_identity_credentials_with_name/federated_identity_credentials_with_name.rb similarity index 100% rename from lib/invitations/item/invited_user/mailbox_settings/mailbox_settings.rb rename to lib/applications/item/federated_identity_credentials_with_name/federated_identity_credentials_with_name.rb diff --git a/lib/applications/item/federated_identity_credentials_with_name/federated_identity_credentials_with_name_request_builder.rb b/lib/applications/item/federated_identity_credentials_with_name/federated_identity_credentials_with_name_request_builder.rb new file mode 100644 index 0000000000..7b779c6290 --- /dev/null +++ b/lib/applications/item/federated_identity_credentials_with_name/federated_identity_credentials_with_name_request_builder.rb @@ -0,0 +1,164 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/federated_identity_credential' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../applications' +require_relative '../item' +require_relative './federated_identity_credentials_with_name' + +module MicrosoftGraph + module Applications + module Item + module FederatedIdentityCredentialsWithName + ## + # Provides operations to manage the federatedIdentityCredentials property of the microsoft.graph.application entity. + class FederatedIdentityCredentialsWithNameRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FederatedIdentityCredentialsWithNameRequestBuilder and sets the default values. + ## @param name Alternate key of federatedIdentityCredential + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, name=nil) + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials(name='{name}'){?%24expand,%24select}") + end + ## + ## Delete a federatedIdentityCredential object from an application. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Read the properties and relationships of a federatedIdentityCredential object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of federated_identity_credential + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::FederatedIdentityCredential.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of federated_identity_credential + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::FederatedIdentityCredential.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete a federatedIdentityCredential object from an application. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Read the properties and relationships of a federatedIdentityCredential object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a federated_identity_credentials_with_name_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FederatedIdentityCredentialsWithNameRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Read the properties and relationships of a federatedIdentityCredential object. + class FederatedIdentityCredentialsWithNameRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/applications/item/get_member_groups/get_member_groups.rb b/lib/applications/item/get_member_groups/get_member_groups.rb index 0a25b012ea..9190b99738 100644 --- a/lib/applications/item/get_member_groups/get_member_groups.rb +++ b/lib/applications/item/get_member_groups/get_member_groups.rb @@ -1,2 +1,2 @@ require_relative 'get_member_groups_post_request_body' -require_relative 'get_member_groups_response' +require_relative 'get_member_groups_post_response' diff --git a/lib/applications/item/get_member_groups/get_member_groups_post_request_body.rb b/lib/applications/item/get_member_groups/get_member_groups_post_request_body.rb index b6d20c734d..b7e7e5e863 100644 --- a/lib/applications/item/get_member_groups/get_member_groups_post_request_body.rb +++ b/lib/applications/item/get_member_groups/get_member_groups_post_request_body.rb @@ -17,22 +17,22 @@ class GetMemberGroupsPostRequestBody # The securityEnabledOnly property @security_enabled_only ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getMemberGroupsPostRequestBody and sets the default values. + ## Instantiates a new GetMemberGroupsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/applications/item/get_member_groups/get_member_groups_post_response.rb b/lib/applications/item/get_member_groups/get_member_groups_post_response.rb new file mode 100644 index 0000000000..b8a9fc48cb --- /dev/null +++ b/lib/applications/item/get_member_groups/get_member_groups_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../applications' +require_relative '../item' +require_relative './get_member_groups' + +module MicrosoftGraph + module Applications + module Item + module GetMemberGroups + class GetMemberGroupsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetMemberGroupsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_member_groups_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetMemberGroupsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/applications/item/get_member_groups/get_member_groups_request_builder.rb b/lib/applications/item/get_member_groups/get_member_groups_request_builder.rb index be6feaf0ff..999b784698 100644 --- a/lib/applications/item/get_member_groups/get_member_groups_request_builder.rb +++ b/lib/applications/item/get_member_groups/get_member_groups_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/getMemberGroups") end ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. + ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_groups_response + ## @return a Fiber of get_member_groups_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Applications::Item::GetMemberGroups::GetMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Applications::Item::GetMemberGroups::GetMemberGroupsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. + ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_member_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetMemberGroupsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/item/get_member_groups/get_member_groups_response.rb b/lib/applications/item/get_member_groups/get_member_groups_response.rb deleted file mode 100644 index f6ee31caf9..0000000000 --- a/lib/applications/item/get_member_groups/get_member_groups_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../applications' -require_relative '../item' -require_relative './get_member_groups' - -module MicrosoftGraph - module Applications - module Item - module GetMemberGroups - class GetMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/applications/item/get_member_objects/get_member_objects.rb b/lib/applications/item/get_member_objects/get_member_objects.rb index 40edad6b9e..f7a486b0f9 100644 --- a/lib/applications/item/get_member_objects/get_member_objects.rb +++ b/lib/applications/item/get_member_objects/get_member_objects.rb @@ -1,2 +1,2 @@ require_relative 'get_member_objects_post_request_body' -require_relative 'get_member_objects_response' +require_relative 'get_member_objects_post_response' diff --git a/lib/applications/item/get_member_objects/get_member_objects_post_request_body.rb b/lib/applications/item/get_member_objects/get_member_objects_post_request_body.rb index 97b1f5e86f..69576268c6 100644 --- a/lib/applications/item/get_member_objects/get_member_objects_post_request_body.rb +++ b/lib/applications/item/get_member_objects/get_member_objects_post_request_body.rb @@ -17,22 +17,22 @@ class GetMemberObjectsPostRequestBody # The securityEnabledOnly property @security_enabled_only ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getMemberObjectsPostRequestBody and sets the default values. + ## Instantiates a new GetMemberObjectsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/applications/item/get_member_objects/get_member_objects_post_response.rb b/lib/applications/item/get_member_objects/get_member_objects_post_response.rb new file mode 100644 index 0000000000..8251ae3162 --- /dev/null +++ b/lib/applications/item/get_member_objects/get_member_objects_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../applications' +require_relative '../item' +require_relative './get_member_objects' + +module MicrosoftGraph + module Applications + module Item + module GetMemberObjects + class GetMemberObjectsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetMemberObjectsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_member_objects_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetMemberObjectsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/applications/item/get_member_objects/get_member_objects_request_builder.rb b/lib/applications/item/get_member_objects/get_member_objects_request_builder.rb index 4e48ffae4c..2e54f76673 100644 --- a/lib/applications/item/get_member_objects/get_member_objects_request_builder.rb +++ b/lib/applications/item/get_member_objects/get_member_objects_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/getMemberObjects") end ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + ## Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_objects_response + ## @return a Fiber of get_member_objects_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Applications::Item::GetMemberObjects::GetMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Applications::Item::GetMemberObjects::GetMemberObjectsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + ## Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_member_objects_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetMemberObjectsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/item/get_member_objects/get_member_objects_response.rb b/lib/applications/item/get_member_objects/get_member_objects_response.rb deleted file mode 100644 index 06241de551..0000000000 --- a/lib/applications/item/get_member_objects/get_member_objects_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../applications' -require_relative '../item' -require_relative './get_member_objects' - -module MicrosoftGraph - module Applications - module Item - module GetMemberObjects - class GetMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/applications/item/home_realm_discovery_policies/count/count_request_builder.rb b/lib/applications/item/home_realm_discovery_policies/count/count_request_builder.rb index 5879c12c7a..40f118d13a 100644 --- a/lib/applications/item/home_realm_discovery_policies/count/count_request_builder.rb +++ b/lib/applications/item/home_realm_discovery_policies/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/homeRealmDiscoveryPolicies/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/homeRealmDiscoveryPolicies/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/applications/item/home_realm_discovery_policies/home_realm_discovery_policies_request_builder.rb b/lib/applications/item/home_realm_discovery_policies/home_realm_discovery_policies_request_builder.rb index 3b9ccf7b58..ebc4b71a5f 100644 --- a/lib/applications/item/home_realm_discovery_policies/home_realm_discovery_policies_request_builder.rb +++ b/lib/applications/item/home_realm_discovery_policies/home_realm_discovery_policies_request_builder.rb @@ -39,7 +39,7 @@ def by_home_realm_discovery_policy_id(home_realm_discovery_policy_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/homeRealmDiscoveryPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/homeRealmDiscoveryPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get homeRealmDiscoveryPolicies from applications @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::HomeRealmDiscoveryPolicyCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a home_realm_discovery_policies_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HomeRealmDiscoveryPoliciesRequestBuilder.new(raw_url, @request_adapter) + end ## # Get homeRealmDiscoveryPolicies from applications diff --git a/lib/applications/item/home_realm_discovery_policies/item/home_realm_discovery_policy_item_request_builder.rb b/lib/applications/item/home_realm_discovery_policies/item/home_realm_discovery_policy_item_request_builder.rb index ee2d746e1a..52de1e6fff 100644 --- a/lib/applications/item/home_realm_discovery_policies/item/home_realm_discovery_policy_item_request_builder.rb +++ b/lib/applications/item/home_realm_discovery_policies/item/home_realm_discovery_policy_item_request_builder.rb @@ -23,7 +23,7 @@ class HomeRealmDiscoveryPolicyItemRequestBuilder < MicrosoftKiotaAbstractions::B ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/homeRealmDiscoveryPolicies/{homeRealmDiscoveryPolicy%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/homeRealmDiscoveryPolicies/{homeRealmDiscoveryPolicy%2Did}{?%24expand,%24select}") end ## ## Get homeRealmDiscoveryPolicies from applications @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::HomeRealmDiscoveryPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,17 +45,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a home_realm_discovery_policy_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HomeRealmDiscoveryPolicyItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get homeRealmDiscoveryPolicies from applications diff --git a/lib/applications/item/logo/logo_request_builder.rb b/lib/applications/item/logo/logo_request_builder.rb index c863f875f1..32774b90ab 100644 --- a/lib/applications/item/logo/logo_request_builder.rb +++ b/lib/applications/item/logo/logo_request_builder.rb @@ -25,6 +25,19 @@ def initialize(path_parameters, request_adapter) ## ## The main logo for the application. Not nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The main logo for the application. Not nullable. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## def get(request_configuration=nil) @@ -32,8 +45,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -48,8 +60,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -57,15 +68,33 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The main logo for the application. Not nullable. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -77,16 +106,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a logo_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LogoRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/item/owners/count/count_request_builder.rb b/lib/applications/item/owners/count/count_request_builder.rb index 3081760675..14610c55d9 100644 --- a/lib/applications/item/owners/count/count_request_builder.rb +++ b/lib/applications/item/owners/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/applications/item/owners/graph_app_role_assignment/count/count_request_builder.rb b/lib/applications/item/owners/graph_app_role_assignment/count/count_request_builder.rb index 1b5ad90d14..6d7ea2c959 100644 --- a/lib/applications/item/owners/graph_app_role_assignment/count/count_request_builder.rb +++ b/lib/applications/item/owners/graph_app_role_assignment/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/graph.appRoleAssignment/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/graph.appRoleAssignment/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/applications/item/owners/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb b/lib/applications/item/owners/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb index 6008f699c7..2aff686e08 100644 --- a/lib/applications/item/owners/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb +++ b/lib/applications/item/owners/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/graph.appRoleAssignment{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/graph.appRoleAssignment{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.appRoleAssignment in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppRoleAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_app_role_assignment_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAppRoleAssignmentRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.appRoleAssignment in the microsoft.graph.directoryObject collection diff --git a/lib/applications/item/owners/graph_endpoint/count/count_request_builder.rb b/lib/applications/item/owners/graph_endpoint/count/count_request_builder.rb index c29b81f833..8655def82b 100644 --- a/lib/applications/item/owners/graph_endpoint/count/count_request_builder.rb +++ b/lib/applications/item/owners/graph_endpoint/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/graph.endpoint/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/graph.endpoint/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/applications/item/owners/graph_endpoint/graph_endpoint_request_builder.rb b/lib/applications/item/owners/graph_endpoint/graph_endpoint_request_builder.rb index ff42bf7241..75bf27ae76 100644 --- a/lib/applications/item/owners/graph_endpoint/graph_endpoint_request_builder.rb +++ b/lib/applications/item/owners/graph_endpoint/graph_endpoint_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/graph.endpoint{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/graph.endpoint{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.endpoint in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EndpointCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_endpoint_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphEndpointRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.endpoint in the microsoft.graph.directoryObject collection diff --git a/lib/applications/item/owners/graph_service_principal/count/count_request_builder.rb b/lib/applications/item/owners/graph_service_principal/count/count_request_builder.rb index a20bd13c9f..ade69eff41 100644 --- a/lib/applications/item/owners/graph_service_principal/count/count_request_builder.rb +++ b/lib/applications/item/owners/graph_service_principal/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/graph.servicePrincipal/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/graph.servicePrincipal/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/applications/item/owners/graph_service_principal/graph_service_principal_request_builder.rb b/lib/applications/item/owners/graph_service_principal/graph_service_principal_request_builder.rb index fe483c3dbf..e8e0838551 100644 --- a/lib/applications/item/owners/graph_service_principal/graph_service_principal_request_builder.rb +++ b/lib/applications/item/owners/graph_service_principal/graph_service_principal_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/graph.servicePrincipal{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/graph.servicePrincipal{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServicePrincipalCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_service_principal_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphServicePrincipalRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection diff --git a/lib/applications/item/owners/graph_user/count/count_request_builder.rb b/lib/applications/item/owners/graph_user/count/count_request_builder.rb index 55ba6a2088..c491c1e96b 100644 --- a/lib/applications/item/owners/graph_user/count/count_request_builder.rb +++ b/lib/applications/item/owners/graph_user/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/graph.user/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/graph.user/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/applications/item/owners/graph_user/graph_user_request_builder.rb b/lib/applications/item/owners/graph_user/graph_user_request_builder.rb index 0480310489..ac0fdec414 100644 --- a/lib/applications/item/owners/graph_user/graph_user_request_builder.rb +++ b/lib/applications/item/owners/graph_user/graph_user_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/graph.user{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/graph.user{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection diff --git a/lib/applications/item/owners/item/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb b/lib/applications/item/owners/item/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb index c8d3f0530e..25420a4490 100644 --- a/lib/applications/item/owners/item/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb +++ b/lib/applications/item/owners/item/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb @@ -25,7 +25,7 @@ class GraphAppRoleAssignmentRequestBuilder < MicrosoftKiotaAbstractions::BaseReq ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/graph.appRoleAssignment{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/graph.appRoleAssignment{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.appRoleAssignment @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppRoleAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_app_role_assignment_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAppRoleAssignmentRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.appRoleAssignment diff --git a/lib/applications/item/owners/item/graph_endpoint/graph_endpoint_request_builder.rb b/lib/applications/item/owners/item/graph_endpoint/graph_endpoint_request_builder.rb index 8846096ade..881502f7d2 100644 --- a/lib/applications/item/owners/item/graph_endpoint/graph_endpoint_request_builder.rb +++ b/lib/applications/item/owners/item/graph_endpoint/graph_endpoint_request_builder.rb @@ -25,7 +25,7 @@ class GraphEndpointRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/graph.endpoint{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/graph.endpoint{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Endpoint.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_endpoint_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphEndpointRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint diff --git a/lib/applications/item/owners/item/graph_service_principal/graph_service_principal_request_builder.rb b/lib/applications/item/owners/item/graph_service_principal/graph_service_principal_request_builder.rb index d64cdf2bf5..6468ea7736 100644 --- a/lib/applications/item/owners/item/graph_service_principal/graph_service_principal_request_builder.rb +++ b/lib/applications/item/owners/item/graph_service_principal/graph_service_principal_request_builder.rb @@ -25,7 +25,7 @@ class GraphServicePrincipalRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/graph.servicePrincipal{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/graph.servicePrincipal{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServicePrincipal.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_service_principal_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphServicePrincipalRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal diff --git a/lib/applications/item/owners/item/graph_user/graph_user_request_builder.rb b/lib/applications/item/owners/item/graph_user/graph_user_request_builder.rb index 0b0c42e552..c20b053b73 100644 --- a/lib/applications/item/owners/item/graph_user/graph_user_request_builder.rb +++ b/lib/applications/item/owners/item/graph_user/graph_user_request_builder.rb @@ -25,7 +25,7 @@ class GraphUserRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/graph.user{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/graph.user{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.user @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.user diff --git a/lib/applications/item/owners/item/ref/ref_request_builder.rb b/lib/applications/item/owners/item/ref/ref_request_builder.rb index c5dd67297f..1ce3aa60f8 100644 --- a/lib/applications/item/owners/item/ref/ref_request_builder.rb +++ b/lib/applications/item/owners/item/ref/ref_request_builder.rb @@ -24,7 +24,7 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/$ref") end ## ## Remove an owner from an application. As a recommended best practice, apps should have at least two owners. @@ -36,8 +36,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,38 +46,24 @@ def delete(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Remove an owner from an application. As a recommended best practice, apps should have at least two owners. - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/applications/item/owners/owners_request_builder.rb b/lib/applications/item/owners/owners_request_builder.rb index 77d0b4b34b..3439c3a6be 100644 --- a/lib/applications/item/owners/owners_request_builder.rb +++ b/lib/applications/item/owners/owners_request_builder.rb @@ -53,7 +53,7 @@ def ref() end ## ## Gets an item from the MicrosoftGraph.applications.item.owners.item collection - ## @param directory_object_id Unique identifier of the item + ## @param directory_object_id The unique identifier of directoryObject ## @return a directory_object_item_request_builder ## def by_directory_object_id(directory_object_id) @@ -69,10 +69,10 @@ def by_directory_object_id(directory_object_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Directory objects that are owners of the application. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. + ## Retrieve a list of owners for an application that are directoryObject types. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object_collection_response ## @@ -81,31 +81,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Directory objects that are owners of the application. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. + ## Retrieve a list of owners for an application that are directoryObject types. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a owners_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OwnersRequestBuilder.new(raw_url, @request_adapter) + end ## - # Directory objects that are owners of the application. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. + # Retrieve a list of owners for an application that are directoryObject types. class OwnersRequestBuilderGetQueryParameters ## diff --git a/lib/applications/item/owners/ref/ref_request_builder.rb b/lib/applications/item/owners/ref/ref_request_builder.rb index fae7573514..263c6acb36 100644 --- a/lib/applications/item/owners/ref/ref_request_builder.rb +++ b/lib/applications/item/owners/ref/ref_request_builder.rb @@ -24,10 +24,23 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/owners/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") end ## - ## Directory objects that are owners of the application. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. + ## Remove an owner from an application. As a recommended best practice, apps should have at least two owners. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Retrieve a list of owners for an application that are directoryObject types. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of string_collection_response ## @@ -36,12 +49,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Add an owner to an application by posting to the owners collection. + ## Add an owner to an application. Currently, only individual users are supported as owners of applications. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -52,30 +64,47 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Directory objects that are owners of the application. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. + ## Remove an owner from an application. As a recommended best practice, apps should have at least two owners. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/applications/{application%2Did}/owners/$ref?@id={%40id}' request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Retrieve a list of owners for an application that are directoryObject types. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/applications/{application%2Did}/owners/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Add an owner to an application by posting to the owners collection. + ## Add an owner to an application. Currently, only individual users are supported as owners of applications. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -83,19 +112,52 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/applications/{application%2Did}/owners/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Remove an owner from an application. As a recommended best practice, apps should have at least two owners. + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end ## - # Directory objects that are owners of the application. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. + # Retrieve a list of owners for an application that are directoryObject types. class RefRequestBuilderGetQueryParameters ## diff --git a/lib/applications/item/remove_key/remove_key_post_request_body.rb b/lib/applications/item/remove_key/remove_key_post_request_body.rb index c6abd4fb02..fd88f20ea0 100644 --- a/lib/applications/item/remove_key/remove_key_post_request_body.rb +++ b/lib/applications/item/remove_key/remove_key_post_request_body.rb @@ -20,22 +20,22 @@ class RemoveKeyPostRequestBody # The proof property @proof ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new removeKeyPostRequestBody and sets the default values. + ## Instantiates a new RemoveKeyPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/applications/item/remove_key/remove_key_request_builder.rb b/lib/applications/item/remove_key/remove_key_request_builder.rb index d3300506e8..6626fa5d63 100644 --- a/lib/applications/item/remove_key/remove_key_request_builder.rb +++ b/lib/applications/item/remove_key/remove_key_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a remove_key_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RemoveKeyRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/item/remove_password/remove_password_post_request_body.rb b/lib/applications/item/remove_password/remove_password_post_request_body.rb index 5565d56678..69d284850a 100644 --- a/lib/applications/item/remove_password/remove_password_post_request_body.rb +++ b/lib/applications/item/remove_password/remove_password_post_request_body.rb @@ -17,22 +17,22 @@ class RemovePasswordPostRequestBody # The keyId property @key_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new removePasswordPostRequestBody and sets the default values. + ## Instantiates a new RemovePasswordPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/applications/item/remove_password/remove_password_request_builder.rb b/lib/applications/item/remove_password/remove_password_request_builder.rb index e85dff5522..5b90f4cfe5 100644 --- a/lib/applications/item/remove_password/remove_password_request_builder.rb +++ b/lib/applications/item/remove_password/remove_password_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a remove_password_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RemovePasswordRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/item/restore/restore_request_builder.rb b/lib/applications/item/restore/restore_request_builder.rb index 8f9cf11b5f..01b976242a 100644 --- a/lib/applications/item/restore/restore_request_builder.rb +++ b/lib/applications/item/restore/restore_request_builder.rb @@ -24,7 +24,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/restore") end ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object ## @@ -33,27 +33,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a restore_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RestoreRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/item/set_verified_publisher/set_verified_publisher_post_request_body.rb b/lib/applications/item/set_verified_publisher/set_verified_publisher_post_request_body.rb index 43a660c33e..ed96ac58c3 100644 --- a/lib/applications/item/set_verified_publisher/set_verified_publisher_post_request_body.rb +++ b/lib/applications/item/set_verified_publisher/set_verified_publisher_post_request_body.rb @@ -17,22 +17,22 @@ class SetVerifiedPublisherPostRequestBody # The verifiedPublisherId property @verified_publisher_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new setVerifiedPublisherPostRequestBody and sets the default values. + ## Instantiates a new SetVerifiedPublisherPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/applications/item/set_verified_publisher/set_verified_publisher_request_builder.rb b/lib/applications/item/set_verified_publisher/set_verified_publisher_request_builder.rb index 89af25803a..808279152c 100644 --- a/lib/applications/item/set_verified_publisher/set_verified_publisher_request_builder.rb +++ b/lib/applications/item/set_verified_publisher/set_verified_publisher_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_verified_publisher_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetVerifiedPublisherRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/item/synchronization/acquire_access_token/acquire_access_token_post_request_body.rb b/lib/applications/item/synchronization/acquire_access_token/acquire_access_token_post_request_body.rb index 9d9fc433cc..db0210dd3d 100644 --- a/lib/applications/item/synchronization/acquire_access_token/acquire_access_token_post_request_body.rb +++ b/lib/applications/item/synchronization/acquire_access_token/acquire_access_token_post_request_body.rb @@ -20,22 +20,22 @@ class AcquireAccessTokenPostRequestBody # The credentials property @credentials ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new acquireAccessTokenPostRequestBody and sets the default values. + ## Instantiates a new AcquireAccessTokenPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/applications/item/synchronization/acquire_access_token/acquire_access_token_request_builder.rb b/lib/applications/item/synchronization/acquire_access_token/acquire_access_token_request_builder.rb index a7ea17d590..36bd071e7e 100644 --- a/lib/applications/item/synchronization/acquire_access_token/acquire_access_token_request_builder.rb +++ b/lib/applications/item/synchronization/acquire_access_token/acquire_access_token_request_builder.rb @@ -25,7 +25,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/acquireAccessToken") end ## - ## Acquire an OAuth access token to authorize the Azure AD provisioning service to provision users into an application. + ## Acquire an OAuth access token to authorize the Microsoft Entra provisioning service to provision users into an application. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -36,12 +36,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Acquire an OAuth access token to authorize the Azure AD provisioning service to provision users into an application. + ## Acquire an OAuth access token to authorize the Microsoft Entra provisioning service to provision users into an application. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a acquire_access_token_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AcquireAccessTokenRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/item/synchronization/jobs/count/count_request_builder.rb b/lib/applications/item/synchronization/jobs/count/count_request_builder.rb index 3455e85182..ae3f3661a0 100644 --- a/lib/applications/item/synchronization/jobs/count/count_request_builder.rb +++ b/lib/applications/item/synchronization/jobs/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/me/activities/activities.rb b/lib/applications/item/synchronization/jobs/item/bulk_upload/bulk_upload.rb similarity index 100% rename from lib/me/activities/activities.rb rename to lib/applications/item/synchronization/jobs/item/bulk_upload/bulk_upload.rb diff --git a/lib/applications/item/synchronization/jobs/item/bulk_upload/bulk_upload_request_builder.rb b/lib/applications/item/synchronization/jobs/item/bulk_upload/bulk_upload_request_builder.rb new file mode 100644 index 0000000000..561717a0c4 --- /dev/null +++ b/lib/applications/item/synchronization/jobs/item/bulk_upload/bulk_upload_request_builder.rb @@ -0,0 +1,178 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/bulk_upload' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../applications' +require_relative '../../../../item' +require_relative '../../../synchronization' +require_relative '../../jobs' +require_relative '../item' +require_relative './bulk_upload' +require_relative './value/content_request_builder' + +module MicrosoftGraph + module Applications + module Item + module Synchronization + module Jobs + module Item + module BulkUpload + ## + # Provides operations to manage the bulkUpload property of the microsoft.graph.synchronizationJob entity. + class BulkUploadRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the media for the application entity. + def content() + return MicrosoftGraph::Applications::Item::Synchronization::Jobs::Item::BulkUpload::Value::ContentRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new BulkUploadRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/bulkUpload{?%24expand,%24select}") + end + ## + ## Delete navigation property bulkUpload for applications + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The bulk upload operation for the job. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of bulk_upload + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BulkUpload.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property bulkUpload in applications + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of bulk_upload + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BulkUpload.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property bulkUpload for applications + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The bulk upload operation for the job. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property bulkUpload in applications + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bulk_upload_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BulkUploadRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The bulk upload operation for the job. + class BulkUploadRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/applications/item/synchronization/jobs/item/bulk_upload/value/content_request_builder.rb b/lib/applications/item/synchronization/jobs/item/bulk_upload/value/content_request_builder.rb new file mode 100644 index 0000000000..bc47cfca15 --- /dev/null +++ b/lib/applications/item/synchronization/jobs/item/bulk_upload/value/content_request_builder.rb @@ -0,0 +1,145 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../applications' +require_relative '../../../../../item' +require_relative '../../../../synchronization' +require_relative '../../../jobs' +require_relative '../../item' +require_relative '../bulk_upload' +require_relative './value' + +module MicrosoftGraph + module Applications + module Item + module Synchronization + module Jobs + module Item + module BulkUpload + module Value + ## + # Provides operations to manage the media for the application entity. + class ContentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ContentRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/bulkUpload/$value") + end + ## + ## The bulk upload operation for the job. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The bulk upload operation for the job. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of binary + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, Binary, error_mapping) + end + ## + ## The bulk upload operation for the job. + ## @param body Binary request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of binary + ## + def put(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_put_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, Binary, error_mapping) + end + ## + ## The bulk upload operation for the job. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The bulk upload operation for the job. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') + return request_info + end + ## + ## The bulk upload operation for the job. + ## @param body Binary request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_put_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/activities/count/count.rb b/lib/applications/item/synchronization/jobs/item/bulk_upload/value/value.rb similarity index 100% rename from lib/me/activities/count/count.rb rename to lib/applications/item/synchronization/jobs/item/bulk_upload/value/value.rb diff --git a/lib/applications/item/synchronization/jobs/item/pause/pause_request_builder.rb b/lib/applications/item/synchronization/jobs/item/pause/pause_request_builder.rb index ac11fee685..4105628a8a 100644 --- a/lib/applications/item/synchronization/jobs/item/pause/pause_request_builder.rb +++ b/lib/applications/item/synchronization/jobs/item/pause/pause_request_builder.rb @@ -38,8 +38,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,15 +48,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a pause_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PauseRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/item/synchronization/jobs/item/provision_on_demand/provision_on_demand_post_request_body.rb b/lib/applications/item/synchronization/jobs/item/provision_on_demand/provision_on_demand_post_request_body.rb index d5a6f2e9ee..43abc0279f 100644 --- a/lib/applications/item/synchronization/jobs/item/provision_on_demand/provision_on_demand_post_request_body.rb +++ b/lib/applications/item/synchronization/jobs/item/provision_on_demand/provision_on_demand_post_request_body.rb @@ -24,22 +24,22 @@ class ProvisionOnDemandPostRequestBody # The parameters property @parameters ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new provisionOnDemandPostRequestBody and sets the default values. + ## Instantiates a new ProvisionOnDemandPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/applications/item/synchronization/jobs/item/provision_on_demand/provision_on_demand_request_builder.rb b/lib/applications/item/synchronization/jobs/item/provision_on_demand/provision_on_demand_request_builder.rb index baae208dc4..4653065da4 100644 --- a/lib/applications/item/synchronization/jobs/item/provision_on_demand/provision_on_demand_request_builder.rb +++ b/lib/applications/item/synchronization/jobs/item/provision_on_demand/provision_on_demand_request_builder.rb @@ -30,7 +30,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/provisionOnDemand") end ## - ## Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds. + ## Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of string_key_string_value_pair @@ -41,12 +41,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringKeyStringValuePair.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds. + ## Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -54,17 +53,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a provision_on_demand_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ProvisionOnDemandRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/item/synchronization/jobs/item/restart/restart_post_request_body.rb b/lib/applications/item/synchronization/jobs/item/restart/restart_post_request_body.rb index cfdc7b33ba..2715e1e150 100644 --- a/lib/applications/item/synchronization/jobs/item/restart/restart_post_request_body.rb +++ b/lib/applications/item/synchronization/jobs/item/restart/restart_post_request_body.rb @@ -24,22 +24,22 @@ class RestartPostRequestBody # The criteria property @criteria ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new restartPostRequestBody and sets the default values. + ## Instantiates a new RestartPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/applications/item/synchronization/jobs/item/restart/restart_request_builder.rb b/lib/applications/item/synchronization/jobs/item/restart/restart_request_builder.rb index 297d79c346..dbb3baed15 100644 --- a/lib/applications/item/synchronization/jobs/item/restart/restart_request_builder.rb +++ b/lib/applications/item/synchronization/jobs/item/restart/restart_request_builder.rb @@ -40,8 +40,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,16 +52,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a restart_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RestartRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/item/synchronization/jobs/item/schema/directories/count/count_request_builder.rb b/lib/applications/item/synchronization/jobs/item/schema/directories/count/count_request_builder.rb index 7d357a0ff1..032663a03d 100644 --- a/lib/applications/item/synchronization/jobs/item/schema/directories/count/count_request_builder.rb +++ b/lib/applications/item/synchronization/jobs/item/schema/directories/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/directories/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/directories/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/applications/item/synchronization/jobs/item/schema/directories/directories_request_builder.rb b/lib/applications/item/synchronization/jobs/item/schema/directories/directories_request_builder.rb index 90bf949c1a..5e0da97cec 100644 --- a/lib/applications/item/synchronization/jobs/item/schema/directories/directories_request_builder.rb +++ b/lib/applications/item/synchronization/jobs/item/schema/directories/directories_request_builder.rb @@ -48,7 +48,7 @@ def by_directory_definition_id(directory_definition_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/directories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/directories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Contains the collection of directories and all of their objects. @@ -60,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryDefinitionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,8 +75,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,15 +85,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -107,17 +105,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoriesRequestBuilder.new(raw_url, @request_adapter) + end ## # Contains the collection of directories and all of their objects. diff --git a/lib/applications/item/synchronization/jobs/item/schema/directories/item/directory_definition_item_request_builder.rb b/lib/applications/item/synchronization/jobs/item/schema/directories/item/directory_definition_item_request_builder.rb index 359d2e0497..dc2c282b1e 100644 --- a/lib/applications/item/synchronization/jobs/item/schema/directories/item/directory_definition_item_request_builder.rb +++ b/lib/applications/item/synchronization/jobs/item/schema/directories/item/directory_definition_item_request_builder.rb @@ -37,7 +37,7 @@ def discover() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/directories/{directoryDefinition%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/directories/{directoryDefinition%2Did}{?%24expand,%24select}") end ## ## Delete navigation property directories for applications @@ -49,8 +49,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,8 +77,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,13 +87,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -106,15 +104,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,17 +124,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directory_definition_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoryDefinitionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Contains the collection of directories and all of their objects. diff --git a/lib/applications/item/synchronization/jobs/item/schema/directories/item/discover/discover_request_builder.rb b/lib/applications/item/synchronization/jobs/item/schema/directories/item/discover/discover_request_builder.rb index b40161aef6..1cdf78ca87 100644 --- a/lib/applications/item/synchronization/jobs/item/schema/directories/item/discover/discover_request_builder.rb +++ b/lib/applications/item/synchronization/jobs/item/schema/directories/item/discover/discover_request_builder.rb @@ -45,8 +45,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,16 +55,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a discover_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DiscoverRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/item/synchronization/jobs/item/schema/filter_operators/filter_operators.rb b/lib/applications/item/synchronization/jobs/item/schema/filter_operators/filter_operators.rb index 6c8bfb6bb1..fd838a4112 100644 --- a/lib/applications/item/synchronization/jobs/item/schema/filter_operators/filter_operators.rb +++ b/lib/applications/item/synchronization/jobs/item/schema/filter_operators/filter_operators.rb @@ -1 +1 @@ -require_relative 'filter_operators_response' +require_relative 'filter_operators_get_response' diff --git a/lib/applications/item/synchronization/jobs/item/schema/filter_operators/filter_operators_get_response.rb b/lib/applications/item/synchronization/jobs/item/schema/filter_operators/filter_operators_get_response.rb new file mode 100644 index 0000000000..79f8487726 --- /dev/null +++ b/lib/applications/item/synchronization/jobs/item/schema/filter_operators/filter_operators_get_response.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../../models/filter_operator_schema' +require_relative '../../../../../../applications' +require_relative '../../../../../item' +require_relative '../../../../synchronization' +require_relative '../../../jobs' +require_relative '../../item' +require_relative '../schema' +require_relative './filter_operators' + +module MicrosoftGraph + module Applications + module Item + module Synchronization + module Jobs + module Item + module Schema + module FilterOperators + class FilterOperatorsGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new FilterOperatorsGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a filter_operators_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return FilterOperatorsGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::FilterOperatorSchema.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a filter_operator_schema + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/applications/item/synchronization/jobs/item/schema/filter_operators/filter_operators_request_builder.rb b/lib/applications/item/synchronization/jobs/item/schema/filter_operators/filter_operators_request_builder.rb index 26adb85692..8fc399c23a 100644 --- a/lib/applications/item/synchronization/jobs/item/schema/filter_operators/filter_operators_request_builder.rb +++ b/lib/applications/item/synchronization/jobs/item/schema/filter_operators/filter_operators_request_builder.rb @@ -28,49 +28,60 @@ class FilterOperatorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/filterOperators(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/filterOperators(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function filterOperators + ## List all operators supported in the scoping filters. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of filter_operators_response + ## @return a Fiber of filter_operators_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Applications::Item::Synchronization::Jobs::Item::Schema::FilterOperators::FilterOperatorsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Applications::Item::Synchronization::Jobs::Item::Schema::FilterOperators::FilterOperatorsGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function filterOperators + ## List all operators supported in the scoping filters. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a filter_operators_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilterOperatorsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function filterOperators + # List all operators supported in the scoping filters. class FilterOperatorsRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -98,6 +109,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/applications/item/synchronization/jobs/item/schema/filter_operators/filter_operators_response.rb b/lib/applications/item/synchronization/jobs/item/schema/filter_operators/filter_operators_response.rb deleted file mode 100644 index 534deee72b..0000000000 --- a/lib/applications/item/synchronization/jobs/item/schema/filter_operators/filter_operators_response.rb +++ /dev/null @@ -1,84 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../../../models/filter_operator_schema' -require_relative '../../../../../../applications' -require_relative '../../../../../item' -require_relative '../../../../synchronization' -require_relative '../../../jobs' -require_relative '../../item' -require_relative '../schema' -require_relative './filter_operators' - -module MicrosoftGraph - module Applications - module Item - module Synchronization - module Jobs - module Item - module Schema - module FilterOperators - class FilterOperatorsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new filterOperatorsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a filter_operators_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return FilterOperatorsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::FilterOperatorSchema.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a filter_operator_schema - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end -end diff --git a/lib/applications/item/synchronization/jobs/item/schema/functions/functions.rb b/lib/applications/item/synchronization/jobs/item/schema/functions/functions.rb index 83e3ceed1d..f3acee0863 100644 --- a/lib/applications/item/synchronization/jobs/item/schema/functions/functions.rb +++ b/lib/applications/item/synchronization/jobs/item/schema/functions/functions.rb @@ -1 +1 @@ -require_relative 'functions_response' +require_relative 'functions_get_response' diff --git a/lib/applications/item/synchronization/jobs/item/schema/functions/functions_get_response.rb b/lib/applications/item/synchronization/jobs/item/schema/functions/functions_get_response.rb new file mode 100644 index 0000000000..410e62d22f --- /dev/null +++ b/lib/applications/item/synchronization/jobs/item/schema/functions/functions_get_response.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/attribute_mapping_function_schema' +require_relative '../../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../applications' +require_relative '../../../../../item' +require_relative '../../../../synchronization' +require_relative '../../../jobs' +require_relative '../../item' +require_relative '../schema' +require_relative './functions' + +module MicrosoftGraph + module Applications + module Item + module Synchronization + module Jobs + module Item + module Schema + module Functions + class FunctionsGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new FunctionsGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a functions_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return FunctionsGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AttributeMappingFunctionSchema.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a attribute_mapping_function_schema + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/applications/item/synchronization/jobs/item/schema/functions/functions_request_builder.rb b/lib/applications/item/synchronization/jobs/item/schema/functions/functions_request_builder.rb index da84da96d0..ad3ba548d6 100644 --- a/lib/applications/item/synchronization/jobs/item/schema/functions/functions_request_builder.rb +++ b/lib/applications/item/synchronization/jobs/item/schema/functions/functions_request_builder.rb @@ -28,49 +28,60 @@ class FunctionsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/functions(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/functions(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function functions + ## List all the functions currently supported in the attributeMappingSource. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of functions_response + ## @return a Fiber of functions_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Applications::Item::Synchronization::Jobs::Item::Schema::Functions::FunctionsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Applications::Item::Synchronization::Jobs::Item::Schema::Functions::FunctionsGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function functions + ## List all the functions currently supported in the attributeMappingSource. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a functions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FunctionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function functions + # List all the functions currently supported in the attributeMappingSource. class FunctionsRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -98,6 +109,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/applications/item/synchronization/jobs/item/schema/functions/functions_response.rb b/lib/applications/item/synchronization/jobs/item/schema/functions/functions_response.rb deleted file mode 100644 index f76cdedcc5..0000000000 --- a/lib/applications/item/synchronization/jobs/item/schema/functions/functions_response.rb +++ /dev/null @@ -1,84 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/attribute_mapping_function_schema' -require_relative '../../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../../applications' -require_relative '../../../../../item' -require_relative '../../../../synchronization' -require_relative '../../../jobs' -require_relative '../../item' -require_relative '../schema' -require_relative './functions' - -module MicrosoftGraph - module Applications - module Item - module Synchronization - module Jobs - module Item - module Schema - module Functions - class FunctionsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new functionsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a functions_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return FunctionsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AttributeMappingFunctionSchema.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a attribute_mapping_function_schema - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end -end diff --git a/lib/applications/item/synchronization/jobs/item/schema/parse_expression/parse_expression_post_request_body.rb b/lib/applications/item/synchronization/jobs/item/schema/parse_expression/parse_expression_post_request_body.rb index dc61822811..b6c993a7dd 100644 --- a/lib/applications/item/synchronization/jobs/item/schema/parse_expression/parse_expression_post_request_body.rb +++ b/lib/applications/item/synchronization/jobs/item/schema/parse_expression/parse_expression_post_request_body.rb @@ -33,22 +33,22 @@ class ParseExpressionPostRequestBody # The testInputObject property @test_input_object ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new parseExpressionPostRequestBody and sets the default values. + ## Instantiates a new ParseExpressionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/applications/item/synchronization/jobs/item/schema/parse_expression/parse_expression_request_builder.rb b/lib/applications/item/synchronization/jobs/item/schema/parse_expression/parse_expression_request_builder.rb index f2985d3aa1..067686d440 100644 --- a/lib/applications/item/synchronization/jobs/item/schema/parse_expression/parse_expression_request_builder.rb +++ b/lib/applications/item/synchronization/jobs/item/schema/parse_expression/parse_expression_request_builder.rb @@ -32,7 +32,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/parseExpression") end ## - ## Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. + ## Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Microsoft Entra ID. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of parse_expression_response @@ -43,12 +43,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ParseExpressionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. + ## Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Microsoft Entra ID. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parse_expression_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParseExpressionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/item/synchronization/jobs/item/schema/schema_request_builder.rb b/lib/applications/item/synchronization/jobs/item/schema/schema_request_builder.rb index 9b96b1123a..6e41d33bc0 100644 --- a/lib/applications/item/synchronization/jobs/item/schema/schema_request_builder.rb +++ b/lib/applications/item/synchronization/jobs/item/schema/schema_request_builder.rb @@ -51,7 +51,7 @@ def parse_expression() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema{?%24expand,%24select}") end ## ## Delete navigation property schema for applications @@ -63,12 +63,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the schema for a given synchronization job or template. + ## The synchronization schema configured for the job. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of synchronization_schema ## @@ -77,12 +76,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SynchronizationSchema.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the synchronization schema for a given job or template. This method fully replaces the current schema with the one provided in the request. To update the schema of a template, make the call on the application object. You must be the owner of the application. + ## Update the navigation property schema in applications ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of synchronization_schema @@ -93,8 +91,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SynchronizationSchema.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -104,35 +101,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the schema for a given synchronization job or template. + ## The synchronization schema configured for the job. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the synchronization schema for a given job or template. This method fully replaces the current schema with the one provided in the request. To update the schema of a template, make the call on the application object. You must be the owner of the application. + ## Update the navigation property schema in applications ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -140,20 +138,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a schema_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SchemaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the schema for a given synchronization job or template. + # The synchronization schema configured for the job. class SchemaRequestBuilderGetQueryParameters ## diff --git a/lib/applications/item/synchronization/jobs/item/start/start_request_builder.rb b/lib/applications/item/synchronization/jobs/item/start/start_request_builder.rb index 0a0ad930f1..b283e17ba0 100644 --- a/lib/applications/item/synchronization/jobs/item/start/start_request_builder.rb +++ b/lib/applications/item/synchronization/jobs/item/start/start_request_builder.rb @@ -29,7 +29,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/start") end ## - ## Start an existing synchronization job. If the job is in a paused state, it will continue processing changes from the point where it was paused. If the job is in quarantine, the quarantine status will be cleared. Do not create scripts to call the start job continuously while it's running because that can cause the service to stop running. Use the start job only when the job is currently paused or in quarantine. + ## Start an existing synchronization job. If the job is in a paused state, it continues processing changes from the point where it was paused. If the job is in quarantine, the quarantine status is cleared. Don't create scripts to call the start job continuously while it's running because that can cause the service to stop running. Use the start job only when the job is currently paused or in quarantine. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -38,26 +38,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Start an existing synchronization job. If the job is in a paused state, it will continue processing changes from the point where it was paused. If the job is in quarantine, the quarantine status will be cleared. Do not create scripts to call the start job continuously while it's running because that can cause the service to stop running. Use the start job only when the job is currently paused or in quarantine. + ## Start an existing synchronization job. If the job is in a paused state, it continues processing changes from the point where it was paused. If the job is in quarantine, the quarantine status is cleared. Don't create scripts to call the start job continuously while it's running because that can cause the service to stop running. Use the start job only when the job is currently paused or in quarantine. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a start_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return StartRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/item/synchronization/jobs/item/synchronization_job_item_request_builder.rb b/lib/applications/item/synchronization/jobs/item/synchronization_job_item_request_builder.rb index 13c67b215b..917501d999 100644 --- a/lib/applications/item/synchronization/jobs/item/synchronization_job_item_request_builder.rb +++ b/lib/applications/item/synchronization/jobs/item/synchronization_job_item_request_builder.rb @@ -6,6 +6,7 @@ require_relative '../../../item' require_relative '../../synchronization' require_relative '../jobs' +require_relative './bulk_upload/bulk_upload_request_builder' require_relative './item' require_relative './pause/pause_request_builder' require_relative './provision_on_demand/provision_on_demand_request_builder' @@ -24,6 +25,11 @@ module Item # Provides operations to manage the jobs property of the microsoft.graph.synchronization entity. class SynchronizationJobItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to manage the bulkUpload property of the microsoft.graph.synchronizationJob entity. + def bulk_upload() + return MicrosoftGraph::Applications::Item::Synchronization::Jobs::Item::BulkUpload::BulkUploadRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Provides operations to call the pause method. def pause() @@ -61,10 +67,10 @@ def validate_credentials() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}{?%24expand,%24select}") end ## - ## Stop the synchronization job, and permanently delete all the state associated with it. Synchronized accounts are left as-is. + ## Delete navigation property jobs for applications ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -73,12 +79,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the existing synchronization job and its properties. + ## Performs synchronization by periodically running in the background, polling for changes in one directory, and pushing them to another directory. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of synchronization_job ## @@ -87,8 +92,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SynchronizationJob.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -103,42 +107,42 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SynchronizationJob.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Stop the synchronization job, and permanently delete all the state associated with it. Synchronized accounts are left as-is. + ## Delete navigation property jobs for applications ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the existing synchronization job and its properties. + ## Performs synchronization by periodically running in the background, polling for changes in one directory, and pushing them to another directory. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -150,20 +154,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a synchronization_job_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SynchronizationJobItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the existing synchronization job and its properties. + # Performs synchronization by periodically running in the background, polling for changes in one directory, and pushing them to another directory. class SynchronizationJobItemRequestBuilderGetQueryParameters ## diff --git a/lib/applications/item/synchronization/jobs/item/validate_credentials/validate_credentials_post_request_body.rb b/lib/applications/item/synchronization/jobs/item/validate_credentials/validate_credentials_post_request_body.rb index 919a562590..0fcccbe9ab 100644 --- a/lib/applications/item/synchronization/jobs/item/validate_credentials/validate_credentials_post_request_body.rb +++ b/lib/applications/item/synchronization/jobs/item/validate_credentials/validate_credentials_post_request_body.rb @@ -33,15 +33,15 @@ class ValidateCredentialsPostRequestBody # The useSavedCredentials property @use_saved_credentials ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -63,7 +63,7 @@ def application_identifier=(value) @application_identifier = value end ## - ## Instantiates a new validateCredentialsPostRequestBody and sets the default values. + ## Instantiates a new ValidateCredentialsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/applications/item/synchronization/jobs/item/validate_credentials/validate_credentials_request_builder.rb b/lib/applications/item/synchronization/jobs/item/validate_credentials/validate_credentials_request_builder.rb index 67e0d9683c..9eb4ab1e47 100644 --- a/lib/applications/item/synchronization/jobs/item/validate_credentials/validate_credentials_request_builder.rb +++ b/lib/applications/item/synchronization/jobs/item/validate_credentials/validate_credentials_request_builder.rb @@ -40,8 +40,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,16 +52,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a validate_credentials_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ValidateCredentialsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/item/synchronization/jobs/jobs_request_builder.rb b/lib/applications/item/synchronization/jobs/jobs_request_builder.rb index 8d057d692a..0b7b9c5fb1 100644 --- a/lib/applications/item/synchronization/jobs/jobs_request_builder.rb +++ b/lib/applications/item/synchronization/jobs/jobs_request_builder.rb @@ -48,10 +48,10 @@ def by_synchronization_job_id(synchronization_job_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List existing jobs for a given application instance (service principal). + ## Performs synchronization by periodically running in the background, polling for changes in one directory, and pushing them to another directory. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of synchronization_job_collection_response ## @@ -60,12 +60,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SynchronizationJobCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create new synchronization job with a default synchronization schema. The job is created in a disabled state. Call Start job to start synchronization. + ## Create new navigation property to jobs for applications ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of synchronization_job @@ -76,30 +75,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SynchronizationJob.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List existing jobs for a given application instance (service principal). + ## Performs synchronization by periodically running in the background, polling for changes in one directory, and pushing them to another directory. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create new synchronization job with a default synchronization schema. The job is created in a disabled state. Call Start job to start synchronization. + ## Create new navigation property to jobs for applications ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -107,20 +105,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a jobs_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return JobsRequestBuilder.new(raw_url, @request_adapter) + end ## - # List existing jobs for a given application instance (service principal). + # Performs synchronization by periodically running in the background, polling for changes in one directory, and pushing them to another directory. class JobsRequestBuilderGetQueryParameters ## diff --git a/lib/applications/item/synchronization/jobs/validate_credentials/validate_credentials_post_request_body.rb b/lib/applications/item/synchronization/jobs/validate_credentials/validate_credentials_post_request_body.rb index 48297f19fe..f3abb1b27c 100644 --- a/lib/applications/item/synchronization/jobs/validate_credentials/validate_credentials_post_request_body.rb +++ b/lib/applications/item/synchronization/jobs/validate_credentials/validate_credentials_post_request_body.rb @@ -31,15 +31,15 @@ class ValidateCredentialsPostRequestBody # The useSavedCredentials property @use_saved_credentials ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -61,7 +61,7 @@ def application_identifier=(value) @application_identifier = value end ## - ## Instantiates a new validateCredentialsPostRequestBody and sets the default values. + ## Instantiates a new ValidateCredentialsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/applications/item/synchronization/jobs/validate_credentials/validate_credentials_request_builder.rb b/lib/applications/item/synchronization/jobs/validate_credentials/validate_credentials_request_builder.rb index 3089793574..57f31fda1e 100644 --- a/lib/applications/item/synchronization/jobs/validate_credentials/validate_credentials_request_builder.rb +++ b/lib/applications/item/synchronization/jobs/validate_credentials/validate_credentials_request_builder.rb @@ -38,8 +38,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,16 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a validate_credentials_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ValidateCredentialsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/item/synchronization/secrets/count/count_request_builder.rb b/lib/applications/item/synchronization/secrets/count/count_request_builder.rb index 8abe6c4681..c15e3c55f5 100644 --- a/lib/applications/item/synchronization/secrets/count/count_request_builder.rb +++ b/lib/applications/item/synchronization/secrets/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/secrets/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/secrets/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/applications/item/synchronization/secrets/secrets.rb b/lib/applications/item/synchronization/secrets/secrets.rb index e69de29bb2..0f4b8193b8 100644 --- a/lib/applications/item/synchronization/secrets/secrets.rb +++ b/lib/applications/item/synchronization/secrets/secrets.rb @@ -0,0 +1,2 @@ +require_relative 'secrets_put_request_body' +require_relative 'secrets_put_response' diff --git a/lib/applications/item/synchronization/secrets/secrets_put_request_body.rb b/lib/applications/item/synchronization/secrets/secrets_put_request_body.rb new file mode 100644 index 0000000000..5d57965e8d --- /dev/null +++ b/lib/applications/item/synchronization/secrets/secrets_put_request_body.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/synchronization_secret_key_string_value_pair' +require_relative '../../../applications' +require_relative '../../item' +require_relative '../synchronization' +require_relative './secrets' + +module MicrosoftGraph + module Applications + module Item + module Synchronization + module Secrets + class SecretsPutRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new SecretsPutRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a secrets_put_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return SecretsPutRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SynchronizationSecretKeyStringValuePair.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_collection_of_object_values("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a synchronization_secret_key_string_value_pair + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/applications/item/synchronization/secrets/secrets_put_response.rb b/lib/applications/item/synchronization/secrets/secrets_put_response.rb new file mode 100644 index 0000000000..17ff7909c9 --- /dev/null +++ b/lib/applications/item/synchronization/secrets/secrets_put_response.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/synchronization_secret_key_string_value_pair' +require_relative '../../../applications' +require_relative '../../item' +require_relative '../synchronization' +require_relative './secrets' + +module MicrosoftGraph + module Applications + module Item + module Synchronization + module Secrets + class SecretsPutResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new SecretsPutResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a secrets_put_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return SecretsPutResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SynchronizationSecretKeyStringValuePair.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_collection_of_object_values("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a synchronization_secret_key_string_value_pair + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/applications/item/synchronization/secrets/secrets_request_builder.rb b/lib/applications/item/synchronization/secrets/secrets_request_builder.rb index 2d7325f446..f830d14678 100644 --- a/lib/applications/item/synchronization/secrets/secrets_request_builder.rb +++ b/lib/applications/item/synchronization/secrets/secrets_request_builder.rb @@ -1,7 +1,6 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../microsoft_graph' require_relative '../../../../models/o_data_errors_o_data_error' -require_relative '../../../../models/synchronization_secret_key_string_value_pair' require_relative '../../../applications' require_relative '../../item' require_relative '../synchronization' @@ -35,7 +34,7 @@ def initialize(path_parameters, request_adapter) ## Update property secrets value. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of synchronization_secret_key_string_value_pair + ## @return a Fiber of secrets_put_response ## def put(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -43,9 +42,8 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SynchronizationSecretKeyStringValuePair.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Applications::Item::Synchronization::Secrets::SecretsPutResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Update property secrets value. @@ -56,17 +54,26 @@ def put(body, request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a secrets_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SecretsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/item/synchronization/synchronization_request_builder.rb b/lib/applications/item/synchronization/synchronization_request_builder.rb index ddedd33657..a34e662022 100644 --- a/lib/applications/item/synchronization/synchronization_request_builder.rb +++ b/lib/applications/item/synchronization/synchronization_request_builder.rb @@ -45,7 +45,7 @@ def templates() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization{?%24expand,%24select}") end ## ## Delete navigation property synchronization for applications @@ -57,12 +57,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. + ## Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of synchronization ## @@ -71,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Synchronization.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,8 +85,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Synchronization.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -98,31 +95,32 @@ def put(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. + ## Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -134,20 +132,29 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a synchronization_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SynchronizationRequestBuilder.new(raw_url, @request_adapter) + end ## - # Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. + # Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API. class SynchronizationRequestBuilderGetQueryParameters ## diff --git a/lib/applications/item/synchronization/templates/count/count_request_builder.rb b/lib/applications/item/synchronization/templates/count/count_request_builder.rb index ce99e99581..91087007c0 100644 --- a/lib/applications/item/synchronization/templates/count/count_request_builder.rb +++ b/lib/applications/item/synchronization/templates/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/applications/item/synchronization/templates/item/schema/directories/count/count_request_builder.rb b/lib/applications/item/synchronization/templates/item/schema/directories/count/count_request_builder.rb index 3566e3bbd0..05e886e6bc 100644 --- a/lib/applications/item/synchronization/templates/item/schema/directories/count/count_request_builder.rb +++ b/lib/applications/item/synchronization/templates/item/schema/directories/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/directories/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/directories/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/applications/item/synchronization/templates/item/schema/directories/directories_request_builder.rb b/lib/applications/item/synchronization/templates/item/schema/directories/directories_request_builder.rb index 7bafdbb488..36ffa6b502 100644 --- a/lib/applications/item/synchronization/templates/item/schema/directories/directories_request_builder.rb +++ b/lib/applications/item/synchronization/templates/item/schema/directories/directories_request_builder.rb @@ -48,7 +48,7 @@ def by_directory_definition_id(directory_definition_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/directories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/directories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Contains the collection of directories and all of their objects. @@ -60,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryDefinitionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,8 +75,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,15 +85,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -107,17 +105,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoriesRequestBuilder.new(raw_url, @request_adapter) + end ## # Contains the collection of directories and all of their objects. diff --git a/lib/applications/item/synchronization/templates/item/schema/directories/item/directory_definition_item_request_builder.rb b/lib/applications/item/synchronization/templates/item/schema/directories/item/directory_definition_item_request_builder.rb index be579844ae..013fd7193b 100644 --- a/lib/applications/item/synchronization/templates/item/schema/directories/item/directory_definition_item_request_builder.rb +++ b/lib/applications/item/synchronization/templates/item/schema/directories/item/directory_definition_item_request_builder.rb @@ -37,7 +37,7 @@ def discover() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/directories/{directoryDefinition%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/directories/{directoryDefinition%2Did}{?%24expand,%24select}") end ## ## Delete navigation property directories for applications @@ -49,8 +49,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,8 +77,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,13 +87,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -106,15 +104,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,17 +124,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directory_definition_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoryDefinitionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Contains the collection of directories and all of their objects. diff --git a/lib/applications/item/synchronization/templates/item/schema/directories/item/discover/discover_request_builder.rb b/lib/applications/item/synchronization/templates/item/schema/directories/item/discover/discover_request_builder.rb index e735b0da7d..23eee993f6 100644 --- a/lib/applications/item/synchronization/templates/item/schema/directories/item/discover/discover_request_builder.rb +++ b/lib/applications/item/synchronization/templates/item/schema/directories/item/discover/discover_request_builder.rb @@ -45,8 +45,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,16 +55,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a discover_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DiscoverRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/item/synchronization/templates/item/schema/filter_operators/filter_operators.rb b/lib/applications/item/synchronization/templates/item/schema/filter_operators/filter_operators.rb index 6c8bfb6bb1..fd838a4112 100644 --- a/lib/applications/item/synchronization/templates/item/schema/filter_operators/filter_operators.rb +++ b/lib/applications/item/synchronization/templates/item/schema/filter_operators/filter_operators.rb @@ -1 +1 @@ -require_relative 'filter_operators_response' +require_relative 'filter_operators_get_response' diff --git a/lib/applications/item/synchronization/templates/item/schema/filter_operators/filter_operators_get_response.rb b/lib/applications/item/synchronization/templates/item/schema/filter_operators/filter_operators_get_response.rb new file mode 100644 index 0000000000..6bb4f56464 --- /dev/null +++ b/lib/applications/item/synchronization/templates/item/schema/filter_operators/filter_operators_get_response.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../../models/filter_operator_schema' +require_relative '../../../../../../applications' +require_relative '../../../../../item' +require_relative '../../../../synchronization' +require_relative '../../../templates' +require_relative '../../item' +require_relative '../schema' +require_relative './filter_operators' + +module MicrosoftGraph + module Applications + module Item + module Synchronization + module Templates + module Item + module Schema + module FilterOperators + class FilterOperatorsGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new FilterOperatorsGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a filter_operators_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return FilterOperatorsGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::FilterOperatorSchema.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a filter_operator_schema + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/applications/item/synchronization/templates/item/schema/filter_operators/filter_operators_request_builder.rb b/lib/applications/item/synchronization/templates/item/schema/filter_operators/filter_operators_request_builder.rb index 2576dabc41..377d732b9d 100644 --- a/lib/applications/item/synchronization/templates/item/schema/filter_operators/filter_operators_request_builder.rb +++ b/lib/applications/item/synchronization/templates/item/schema/filter_operators/filter_operators_request_builder.rb @@ -28,49 +28,60 @@ class FilterOperatorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/filterOperators(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/filterOperators(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function filterOperators + ## List all operators supported in the scoping filters. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of filter_operators_response + ## @return a Fiber of filter_operators_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Applications::Item::Synchronization::Templates::Item::Schema::FilterOperators::FilterOperatorsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Applications::Item::Synchronization::Templates::Item::Schema::FilterOperators::FilterOperatorsGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function filterOperators + ## List all operators supported in the scoping filters. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a filter_operators_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilterOperatorsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function filterOperators + # List all operators supported in the scoping filters. class FilterOperatorsRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -98,6 +109,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/applications/item/synchronization/templates/item/schema/filter_operators/filter_operators_response.rb b/lib/applications/item/synchronization/templates/item/schema/filter_operators/filter_operators_response.rb deleted file mode 100644 index 8d45d29496..0000000000 --- a/lib/applications/item/synchronization/templates/item/schema/filter_operators/filter_operators_response.rb +++ /dev/null @@ -1,84 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../../../models/filter_operator_schema' -require_relative '../../../../../../applications' -require_relative '../../../../../item' -require_relative '../../../../synchronization' -require_relative '../../../templates' -require_relative '../../item' -require_relative '../schema' -require_relative './filter_operators' - -module MicrosoftGraph - module Applications - module Item - module Synchronization - module Templates - module Item - module Schema - module FilterOperators - class FilterOperatorsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new filterOperatorsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a filter_operators_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return FilterOperatorsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::FilterOperatorSchema.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a filter_operator_schema - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end -end diff --git a/lib/applications/item/synchronization/templates/item/schema/functions/functions.rb b/lib/applications/item/synchronization/templates/item/schema/functions/functions.rb index 83e3ceed1d..f3acee0863 100644 --- a/lib/applications/item/synchronization/templates/item/schema/functions/functions.rb +++ b/lib/applications/item/synchronization/templates/item/schema/functions/functions.rb @@ -1 +1 @@ -require_relative 'functions_response' +require_relative 'functions_get_response' diff --git a/lib/applications/item/synchronization/templates/item/schema/functions/functions_get_response.rb b/lib/applications/item/synchronization/templates/item/schema/functions/functions_get_response.rb new file mode 100644 index 0000000000..72bb240e11 --- /dev/null +++ b/lib/applications/item/synchronization/templates/item/schema/functions/functions_get_response.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/attribute_mapping_function_schema' +require_relative '../../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../applications' +require_relative '../../../../../item' +require_relative '../../../../synchronization' +require_relative '../../../templates' +require_relative '../../item' +require_relative '../schema' +require_relative './functions' + +module MicrosoftGraph + module Applications + module Item + module Synchronization + module Templates + module Item + module Schema + module Functions + class FunctionsGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new FunctionsGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a functions_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return FunctionsGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AttributeMappingFunctionSchema.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a attribute_mapping_function_schema + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/applications/item/synchronization/templates/item/schema/functions/functions_request_builder.rb b/lib/applications/item/synchronization/templates/item/schema/functions/functions_request_builder.rb index b6f867bce4..55512034c3 100644 --- a/lib/applications/item/synchronization/templates/item/schema/functions/functions_request_builder.rb +++ b/lib/applications/item/synchronization/templates/item/schema/functions/functions_request_builder.rb @@ -28,49 +28,60 @@ class FunctionsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/functions(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/functions(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function functions + ## List all the functions currently supported in the attributeMappingSource. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of functions_response + ## @return a Fiber of functions_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Applications::Item::Synchronization::Templates::Item::Schema::Functions::FunctionsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Applications::Item::Synchronization::Templates::Item::Schema::Functions::FunctionsGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function functions + ## List all the functions currently supported in the attributeMappingSource. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a functions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FunctionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function functions + # List all the functions currently supported in the attributeMappingSource. class FunctionsRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -98,6 +109,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/applications/item/synchronization/templates/item/schema/functions/functions_response.rb b/lib/applications/item/synchronization/templates/item/schema/functions/functions_response.rb deleted file mode 100644 index 41be3a84dc..0000000000 --- a/lib/applications/item/synchronization/templates/item/schema/functions/functions_response.rb +++ /dev/null @@ -1,84 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/attribute_mapping_function_schema' -require_relative '../../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../../applications' -require_relative '../../../../../item' -require_relative '../../../../synchronization' -require_relative '../../../templates' -require_relative '../../item' -require_relative '../schema' -require_relative './functions' - -module MicrosoftGraph - module Applications - module Item - module Synchronization - module Templates - module Item - module Schema - module Functions - class FunctionsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new functionsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a functions_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return FunctionsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AttributeMappingFunctionSchema.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a attribute_mapping_function_schema - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end -end diff --git a/lib/applications/item/synchronization/templates/item/schema/parse_expression/parse_expression_post_request_body.rb b/lib/applications/item/synchronization/templates/item/schema/parse_expression/parse_expression_post_request_body.rb index a1f487b86b..3557b5f470 100644 --- a/lib/applications/item/synchronization/templates/item/schema/parse_expression/parse_expression_post_request_body.rb +++ b/lib/applications/item/synchronization/templates/item/schema/parse_expression/parse_expression_post_request_body.rb @@ -33,22 +33,22 @@ class ParseExpressionPostRequestBody # The testInputObject property @test_input_object ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new parseExpressionPostRequestBody and sets the default values. + ## Instantiates a new ParseExpressionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/applications/item/synchronization/templates/item/schema/parse_expression/parse_expression_request_builder.rb b/lib/applications/item/synchronization/templates/item/schema/parse_expression/parse_expression_request_builder.rb index 8264866730..2709c18152 100644 --- a/lib/applications/item/synchronization/templates/item/schema/parse_expression/parse_expression_request_builder.rb +++ b/lib/applications/item/synchronization/templates/item/schema/parse_expression/parse_expression_request_builder.rb @@ -32,7 +32,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/parseExpression") end ## - ## Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. + ## Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Microsoft Entra ID. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of parse_expression_response @@ -43,12 +43,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ParseExpressionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. + ## Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Microsoft Entra ID. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parse_expression_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParseExpressionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/item/synchronization/templates/item/schema/schema_request_builder.rb b/lib/applications/item/synchronization/templates/item/schema/schema_request_builder.rb index 255e9aac16..d63a0b4059 100644 --- a/lib/applications/item/synchronization/templates/item/schema/schema_request_builder.rb +++ b/lib/applications/item/synchronization/templates/item/schema/schema_request_builder.rb @@ -51,7 +51,7 @@ def parse_expression() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema{?%24expand,%24select}") end ## ## Delete navigation property schema for applications @@ -63,8 +63,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -77,8 +76,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SynchronizationSchema.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,8 +91,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SynchronizationSchema.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -104,13 +101,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,15 +118,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -140,17 +138,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a schema_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SchemaRequestBuilder.new(raw_url, @request_adapter) + end ## # Default synchronization schema for the jobs based on this template. diff --git a/lib/applications/item/synchronization/templates/item/synchronization_template_item_request_builder.rb b/lib/applications/item/synchronization/templates/item/synchronization_template_item_request_builder.rb index a74df2c30e..f5768fc780 100644 --- a/lib/applications/item/synchronization/templates/item/synchronization_template_item_request_builder.rb +++ b/lib/applications/item/synchronization/templates/item/synchronization_template_item_request_builder.rb @@ -31,7 +31,7 @@ def schema() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}{?%24expand,%24select}") end ## ## Delete navigation property templates for applications @@ -43,12 +43,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Pre-configured synchronization settings for a particular application. + ## Preconfigured synchronization settings for a particular application. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of synchronization_template ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SynchronizationTemplate.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SynchronizationTemplate.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,31 +81,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Pre-configured synchronization settings for a particular application. + ## Preconfigured synchronization settings for a particular application. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,20 +118,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a synchronization_template_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SynchronizationTemplateItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Pre-configured synchronization settings for a particular application. + # Preconfigured synchronization settings for a particular application. class SynchronizationTemplateItemRequestBuilderGetQueryParameters ## diff --git a/lib/applications/item/synchronization/templates/templates_request_builder.rb b/lib/applications/item/synchronization/templates/templates_request_builder.rb index e76d9af1f5..f65a377b5d 100644 --- a/lib/applications/item/synchronization/templates/templates_request_builder.rb +++ b/lib/applications/item/synchronization/templates/templates_request_builder.rb @@ -42,10 +42,10 @@ def by_synchronization_template_id(synchronization_template_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List the synchronization templates associated with a given application or service principal. + ## Preconfigured synchronization settings for a particular application. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of synchronization_template_collection_response ## @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SynchronizationTemplateCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,26 +69,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SynchronizationTemplate.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List the synchronization templates associated with a given application or service principal. + ## Preconfigured synchronization settings for a particular application. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,20 +99,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a templates_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TemplatesRequestBuilder.new(raw_url, @request_adapter) + end ## - # List the synchronization templates associated with a given application or service principal. + # Preconfigured synchronization settings for a particular application. class TemplatesRequestBuilderGetQueryParameters ## diff --git a/lib/applications/item/token_issuance_policies/count/count_request_builder.rb b/lib/applications/item/token_issuance_policies/count/count_request_builder.rb index 9f5d69a17a..30a82993ad 100644 --- a/lib/applications/item/token_issuance_policies/count/count_request_builder.rb +++ b/lib/applications/item/token_issuance_policies/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/applications/item/token_issuance_policies/item/ref/ref_request_builder.rb b/lib/applications/item/token_issuance_policies/item/ref/ref_request_builder.rb index 1126a9a158..0be2eb2502 100644 --- a/lib/applications/item/token_issuance_policies/item/ref/ref_request_builder.rb +++ b/lib/applications/item/token_issuance_policies/item/ref/ref_request_builder.rb @@ -24,7 +24,7 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/{tokenIssuancePolicy%2Did}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/{tokenIssuancePolicy%2Did}/$ref") end ## ## Remove a tokenIssuancePolicy from an application. @@ -36,8 +36,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,38 +46,24 @@ def delete(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Remove a tokenIssuancePolicy from an application. - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/applications/item/token_issuance_policies/ref/ref_request_builder.rb b/lib/applications/item/token_issuance_policies/ref/ref_request_builder.rb index 1806535d1d..32d6f97460 100644 --- a/lib/applications/item/token_issuance_policies/ref/ref_request_builder.rb +++ b/lib/applications/item/token_issuance_policies/ref/ref_request_builder.rb @@ -24,7 +24,20 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") + end + ## + ## Remove a tokenIssuancePolicy from an application. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) end ## ## List the tokenIssuancePolicy objects that are assigned to an application. @@ -36,8 +49,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,26 +64,43 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## + ## Remove a tokenIssuancePolicy from an application. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$ref?@id={%40id}' + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## ## List the tokenIssuancePolicy objects that are assigned to an application. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -83,16 +112,49 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Remove a tokenIssuancePolicy from an application. + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end ## # List the tokenIssuancePolicy objects that are assigned to an application. diff --git a/lib/applications/item/token_issuance_policies/token_issuance_policies_request_builder.rb b/lib/applications/item/token_issuance_policies/token_issuance_policies_request_builder.rb index aad780cab3..6bab4ab70b 100644 --- a/lib/applications/item/token_issuance_policies/token_issuance_policies_request_builder.rb +++ b/lib/applications/item/token_issuance_policies/token_issuance_policies_request_builder.rb @@ -29,7 +29,7 @@ def ref() end ## ## Gets an item from the MicrosoftGraph.applications.item.tokenIssuancePolicies.item collection - ## @param token_issuance_policy_id Unique identifier of the item + ## @param token_issuance_policy_id The unique identifier of tokenIssuancePolicy ## @return a token_issuance_policy_item_request_builder ## def by_token_issuance_policy_id(token_issuance_policy_id) @@ -45,7 +45,7 @@ def by_token_issuance_policy_id(token_issuance_policy_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List the tokenIssuancePolicy objects that are assigned to an application. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TokenIssuancePolicyCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a token_issuance_policies_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TokenIssuancePoliciesRequestBuilder.new(raw_url, @request_adapter) + end ## # List the tokenIssuancePolicy objects that are assigned to an application. diff --git a/lib/applications/item/token_lifetime_policies/count/count_request_builder.rb b/lib/applications/item/token_lifetime_policies/count/count_request_builder.rb index 8b9a2f7eed..054b99e4b2 100644 --- a/lib/applications/item/token_lifetime_policies/count/count_request_builder.rb +++ b/lib/applications/item/token_lifetime_policies/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/applications/item/token_lifetime_policies/item/ref/ref_request_builder.rb b/lib/applications/item/token_lifetime_policies/item/ref/ref_request_builder.rb index d4834a79b3..9ad73f4b56 100644 --- a/lib/applications/item/token_lifetime_policies/item/ref/ref_request_builder.rb +++ b/lib/applications/item/token_lifetime_policies/item/ref/ref_request_builder.rb @@ -24,7 +24,7 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/{tokenLifetimePolicy%2Did}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/{tokenLifetimePolicy%2Did}/$ref") end ## ## Remove a tokenLifetimePolicy from an application. @@ -36,8 +36,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,38 +46,24 @@ def delete(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Remove a tokenLifetimePolicy from an application. - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/applications/item/token_lifetime_policies/ref/ref_request_builder.rb b/lib/applications/item/token_lifetime_policies/ref/ref_request_builder.rb index 12ab675508..30cbb64646 100644 --- a/lib/applications/item/token_lifetime_policies/ref/ref_request_builder.rb +++ b/lib/applications/item/token_lifetime_policies/ref/ref_request_builder.rb @@ -24,7 +24,20 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") + end + ## + ## Remove a tokenLifetimePolicy from an application. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) end ## ## List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. @@ -36,8 +49,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,26 +64,43 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## + ## Remove a tokenLifetimePolicy from an application. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$ref?@id={%40id}' + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## ## List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -83,16 +112,49 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Remove a tokenLifetimePolicy from an application. + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end ## # List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. diff --git a/lib/applications/item/token_lifetime_policies/token_lifetime_policies_request_builder.rb b/lib/applications/item/token_lifetime_policies/token_lifetime_policies_request_builder.rb index 4623e77856..c546b0bb59 100644 --- a/lib/applications/item/token_lifetime_policies/token_lifetime_policies_request_builder.rb +++ b/lib/applications/item/token_lifetime_policies/token_lifetime_policies_request_builder.rb @@ -29,7 +29,7 @@ def ref() end ## ## Gets an item from the MicrosoftGraph.applications.item.tokenLifetimePolicies.item collection - ## @param token_lifetime_policy_id Unique identifier of the item + ## @param token_lifetime_policy_id The unique identifier of tokenLifetimePolicy ## @return a token_lifetime_policy_item_request_builder ## def by_token_lifetime_policy_id(token_lifetime_policy_id) @@ -45,7 +45,7 @@ def by_token_lifetime_policy_id(token_lifetime_policy_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TokenLifetimePolicyCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a token_lifetime_policies_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TokenLifetimePoliciesRequestBuilder.new(raw_url, @request_adapter) + end ## # List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. diff --git a/lib/applications/item/unset_verified_publisher/unset_verified_publisher_request_builder.rb b/lib/applications/item/unset_verified_publisher/unset_verified_publisher_request_builder.rb index b44b16c40d..96a1dc7055 100644 --- a/lib/applications/item/unset_verified_publisher/unset_verified_publisher_request_builder.rb +++ b/lib/applications/item/unset_verified_publisher/unset_verified_publisher_request_builder.rb @@ -32,8 +32,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -43,15 +42,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unset_verified_publisher_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnsetVerifiedPublisherRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications/validate_properties/validate_properties_post_request_body.rb b/lib/applications/validate_properties/validate_properties_post_request_body.rb index 478bc233aa..9c4275d681 100644 --- a/lib/applications/validate_properties/validate_properties_post_request_body.rb +++ b/lib/applications/validate_properties/validate_properties_post_request_body.rb @@ -24,22 +24,22 @@ class ValidatePropertiesPostRequestBody # The onBehalfOfUserId property @on_behalf_of_user_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new validatePropertiesPostRequestBody and sets the default values. + ## Instantiates a new ValidatePropertiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/applications/validate_properties/validate_properties_request_builder.rb b/lib/applications/validate_properties/validate_properties_request_builder.rb index 8b0461b4df..c4cc1fe0ca 100644 --- a/lib/applications/validate_properties/validate_properties_request_builder.rb +++ b/lib/applications/validate_properties/validate_properties_request_builder.rb @@ -32,8 +32,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,16 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a validate_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ValidatePropertiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/applications_with_app_id/applications_with_app_id_request_builder.rb b/lib/applications_with_app_id/applications_with_app_id_request_builder.rb index 4f3711f375..cb1cc198cd 100644 --- a/lib/applications_with_app_id/applications_with_app_id_request_builder.rb +++ b/lib/applications_with_app_id/applications_with_app_id_request_builder.rb @@ -18,7 +18,7 @@ class ApplicationsWithAppIdRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter, app_id=nil) - super(path_parameters, request_adapter, "{+baseurl}/applications(appId='{appId}'){?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/applications(appId='{appId}'){?%24expand,%24select}") end ## ## 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. @@ -30,8 +30,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -44,12 +43,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Application.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of an application object. + ## Create a new application object if it doesn't exist, or update the properties of an existing application object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of application @@ -60,8 +58,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Application.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,13 +68,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -87,19 +85,19 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of an application object. + ## Create a new application object if it doesn't exist, or update the properties of an existing application object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -107,17 +105,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a applications_with_app_id_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplicationsWithAppIdRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the properties and relationships of an application object. diff --git a/lib/me/activities/item/history_items/count/count.rb b/lib/applications_with_unique_name/applications_with_unique_name.rb similarity index 100% rename from lib/me/activities/item/history_items/count/count.rb rename to lib/applications_with_unique_name/applications_with_unique_name.rb diff --git a/lib/applications_with_unique_name/applications_with_unique_name_request_builder.rb b/lib/applications_with_unique_name/applications_with_unique_name_request_builder.rb new file mode 100644 index 0000000000..c215799809 --- /dev/null +++ b/lib/applications_with_unique_name/applications_with_unique_name_request_builder.rb @@ -0,0 +1,158 @@ +require 'microsoft_kiota_abstractions' +require_relative '../microsoft_graph' +require_relative '../models/application' +require_relative '../models/o_data_errors_o_data_error' +require_relative './applications_with_unique_name' + +module MicrosoftGraph + module ApplicationsWithUniqueName + ## + # Provides operations to manage the collection of application entities. + class ApplicationsWithUniqueNameRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ApplicationsWithUniqueNameRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param unique_name Alternate key of application + ## @return a void + ## + def initialize(path_parameters, request_adapter, unique_name=nil) + super(path_parameters, request_adapter, "{+baseurl}/applications(uniqueName='{uniqueName}'){?%24expand,%24select}") + end + ## + ## 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. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Get the properties and relationships of an application object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of application + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Application.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create a new application object if it doesn't exist, or update the properties of an existing application object. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of application + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Application.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## 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. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Get the properties and relationships of an application object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create a new application object if it doesn't exist, or update the properties of an existing application object. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a applications_with_unique_name_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplicationsWithUniqueNameRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the properties and relationships of an application object. + class ApplicationsWithUniqueNameRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end +end diff --git a/lib/audit_logs/audit_logs_request_builder.rb b/lib/audit_logs/audit_logs_request_builder.rb index 59929124b4..fed5cb2549 100644 --- a/lib/audit_logs/audit_logs_request_builder.rb +++ b/lib/audit_logs/audit_logs_request_builder.rb @@ -35,7 +35,7 @@ def sign_ins() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/auditLogs{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/auditLogs{?%24expand,%24select}") end ## ## Get auditLogs @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuditLogRoot.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +62,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuditLogRoot.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,15 +72,15 @@ def patch(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,17 +92,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a audit_logs_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AuditLogsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get auditLogs diff --git a/lib/audit_logs/directory_audits/count/count_request_builder.rb b/lib/audit_logs/directory_audits/count/count_request_builder.rb index f6b355b0e7..d5fcc0e169 100644 --- a/lib/audit_logs/directory_audits/count/count_request_builder.rb +++ b/lib/audit_logs/directory_audits/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/auditLogs/directoryAudits/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/auditLogs/directoryAudits/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/audit_logs/directory_audits/directory_audits_request_builder.rb b/lib/audit_logs/directory_audits/directory_audits_request_builder.rb index ad0a74cba5..624bd925d5 100644 --- a/lib/audit_logs/directory_audits/directory_audits_request_builder.rb +++ b/lib/audit_logs/directory_audits/directory_audits_request_builder.rb @@ -38,10 +38,10 @@ def by_directory_audit_id(directory_audit_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/auditLogs/directoryAudits{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/auditLogs/directoryAudits{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the list of audit logs generated by Azure Active Directory (Azure AD). This includes audit logs generated by various services within Azure AD, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. + ## Get the list of audit logs generated by Microsoft Entra ID. This includes audit logs generated by various services within Microsoft Entra ID, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_audit_collection_response ## @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryAuditCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,26 +65,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryAudit.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the list of audit logs generated by Azure Active Directory (Azure AD). This includes audit logs generated by various services within Azure AD, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. + ## Get the list of audit logs generated by Microsoft Entra ID. This includes audit logs generated by various services within Microsoft Entra ID, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,20 +95,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directory_audits_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoryAuditsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the list of audit logs generated by Azure Active Directory (Azure AD). This includes audit logs generated by various services within Azure AD, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. + # Get the list of audit logs generated by Microsoft Entra ID. This includes audit logs generated by various services within Microsoft Entra ID, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. class DirectoryAuditsRequestBuilderGetQueryParameters ## diff --git a/lib/audit_logs/directory_audits/item/directory_audit_item_request_builder.rb b/lib/audit_logs/directory_audits/item/directory_audit_item_request_builder.rb index 529a086af4..142cf6cd46 100644 --- a/lib/audit_logs/directory_audits/item/directory_audit_item_request_builder.rb +++ b/lib/audit_logs/directory_audits/item/directory_audit_item_request_builder.rb @@ -21,7 +21,7 @@ class DirectoryAuditItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/auditLogs/directoryAudits/{directoryAudit%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/auditLogs/directoryAudits/{directoryAudit%2Did}{?%24expand,%24select}") end ## ## Delete navigation property directoryAudits for auditLogs @@ -33,12 +33,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get a specific Azure Active Directory audit log item. This includes an audit log item generated by various services within Azure Active Directory like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. + ## Get a specific Microsoft Entra audit log item. This includes an audit log item generated by various services within Microsoft Entra ID like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_audit ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryAudit.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryAudit.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,31 +71,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get a specific Azure Active Directory audit log item. This includes an audit log item generated by various services within Azure Active Directory like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. + ## Get a specific Microsoft Entra audit log item. This includes an audit log item generated by various services within Microsoft Entra ID like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,20 +108,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directory_audit_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoryAuditItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a specific Azure Active Directory audit log item. This includes an audit log item generated by various services within Azure Active Directory like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. + # Get a specific Microsoft Entra audit log item. This includes an audit log item generated by various services within Microsoft Entra ID like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. class DirectoryAuditItemRequestBuilderGetQueryParameters ## diff --git a/lib/audit_logs/provisioning/count/count_request_builder.rb b/lib/audit_logs/provisioning/count/count_request_builder.rb index 76b719d0d2..c7cc97dcca 100644 --- a/lib/audit_logs/provisioning/count/count_request_builder.rb +++ b/lib/audit_logs/provisioning/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/auditLogs/provisioning/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/auditLogs/provisioning/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/audit_logs/provisioning/item/provisioning_object_summary_item_request_builder.rb b/lib/audit_logs/provisioning/item/provisioning_object_summary_item_request_builder.rb index fd1a9f4b43..6d3a1bf1ea 100644 --- a/lib/audit_logs/provisioning/item/provisioning_object_summary_item_request_builder.rb +++ b/lib/audit_logs/provisioning/item/provisioning_object_summary_item_request_builder.rb @@ -21,7 +21,7 @@ class ProvisioningObjectSummaryItemRequestBuilder < MicrosoftKiotaAbstractions:: ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/auditLogs/provisioning/{provisioningObjectSummary%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/auditLogs/provisioning/{provisioningObjectSummary%2Did}{?%24expand,%24select}") end ## ## Delete navigation property provisioning for auditLogs @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ProvisioningObjectSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ProvisioningObjectSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a provisioning_object_summary_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ProvisioningObjectSummaryItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get provisioning from auditLogs diff --git a/lib/audit_logs/provisioning/provisioning_request_builder.rb b/lib/audit_logs/provisioning/provisioning_request_builder.rb index b768796b5b..5bedbbd0f0 100644 --- a/lib/audit_logs/provisioning/provisioning_request_builder.rb +++ b/lib/audit_logs/provisioning/provisioning_request_builder.rb @@ -38,7 +38,7 @@ def by_provisioning_object_summary_id(provisioning_object_summary_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/auditLogs/provisioning{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/auditLogs/provisioning{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get all provisioning events that occurred in your tenant, such as the deletion of a group in a target application or the creation of a user when provisioning user accounts from your HR system. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ProvisioningObjectSummaryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ProvisioningObjectSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a provisioning_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ProvisioningRequestBuilder.new(raw_url, @request_adapter) + end ## # Get all provisioning events that occurred in your tenant, such as the deletion of a group in a target application or the creation of a user when provisioning user accounts from your HR system. diff --git a/lib/audit_logs/sign_ins/count/count_request_builder.rb b/lib/audit_logs/sign_ins/count/count_request_builder.rb index 6bfe8ce642..23c4a5763d 100644 --- a/lib/audit_logs/sign_ins/count/count_request_builder.rb +++ b/lib/audit_logs/sign_ins/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/auditLogs/signIns/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/auditLogs/signIns/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/audit_logs/sign_ins/item/sign_in_item_request_builder.rb b/lib/audit_logs/sign_ins/item/sign_in_item_request_builder.rb index 3c1ea4e985..b677137a3b 100644 --- a/lib/audit_logs/sign_ins/item/sign_in_item_request_builder.rb +++ b/lib/audit_logs/sign_ins/item/sign_in_item_request_builder.rb @@ -21,7 +21,7 @@ class SignInItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/auditLogs/signIns/{signIn%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/auditLogs/signIns/{signIn%2Did}{?%24expand,%24select}") end ## ## Delete navigation property signIns for auditLogs @@ -33,12 +33,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve a specific Azure AD user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. + ## Retrieve a specific Microsoft Entra user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of sign_in ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SignIn.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SignIn.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,31 +71,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve a specific Azure AD user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. + ## Retrieve a specific Microsoft Entra user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,20 +108,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sign_in_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SignInItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a specific Azure AD user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. + # Retrieve a specific Microsoft Entra user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. class SignInItemRequestBuilderGetQueryParameters ## diff --git a/lib/audit_logs/sign_ins/sign_ins_request_builder.rb b/lib/audit_logs/sign_ins/sign_ins_request_builder.rb index aa2e8546ce..9f75173a90 100644 --- a/lib/audit_logs/sign_ins/sign_ins_request_builder.rb +++ b/lib/audit_logs/sign_ins/sign_ins_request_builder.rb @@ -38,10 +38,10 @@ def by_sign_in_id(sign_in_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/auditLogs/signIns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/auditLogs/signIns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve the Azure AD user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Azure Active Directory (Azure AD) default retention period are available. + ## Retrieve the Microsoft Entra user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Microsoft Entra ID default retention period are available. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of sign_in_collection_response ## @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SignInCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,26 +65,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SignIn.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve the Azure AD user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Azure Active Directory (Azure AD) default retention period are available. + ## Retrieve the Microsoft Entra user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Microsoft Entra ID default retention period are available. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,20 +95,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sign_ins_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SignInsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the Azure AD user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Azure Active Directory (Azure AD) default retention period are available. + # Retrieve the Microsoft Entra user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Microsoft Entra ID default retention period are available. class SignInsRequestBuilderGetQueryParameters ## diff --git a/lib/authentication_method_configurations/authentication_method_configurations_request_builder.rb b/lib/authentication_method_configurations/authentication_method_configurations_request_builder.rb index cc7b5224df..14a4671a50 100644 --- a/lib/authentication_method_configurations/authentication_method_configurations_request_builder.rb +++ b/lib/authentication_method_configurations/authentication_method_configurations_request_builder.rb @@ -36,7 +36,7 @@ def by_authentication_method_configuration_id(authentication_method_configuratio ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/authenticationMethodConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/authenticationMethodConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get entities from authenticationMethodConfigurations @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationMethodConfigurationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,8 +63,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationMethodConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,15 +73,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -95,17 +93,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a authentication_method_configurations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AuthenticationMethodConfigurationsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get entities from authenticationMethodConfigurations diff --git a/lib/authentication_method_configurations/count/count_request_builder.rb b/lib/authentication_method_configurations/count/count_request_builder.rb index 93486e2844..5f7329a8a5 100644 --- a/lib/authentication_method_configurations/count/count_request_builder.rb +++ b/lib/authentication_method_configurations/count/count_request_builder.rb @@ -18,7 +18,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/authenticationMethodConfigurations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/authenticationMethodConfigurations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -30,8 +30,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -41,17 +40,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/authentication_method_configurations/item/authentication_method_configuration_item_request_builder.rb b/lib/authentication_method_configurations/item/authentication_method_configuration_item_request_builder.rb index 4dd83d0ea5..04fa426e4a 100644 --- a/lib/authentication_method_configurations/item/authentication_method_configuration_item_request_builder.rb +++ b/lib/authentication_method_configurations/item/authentication_method_configuration_item_request_builder.rb @@ -19,7 +19,7 @@ class AuthenticationMethodConfigurationItemRequestBuilder < MicrosoftKiotaAbstra ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/authenticationMethodConfigurations/{authenticationMethodConfiguration%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/authenticationMethodConfigurations/{authenticationMethodConfiguration%2Did}{?%24expand,%24select}") end ## ## Delete entity from authenticationMethodConfigurations @@ -31,8 +31,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationMethodConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -61,8 +59,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationMethodConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,13 +69,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -88,15 +86,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,17 +106,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a authentication_method_configuration_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AuthenticationMethodConfigurationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get entity from authenticationMethodConfigurations by key diff --git a/lib/authentication_methods_policy/authentication_method_configurations/authentication_method_configurations_request_builder.rb b/lib/authentication_methods_policy/authentication_method_configurations/authentication_method_configurations_request_builder.rb index 09e4d74fd0..b39b7eafb2 100644 --- a/lib/authentication_methods_policy/authentication_method_configurations/authentication_method_configurations_request_builder.rb +++ b/lib/authentication_methods_policy/authentication_method_configurations/authentication_method_configurations_request_builder.rb @@ -38,7 +38,7 @@ def by_authentication_method_configuration_id(authentication_method_configuratio ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/authenticationMethodsPolicy/authenticationMethodConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/authenticationMethodsPolicy/authenticationMethodConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationMethodConfigurationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationMethodConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a authentication_method_configurations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AuthenticationMethodConfigurationsRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. diff --git a/lib/authentication_methods_policy/authentication_method_configurations/count/count_request_builder.rb b/lib/authentication_methods_policy/authentication_method_configurations/count/count_request_builder.rb index f0f26c4662..3de9c84b57 100644 --- a/lib/authentication_methods_policy/authentication_method_configurations/count/count_request_builder.rb +++ b/lib/authentication_methods_policy/authentication_method_configurations/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/authenticationMethodsPolicy/authenticationMethodConfigurations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/authenticationMethodsPolicy/authenticationMethodConfigurations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/authentication_methods_policy/authentication_method_configurations/item/authentication_method_configuration_item_request_builder.rb b/lib/authentication_methods_policy/authentication_method_configurations/item/authentication_method_configuration_item_request_builder.rb index 90917f9d8c..65588d7674 100644 --- a/lib/authentication_methods_policy/authentication_method_configurations/item/authentication_method_configuration_item_request_builder.rb +++ b/lib/authentication_methods_policy/authentication_method_configurations/item/authentication_method_configuration_item_request_builder.rb @@ -21,7 +21,7 @@ class AuthenticationMethodConfigurationItemRequestBuilder < MicrosoftKiotaAbstra ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/authenticationMethodsPolicy/authenticationMethodConfigurations/{authenticationMethodConfiguration%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/authenticationMethodsPolicy/authenticationMethodConfigurations/{authenticationMethodConfiguration%2Did}{?%24expand,%24select}") end ## ## Delete navigation property authenticationMethodConfigurations for authenticationMethodsPolicy @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationMethodConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationMethodConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a authentication_method_configuration_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AuthenticationMethodConfigurationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. diff --git a/lib/authentication_methods_policy/authentication_methods_policy_request_builder.rb b/lib/authentication_methods_policy/authentication_methods_policy_request_builder.rb index ac7ff372dc..6cd74ed776 100644 --- a/lib/authentication_methods_policy/authentication_methods_policy_request_builder.rb +++ b/lib/authentication_methods_policy/authentication_methods_policy_request_builder.rb @@ -23,7 +23,7 @@ def authentication_method_configurations() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/authenticationMethodsPolicy{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/authenticationMethodsPolicy{?%24expand,%24select}") end ## ## Get authenticationMethodsPolicy @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationMethodsPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -51,8 +50,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationMethodsPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,15 +60,15 @@ def patch(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -82,17 +80,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a authentication_methods_policy_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AuthenticationMethodsPolicyRequestBuilder.new(raw_url, @request_adapter) + end ## # Get authenticationMethodsPolicy diff --git a/lib/certificate_based_auth_configuration/certificate_based_auth_configuration_request_builder.rb b/lib/certificate_based_auth_configuration/certificate_based_auth_configuration_request_builder.rb index 071fa37efa..6760713a61 100644 --- a/lib/certificate_based_auth_configuration/certificate_based_auth_configuration_request_builder.rb +++ b/lib/certificate_based_auth_configuration/certificate_based_auth_configuration_request_builder.rb @@ -36,7 +36,7 @@ def by_certificate_based_auth_configuration_id(certificate_based_auth_configurat ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/certificateBasedAuthConfiguration{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/certificateBasedAuthConfiguration{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get entities from certificateBasedAuthConfiguration @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CertificateBasedAuthConfigurationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,8 +63,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CertificateBasedAuthConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,15 +73,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -95,17 +93,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a certificate_based_auth_configuration_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CertificateBasedAuthConfigurationRequestBuilder.new(raw_url, @request_adapter) + end ## # Get entities from certificateBasedAuthConfiguration diff --git a/lib/certificate_based_auth_configuration/count/count_request_builder.rb b/lib/certificate_based_auth_configuration/count/count_request_builder.rb index 8c9518a945..9022c11f60 100644 --- a/lib/certificate_based_auth_configuration/count/count_request_builder.rb +++ b/lib/certificate_based_auth_configuration/count/count_request_builder.rb @@ -18,7 +18,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/certificateBasedAuthConfiguration/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/certificateBasedAuthConfiguration/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -30,8 +30,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -41,17 +40,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/certificate_based_auth_configuration/item/certificate_based_auth_configuration_item_request_builder.rb b/lib/certificate_based_auth_configuration/item/certificate_based_auth_configuration_item_request_builder.rb index 5f2797adea..78e91b9888 100644 --- a/lib/certificate_based_auth_configuration/item/certificate_based_auth_configuration_item_request_builder.rb +++ b/lib/certificate_based_auth_configuration/item/certificate_based_auth_configuration_item_request_builder.rb @@ -19,7 +19,7 @@ class CertificateBasedAuthConfigurationItemRequestBuilder < MicrosoftKiotaAbstra ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/certificateBasedAuthConfiguration/{certificateBasedAuthConfiguration%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/certificateBasedAuthConfiguration/{certificateBasedAuthConfiguration%2Did}{?%24expand,%24select}") end ## ## Delete entity from certificateBasedAuthConfiguration @@ -31,8 +31,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CertificateBasedAuthConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -61,8 +59,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CertificateBasedAuthConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,13 +69,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -88,15 +86,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,17 +106,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a certificate_based_auth_configuration_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CertificateBasedAuthConfigurationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get entity from certificateBasedAuthConfiguration by key diff --git a/lib/chats/chats_request_builder.rb b/lib/chats/chats_request_builder.rb index 95e694011d..11333b342e 100644 --- a/lib/chats/chats_request_builder.rb +++ b/lib/chats/chats_request_builder.rb @@ -6,6 +6,7 @@ require_relative './chats' require_relative './count/count_request_builder' require_relative './get_all_messages/get_all_messages_request_builder' +require_relative './get_all_retained_messages/get_all_retained_messages_request_builder' require_relative './item/chat_item_request_builder' module MicrosoftGraph @@ -25,6 +26,11 @@ def get_all_messages() return MicrosoftGraph::Chats::GetAllMessages::GetAllMessagesRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the getAllRetainedMessages method. + def get_all_retained_messages() + return MicrosoftGraph::Chats::GetAllRetainedMessages::GetAllRetainedMessagesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Provides operations to manage the collection of chat entities. ## @param chat_id The unique identifier of chat ## @return a chat_item_request_builder @@ -42,7 +48,7 @@ def by_chat_id(chat_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. @@ -54,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +75,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Chat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +85,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +105,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a chats_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChatsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. diff --git a/lib/chats/count/count_request_builder.rb b/lib/chats/count/count_request_builder.rb index d49c7973c2..1cd9bb502f 100644 --- a/lib/chats/count/count_request_builder.rb +++ b/lib/chats/count/count_request_builder.rb @@ -18,7 +18,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/chats/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -30,8 +30,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -41,17 +40,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/chats/get_all_messages/get_all_messages.rb b/lib/chats/get_all_messages/get_all_messages.rb index 4ce2619319..0502664242 100644 --- a/lib/chats/get_all_messages/get_all_messages.rb +++ b/lib/chats/get_all_messages/get_all_messages.rb @@ -1 +1 @@ -require_relative 'get_all_messages_response' +require_relative 'get_all_messages_get_response' diff --git a/lib/chats/get_all_messages/get_all_messages_get_response.rb b/lib/chats/get_all_messages/get_all_messages_get_response.rb new file mode 100644 index 0000000000..5dac3470d9 --- /dev/null +++ b/lib/chats/get_all_messages/get_all_messages_get_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_collection_pagination_count_response' +require_relative '../../models/chat_message' +require_relative '../chats' +require_relative './get_all_messages' + +module MicrosoftGraph + module Chats + module GetAllMessages + class GetAllMessagesGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetAllMessagesGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_all_messages_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetAllMessagesGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a chat_message + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/chats/get_all_messages/get_all_messages_request_builder.rb b/lib/chats/get_all_messages/get_all_messages_request_builder.rb index 9a79e525fe..d1cf2ce100 100644 --- a/lib/chats/get_all_messages/get_all_messages_request_builder.rb +++ b/lib/chats/get_all_messages/get_all_messages_request_builder.rb @@ -18,49 +18,60 @@ class GetAllMessagesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/getAllMessages(){?model*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/chats/getAllMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top,model*}") end ## - ## Invoke function getAllMessages + ## Get all messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_all_messages_response + ## @return a Fiber of get_all_messages_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Chats::GetAllMessages::GetAllMessagesResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Chats::GetAllMessages::GetAllMessagesGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function getAllMessages + ## Get all messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_all_messages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetAllMessagesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function getAllMessages + # Get all messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. class GetAllMessagesRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -91,10 +102,10 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" - when "model" - return "model" when "orderby" return "%24orderby" when "search" diff --git a/lib/chats/get_all_messages/get_all_messages_response.rb b/lib/chats/get_all_messages/get_all_messages_response.rb deleted file mode 100644 index a0af106c62..0000000000 --- a/lib/chats/get_all_messages/get_all_messages_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_collection_pagination_count_response' -require_relative '../../models/chat_message' -require_relative '../chats' -require_relative './get_all_messages' - -module MicrosoftGraph - module Chats - module GetAllMessages - class GetAllMessagesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getAllMessagesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_all_messages_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAllMessagesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a chat_message - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/chats/get_all_retained_messages/get_all_retained_messages.rb b/lib/chats/get_all_retained_messages/get_all_retained_messages.rb new file mode 100644 index 0000000000..a3d467b262 --- /dev/null +++ b/lib/chats/get_all_retained_messages/get_all_retained_messages.rb @@ -0,0 +1 @@ +require_relative 'get_all_retained_messages_get_response' diff --git a/lib/chats/get_all_retained_messages/get_all_retained_messages_get_response.rb b/lib/chats/get_all_retained_messages/get_all_retained_messages_get_response.rb new file mode 100644 index 0000000000..ea4d4b00db --- /dev/null +++ b/lib/chats/get_all_retained_messages/get_all_retained_messages_get_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_collection_pagination_count_response' +require_relative '../../models/chat_message' +require_relative '../chats' +require_relative './get_all_retained_messages' + +module MicrosoftGraph + module Chats + module GetAllRetainedMessages + class GetAllRetainedMessagesGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetAllRetainedMessagesGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_all_retained_messages_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetAllRetainedMessagesGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a chat_message + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/chats/get_all_retained_messages/get_all_retained_messages_request_builder.rb b/lib/chats/get_all_retained_messages/get_all_retained_messages_request_builder.rb new file mode 100644 index 0000000000..d8a3befac7 --- /dev/null +++ b/lib/chats/get_all_retained_messages/get_all_retained_messages_request_builder.rb @@ -0,0 +1,124 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/o_data_errors_o_data_error' +require_relative '../chats' +require_relative './get_all_retained_messages' + +module MicrosoftGraph + module Chats + module GetAllRetainedMessages + ## + # Provides operations to call the getAllRetainedMessages method. + class GetAllRetainedMessagesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new GetAllRetainedMessagesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/chats/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get all retained messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of get_all_retained_messages_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Chats::GetAllRetainedMessages::GetAllRetainedMessagesGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get all retained messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_all_retained_messages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetAllRetainedMessagesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get all retained messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + class GetAllRetainedMessagesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end +end diff --git a/lib/chats/item/chat_item_request_builder.rb b/lib/chats/item/chat_item_request_builder.rb index 9432a4d3f4..b0322bdcba 100644 --- a/lib/chats/item/chat_item_request_builder.rb +++ b/lib/chats/item/chat_item_request_builder.rb @@ -91,10 +91,10 @@ def unhide_for_user() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}{?%24expand,%24select}") end ## - ## Delete entity from chats + ## Soft-delete a chat. When invoked with delegated permissions, this operation only works for tenant admins and Teams service admins. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -103,8 +103,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -117,8 +116,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Chat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -133,24 +131,24 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Chat.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete entity from chats + ## Soft-delete a chat. When invoked with delegated permissions, this operation only works for tenant admins and Teams service admins. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -160,15 +158,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -180,17 +178,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a chat_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChatItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. diff --git a/lib/chats/item/hide_for_user/hide_for_user_post_request_body.rb b/lib/chats/item/hide_for_user/hide_for_user_post_request_body.rb index 000cce5f0e..844a92ba05 100644 --- a/lib/chats/item/hide_for_user/hide_for_user_post_request_body.rb +++ b/lib/chats/item/hide_for_user/hide_for_user_post_request_body.rb @@ -18,22 +18,22 @@ class HideForUserPostRequestBody # The user property @user ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new hideForUserPostRequestBody and sets the default values. + ## Instantiates a new HideForUserPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/chats/item/hide_for_user/hide_for_user_request_builder.rb b/lib/chats/item/hide_for_user/hide_for_user_request_builder.rb index 6d6c03f3d1..0f1fb5edc9 100644 --- a/lib/chats/item/hide_for_user/hide_for_user_request_builder.rb +++ b/lib/chats/item/hide_for_user/hide_for_user_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a hide_for_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HideForUserRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/chats/item/installed_apps/count/count_request_builder.rb b/lib/chats/item/installed_apps/count/count_request_builder.rb index afbfe7e907..3d04d8a37b 100644 --- a/lib/chats/item/installed_apps/count/count_request_builder.rb +++ b/lib/chats/item/installed_apps/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/installedApps/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/installedApps/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/chats/item/installed_apps/installed_apps_request_builder.rb b/lib/chats/item/installed_apps/installed_apps_request_builder.rb index b6611cec31..1618d07d32 100644 --- a/lib/chats/item/installed_apps/installed_apps_request_builder.rb +++ b/lib/chats/item/installed_apps/installed_apps_request_builder.rb @@ -40,7 +40,7 @@ def by_teams_app_installation_id(teams_app_installation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/installedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/installedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List all app installations within a chat. @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsAppInstallationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsAppInstallation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,15 +77,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a installed_apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InstalledAppsRequestBuilder.new(raw_url, @request_adapter) + end ## # List all app installations within a chat. diff --git a/lib/chats/item/installed_apps/item/teams_app/teams_app_request_builder.rb b/lib/chats/item/installed_apps/item/teams_app/teams_app_request_builder.rb index f18e60df5b..67966ff86a 100644 --- a/lib/chats/item/installed_apps/item/teams_app/teams_app_request_builder.rb +++ b/lib/chats/item/installed_apps/item/teams_app/teams_app_request_builder.rb @@ -25,7 +25,7 @@ class TeamsAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/installedApps/{teamsAppInstallation%2Did}/teamsApp{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/installedApps/{teamsAppInstallation%2Did}/teamsApp{?%24expand,%24select}") end ## ## The app that is installed. @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsApp.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a teams_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TeamsAppRequestBuilder.new(raw_url, @request_adapter) + end ## # The app that is installed. diff --git a/lib/chats/item/installed_apps/item/teams_app_definition/teams_app_definition_request_builder.rb b/lib/chats/item/installed_apps/item/teams_app_definition/teams_app_definition_request_builder.rb index e57bf8042a..f2b9dc043a 100644 --- a/lib/chats/item/installed_apps/item/teams_app_definition/teams_app_definition_request_builder.rb +++ b/lib/chats/item/installed_apps/item/teams_app_definition/teams_app_definition_request_builder.rb @@ -25,7 +25,7 @@ class TeamsAppDefinitionRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/installedApps/{teamsAppInstallation%2Did}/teamsAppDefinition{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/installedApps/{teamsAppInstallation%2Did}/teamsAppDefinition{?%24expand,%24select}") end ## ## The details of this version of the app. @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsAppDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a teams_app_definition_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TeamsAppDefinitionRequestBuilder.new(raw_url, @request_adapter) + end ## # The details of this version of the app. diff --git a/lib/chats/item/installed_apps/item/teams_app_installation_item_request_builder.rb b/lib/chats/item/installed_apps/item/teams_app_installation_item_request_builder.rb index d83a893007..4f22712916 100644 --- a/lib/chats/item/installed_apps/item/teams_app_installation_item_request_builder.rb +++ b/lib/chats/item/installed_apps/item/teams_app_installation_item_request_builder.rb @@ -41,7 +41,7 @@ def upgrade() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/installedApps/{teamsAppInstallation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/installedApps/{teamsAppInstallation%2Did}{?%24expand,%24select}") end ## ## Uninstall an app installed within a chat. @@ -53,8 +53,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsAppInstallation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,8 +81,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsAppInstallation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -94,13 +91,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,15 +108,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -130,17 +128,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a teams_app_installation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TeamsAppInstallationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get an app installed in a chat. diff --git a/lib/chats/item/installed_apps/item/upgrade/upgrade_post_request_body.rb b/lib/chats/item/installed_apps/item/upgrade/upgrade_post_request_body.rb index 3170ca51f3..f06f29469d 100644 --- a/lib/chats/item/installed_apps/item/upgrade/upgrade_post_request_body.rb +++ b/lib/chats/item/installed_apps/item/upgrade/upgrade_post_request_body.rb @@ -22,15 +22,15 @@ class UpgradePostRequestBody # The consentedPermissionSet property @consented_permission_set ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -52,7 +52,7 @@ def consented_permission_set=(value) @consented_permission_set = value end ## - ## Instantiates a new upgradePostRequestBody and sets the default values. + ## Instantiates a new UpgradePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/chats/item/installed_apps/item/upgrade/upgrade_request_builder.rb b/lib/chats/item/installed_apps/item/upgrade/upgrade_request_builder.rb index 9bc457d8c6..4efd8bb7f7 100644 --- a/lib/chats/item/installed_apps/item/upgrade/upgrade_request_builder.rb +++ b/lib/chats/item/installed_apps/item/upgrade/upgrade_request_builder.rb @@ -38,8 +38,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,16 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a upgrade_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UpgradeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/chats/item/last_message_preview/last_message_preview_request_builder.rb b/lib/chats/item/last_message_preview/last_message_preview_request_builder.rb index 2fb4344285..921a16d52f 100644 --- a/lib/chats/item/last_message_preview/last_message_preview_request_builder.rb +++ b/lib/chats/item/last_message_preview/last_message_preview_request_builder.rb @@ -21,7 +21,7 @@ class LastMessagePreviewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/lastMessagePreview{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/lastMessagePreview{?%24expand,%24select}") end ## ## Delete navigation property lastMessagePreview for chats @@ -33,12 +33,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Preview of the last message sent in the chat. Null if no messages have been sent in the chat. Currently, only the list chats operation supports this property. + ## Preview of the last message sent in the chat. Null if no messages were sent in the chat. Currently, only the list chats operation supports this property. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message_info ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageInfo.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageInfo.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,31 +71,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Preview of the last message sent in the chat. Null if no messages have been sent in the chat. Currently, only the list chats operation supports this property. + ## Preview of the last message sent in the chat. Null if no messages were sent in the chat. Currently, only the list chats operation supports this property. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,20 +108,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_message_preview_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastMessagePreviewRequestBuilder.new(raw_url, @request_adapter) + end ## - # Preview of the last message sent in the chat. Null if no messages have been sent in the chat. Currently, only the list chats operation supports this property. + # Preview of the last message sent in the chat. Null if no messages were sent in the chat. Currently, only the list chats operation supports this property. class LastMessagePreviewRequestBuilderGetQueryParameters ## diff --git a/lib/chats/item/mark_chat_read_for_user/mark_chat_read_for_user_post_request_body.rb b/lib/chats/item/mark_chat_read_for_user/mark_chat_read_for_user_post_request_body.rb index 6403d5c034..9c86a1a5b8 100644 --- a/lib/chats/item/mark_chat_read_for_user/mark_chat_read_for_user_post_request_body.rb +++ b/lib/chats/item/mark_chat_read_for_user/mark_chat_read_for_user_post_request_body.rb @@ -18,22 +18,22 @@ class MarkChatReadForUserPostRequestBody # The user property @user ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new markChatReadForUserPostRequestBody and sets the default values. + ## Instantiates a new MarkChatReadForUserPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/chats/item/mark_chat_read_for_user/mark_chat_read_for_user_request_builder.rb b/lib/chats/item/mark_chat_read_for_user/mark_chat_read_for_user_request_builder.rb index c9fff46c33..92c52e14a2 100644 --- a/lib/chats/item/mark_chat_read_for_user/mark_chat_read_for_user_request_builder.rb +++ b/lib/chats/item/mark_chat_read_for_user/mark_chat_read_for_user_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mark_chat_read_for_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MarkChatReadForUserRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/chats/item/mark_chat_unread_for_user/mark_chat_unread_for_user_post_request_body.rb b/lib/chats/item/mark_chat_unread_for_user/mark_chat_unread_for_user_post_request_body.rb index 6726956f98..995ef4d45d 100644 --- a/lib/chats/item/mark_chat_unread_for_user/mark_chat_unread_for_user_post_request_body.rb +++ b/lib/chats/item/mark_chat_unread_for_user/mark_chat_unread_for_user_post_request_body.rb @@ -22,22 +22,22 @@ class MarkChatUnreadForUserPostRequestBody # The user property @user ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new markChatUnreadForUserPostRequestBody and sets the default values. + ## Instantiates a new MarkChatUnreadForUserPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/chats/item/mark_chat_unread_for_user/mark_chat_unread_for_user_request_builder.rb b/lib/chats/item/mark_chat_unread_for_user/mark_chat_unread_for_user_request_builder.rb index 84d186353d..0582e5f23c 100644 --- a/lib/chats/item/mark_chat_unread_for_user/mark_chat_unread_for_user_request_builder.rb +++ b/lib/chats/item/mark_chat_unread_for_user/mark_chat_unread_for_user_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mark_chat_unread_for_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MarkChatUnreadForUserRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/chats/item/members/add/add.rb b/lib/chats/item/members/add/add.rb index 629ad98abe..4f4fe401db 100644 --- a/lib/chats/item/members/add/add.rb +++ b/lib/chats/item/members/add/add.rb @@ -1,2 +1,2 @@ require_relative 'add_post_request_body' -require_relative 'add_response' +require_relative 'add_post_response' diff --git a/lib/chats/item/members/add/add_post_request_body.rb b/lib/chats/item/members/add/add_post_request_body.rb index 33091725c9..27ae2abd52 100644 --- a/lib/chats/item/members/add/add_post_request_body.rb +++ b/lib/chats/item/members/add/add_post_request_body.rb @@ -20,22 +20,22 @@ class AddPostRequestBody # The values property @values ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new addPostRequestBody and sets the default values. + ## Instantiates a new AddPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/chats/item/members/add/add_post_response.rb b/lib/chats/item/members/add/add_post_response.rb new file mode 100644 index 0000000000..b1559ab139 --- /dev/null +++ b/lib/chats/item/members/add/add_post_response.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/action_result_part' +require_relative '../../../../models/base_collection_pagination_count_response' +require_relative '../../../chats' +require_relative '../../item' +require_relative '../members' +require_relative './add' + +module MicrosoftGraph + module Chats + module Item + module Members + module Add + class AddPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new AddPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a add_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AddPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ActionResultPart.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a action_result_part + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/chats/item/members/add/add_request_builder.rb b/lib/chats/item/members/add/add_request_builder.rb index c18804a7e8..5ab4f44524 100644 --- a/lib/chats/item/members/add/add_request_builder.rb +++ b/lib/chats/item/members/add/add_request_builder.rb @@ -28,7 +28,7 @@ def initialize(path_parameters, request_adapter) ## Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of add_response + ## @return a Fiber of add_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -36,9 +36,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Chats::Item::Members::Add::AddResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Chats::Item::Members::Add::AddPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. @@ -49,17 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/chats/item/members/add/add_response.rb b/lib/chats/item/members/add/add_response.rb deleted file mode 100644 index 6451aadd27..0000000000 --- a/lib/chats/item/members/add/add_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/action_result_part' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../chats' -require_relative '../../item' -require_relative '../members' -require_relative './add' - -module MicrosoftGraph - module Chats - module Item - module Members - module Add - class AddResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new addResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a add_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return AddResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ActionResultPart.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a action_result_part - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/chats/item/members/count/count_request_builder.rb b/lib/chats/item/members/count/count_request_builder.rb index 0941d7b326..4946f9aca4 100644 --- a/lib/chats/item/members/count/count_request_builder.rb +++ b/lib/chats/item/members/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/members/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/members/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/chats/item/members/item/conversation_member_item_request_builder.rb b/lib/chats/item/members/item/conversation_member_item_request_builder.rb index eda7b26932..90be221f91 100644 --- a/lib/chats/item/members/item/conversation_member_item_request_builder.rb +++ b/lib/chats/item/members/item/conversation_member_item_request_builder.rb @@ -23,7 +23,7 @@ class ConversationMemberItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReq ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/members/{conversationMember%2Did}{?%24expand,%24select}") end ## ## Remove a conversationMember from a chat. @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a conversation_member_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConversationMemberItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a conversationMember from a chat. diff --git a/lib/chats/item/members/members_request_builder.rb b/lib/chats/item/members/members_request_builder.rb index 77c814380b..2af87cbbfb 100644 --- a/lib/chats/item/members/members_request_builder.rb +++ b/lib/chats/item/members/members_request_builder.rb @@ -9,6 +9,7 @@ require_relative './count/count_request_builder' require_relative './item/conversation_member_item_request_builder' require_relative './members' +require_relative './remove/remove_request_builder' module MicrosoftGraph module Chats @@ -29,6 +30,11 @@ def count() return MicrosoftGraph::Chats::Item::Members::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the remove method. + def remove() + return MicrosoftGraph::Chats::Item::Members::Remove::RemoveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Provides operations to manage the members property of the microsoft.graph.chat entity. ## @param conversation_member_id The unique identifier of conversationMember ## @return a conversation_member_item_request_builder @@ -46,7 +52,7 @@ def by_conversation_member_id(conversation_member_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/members{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List all conversation members in a chat or channel. @@ -58,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMemberCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,8 +79,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,15 +89,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,17 +109,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a members_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MembersRequestBuilder.new(raw_url, @request_adapter) + end ## # List all conversation members in a chat or channel. diff --git a/lib/chats/item/members/remove/remove.rb b/lib/chats/item/members/remove/remove.rb new file mode 100644 index 0000000000..95c14f7d89 --- /dev/null +++ b/lib/chats/item/members/remove/remove.rb @@ -0,0 +1,2 @@ +require_relative 'remove_post_request_body' +require_relative 'remove_post_response' diff --git a/lib/chats/item/members/remove/remove_post_request_body.rb b/lib/chats/item/members/remove/remove_post_request_body.rb new file mode 100644 index 0000000000..cfa8f6bf9b --- /dev/null +++ b/lib/chats/item/members/remove/remove_post_request_body.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/conversation_member' +require_relative '../../../chats' +require_relative '../../item' +require_relative '../members' +require_relative './remove' + +module MicrosoftGraph + module Chats + module Item + module Members + module Remove + class RemovePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The values property + @values + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new RemovePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a remove_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return RemovePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "values" => lambda {|n| @values = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_collection_of_object_values("values", @values) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the values property value. The values property + ## @return a conversation_member + ## + def values + return @values + end + ## + ## Sets the values property value. The values property + ## @param value Value to set for the values property. + ## @return a void + ## + def values=(value) + @values = value + end + end + end + end + end + end +end diff --git a/lib/chats/item/members/remove/remove_post_response.rb b/lib/chats/item/members/remove/remove_post_response.rb new file mode 100644 index 0000000000..b396b6d491 --- /dev/null +++ b/lib/chats/item/members/remove/remove_post_response.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/action_result_part' +require_relative '../../../../models/base_collection_pagination_count_response' +require_relative '../../../chats' +require_relative '../../item' +require_relative '../members' +require_relative './remove' + +module MicrosoftGraph + module Chats + module Item + module Members + module Remove + class RemovePostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new RemovePostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a remove_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return RemovePostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ActionResultPart.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a action_result_part + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/chats/item/members/remove/remove_request_builder.rb b/lib/chats/item/members/remove/remove_request_builder.rb new file mode 100644 index 0000000000..64d437404d --- /dev/null +++ b/lib/chats/item/members/remove/remove_request_builder.rb @@ -0,0 +1,76 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../chats' +require_relative '../../item' +require_relative '../members' +require_relative './remove' + +module MicrosoftGraph + module Chats + module Item + module Members + module Remove + ## + # Provides operations to call the remove method. + class RemoveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RemoveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/members/remove") + end + ## + ## Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of remove_post_response + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Chats::Item::Members::Remove::RemovePostResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a remove_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RemoveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end +end diff --git a/lib/chats/item/messages/count/count_request_builder.rb b/lib/chats/item/messages/count/count_request_builder.rb index d000db524e..ab51d38e42 100644 --- a/lib/chats/item/messages/count/count_request_builder.rb +++ b/lib/chats/item/messages/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/chats/item/messages/delta/delta.rb b/lib/chats/item/messages/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/chats/item/messages/delta/delta.rb +++ b/lib/chats/item/messages/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/chats/item/messages/delta/delta_get_response.rb b/lib/chats/item/messages/delta/delta_get_response.rb new file mode 100644 index 0000000000..52b5a7118c --- /dev/null +++ b/lib/chats/item/messages/delta/delta_get_response.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/base_delta_function_response' +require_relative '../../../../models/chat_message' +require_relative '../../../chats' +require_relative '../../item' +require_relative '../messages' +require_relative './delta' + +module MicrosoftGraph + module Chats + module Item + module Messages + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a chat_message + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/chats/item/messages/delta/delta_request_builder.rb b/lib/chats/item/messages/delta/delta_request_builder.rb index ed8aca8b58..96855c2c8f 100644 --- a/lib/chats/item/messages/delta/delta_request_builder.rb +++ b/lib/chats/item/messages/delta/delta_request_builder.rb @@ -22,49 +22,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Chats::Item::Messages::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Chats::Item::Messages::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. class DeltaRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -92,6 +103,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/chats/item/messages/delta/delta_response.rb b/lib/chats/item/messages/delta/delta_response.rb deleted file mode 100644 index d20db70191..0000000000 --- a/lib/chats/item/messages/delta/delta_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/base_delta_function_response' -require_relative '../../../../models/chat_message' -require_relative '../../../chats' -require_relative '../../item' -require_relative '../messages' -require_relative './delta' - -module MicrosoftGraph - module Chats - module Item - module Messages - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a chat_message - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/chats/item/messages/item/chat_message_item_request_builder.rb b/lib/chats/item/messages/item/chat_message_item_request_builder.rb index 7bfff0f098..bcab212da1 100644 --- a/lib/chats/item/messages/item/chat_message_item_request_builder.rb +++ b/lib/chats/item/messages/item/chat_message_item_request_builder.rb @@ -59,7 +59,7 @@ def unset_reaction() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}{?%24expand,%24select}") end ## ## Delete navigation property messages for chats @@ -71,8 +71,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -85,8 +84,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -101,8 +99,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -112,13 +109,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,15 +126,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -148,17 +146,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a chat_message_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChatMessageItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a single message or a message reply in a channel or a chat. diff --git a/lib/chats/item/messages/item/hosted_contents/count/count_request_builder.rb b/lib/chats/item/messages/item/hosted_contents/count/count_request_builder.rb index 096319700d..3638f77778 100644 --- a/lib/chats/item/messages/item/hosted_contents/count/count_request_builder.rb +++ b/lib/chats/item/messages/item/hosted_contents/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/hostedContents/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/hostedContents/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/chats/item/messages/item/hosted_contents/hosted_contents_request_builder.rb b/lib/chats/item/messages/item/hosted_contents/hosted_contents_request_builder.rb index cb467800bc..83e0c72faf 100644 --- a/lib/chats/item/messages/item/hosted_contents/hosted_contents_request_builder.rb +++ b/lib/chats/item/messages/item/hosted_contents/hosted_contents_request_builder.rb @@ -44,10 +44,10 @@ def by_chat_message_hosted_content_id(chat_message_hosted_content_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/hostedContents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + ## Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message_hosted_content_collection_response ## @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,26 +71,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + ## Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a hosted_contents_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HostedContentsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + # Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content. class HostedContentsRequestBuilderGetQueryParameters ## diff --git a/lib/chats/item/messages/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb b/lib/chats/item/messages/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb index 79f0878615..e23e08cfb2 100644 --- a/lib/chats/item/messages/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb +++ b/lib/chats/item/messages/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb @@ -33,7 +33,7 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}{?%24expand,%24select}") end ## ## Delete navigation property hostedContents for chats @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,13 +83,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -102,15 +100,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,17 +120,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a chat_message_hosted_content_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChatMessageHostedContentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of chatMessageHostedContent object. diff --git a/lib/chats/item/messages/item/hosted_contents/item/value/content_request_builder.rb b/lib/chats/item/messages/item/hosted_contents/item/value/content_request_builder.rb index d461c3bca6..4c8f2cab4c 100644 --- a/lib/chats/item/messages/item/hosted_contents/item/value/content_request_builder.rb +++ b/lib/chats/item/messages/item/hosted_contents/item/value/content_request_builder.rb @@ -31,7 +31,20 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value") end ## - ## Get media content for the navigation property hostedContents from chats + ## The unique identifier for an entity. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## @@ -40,12 +53,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Update media content for the navigation property hostedContents in chats + ## The unique identifier for an entity. Read-only. ## @param body Binary request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary @@ -56,28 +68,45 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Get media content for the navigation property hostedContents from chats + ## The unique identifier for an entity. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## - ## Update media content for the navigation property hostedContents in chats + ## The unique identifier for an entity. Read-only. ## @param body Binary request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -85,16 +114,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/chats/item/messages/item/replies/count/count_request_builder.rb b/lib/chats/item/messages/item/replies/count/count_request_builder.rb index fac5b15674..649c57a6fe 100644 --- a/lib/chats/item/messages/item/replies/count/count_request_builder.rb +++ b/lib/chats/item/messages/item/replies/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/chats/item/messages/item/replies/delta/delta.rb b/lib/chats/item/messages/item/replies/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/chats/item/messages/item/replies/delta/delta.rb +++ b/lib/chats/item/messages/item/replies/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/chats/item/messages/item/replies/delta/delta_get_response.rb b/lib/chats/item/messages/item/replies/delta/delta_get_response.rb new file mode 100644 index 0000000000..5c9dcb1f80 --- /dev/null +++ b/lib/chats/item/messages/item/replies/delta/delta_get_response.rb @@ -0,0 +1,81 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/base_delta_function_response' +require_relative '../../../../../../models/chat_message' +require_relative '../../../../../chats' +require_relative '../../../../item' +require_relative '../../../messages' +require_relative '../../item' +require_relative '../replies' +require_relative './delta' + +module MicrosoftGraph + module Chats + module Item + module Messages + module Item + module Replies + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a chat_message + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end +end diff --git a/lib/chats/item/messages/item/replies/delta/delta_request_builder.rb b/lib/chats/item/messages/item/replies/delta/delta_request_builder.rb index fa82f65d17..cd37015c05 100644 --- a/lib/chats/item/messages/item/replies/delta/delta_request_builder.rb +++ b/lib/chats/item/messages/item/replies/delta/delta_request_builder.rb @@ -26,49 +26,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Chats::Item::Messages::Item::Replies::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Chats::Item::Messages::Item::Replies::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. class DeltaRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -96,6 +107,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/chats/item/messages/item/replies/delta/delta_response.rb b/lib/chats/item/messages/item/replies/delta/delta_response.rb deleted file mode 100644 index 18313c099c..0000000000 --- a/lib/chats/item/messages/item/replies/delta/delta_response.rb +++ /dev/null @@ -1,81 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/base_delta_function_response' -require_relative '../../../../../../models/chat_message' -require_relative '../../../../../chats' -require_relative '../../../../item' -require_relative '../../../messages' -require_relative '../../item' -require_relative '../replies' -require_relative './delta' - -module MicrosoftGraph - module Chats - module Item - module Messages - module Item - module Replies - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a chat_message - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/chats/item/messages/item/replies/item/chat_message_item_request_builder.rb b/lib/chats/item/messages/item/replies/item/chat_message_item_request_builder.rb index ea9564af98..3f6e94ee2d 100644 --- a/lib/chats/item/messages/item/replies/item/chat_message_item_request_builder.rb +++ b/lib/chats/item/messages/item/replies/item/chat_message_item_request_builder.rb @@ -57,7 +57,7 @@ def unset_reaction() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}{?%24expand,%24select}") end ## ## Delete navigation property replies for chats @@ -69,12 +69,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve a single message or a message reply in a channel or a chat. + ## Replies for a specified message. Supports $expand for channel messages. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message ## @@ -83,8 +82,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,8 +97,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -110,31 +107,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve a single message or a message reply in a channel or a chat. + ## Replies for a specified message. Supports $expand for channel messages. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -146,20 +144,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a chat_message_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChatMessageItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a single message or a message reply in a channel or a chat. + # Replies for a specified message. Supports $expand for channel messages. class ChatMessageItemRequestBuilderGetQueryParameters ## diff --git a/lib/chats/item/messages/item/replies/item/hosted_contents/count/count_request_builder.rb b/lib/chats/item/messages/item/replies/item/hosted_contents/count/count_request_builder.rb index 941493e056..7e3ced807e 100644 --- a/lib/chats/item/messages/item/replies/item/hosted_contents/count/count_request_builder.rb +++ b/lib/chats/item/messages/item/replies/item/hosted_contents/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/chats/item/messages/item/replies/item/hosted_contents/hosted_contents_request_builder.rb b/lib/chats/item/messages/item/replies/item/hosted_contents/hosted_contents_request_builder.rb index 413818e80a..1c2ff7fb95 100644 --- a/lib/chats/item/messages/item/replies/item/hosted_contents/hosted_contents_request_builder.rb +++ b/lib/chats/item/messages/item/replies/item/hosted_contents/hosted_contents_request_builder.rb @@ -48,10 +48,10 @@ def by_chat_message_hosted_content_id(chat_message_hosted_content_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message_hosted_content_collection_response ## @@ -60,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,26 +75,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -107,20 +105,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a hosted_contents_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HostedContentsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + # Content in a message hosted by Microsoft Teams - for example, images or code snippets. class HostedContentsRequestBuilderGetQueryParameters ## diff --git a/lib/chats/item/messages/item/replies/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb b/lib/chats/item/messages/item/replies/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb index 806a6de513..9a9b04d029 100644 --- a/lib/chats/item/messages/item/replies/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb +++ b/lib/chats/item/messages/item/replies/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb @@ -37,7 +37,7 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}{?%24expand,%24select}") end ## ## Delete navigation property hostedContents for chats @@ -49,12 +49,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of chatMessageHostedContent object. + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message_hosted_content ## @@ -63,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,8 +77,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,31 +87,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of chatMessageHostedContent object. + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,20 +124,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a chat_message_hosted_content_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChatMessageHostedContentItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of chatMessageHostedContent object. + # Content in a message hosted by Microsoft Teams - for example, images or code snippets. class ChatMessageHostedContentItemRequestBuilderGetQueryParameters ## diff --git a/lib/chats/item/messages/item/replies/item/hosted_contents/item/value/content_request_builder.rb b/lib/chats/item/messages/item/replies/item/hosted_contents/item/value/content_request_builder.rb index bc04cab15c..9642d52848 100644 --- a/lib/chats/item/messages/item/replies/item/hosted_contents/item/value/content_request_builder.rb +++ b/lib/chats/item/messages/item/replies/item/hosted_contents/item/value/content_request_builder.rb @@ -35,7 +35,20 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value") end ## - ## Get media content for the navigation property hostedContents from chats + ## The unique identifier for an entity. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The unique identifier for an entity. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## @@ -44,12 +57,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Update media content for the navigation property hostedContents in chats + ## The unique identifier for an entity. Read-only. ## @param body Binary request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary @@ -60,28 +72,45 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Get media content for the navigation property hostedContents from chats + ## The unique identifier for an entity. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The unique identifier for an entity. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## - ## Update media content for the navigation property hostedContents in chats + ## The unique identifier for an entity. Read-only. ## @param body Binary request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -89,16 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/chats/item/messages/item/replies/item/set_reaction/set_reaction_post_request_body.rb b/lib/chats/item/messages/item/replies/item/set_reaction/set_reaction_post_request_body.rb index 57a38a961b..7974eb410c 100644 --- a/lib/chats/item/messages/item/replies/item/set_reaction/set_reaction_post_request_body.rb +++ b/lib/chats/item/messages/item/replies/item/set_reaction/set_reaction_post_request_body.rb @@ -25,22 +25,22 @@ class SetReactionPostRequestBody # The reactionType property @reaction_type ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new setReactionPostRequestBody and sets the default values. + ## Instantiates a new SetReactionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/chats/item/messages/item/replies/item/set_reaction/set_reaction_request_builder.rb b/lib/chats/item/messages/item/replies/item/set_reaction/set_reaction_request_builder.rb index dd858bd279..e54a7f2074 100644 --- a/lib/chats/item/messages/item/replies/item/set_reaction/set_reaction_request_builder.rb +++ b/lib/chats/item/messages/item/replies/item/set_reaction/set_reaction_request_builder.rb @@ -42,8 +42,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,16 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_reaction_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetReactionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/chats/item/messages/item/replies/item/soft_delete/soft_delete_request_builder.rb b/lib/chats/item/messages/item/replies/item/soft_delete/soft_delete_request_builder.rb index c2f1dbfe9a..6874a0b303 100644 --- a/lib/chats/item/messages/item/replies/item/soft_delete/soft_delete_request_builder.rb +++ b/lib/chats/item/messages/item/replies/item/soft_delete/soft_delete_request_builder.rb @@ -40,8 +40,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,15 +50,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a soft_delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SoftDeleteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/chats/item/messages/item/replies/item/undo_soft_delete/undo_soft_delete_request_builder.rb b/lib/chats/item/messages/item/replies/item/undo_soft_delete/undo_soft_delete_request_builder.rb index 7f60e290b9..ba6c11dad7 100644 --- a/lib/chats/item/messages/item/replies/item/undo_soft_delete/undo_soft_delete_request_builder.rb +++ b/lib/chats/item/messages/item/replies/item/undo_soft_delete/undo_soft_delete_request_builder.rb @@ -40,8 +40,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,15 +50,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a undo_soft_delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UndoSoftDeleteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/chats/item/messages/item/replies/item/unset_reaction/unset_reaction_post_request_body.rb b/lib/chats/item/messages/item/replies/item/unset_reaction/unset_reaction_post_request_body.rb index e8a0532c8a..22fa64f5d8 100644 --- a/lib/chats/item/messages/item/replies/item/unset_reaction/unset_reaction_post_request_body.rb +++ b/lib/chats/item/messages/item/replies/item/unset_reaction/unset_reaction_post_request_body.rb @@ -25,22 +25,22 @@ class UnsetReactionPostRequestBody # The reactionType property @reaction_type ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new unsetReactionPostRequestBody and sets the default values. + ## Instantiates a new UnsetReactionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/chats/item/messages/item/replies/item/unset_reaction/unset_reaction_request_builder.rb b/lib/chats/item/messages/item/replies/item/unset_reaction/unset_reaction_request_builder.rb index 22d0c80a11..4bfced6931 100644 --- a/lib/chats/item/messages/item/replies/item/unset_reaction/unset_reaction_request_builder.rb +++ b/lib/chats/item/messages/item/replies/item/unset_reaction/unset_reaction_request_builder.rb @@ -42,8 +42,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,16 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unset_reaction_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnsetReactionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/chats/item/messages/item/replies/replies_request_builder.rb b/lib/chats/item/messages/item/replies/replies_request_builder.rb index 79675d0838..80801e8220 100644 --- a/lib/chats/item/messages/item/replies/replies_request_builder.rb +++ b/lib/chats/item/messages/item/replies/replies_request_builder.rb @@ -50,10 +50,10 @@ def by_chat_message_id1(chat_message_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + ## Replies for a specified message. Supports $expand for channel messages. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message_collection_response ## @@ -62,12 +62,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Create new navigation property to replies for chats ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -78,30 +77,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + ## Replies for a specified message. Supports $expand for channel messages. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Create new navigation property to replies for chats ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a replies_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RepliesRequestBuilder.new(raw_url, @request_adapter) + end ## - # List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + # Replies for a specified message. Supports $expand for channel messages. class RepliesRequestBuilderGetQueryParameters ## diff --git a/lib/chats/item/messages/item/set_reaction/set_reaction_post_request_body.rb b/lib/chats/item/messages/item/set_reaction/set_reaction_post_request_body.rb index 4fb15fd36d..8a6055b820 100644 --- a/lib/chats/item/messages/item/set_reaction/set_reaction_post_request_body.rb +++ b/lib/chats/item/messages/item/set_reaction/set_reaction_post_request_body.rb @@ -21,22 +21,22 @@ class SetReactionPostRequestBody # The reactionType property @reaction_type ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new setReactionPostRequestBody and sets the default values. + ## Instantiates a new SetReactionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/chats/item/messages/item/set_reaction/set_reaction_request_builder.rb b/lib/chats/item/messages/item/set_reaction/set_reaction_request_builder.rb index 07b58d5754..f54db1d0f2 100644 --- a/lib/chats/item/messages/item/set_reaction/set_reaction_request_builder.rb +++ b/lib/chats/item/messages/item/set_reaction/set_reaction_request_builder.rb @@ -38,8 +38,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,16 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_reaction_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetReactionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/chats/item/messages/item/soft_delete/soft_delete_request_builder.rb b/lib/chats/item/messages/item/soft_delete/soft_delete_request_builder.rb index 645bf3bc12..2796865ec4 100644 --- a/lib/chats/item/messages/item/soft_delete/soft_delete_request_builder.rb +++ b/lib/chats/item/messages/item/soft_delete/soft_delete_request_builder.rb @@ -36,8 +36,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,15 +46,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a soft_delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SoftDeleteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/chats/item/messages/item/undo_soft_delete/undo_soft_delete_request_builder.rb b/lib/chats/item/messages/item/undo_soft_delete/undo_soft_delete_request_builder.rb index 0cd8e2e9ef..fb1b0dbe1d 100644 --- a/lib/chats/item/messages/item/undo_soft_delete/undo_soft_delete_request_builder.rb +++ b/lib/chats/item/messages/item/undo_soft_delete/undo_soft_delete_request_builder.rb @@ -36,8 +36,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,15 +46,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a undo_soft_delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UndoSoftDeleteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/chats/item/messages/item/unset_reaction/unset_reaction_post_request_body.rb b/lib/chats/item/messages/item/unset_reaction/unset_reaction_post_request_body.rb index 5ce5dde4c1..4f7775b4aa 100644 --- a/lib/chats/item/messages/item/unset_reaction/unset_reaction_post_request_body.rb +++ b/lib/chats/item/messages/item/unset_reaction/unset_reaction_post_request_body.rb @@ -21,22 +21,22 @@ class UnsetReactionPostRequestBody # The reactionType property @reaction_type ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new unsetReactionPostRequestBody and sets the default values. + ## Instantiates a new UnsetReactionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/chats/item/messages/item/unset_reaction/unset_reaction_request_builder.rb b/lib/chats/item/messages/item/unset_reaction/unset_reaction_request_builder.rb index ce322ec98d..394b054536 100644 --- a/lib/chats/item/messages/item/unset_reaction/unset_reaction_request_builder.rb +++ b/lib/chats/item/messages/item/unset_reaction/unset_reaction_request_builder.rb @@ -38,8 +38,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,16 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unset_reaction_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnsetReactionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/chats/item/messages/messages_request_builder.rb b/lib/chats/item/messages/messages_request_builder.rb index 922415c55b..e4a703e5fb 100644 --- a/lib/chats/item/messages/messages_request_builder.rb +++ b/lib/chats/item/messages/messages_request_builder.rb @@ -46,7 +46,7 @@ def by_chat_message_id(chat_message_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/messages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,8 +73,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,15 +83,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,17 +103,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a messages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MessagesRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). diff --git a/lib/chats/item/permission_grants/count/count_request_builder.rb b/lib/chats/item/permission_grants/count/count_request_builder.rb index 9fead3164e..830083132f 100644 --- a/lib/chats/item/permission_grants/count/count_request_builder.rb +++ b/lib/chats/item/permission_grants/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/chats/item/permission_grants/delta/delta.rb b/lib/chats/item/permission_grants/delta/delta.rb deleted file mode 100644 index 0c348d20cb..0000000000 --- a/lib/chats/item/permission_grants/delta/delta.rb +++ /dev/null @@ -1 +0,0 @@ -require_relative 'delta_response' diff --git a/lib/chats/item/permission_grants/delta/delta_request_builder.rb b/lib/chats/item/permission_grants/delta/delta_request_builder.rb deleted file mode 100644 index 988918afd1..0000000000 --- a/lib/chats/item/permission_grants/delta/delta_request_builder.rb +++ /dev/null @@ -1,117 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/o_data_errors_o_data_error' -require_relative '../../../chats' -require_relative '../../item' -require_relative '../permission_grants' -require_relative './delta' - -module MicrosoftGraph - module Chats - module Item - module PermissionGrants - module Delta - ## - # Provides operations to call the delta method. - class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new DeltaRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") - end - ## - ## Invoke function delta - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response - ## - def get(request_configuration=nil) - request_info = self.to_get_request_information( - request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Chats::Item::PermissionGrants::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Invoke function delta - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_get_request_information(request_configuration=nil) - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) - request_info.add_request_options(request_configuration.options) - end - return request_info - end - - ## - # Invoke function delta - class DeltaRequestBuilderGetQueryParameters - - ## - # Include count of items - attr_accessor :count - ## - # Filter items by property values - attr_accessor :filter - ## - # Order items by property values - attr_accessor :orderby - ## - # Search items by search phrases - attr_accessor :search - ## - # Select properties to be returned - attr_accessor :select - ## - # Skip the first n items - attr_accessor :skip - ## - # Show only the first n items - attr_accessor :top - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "count" - return "%24count" - when "filter" - return "%24filter" - when "orderby" - return "%24orderby" - when "search" - return "%24search" - when "select" - return "%24select" - when "skip" - return "%24skip" - when "top" - return "%24top" - else - return original_name - end - end - end - end - end - end - end - end -end diff --git a/lib/chats/item/permission_grants/delta/delta_response.rb b/lib/chats/item/permission_grants/delta/delta_response.rb deleted file mode 100644 index db6249c787..0000000000 --- a/lib/chats/item/permission_grants/delta/delta_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/base_delta_function_response' -require_relative '../../../../models/directory_object' -require_relative '../../../chats' -require_relative '../../item' -require_relative '../permission_grants' -require_relative './delta' - -module MicrosoftGraph - module Chats - module Item - module PermissionGrants - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/chats/item/permission_grants/get_available_extension_properties/get_available_extension_properties.rb b/lib/chats/item/permission_grants/get_available_extension_properties/get_available_extension_properties.rb deleted file mode 100644 index b6fee576bf..0000000000 --- a/lib/chats/item/permission_grants/get_available_extension_properties/get_available_extension_properties.rb +++ /dev/null @@ -1,2 +0,0 @@ -require_relative 'get_available_extension_properties_post_request_body' -require_relative 'get_available_extension_properties_response' diff --git a/lib/chats/item/permission_grants/get_available_extension_properties/get_available_extension_properties_post_request_body.rb b/lib/chats/item/permission_grants/get_available_extension_properties/get_available_extension_properties_post_request_body.rb deleted file mode 100644 index 5740ca0083..0000000000 --- a/lib/chats/item/permission_grants/get_available_extension_properties/get_available_extension_properties_post_request_body.rb +++ /dev/null @@ -1,91 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../chats' -require_relative '../../item' -require_relative '../permission_grants' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module Chats - module Item - module PermissionGrants - module GetAvailableExtensionProperties - class GetAvailableExtensionPropertiesPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The isSyncedFromOnPremises property - @is_synced_from_on_premises - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new getAvailableExtensionPropertiesPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_available_extension_properties_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAvailableExtensionPropertiesPostRequestBody.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "isSyncedFromOnPremises" => lambda {|n| @is_synced_from_on_premises = n.get_boolean_value() }, - } - end - ## - ## Gets the isSyncedFromOnPremises property value. The isSyncedFromOnPremises property - ## @return a boolean - ## - def is_synced_from_on_premises - return @is_synced_from_on_premises - end - ## - ## Sets the isSyncedFromOnPremises property value. The isSyncedFromOnPremises property - ## @param value Value to set for the isSyncedFromOnPremises property. - ## @return a void - ## - def is_synced_from_on_premises=(value) - @is_synced_from_on_premises = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("isSyncedFromOnPremises", @is_synced_from_on_premises) - writer.write_additional_data(@additional_data) - end - end - end - end - end - end -end diff --git a/lib/chats/item/permission_grants/get_available_extension_properties/get_available_extension_properties_request_builder.rb b/lib/chats/item/permission_grants/get_available_extension_properties/get_available_extension_properties_request_builder.rb deleted file mode 100644 index f335dd1da4..0000000000 --- a/lib/chats/item/permission_grants/get_available_extension_properties/get_available_extension_properties_request_builder.rb +++ /dev/null @@ -1,68 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/o_data_errors_o_data_error' -require_relative '../../../chats' -require_relative '../../item' -require_relative '../permission_grants' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module Chats - module Item - module PermissionGrants - module GetAvailableExtensionProperties - ## - # Provides operations to call the getAvailableExtensionProperties method. - class GetAvailableExtensionPropertiesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new GetAvailableExtensionPropertiesRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants/getAvailableExtensionProperties") - end - ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_available_extension_properties_response - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Chats::Item::PermissionGrants::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end -end diff --git a/lib/chats/item/permission_grants/get_available_extension_properties/get_available_extension_properties_response.rb b/lib/chats/item/permission_grants/get_available_extension_properties/get_available_extension_properties_response.rb deleted file mode 100644 index 83f2a4bb0e..0000000000 --- a/lib/chats/item/permission_grants/get_available_extension_properties/get_available_extension_properties_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../../models/extension_property' -require_relative '../../../chats' -require_relative '../../item' -require_relative '../permission_grants' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module Chats - module Item - module PermissionGrants - module GetAvailableExtensionProperties - class GetAvailableExtensionPropertiesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_available_extension_properties_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAvailableExtensionPropertiesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a extension_property - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/chats/item/permission_grants/get_by_ids/get_by_ids.rb b/lib/chats/item/permission_grants/get_by_ids/get_by_ids.rb deleted file mode 100644 index e4b0824834..0000000000 --- a/lib/chats/item/permission_grants/get_by_ids/get_by_ids.rb +++ /dev/null @@ -1,2 +0,0 @@ -require_relative 'get_by_ids_post_request_body' -require_relative 'get_by_ids_response' diff --git a/lib/chats/item/permission_grants/get_by_ids/get_by_ids_post_request_body.rb b/lib/chats/item/permission_grants/get_by_ids/get_by_ids_post_request_body.rb deleted file mode 100644 index b9ef8ece32..0000000000 --- a/lib/chats/item/permission_grants/get_by_ids/get_by_ids_post_request_body.rb +++ /dev/null @@ -1,111 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../chats' -require_relative '../../item' -require_relative '../permission_grants' -require_relative './get_by_ids' - -module MicrosoftGraph - module Chats - module Item - module PermissionGrants - module GetByIds - class GetByIdsPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The ids property - @ids - ## - # The types property - @types - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new getByIdsPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_by_ids_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetByIdsPostRequestBody.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "ids" => lambda {|n| @ids = n.get_collection_of_primitive_values(String) }, - "types" => lambda {|n| @types = n.get_collection_of_primitive_values(String) }, - } - end - ## - ## Gets the ids property value. The ids property - ## @return a string - ## - def ids - return @ids - end - ## - ## Sets the ids property value. The ids property - ## @param value Value to set for the ids property. - ## @return a void - ## - def ids=(value) - @ids = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_collection_of_primitive_values("ids", @ids) - writer.write_collection_of_primitive_values("types", @types) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the types property value. The types property - ## @return a string - ## - def types - return @types - end - ## - ## Sets the types property value. The types property - ## @param value Value to set for the types property. - ## @return a void - ## - def types=(value) - @types = value - end - end - end - end - end - end -end diff --git a/lib/chats/item/permission_grants/get_by_ids/get_by_ids_request_builder.rb b/lib/chats/item/permission_grants/get_by_ids/get_by_ids_request_builder.rb deleted file mode 100644 index 267a4929ef..0000000000 --- a/lib/chats/item/permission_grants/get_by_ids/get_by_ids_request_builder.rb +++ /dev/null @@ -1,68 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/o_data_errors_o_data_error' -require_relative '../../../chats' -require_relative '../../item' -require_relative '../permission_grants' -require_relative './get_by_ids' - -module MicrosoftGraph - module Chats - module Item - module PermissionGrants - module GetByIds - ## - # Provides operations to call the getByIds method. - class GetByIdsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new GetByIdsRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants/getByIds") - end - ## - ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_by_ids_response - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Chats::Item::PermissionGrants::GetByIds::GetByIdsResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end -end diff --git a/lib/chats/item/permission_grants/get_by_ids/get_by_ids_response.rb b/lib/chats/item/permission_grants/get_by_ids/get_by_ids_response.rb deleted file mode 100644 index 555754ab4d..0000000000 --- a/lib/chats/item/permission_grants/get_by_ids/get_by_ids_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../../models/directory_object' -require_relative '../../../chats' -require_relative '../../item' -require_relative '../permission_grants' -require_relative './get_by_ids' - -module MicrosoftGraph - module Chats - module Item - module PermissionGrants - module GetByIds - class GetByIdsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getByIdsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_by_ids_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetByIdsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/chats/item/permission_grants/item/check_member_groups/check_member_groups.rb b/lib/chats/item/permission_grants/item/check_member_groups/check_member_groups.rb deleted file mode 100644 index 938b908522..0000000000 --- a/lib/chats/item/permission_grants/item/check_member_groups/check_member_groups.rb +++ /dev/null @@ -1,2 +0,0 @@ -require_relative 'check_member_groups_post_request_body' -require_relative 'check_member_groups_response' diff --git a/lib/chats/item/permission_grants/item/check_member_groups/check_member_groups_post_request_body.rb b/lib/chats/item/permission_grants/item/check_member_groups/check_member_groups_post_request_body.rb deleted file mode 100644 index cc246b542c..0000000000 --- a/lib/chats/item/permission_grants/item/check_member_groups/check_member_groups_post_request_body.rb +++ /dev/null @@ -1,94 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../chats' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './check_member_groups' - -module MicrosoftGraph - module Chats - module Item - module PermissionGrants - module Item - module CheckMemberGroups - class CheckMemberGroupsPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The groupIds property - @group_ids - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new checkMemberGroupsPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_groups_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberGroupsPostRequestBody.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "groupIds" => lambda {|n| @group_ids = n.get_collection_of_primitive_values(String) }, - } - end - ## - ## Gets the groupIds property value. The groupIds property - ## @return a string - ## - def group_ids - return @group_ids - end - ## - ## Sets the groupIds property value. The groupIds property - ## @param value Value to set for the groupIds property. - ## @return a void - ## - def group_ids=(value) - @group_ids = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_collection_of_primitive_values("groupIds", @group_ids) - writer.write_additional_data(@additional_data) - end - end - end - end - end - end - end -end diff --git a/lib/chats/item/permission_grants/item/check_member_groups/check_member_groups_request_builder.rb b/lib/chats/item/permission_grants/item/check_member_groups/check_member_groups_request_builder.rb deleted file mode 100644 index 4385a9ef1e..0000000000 --- a/lib/chats/item/permission_grants/item/check_member_groups/check_member_groups_request_builder.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../chats' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './check_member_groups' - -module MicrosoftGraph - module Chats - module Item - module PermissionGrants - module Item - module CheckMemberGroups - ## - # Provides operations to call the checkMemberGroups method. - class CheckMemberGroupsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new CheckMemberGroupsRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/checkMemberGroups") - end - ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_groups_response - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Chats::Item::PermissionGrants::Item::CheckMemberGroups::CheckMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end - end -end diff --git a/lib/chats/item/permission_grants/item/check_member_groups/check_member_groups_response.rb b/lib/chats/item/permission_grants/item/check_member_groups/check_member_groups_response.rb deleted file mode 100644 index ae88c93782..0000000000 --- a/lib/chats/item/permission_grants/item/check_member_groups/check_member_groups_response.rb +++ /dev/null @@ -1,77 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../chats' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './check_member_groups' - -module MicrosoftGraph - module Chats - module Item - module PermissionGrants - module Item - module CheckMemberGroups - class CheckMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/chats/item/permission_grants/item/check_member_objects/check_member_objects.rb b/lib/chats/item/permission_grants/item/check_member_objects/check_member_objects.rb deleted file mode 100644 index 67fbf971e7..0000000000 --- a/lib/chats/item/permission_grants/item/check_member_objects/check_member_objects.rb +++ /dev/null @@ -1,2 +0,0 @@ -require_relative 'check_member_objects_post_request_body' -require_relative 'check_member_objects_response' diff --git a/lib/chats/item/permission_grants/item/check_member_objects/check_member_objects_post_request_body.rb b/lib/chats/item/permission_grants/item/check_member_objects/check_member_objects_post_request_body.rb deleted file mode 100644 index ee2b1411b0..0000000000 --- a/lib/chats/item/permission_grants/item/check_member_objects/check_member_objects_post_request_body.rb +++ /dev/null @@ -1,94 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../chats' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './check_member_objects' - -module MicrosoftGraph - module Chats - module Item - module PermissionGrants - module Item - module CheckMemberObjects - class CheckMemberObjectsPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The ids property - @ids - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new checkMemberObjectsPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_objects_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberObjectsPostRequestBody.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "ids" => lambda {|n| @ids = n.get_collection_of_primitive_values(String) }, - } - end - ## - ## Gets the ids property value. The ids property - ## @return a string - ## - def ids - return @ids - end - ## - ## Sets the ids property value. The ids property - ## @param value Value to set for the ids property. - ## @return a void - ## - def ids=(value) - @ids = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_collection_of_primitive_values("ids", @ids) - writer.write_additional_data(@additional_data) - end - end - end - end - end - end - end -end diff --git a/lib/chats/item/permission_grants/item/check_member_objects/check_member_objects_request_builder.rb b/lib/chats/item/permission_grants/item/check_member_objects/check_member_objects_request_builder.rb deleted file mode 100644 index 765be87bbc..0000000000 --- a/lib/chats/item/permission_grants/item/check_member_objects/check_member_objects_request_builder.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../chats' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './check_member_objects' - -module MicrosoftGraph - module Chats - module Item - module PermissionGrants - module Item - module CheckMemberObjects - ## - # Provides operations to call the checkMemberObjects method. - class CheckMemberObjectsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new CheckMemberObjectsRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/checkMemberObjects") - end - ## - ## Invoke action checkMemberObjects - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_objects_response - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Chats::Item::PermissionGrants::Item::CheckMemberObjects::CheckMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Invoke action checkMemberObjects - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end - end -end diff --git a/lib/chats/item/permission_grants/item/check_member_objects/check_member_objects_response.rb b/lib/chats/item/permission_grants/item/check_member_objects/check_member_objects_response.rb deleted file mode 100644 index 281b764e29..0000000000 --- a/lib/chats/item/permission_grants/item/check_member_objects/check_member_objects_response.rb +++ /dev/null @@ -1,77 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../chats' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './check_member_objects' - -module MicrosoftGraph - module Chats - module Item - module PermissionGrants - module Item - module CheckMemberObjects - class CheckMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/chats/item/permission_grants/item/get_member_groups/get_member_groups.rb b/lib/chats/item/permission_grants/item/get_member_groups/get_member_groups.rb deleted file mode 100644 index 0a25b012ea..0000000000 --- a/lib/chats/item/permission_grants/item/get_member_groups/get_member_groups.rb +++ /dev/null @@ -1,2 +0,0 @@ -require_relative 'get_member_groups_post_request_body' -require_relative 'get_member_groups_response' diff --git a/lib/chats/item/permission_grants/item/get_member_groups/get_member_groups_post_request_body.rb b/lib/chats/item/permission_grants/item/get_member_groups/get_member_groups_post_request_body.rb deleted file mode 100644 index 1bdcd4454b..0000000000 --- a/lib/chats/item/permission_grants/item/get_member_groups/get_member_groups_post_request_body.rb +++ /dev/null @@ -1,94 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../chats' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './get_member_groups' - -module MicrosoftGraph - module Chats - module Item - module PermissionGrants - module Item - module GetMemberGroups - class GetMemberGroupsPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The securityEnabledOnly property - @security_enabled_only - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new getMemberGroupsPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_groups_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberGroupsPostRequestBody.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "securityEnabledOnly" => lambda {|n| @security_enabled_only = n.get_boolean_value() }, - } - end - ## - ## Gets the securityEnabledOnly property value. The securityEnabledOnly property - ## @return a boolean - ## - def security_enabled_only - return @security_enabled_only - end - ## - ## Sets the securityEnabledOnly property value. The securityEnabledOnly property - ## @param value Value to set for the securityEnabledOnly property. - ## @return a void - ## - def security_enabled_only=(value) - @security_enabled_only = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("securityEnabledOnly", @security_enabled_only) - writer.write_additional_data(@additional_data) - end - end - end - end - end - end - end -end diff --git a/lib/chats/item/permission_grants/item/get_member_groups/get_member_groups_request_builder.rb b/lib/chats/item/permission_grants/item/get_member_groups/get_member_groups_request_builder.rb deleted file mode 100644 index 0cdfecae38..0000000000 --- a/lib/chats/item/permission_grants/item/get_member_groups/get_member_groups_request_builder.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../chats' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './get_member_groups' - -module MicrosoftGraph - module Chats - module Item - module PermissionGrants - module Item - module GetMemberGroups - ## - # Provides operations to call the getMemberGroups method. - class GetMemberGroupsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new GetMemberGroupsRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberGroups") - end - ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_groups_response - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Chats::Item::PermissionGrants::Item::GetMemberGroups::GetMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end - end -end diff --git a/lib/chats/item/permission_grants/item/get_member_groups/get_member_groups_response.rb b/lib/chats/item/permission_grants/item/get_member_groups/get_member_groups_response.rb deleted file mode 100644 index c28fd32b74..0000000000 --- a/lib/chats/item/permission_grants/item/get_member_groups/get_member_groups_response.rb +++ /dev/null @@ -1,77 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../chats' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './get_member_groups' - -module MicrosoftGraph - module Chats - module Item - module PermissionGrants - module Item - module GetMemberGroups - class GetMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/chats/item/permission_grants/item/get_member_objects/get_member_objects.rb b/lib/chats/item/permission_grants/item/get_member_objects/get_member_objects.rb deleted file mode 100644 index 40edad6b9e..0000000000 --- a/lib/chats/item/permission_grants/item/get_member_objects/get_member_objects.rb +++ /dev/null @@ -1,2 +0,0 @@ -require_relative 'get_member_objects_post_request_body' -require_relative 'get_member_objects_response' diff --git a/lib/chats/item/permission_grants/item/get_member_objects/get_member_objects_post_request_body.rb b/lib/chats/item/permission_grants/item/get_member_objects/get_member_objects_post_request_body.rb deleted file mode 100644 index de0343e592..0000000000 --- a/lib/chats/item/permission_grants/item/get_member_objects/get_member_objects_post_request_body.rb +++ /dev/null @@ -1,94 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../chats' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './get_member_objects' - -module MicrosoftGraph - module Chats - module Item - module PermissionGrants - module Item - module GetMemberObjects - class GetMemberObjectsPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The securityEnabledOnly property - @security_enabled_only - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new getMemberObjectsPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_objects_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberObjectsPostRequestBody.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "securityEnabledOnly" => lambda {|n| @security_enabled_only = n.get_boolean_value() }, - } - end - ## - ## Gets the securityEnabledOnly property value. The securityEnabledOnly property - ## @return a boolean - ## - def security_enabled_only - return @security_enabled_only - end - ## - ## Sets the securityEnabledOnly property value. The securityEnabledOnly property - ## @param value Value to set for the securityEnabledOnly property. - ## @return a void - ## - def security_enabled_only=(value) - @security_enabled_only = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("securityEnabledOnly", @security_enabled_only) - writer.write_additional_data(@additional_data) - end - end - end - end - end - end - end -end diff --git a/lib/chats/item/permission_grants/item/get_member_objects/get_member_objects_request_builder.rb b/lib/chats/item/permission_grants/item/get_member_objects/get_member_objects_request_builder.rb deleted file mode 100644 index 3d8e26ed96..0000000000 --- a/lib/chats/item/permission_grants/item/get_member_objects/get_member_objects_request_builder.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../chats' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './get_member_objects' - -module MicrosoftGraph - module Chats - module Item - module PermissionGrants - module Item - module GetMemberObjects - ## - # Provides operations to call the getMemberObjects method. - class GetMemberObjectsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new GetMemberObjectsRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberObjects") - end - ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_objects_response - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Chats::Item::PermissionGrants::Item::GetMemberObjects::GetMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end - end -end diff --git a/lib/chats/item/permission_grants/item/get_member_objects/get_member_objects_response.rb b/lib/chats/item/permission_grants/item/get_member_objects/get_member_objects_response.rb deleted file mode 100644 index cdc4734c94..0000000000 --- a/lib/chats/item/permission_grants/item/get_member_objects/get_member_objects_response.rb +++ /dev/null @@ -1,77 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../chats' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './get_member_objects' - -module MicrosoftGraph - module Chats - module Item - module PermissionGrants - module Item - module GetMemberObjects - class GetMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/chats/item/permission_grants/item/resource_specific_permission_grant_item_request_builder.rb b/lib/chats/item/permission_grants/item/resource_specific_permission_grant_item_request_builder.rb index 762b9017af..1686c1a9ad 100644 --- a/lib/chats/item/permission_grants/item/resource_specific_permission_grant_item_request_builder.rb +++ b/lib/chats/item/permission_grants/item/resource_specific_permission_grant_item_request_builder.rb @@ -5,12 +5,7 @@ require_relative '../../../chats' require_relative '../../item' require_relative '../permission_grants' -require_relative './check_member_groups/check_member_groups_request_builder' -require_relative './check_member_objects/check_member_objects_request_builder' -require_relative './get_member_groups/get_member_groups_request_builder' -require_relative './get_member_objects/get_member_objects_request_builder' require_relative './item' -require_relative './restore/restore_request_builder' module MicrosoftGraph module Chats @@ -21,31 +16,6 @@ module Item # Provides operations to manage the permissionGrants property of the microsoft.graph.chat entity. class ResourceSpecificPermissionGrantItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - ## - # Provides operations to call the checkMemberGroups method. - def check_member_groups() - return MicrosoftGraph::Chats::Item::PermissionGrants::Item::CheckMemberGroups::CheckMemberGroupsRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the checkMemberObjects method. - def check_member_objects() - return MicrosoftGraph::Chats::Item::PermissionGrants::Item::CheckMemberObjects::CheckMemberObjectsRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the getMemberGroups method. - def get_member_groups() - return MicrosoftGraph::Chats::Item::PermissionGrants::Item::GetMemberGroups::GetMemberGroupsRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the getMemberObjects method. - def get_member_objects() - return MicrosoftGraph::Chats::Item::PermissionGrants::Item::GetMemberObjects::GetMemberObjectsRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the restore method. - def restore() - return MicrosoftGraph::Chats::Item::PermissionGrants::Item::Restore::RestoreRequestBuilder.new(@path_parameters, @request_adapter) - end ## ## Instantiates a new ResourceSpecificPermissionGrantItemRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -53,7 +23,7 @@ def restore() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}{?%24expand,%24select}") end ## ## Delete navigation property permissionGrants for chats @@ -65,12 +35,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get permissionGrants from chats + ## A collection of permissions granted to apps for the chat. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of resource_specific_permission_grant ## @@ -79,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ResourceSpecificPermissionGrant.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -95,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ResourceSpecificPermissionGrant.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -106,31 +73,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get permissionGrants from chats + ## A collection of permissions granted to apps for the chat. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -142,20 +110,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resource_specific_permission_grant_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourceSpecificPermissionGrantItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get permissionGrants from chats + # A collection of permissions granted to apps for the chat. class ResourceSpecificPermissionGrantItemRequestBuilderGetQueryParameters ## diff --git a/lib/chats/item/permission_grants/item/restore/restore_request_builder.rb b/lib/chats/item/permission_grants/item/restore/restore_request_builder.rb deleted file mode 100644 index 63d07d38ca..0000000000 --- a/lib/chats/item/permission_grants/item/restore/restore_request_builder.rb +++ /dev/null @@ -1,67 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/directory_object' -require_relative '../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../chats' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './restore' - -module MicrosoftGraph - module Chats - module Item - module PermissionGrants - module Item - module Restore - ## - # Provides operations to call the restore method. - class RestoreRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new RestoreRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/restore") - end - ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of directory_object - ## - def post(request_configuration=nil) - request_info = self.to_post_request_information( - request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(request_configuration=nil) - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - return request_info - end - end - end - end - end - end - end -end diff --git a/lib/chats/item/permission_grants/permission_grants_request_builder.rb b/lib/chats/item/permission_grants/permission_grants_request_builder.rb index 4001947989..10ef5cca7a 100644 --- a/lib/chats/item/permission_grants/permission_grants_request_builder.rb +++ b/lib/chats/item/permission_grants/permission_grants_request_builder.rb @@ -6,12 +6,8 @@ require_relative '../../chats' require_relative '../item' require_relative './count/count_request_builder' -require_relative './delta/delta_request_builder' -require_relative './get_available_extension_properties/get_available_extension_properties_request_builder' -require_relative './get_by_ids/get_by_ids_request_builder' require_relative './item/resource_specific_permission_grant_item_request_builder' require_relative './permission_grants' -require_relative './validate_properties/validate_properties_request_builder' module MicrosoftGraph module Chats @@ -27,26 +23,6 @@ def count() return MicrosoftGraph::Chats::Item::PermissionGrants::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## - # Provides operations to call the delta method. - def delta() - return MicrosoftGraph::Chats::Item::PermissionGrants::Delta::DeltaRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the getAvailableExtensionProperties method. - def get_available_extension_properties() - return MicrosoftGraph::Chats::Item::PermissionGrants::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the getByIds method. - def get_by_ids() - return MicrosoftGraph::Chats::Item::PermissionGrants::GetByIds::GetByIdsRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the validateProperties method. - def validate_properties() - return MicrosoftGraph::Chats::Item::PermissionGrants::ValidateProperties::ValidatePropertiesRequestBuilder.new(@path_parameters, @request_adapter) - end - ## ## Provides operations to manage the permissionGrants property of the microsoft.graph.chat entity. ## @param resource_specific_permission_grant_id The unique identifier of resourceSpecificPermissionGrant ## @return a resource_specific_permission_grant_item_request_builder @@ -64,10 +40,10 @@ def by_resource_specific_permission_grant_id(resource_specific_permission_grant_ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get permissionGrants from chats + ## List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding resource-specific access that each app has. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of resource_specific_permission_grant_collection_response ## @@ -76,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ResourceSpecificPermissionGrantCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,26 +67,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ResourceSpecificPermissionGrant.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get permissionGrants from chats + ## List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding resource-specific access that each app has. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -123,20 +97,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a permission_grants_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PermissionGrantsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get permissionGrants from chats + # List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding resource-specific access that each app has. class PermissionGrantsRequestBuilderGetQueryParameters ## diff --git a/lib/chats/item/permission_grants/validate_properties/validate_properties.rb b/lib/chats/item/permission_grants/validate_properties/validate_properties.rb deleted file mode 100644 index 6b178d139b..0000000000 --- a/lib/chats/item/permission_grants/validate_properties/validate_properties.rb +++ /dev/null @@ -1 +0,0 @@ -require_relative 'validate_properties_post_request_body' diff --git a/lib/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb b/lib/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb deleted file mode 100644 index 17bd9dbe49..0000000000 --- a/lib/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb +++ /dev/null @@ -1,151 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../chats' -require_relative '../../item' -require_relative '../permission_grants' -require_relative './validate_properties' - -module MicrosoftGraph - module Chats - module Item - module PermissionGrants - module ValidateProperties - class ValidatePropertiesPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The displayName property - @display_name - ## - # The entityType property - @entity_type - ## - # The mailNickname property - @mail_nickname - ## - # The onBehalfOfUserId property - @on_behalf_of_user_id - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new validatePropertiesPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a validate_properties_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return ValidatePropertiesPostRequestBody.new - end - ## - ## Gets the displayName property value. The displayName property - ## @return a string - ## - def display_name - return @display_name - end - ## - ## Sets the displayName property value. The displayName property - ## @param value Value to set for the displayName property. - ## @return a void - ## - def display_name=(value) - @display_name = value - end - ## - ## Gets the entityType property value. The entityType property - ## @return a string - ## - def entity_type - return @entity_type - end - ## - ## Sets the entityType property value. The entityType property - ## @param value Value to set for the entityType property. - ## @return a void - ## - def entity_type=(value) - @entity_type = value - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "displayName" => lambda {|n| @display_name = n.get_string_value() }, - "entityType" => lambda {|n| @entity_type = n.get_string_value() }, - "mailNickname" => lambda {|n| @mail_nickname = n.get_string_value() }, - "onBehalfOfUserId" => lambda {|n| @on_behalf_of_user_id = n.get_guid_value() }, - } - end - ## - ## Gets the mailNickname property value. The mailNickname property - ## @return a string - ## - def mail_nickname - return @mail_nickname - end - ## - ## Sets the mailNickname property value. The mailNickname property - ## @param value Value to set for the mailNickname property. - ## @return a void - ## - def mail_nickname=(value) - @mail_nickname = value - end - ## - ## Gets the onBehalfOfUserId property value. The onBehalfOfUserId property - ## @return a guid - ## - def on_behalf_of_user_id - return @on_behalf_of_user_id - end - ## - ## Sets the onBehalfOfUserId property value. The onBehalfOfUserId property - ## @param value Value to set for the onBehalfOfUserId property. - ## @return a void - ## - def on_behalf_of_user_id=(value) - @on_behalf_of_user_id = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_string_value("displayName", @display_name) - writer.write_string_value("entityType", @entity_type) - writer.write_string_value("mailNickname", @mail_nickname) - writer.write_guid_value("onBehalfOfUserId", @on_behalf_of_user_id) - writer.write_additional_data(@additional_data) - end - end - end - end - end - end -end diff --git a/lib/chats/item/permission_grants/validate_properties/validate_properties_request_builder.rb b/lib/chats/item/permission_grants/validate_properties/validate_properties_request_builder.rb deleted file mode 100644 index 937c523a9f..0000000000 --- a/lib/chats/item/permission_grants/validate_properties/validate_properties_request_builder.rb +++ /dev/null @@ -1,67 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/o_data_errors_o_data_error' -require_relative '../../../chats' -require_relative '../../item' -require_relative '../permission_grants' -require_relative './validate_properties' - -module MicrosoftGraph - module Chats - module Item - module PermissionGrants - module ValidateProperties - ## - # Provides operations to call the validateProperties method. - class ValidatePropertiesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new ValidatePropertiesRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants/validateProperties") - end - ## - ## Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of void - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, nil, error_mapping) - end - ## - ## Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end -end diff --git a/lib/chats/item/pinned_messages/count/count_request_builder.rb b/lib/chats/item/pinned_messages/count/count_request_builder.rb index e38fb017f9..11fb390fae 100644 --- a/lib/chats/item/pinned_messages/count/count_request_builder.rb +++ b/lib/chats/item/pinned_messages/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/pinnedMessages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/pinnedMessages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/chats/item/pinned_messages/item/message/message_request_builder.rb b/lib/chats/item/pinned_messages/item/message/message_request_builder.rb index b5f5a191b7..aaa6b71b9a 100644 --- a/lib/chats/item/pinned_messages/item/message/message_request_builder.rb +++ b/lib/chats/item/pinned_messages/item/message/message_request_builder.rb @@ -25,7 +25,7 @@ class MessageRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/pinnedMessages/{pinnedChatMessageInfo%2Did}/message{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/pinnedMessages/{pinnedChatMessageInfo%2Did}/message{?%24expand,%24select}") end ## ## Represents details about the chat message that is pinned. @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a message_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MessageRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents details about the chat message that is pinned. diff --git a/lib/chats/item/pinned_messages/item/pinned_chat_message_info_item_request_builder.rb b/lib/chats/item/pinned_messages/item/pinned_chat_message_info_item_request_builder.rb index 2da8a2b43b..fe5c18b2e1 100644 --- a/lib/chats/item/pinned_messages/item/pinned_chat_message_info_item_request_builder.rb +++ b/lib/chats/item/pinned_messages/item/pinned_chat_message_info_item_request_builder.rb @@ -29,7 +29,7 @@ def message() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/pinnedMessages/{pinnedChatMessageInfo%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/pinnedMessages/{pinnedChatMessageInfo%2Did}{?%24expand,%24select}") end ## ## Unpin a message from a chat. @@ -41,8 +41,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PinnedChatMessageInfo.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PinnedChatMessageInfo.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,13 +79,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -98,15 +96,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,17 +116,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a pinned_chat_message_info_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PinnedChatMessageInfoItemRequestBuilder.new(raw_url, @request_adapter) + end ## # A collection of all the pinned messages in the chat. Nullable. diff --git a/lib/chats/item/pinned_messages/pinned_messages_request_builder.rb b/lib/chats/item/pinned_messages/pinned_messages_request_builder.rb index 261d7af944..284b07e76f 100644 --- a/lib/chats/item/pinned_messages/pinned_messages_request_builder.rb +++ b/lib/chats/item/pinned_messages/pinned_messages_request_builder.rb @@ -40,7 +40,7 @@ def by_pinned_chat_message_info_id(pinned_chat_message_info_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/pinnedMessages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/pinnedMessages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a list of pinnedChatMessages in a chat. @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PinnedChatMessageInfoCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PinnedChatMessageInfo.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,15 +77,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a pinned_messages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PinnedMessagesRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a list of pinnedChatMessages in a chat. diff --git a/lib/chats/item/send_activity_notification/send_activity_notification_post_request_body.rb b/lib/chats/item/send_activity_notification/send_activity_notification_post_request_body.rb index 8d3cd4ce54..04510d57f5 100644 --- a/lib/chats/item/send_activity_notification/send_activity_notification_post_request_body.rb +++ b/lib/chats/item/send_activity_notification/send_activity_notification_post_request_body.rb @@ -30,6 +30,9 @@ class SendActivityNotificationPostRequestBody # The recipient property @recipient ## + # The teamsAppId property + @teams_app_id + ## # The templateParameters property @template_parameters ## @@ -51,15 +54,15 @@ def activity_type=(value) @activity_type = value end ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -81,7 +84,7 @@ def chain_id=(value) @chain_id = value end ## - ## Instantiates a new sendActivityNotificationPostRequestBody and sets the default values. + ## Instantiates a new SendActivityNotificationPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -106,6 +109,7 @@ def get_field_deserializers() "chainId" => lambda {|n| @chain_id = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) }, "previewText" => lambda {|n| @preview_text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ItemBody.create_from_discriminator_value(pn) }) }, "recipient" => lambda {|n| @recipient = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::TeamworkNotificationRecipient.create_from_discriminator_value(pn) }) }, + "teamsAppId" => lambda {|n| @teams_app_id = n.get_string_value() }, "templateParameters" => lambda {|n| @template_parameters = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::KeyValuePair.create_from_discriminator_value(pn) }) }, "topic" => lambda {|n| @topic = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::TeamworkActivityTopic.create_from_discriminator_value(pn) }) }, } @@ -151,11 +155,27 @@ def serialize(writer) writer.write_object_value("chainId", @chain_id) writer.write_object_value("previewText", @preview_text) writer.write_object_value("recipient", @recipient) + writer.write_string_value("teamsAppId", @teams_app_id) writer.write_collection_of_object_values("templateParameters", @template_parameters) writer.write_object_value("topic", @topic) writer.write_additional_data(@additional_data) end ## + ## Gets the teamsAppId property value. The teamsAppId property + ## @return a string + ## + def teams_app_id + return @teams_app_id + end + ## + ## Sets the teamsAppId property value. The teamsAppId property + ## @param value Value to set for the teamsAppId property. + ## @return a void + ## + def teams_app_id=(value) + @teams_app_id = value + end + ## ## Gets the templateParameters property value. The templateParameters property ## @return a key_value_pair ## diff --git a/lib/chats/item/send_activity_notification/send_activity_notification_request_builder.rb b/lib/chats/item/send_activity_notification/send_activity_notification_request_builder.rb index 058a699c55..cb3c384905 100644 --- a/lib/chats/item/send_activity_notification/send_activity_notification_request_builder.rb +++ b/lib/chats/item/send_activity_notification/send_activity_notification_request_builder.rb @@ -23,7 +23,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/sendActivityNotification") end ## - ## Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. + ## Send an activity feed notification in scope of a chat. For more information about sending notifications and the requirements for doing so, see sending Teams activity notifications. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. + ## Send an activity feed notification in scope of a chat. For more information about sending notifications and the requirements for doing so, see sending Teams activity notifications. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a send_activity_notification_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SendActivityNotificationRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/chats/item/tabs/count/count_request_builder.rb b/lib/chats/item/tabs/count/count_request_builder.rb index 34e0d9ed63..449dc87984 100644 --- a/lib/chats/item/tabs/count/count_request_builder.rb +++ b/lib/chats/item/tabs/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/tabs/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/tabs/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/chats/item/tabs/item/teams_app/teams_app_request_builder.rb b/lib/chats/item/tabs/item/teams_app/teams_app_request_builder.rb index e0a841838d..040942c565 100644 --- a/lib/chats/item/tabs/item/teams_app/teams_app_request_builder.rb +++ b/lib/chats/item/tabs/item/teams_app/teams_app_request_builder.rb @@ -25,10 +25,10 @@ class TeamsAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/tabs/{teamsTab%2Did}/teamsApp{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/tabs/{teamsTab%2Did}/teamsApp{?%24expand,%24select}") end ## - ## The application that is linked to the tab. This cannot be changed after tab creation. + ## The application that is linked to the tab. This can't be changed after tab creation. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teams_app ## @@ -37,31 +37,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsApp.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The application that is linked to the tab. This cannot be changed after tab creation. + ## The application that is linked to the tab. This can't be changed after tab creation. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a teams_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TeamsAppRequestBuilder.new(raw_url, @request_adapter) + end ## - # The application that is linked to the tab. This cannot be changed after tab creation. + # The application that is linked to the tab. This can't be changed after tab creation. class TeamsAppRequestBuilderGetQueryParameters ## diff --git a/lib/chats/item/tabs/item/teams_tab_item_request_builder.rb b/lib/chats/item/tabs/item/teams_tab_item_request_builder.rb index a21bd4a73c..c019013d70 100644 --- a/lib/chats/item/tabs/item/teams_tab_item_request_builder.rb +++ b/lib/chats/item/tabs/item/teams_tab_item_request_builder.rb @@ -29,7 +29,7 @@ def teams_app() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/tabs/{teamsTab%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/tabs/{teamsTab%2Did}{?%24expand,%24select}") end ## ## Remove (unpin) a tab from the specified chat. @@ -41,8 +41,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsTab.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsTab.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,13 +79,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -98,15 +96,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,17 +116,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a teams_tab_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TeamsTabItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of the specified tab in a chat. diff --git a/lib/chats/item/tabs/tabs_request_builder.rb b/lib/chats/item/tabs/tabs_request_builder.rb index e9660b0dda..f71aae58bc 100644 --- a/lib/chats/item/tabs/tabs_request_builder.rb +++ b/lib/chats/item/tabs/tabs_request_builder.rb @@ -40,7 +40,7 @@ def by_teams_tab_id(teams_tab_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/tabs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/chats/{chat%2Did}/tabs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve the list of tabs in the specified chat. @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsTabCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsTab.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,15 +77,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a tabs_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TabsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the list of tabs in the specified chat. diff --git a/lib/chats/item/unhide_for_user/unhide_for_user_post_request_body.rb b/lib/chats/item/unhide_for_user/unhide_for_user_post_request_body.rb index 913732936d..67fabe86eb 100644 --- a/lib/chats/item/unhide_for_user/unhide_for_user_post_request_body.rb +++ b/lib/chats/item/unhide_for_user/unhide_for_user_post_request_body.rb @@ -18,22 +18,22 @@ class UnhideForUserPostRequestBody # The user property @user ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new unhideForUserPostRequestBody and sets the default values. + ## Instantiates a new UnhideForUserPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/chats/item/unhide_for_user/unhide_for_user_request_builder.rb b/lib/chats/item/unhide_for_user/unhide_for_user_request_builder.rb index 5d24d7704e..d74164cee5 100644 --- a/lib/chats/item/unhide_for_user/unhide_for_user_request_builder.rb +++ b/lib/chats/item/unhide_for_user/unhide_for_user_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unhide_for_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnhideForUserRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/call_records/call_records_request_builder.rb b/lib/communications/call_records/call_records_request_builder.rb index d61377cdc9..a6a2671542 100644 --- a/lib/communications/call_records/call_records_request_builder.rb +++ b/lib/communications/call_records/call_records_request_builder.rb @@ -41,10 +41,10 @@ def by_call_record_id(call_record_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + ## Get the list of callRecord objects and their properties. The results can be optionally filtered using the $filter query parameter on the startDateTime and participant id properties. Note that the listed call records don't include expandable relationships such as sessions and participants_v2. You can expand these relationships using Get callRecord for a specific record. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of call_records_call_record_collection_response ## @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallRecordsCallRecordCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,26 +90,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallRecordsCallRecord.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + ## Get the list of callRecord objects and their properties. The results can be optionally filtered using the $filter query parameter on the startDateTime and participant id properties. Note that the listed call records don't include expandable relationships such as sessions and participants_v2. You can expand these relationships using Get callRecord for a specific record. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,20 +120,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a call_records_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CallRecordsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + # Get the list of callRecord objects and their properties. The results can be optionally filtered using the $filter query parameter on the startDateTime and participant id properties. Note that the listed call records don't include expandable relationships such as sessions and participants_v2. You can expand these relationships using Get callRecord for a specific record. class CallRecordsRequestBuilderGetQueryParameters ## diff --git a/lib/communications/call_records/count/count_request_builder.rb b/lib/communications/call_records/count/count_request_builder.rb index b5c2824d98..9e9e6bfde5 100644 --- a/lib/communications/call_records/count/count_request_builder.rb +++ b/lib/communications/call_records/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/communications/call_records/item/call_record_item_request_builder.rb b/lib/communications/call_records/item/call_record_item_request_builder.rb index 909cfceb9f..29b14be3ff 100644 --- a/lib/communications/call_records/item/call_record_item_request_builder.rb +++ b/lib/communications/call_records/item/call_record_item_request_builder.rb @@ -5,6 +5,8 @@ require_relative '../../communications' require_relative '../call_records' require_relative './item' +require_relative './organizer_v2/organizer_v2_request_builder' +require_relative './participants_v2/participants_v2_request_builder' require_relative './sessions/sessions_request_builder' module MicrosoftGraph @@ -15,6 +17,16 @@ module Item # Provides operations to manage the callRecords property of the microsoft.graph.cloudCommunications entity. class CallRecordItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to manage the organizer_v2 property of the microsoft.graph.callRecords.callRecord entity. + def organizer_v2() + return MicrosoftGraph::Communications::CallRecords::Item::Organizer_v2::OrganizerV2RequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the participants_v2 property of the microsoft.graph.callRecords.callRecord entity. + def participants_v2() + return MicrosoftGraph::Communications::CallRecords::Item::Participants_v2::ParticipantsV2RequestBuilder.new(@path_parameters, @request_adapter) + end ## # Provides operations to manage the sessions property of the microsoft.graph.callRecords.callRecord entity. def sessions() @@ -27,7 +39,7 @@ def sessions() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/{callRecord%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/{callRecord%2Did}{?%24expand,%24select}") end ## ## Delete navigation property callRecords for communications @@ -39,12 +51,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + ## Retrieve the properties and relationships of a callRecord object. You can get the id of a callRecord in two ways:* Subscribe to change notifications to the /communications/callRecords endpoint.* Use the callChainId property of a call. The call record is available only after the associated call is completed. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of call_records_call_record ## @@ -53,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallRecordsCallRecord.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallRecordsCallRecord.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,31 +89,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + ## Retrieve the properties and relationships of a callRecord object. You can get the id of a callRecord in two ways:* Subscribe to change notifications to the /communications/callRecords endpoint.* Use the callChainId property of a call. The call record is available only after the associated call is completed. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,20 +126,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a call_record_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CallRecordItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + # Retrieve the properties and relationships of a callRecord object. You can get the id of a callRecord in two ways:* Subscribe to change notifications to the /communications/callRecords endpoint.* Use the callChainId property of a call. The call record is available only after the associated call is completed. class CallRecordItemRequestBuilderGetQueryParameters ## diff --git a/lib/me/activities/item/history_items/history_items.rb b/lib/communications/call_records/item/organizer_v2/organizer_v2.rb similarity index 100% rename from lib/me/activities/item/history_items/history_items.rb rename to lib/communications/call_records/item/organizer_v2/organizer_v2.rb diff --git a/lib/communications/call_records/item/organizer_v2/organizer_v2_request_builder.rb b/lib/communications/call_records/item/organizer_v2/organizer_v2_request_builder.rb new file mode 100644 index 0000000000..d69ce77431 --- /dev/null +++ b/lib/communications/call_records/item/organizer_v2/organizer_v2_request_builder.rb @@ -0,0 +1,166 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/call_records_organizer' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../communications' +require_relative '../../call_records' +require_relative '../item' +require_relative './organizer_v2' + +module MicrosoftGraph + module Communications + module CallRecords + module Item + module Organizer_v2 + ## + # Provides operations to manage the organizer_v2 property of the microsoft.graph.callRecords.callRecord entity. + class OrganizerV2RequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OrganizerV2RequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/{callRecord%2Did}/organizer_v2{?%24expand,%24select}") + end + ## + ## Delete navigation property organizer_v2 for communications + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Identity of the organizer of the call. This relationship is expanded by default in callRecord methods. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of call_records_organizer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallRecordsOrganizer.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property organizer_v2 in communications + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of call_records_organizer + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallRecordsOrganizer.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property organizer_v2 for communications + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Identity of the organizer of the call. This relationship is expanded by default in callRecord methods. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property organizer_v2 in communications + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a organizer_v2_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OrganizerV2RequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Identity of the organizer of the call. This relationship is expanded by default in callRecord methods. + class OrganizerV2RequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/agreement_acceptances/count/count.rb b/lib/communications/call_records/item/participants_v2/count/count.rb similarity index 100% rename from lib/me/agreement_acceptances/count/count.rb rename to lib/communications/call_records/item/participants_v2/count/count.rb diff --git a/lib/communications/call_records/item/participants_v2/count/count_request_builder.rb b/lib/communications/call_records/item/participants_v2/count/count_request_builder.rb new file mode 100644 index 0000000000..e468073132 --- /dev/null +++ b/lib/communications/call_records/item/participants_v2/count/count_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../communications' +require_relative '../../../call_records' +require_relative '../../item' +require_relative '../participants_v2' +require_relative './count' + +module MicrosoftGraph + module Communications + module CallRecords + module Item + module Participants_v2 + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/{callRecord%2Did}/participants_v2/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/activities/item/history_items/item/item.rb b/lib/communications/call_records/item/participants_v2/item/item.rb similarity index 100% rename from lib/me/activities/item/history_items/item/item.rb rename to lib/communications/call_records/item/participants_v2/item/item.rb diff --git a/lib/communications/call_records/item/participants_v2/item/participant_item_request_builder.rb b/lib/communications/call_records/item/participants_v2/item/participant_item_request_builder.rb new file mode 100644 index 0000000000..eae5d0cefc --- /dev/null +++ b/lib/communications/call_records/item/participants_v2/item/participant_item_request_builder.rb @@ -0,0 +1,169 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/call_records_participant' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../communications' +require_relative '../../../call_records' +require_relative '../../item' +require_relative '../participants_v2' +require_relative './item' + +module MicrosoftGraph + module Communications + module CallRecords + module Item + module Participants_v2 + module Item + ## + # Provides operations to manage the participants_v2 property of the microsoft.graph.callRecords.callRecord entity. + class ParticipantItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ParticipantItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/{callRecord%2Did}/participants_v2/{participant%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property participants_v2 for communications + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## List of distinct participants in the call. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of call_records_participant + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallRecordsParticipant.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property participants_v2 in communications + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of call_records_participant + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallRecordsParticipant.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property participants_v2 for communications + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## List of distinct participants in the call. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property participants_v2 in communications + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a participant_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParticipantItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # List of distinct participants in the call. + class ParticipantItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/activities/item/history_items/item/activity/activity.rb b/lib/communications/call_records/item/participants_v2/participants_v2.rb similarity index 100% rename from lib/me/activities/item/history_items/item/activity/activity.rb rename to lib/communications/call_records/item/participants_v2/participants_v2.rb diff --git a/lib/communications/call_records/item/participants_v2/participants_v2_request_builder.rb b/lib/communications/call_records/item/participants_v2/participants_v2_request_builder.rb new file mode 100644 index 0000000000..497df3101f --- /dev/null +++ b/lib/communications/call_records/item/participants_v2/participants_v2_request_builder.rb @@ -0,0 +1,185 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/call_records_participant' +require_relative '../../../../models/call_records_participant_collection_response' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../communications' +require_relative '../../call_records' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './item/participant_item_request_builder' +require_relative './participants_v2' + +module MicrosoftGraph + module Communications + module CallRecords + module Item + module Participants_v2 + ## + # Provides operations to manage the participants_v2 property of the microsoft.graph.callRecords.callRecord entity. + class ParticipantsV2RequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Communications::CallRecords::Item::Participants_v2::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the participants_v2 property of the microsoft.graph.callRecords.callRecord entity. + ## @param participant_id The unique identifier of participant + ## @return a participant_item_request_builder + ## + def by_participant_id(participant_id) + raise StandardError, 'participant_id cannot be null' if participant_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["participant%2Did"] = participant_id + return MicrosoftGraph::Communications::CallRecords::Item::Participants_v2::Item::ParticipantItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ParticipantsV2RequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/{callRecord%2Did}/participants_v2{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get the list of participant objects associated with a callRecord. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of call_records_participant_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallRecordsParticipantCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to participants_v2 for communications + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of call_records_participant + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallRecordsParticipant.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the list of participant objects associated with a callRecord. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to participants_v2 for communications + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a participants_v2_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParticipantsV2RequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the list of participant objects associated with a callRecord. + class ParticipantsV2RequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/communications/call_records/item/sessions/count/count_request_builder.rb b/lib/communications/call_records/item/sessions/count/count_request_builder.rb index ab74779d9a..a291c9a036 100644 --- a/lib/communications/call_records/item/sessions/count/count_request_builder.rb +++ b/lib/communications/call_records/item/sessions/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/{callRecord%2Did}/sessions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/{callRecord%2Did}/sessions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/communications/call_records/item/sessions/item/segments/count/count_request_builder.rb b/lib/communications/call_records/item/sessions/item/segments/count/count_request_builder.rb index 6db11d748a..e71c3f87a1 100644 --- a/lib/communications/call_records/item/sessions/item/segments/count/count_request_builder.rb +++ b/lib/communications/call_records/item/sessions/item/segments/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/{callRecord%2Did}/sessions/{session%2Did}/segments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/{callRecord%2Did}/sessions/{session%2Did}/segments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/communications/call_records/item/sessions/item/segments/item/segment_item_request_builder.rb b/lib/communications/call_records/item/sessions/item/segments/item/segment_item_request_builder.rb index 0dee32be30..2e294dd7de 100644 --- a/lib/communications/call_records/item/sessions/item/segments/item/segment_item_request_builder.rb +++ b/lib/communications/call_records/item/sessions/item/segments/item/segment_item_request_builder.rb @@ -29,7 +29,7 @@ class SegmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/{callRecord%2Did}/sessions/{session%2Did}/segments/{segment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/{callRecord%2Did}/sessions/{session%2Did}/segments/{segment%2Did}{?%24expand,%24select}") end ## ## Delete navigation property segments for communications @@ -41,8 +41,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallRecordsSegment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallRecordsSegment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,13 +79,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -98,15 +96,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,17 +116,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a segment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SegmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The list of segments involved in the session. Read-only. Nullable. diff --git a/lib/communications/call_records/item/sessions/item/segments/segments_request_builder.rb b/lib/communications/call_records/item/sessions/item/segments/segments_request_builder.rb index 9bc6387a83..f3453ff2e7 100644 --- a/lib/communications/call_records/item/sessions/item/segments/segments_request_builder.rb +++ b/lib/communications/call_records/item/sessions/item/segments/segments_request_builder.rb @@ -46,7 +46,7 @@ def by_segment_id(segment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/{callRecord%2Did}/sessions/{session%2Did}/segments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/{callRecord%2Did}/sessions/{session%2Did}/segments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The list of segments involved in the session. Read-only. Nullable. @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallRecordsSegmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,8 +73,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallRecordsSegment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,15 +83,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,17 +103,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a segments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SegmentsRequestBuilder.new(raw_url, @request_adapter) + end ## # The list of segments involved in the session. Read-only. Nullable. diff --git a/lib/communications/call_records/item/sessions/item/session_item_request_builder.rb b/lib/communications/call_records/item/sessions/item/session_item_request_builder.rb index 8e9278d64b..1aaaa8626b 100644 --- a/lib/communications/call_records/item/sessions/item/session_item_request_builder.rb +++ b/lib/communications/call_records/item/sessions/item/session_item_request_builder.rb @@ -31,7 +31,7 @@ def segments() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/{callRecord%2Did}/sessions/{session%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/{callRecord%2Did}/sessions/{session%2Did}{?%24expand,%24select}") end ## ## Delete navigation property sessions for communications @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallRecordsSession.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallRecordsSession.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,15 +98,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a session_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SessionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # List of sessions involved in the call. Peer-to-peer calls typically only have one session, whereas group calls typically have at least one session per participant. Read-only. Nullable. diff --git a/lib/communications/call_records/item/sessions/sessions_request_builder.rb b/lib/communications/call_records/item/sessions/sessions_request_builder.rb index 5d45f7a03e..1819d6cf2e 100644 --- a/lib/communications/call_records/item/sessions/sessions_request_builder.rb +++ b/lib/communications/call_records/item/sessions/sessions_request_builder.rb @@ -42,7 +42,7 @@ def by_session_id(session_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/{callRecord%2Did}/sessions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/{callRecord%2Did}/sessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve the list of sessions associated with a callRecord object. If the sessions list is truncated, a sessions@odata.nextLink value will be provided to retrieve the next page of sessions. The maximum page size for sessions is 60 entries. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallRecordsSessionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallRecordsSession.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sessions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SessionsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the list of sessions associated with a callRecord object. If the sessions list is truncated, a sessions@odata.nextLink value will be provided to retrieve the next page of sessions. The maximum page size for sessions is 60 entries. diff --git a/lib/communications/call_records/microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time/0b4f001d2cd1a7e58f5621cb93199ac931951ed45d61c42860726e4f516f11f4.rb b/lib/communications/call_records/microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time/0b4f001d2cd1a7e58f5621cb93199ac931951ed45d61c42860726e4f516f11f4.rb index 24c05d1aef..dc5a6aa460 100644 --- a/lib/communications/call_records/microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time/0b4f001d2cd1a7e58f5621cb93199ac931951ed45d61c42860726e4f516f11f4.rb +++ b/lib/communications/call_records/microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time/0b4f001d2cd1a7e58f5621cb93199ac931951ed45d61c42860726e4f516f11f4.rb @@ -23,43 +23,51 @@ class MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTi ## @return a void ## def initialize(path_parameters, request_adapter, from_date_time=nil, to_date_time=nil) - super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/microsoft.graph.callRecords.getDirectRoutingCalls(fromDateTime={fromDateTime},toDateTime={toDateTime}){?%24top,%24skip,%24search,%24filter,%24count}") + super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/microsoft.graph.callRecords.getDirectRoutingCalls(fromDateTime={fromDateTime},toDateTime={toDateTime}){?%24count,%24filter,%24search,%24skip,%24top}") end ## - ## Invoke function getDirectRoutingCalls + ## Get a log of direct routing calls as a collection of directRoutingLogRow entries. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_direct_routing_calls_with_from_date_time_with_to_date_time_response + ## @return a Fiber of get_direct_routing_calls_with_from_date_time_with_to_date_time_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Communications::CallRecords::MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime::GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Communications::CallRecords::MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime::GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function getDirectRoutingCalls + ## Get a log of direct routing calls as a collection of directRoutingLogRow entries. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function getDirectRoutingCalls + # Get a log of direct routing calls as a collection of directRoutingLogRow entries. class MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetQueryParameters ## diff --git a/lib/communications/call_records/microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time/get_direct_routing_calls_with_from_date_time_with_to_date_time_get_response.rb b/lib/communications/call_records/microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time/get_direct_routing_calls_with_from_date_time_with_to_date_time_get_response.rb new file mode 100644 index 0000000000..59e804832e --- /dev/null +++ b/lib/communications/call_records/microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time/get_direct_routing_calls_with_from_date_time_with_to_date_time_get_response.rb @@ -0,0 +1,72 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../../models/call_records_direct_routing_log_row' +require_relative '../../communications' +require_relative '../call_records' +require_relative './microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time' + +module MicrosoftGraph + module Communications + module CallRecords + module MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime + class GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_direct_routing_calls_with_from_date_time_with_to_date_time_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CallRecordsDirectRoutingLogRow.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a call_records_direct_routing_log_row + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/communications/call_records/microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time/get_direct_routing_calls_with_from_date_time_with_to_date_time_response.rb b/lib/communications/call_records/microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time/get_direct_routing_calls_with_from_date_time_with_to_date_time_response.rb deleted file mode 100644 index e3d8ccb4c7..0000000000 --- a/lib/communications/call_records/microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time/get_direct_routing_calls_with_from_date_time_with_to_date_time_response.rb +++ /dev/null @@ -1,72 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../../models/call_records_direct_routing_log_row' -require_relative '../../communications' -require_relative '../call_records' -require_relative './microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time' - -module MicrosoftGraph - module Communications - module CallRecords - module MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime - class GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_direct_routing_calls_with_from_date_time_with_to_date_time_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CallRecordsDirectRoutingLogRow.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a call_records_direct_routing_log_row - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/communications/call_records/microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time/microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time.rb b/lib/communications/call_records/microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time/microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time.rb index 01c8231928..723923446a 100644 --- a/lib/communications/call_records/microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time/microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time.rb +++ b/lib/communications/call_records/microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time/microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time.rb @@ -1 +1 @@ -require_relative 'get_direct_routing_calls_with_from_date_time_with_to_date_time_response' +require_relative 'get_direct_routing_calls_with_from_date_time_with_to_date_time_get_response' diff --git a/lib/communications/call_records/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time/2ff200d164cec84baf5b570e76631427bf3cd3168578fa5068b156783f678b22.rb b/lib/communications/call_records/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time/2ff200d164cec84baf5b570e76631427bf3cd3168578fa5068b156783f678b22.rb index 3564b04229..153dc69bf7 100644 --- a/lib/communications/call_records/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time/2ff200d164cec84baf5b570e76631427bf3cd3168578fa5068b156783f678b22.rb +++ b/lib/communications/call_records/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time/2ff200d164cec84baf5b570e76631427bf3cd3168578fa5068b156783f678b22.rb @@ -23,43 +23,51 @@ class MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequest ## @return a void ## def initialize(path_parameters, request_adapter, from_date_time=nil, to_date_time=nil) - super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/microsoft.graph.callRecords.getPstnCalls(fromDateTime={fromDateTime},toDateTime={toDateTime}){?%24top,%24skip,%24search,%24filter,%24count}") + super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/microsoft.graph.callRecords.getPstnCalls(fromDateTime={fromDateTime},toDateTime={toDateTime}){?%24count,%24filter,%24search,%24skip,%24top}") end ## - ## Invoke function getPstnCalls + ## Get a log of PSTN calls as a collection of pstnCallLogRow entries. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_pstn_calls_with_from_date_time_with_to_date_time_response + ## @return a Fiber of get_pstn_calls_with_from_date_time_with_to_date_time_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Communications::CallRecords::MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime::GetPstnCallsWithFromDateTimeWithToDateTimeResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Communications::CallRecords::MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime::GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function getPstnCalls + ## Get a log of PSTN calls as a collection of pstnCallLogRow entries. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function getPstnCalls + # Get a log of PSTN calls as a collection of pstnCallLogRow entries. class MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilderGetQueryParameters ## diff --git a/lib/communications/call_records/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time/get_pstn_calls_with_from_date_time_with_to_date_time_get_response.rb b/lib/communications/call_records/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time/get_pstn_calls_with_from_date_time_with_to_date_time_get_response.rb new file mode 100644 index 0000000000..47f32e2681 --- /dev/null +++ b/lib/communications/call_records/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time/get_pstn_calls_with_from_date_time_with_to_date_time_get_response.rb @@ -0,0 +1,72 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../../models/call_records_pstn_call_log_row' +require_relative '../../communications' +require_relative '../call_records' +require_relative './microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time' + +module MicrosoftGraph + module Communications + module CallRecords + module MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime + class GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_pstn_calls_with_from_date_time_with_to_date_time_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CallRecordsPstnCallLogRow.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a call_records_pstn_call_log_row + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/communications/call_records/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time/get_pstn_calls_with_from_date_time_with_to_date_time_response.rb b/lib/communications/call_records/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time/get_pstn_calls_with_from_date_time_with_to_date_time_response.rb deleted file mode 100644 index 6680a80726..0000000000 --- a/lib/communications/call_records/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time/get_pstn_calls_with_from_date_time_with_to_date_time_response.rb +++ /dev/null @@ -1,72 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../../models/call_records_pstn_call_log_row' -require_relative '../../communications' -require_relative '../call_records' -require_relative './microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time' - -module MicrosoftGraph - module Communications - module CallRecords - module MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime - class GetPstnCallsWithFromDateTimeWithToDateTimeResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getPstnCallsWithFromDateTimeWithToDateTimeResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_pstn_calls_with_from_date_time_with_to_date_time_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetPstnCallsWithFromDateTimeWithToDateTimeResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CallRecordsPstnCallLogRow.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a call_records_pstn_call_log_row - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/communications/call_records/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time.rb b/lib/communications/call_records/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time.rb index 351296f522..fdd686be0d 100644 --- a/lib/communications/call_records/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time.rb +++ b/lib/communications/call_records/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time.rb @@ -1 +1 @@ -require_relative 'get_pstn_calls_with_from_date_time_with_to_date_time_response' +require_relative 'get_pstn_calls_with_from_date_time_with_to_date_time_get_response' diff --git a/lib/communications/calls/calls_request_builder.rb b/lib/communications/calls/calls_request_builder.rb index 21a2640fb3..4b7a08d5a3 100644 --- a/lib/communications/calls/calls_request_builder.rb +++ b/lib/communications/calls/calls_request_builder.rb @@ -44,7 +44,7 @@ def by_call_id(call_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/calls{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/calls{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve the properties and relationships of a call object. @@ -56,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You will need to register the calling bot and go through the list of permissions needed as mentioned below. + ## Create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You need to register the calling bot and go through the list of permissions needed. This API supports the following PSTN scenarios: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of call @@ -72,8 +71,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Call.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,19 +81,19 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You will need to register the calling bot and go through the list of permissions needed as mentioned below. + ## Create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You need to register the calling bot and go through the list of permissions needed. This API supports the following PSTN scenarios: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -103,17 +101,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a calls_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CallsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of a call object. diff --git a/lib/communications/calls/count/count_request_builder.rb b/lib/communications/calls/count/count_request_builder.rb index 1753adf9c5..a98211b7a1 100644 --- a/lib/communications/calls/count/count_request_builder.rb +++ b/lib/communications/calls/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/calls/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/communications/calls/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/communications/calls/item/add_large_gallery_view/add_large_gallery_view_post_request_body.rb b/lib/communications/calls/item/add_large_gallery_view/add_large_gallery_view_post_request_body.rb index 33d9f84432..747d5a81ac 100644 --- a/lib/communications/calls/item/add_large_gallery_view/add_large_gallery_view_post_request_body.rb +++ b/lib/communications/calls/item/add_large_gallery_view/add_large_gallery_view_post_request_body.rb @@ -19,15 +19,15 @@ class AddLargeGalleryViewPostRequestBody # The clientContext property @client_context ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -49,7 +49,7 @@ def client_context=(value) @client_context = value end ## - ## Instantiates a new addLargeGalleryViewPostRequestBody and sets the default values. + ## Instantiates a new AddLargeGalleryViewPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/communications/calls/item/add_large_gallery_view/add_large_gallery_view_request_builder.rb b/lib/communications/calls/item/add_large_gallery_view/add_large_gallery_view_request_builder.rb index 5db5a1c134..54f09aa472 100644 --- a/lib/communications/calls/item/add_large_gallery_view/add_large_gallery_view_request_builder.rb +++ b/lib/communications/calls/item/add_large_gallery_view/add_large_gallery_view_request_builder.rb @@ -37,8 +37,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AddLargeGalleryViewOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_large_gallery_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddLargeGalleryViewRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/calls/item/answer/answer_post_request_body.rb b/lib/communications/calls/item/answer/answer_post_request_body.rb index 9da071b556..a87638d05b 100644 --- a/lib/communications/calls/item/answer/answer_post_request_body.rb +++ b/lib/communications/calls/item/answer/answer_post_request_body.rb @@ -49,15 +49,15 @@ def accepted_modalities=(value) @accepted_modalities = value end ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -94,7 +94,7 @@ def callback_uri=(value) @callback_uri = value end ## - ## Instantiates a new answerPostRequestBody and sets the default values. + ## Instantiates a new AnswerPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/communications/calls/item/answer/answer_request_builder.rb b/lib/communications/calls/item/answer/answer_request_builder.rb index 529d2816fd..fd082941e8 100644 --- a/lib/communications/calls/item/answer/answer_request_builder.rb +++ b/lib/communications/calls/item/answer/answer_request_builder.rb @@ -25,7 +25,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/answer") end ## - ## Enable a bot to answer an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios. + ## Enable a bot to answer an incoming call. The incoming call request can be an invitation from a participant in a group call or a peer-to-peer call. If an invitation to a group call is received, the notification contains the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios and 5 seconds for policy-based recording scenarios. This API supports the following PSTN scenarios: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -36,12 +36,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Enable a bot to answer an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios. + ## Enable a bot to answer an incoming call. The incoming call request can be an invitation from a participant in a group call or a peer-to-peer call. If an invitation to a group call is received, the notification contains the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios and 5 seconds for policy-based recording scenarios. This API supports the following PSTN scenarios: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a answer_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AnswerRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/calls/item/audio_routing_groups/audio_routing_groups_request_builder.rb b/lib/communications/calls/item/audio_routing_groups/audio_routing_groups_request_builder.rb index cd9cf91cba..b5c89a2f39 100644 --- a/lib/communications/calls/item/audio_routing_groups/audio_routing_groups_request_builder.rb +++ b/lib/communications/calls/item/audio_routing_groups/audio_routing_groups_request_builder.rb @@ -42,7 +42,7 @@ def by_audio_routing_group_id(audio_routing_group_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/audioRoutingGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/audioRoutingGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of audioRoutingGroup objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AudioRoutingGroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AudioRoutingGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a audio_routing_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AudioRoutingGroupsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of audioRoutingGroup objects. diff --git a/lib/communications/calls/item/audio_routing_groups/count/count_request_builder.rb b/lib/communications/calls/item/audio_routing_groups/count/count_request_builder.rb index c75840dbce..0a6ef47104 100644 --- a/lib/communications/calls/item/audio_routing_groups/count/count_request_builder.rb +++ b/lib/communications/calls/item/audio_routing_groups/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/audioRoutingGroups/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/audioRoutingGroups/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/communications/calls/item/audio_routing_groups/item/audio_routing_group_item_request_builder.rb b/lib/communications/calls/item/audio_routing_groups/item/audio_routing_group_item_request_builder.rb index b845996698..16c58df6cc 100644 --- a/lib/communications/calls/item/audio_routing_groups/item/audio_routing_group_item_request_builder.rb +++ b/lib/communications/calls/item/audio_routing_groups/item/audio_routing_group_item_request_builder.rb @@ -25,7 +25,7 @@ class AudioRoutingGroupItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/audioRoutingGroups/{audioRoutingGroup%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/audioRoutingGroups/{audioRoutingGroup%2Did}{?%24expand,%24select}") end ## ## Delete the specified audioRoutingGroup. @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AudioRoutingGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AudioRoutingGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a audio_routing_group_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AudioRoutingGroupItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of an audioRoutingGroup object. diff --git a/lib/communications/calls/item/call_item_request_builder.rb b/lib/communications/calls/item/call_item_request_builder.rb index 2837d58471..b2e52447a2 100644 --- a/lib/communications/calls/item/call_item_request_builder.rb +++ b/lib/communications/calls/item/call_item_request_builder.rb @@ -19,6 +19,7 @@ require_relative './record_response/record_response_request_builder' require_relative './redirect/redirect_request_builder' require_relative './reject/reject_request_builder' +require_relative './send_dtmf_tones/send_dtmf_tones_request_builder' require_relative './subscribe_to_tone/subscribe_to_tone_request_builder' require_relative './transfer/transfer_request_builder' require_relative './unmute/unmute_request_builder' @@ -103,6 +104,11 @@ def reject() return MicrosoftGraph::Communications::Calls::Item::Reject::RejectRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the sendDtmfTones method. + def send_dtmf_tones() + return MicrosoftGraph::Communications::Calls::Item::SendDtmfTones::SendDtmfTonesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to call the subscribeToTone method. def subscribe_to_tone() return MicrosoftGraph::Communications::Calls::Item::SubscribeToTone::SubscribeToToneRequestBuilder.new(@path_parameters, @request_adapter) @@ -129,7 +135,7 @@ def update_recording_status() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}{?%24expand,%24select}") end ## ## Delete or hang up an active call. For group calls, this will only delete your call leg and the underlying group call will still continue. @@ -141,8 +147,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -155,8 +160,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Call.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -171,8 +175,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Call.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -182,13 +185,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -198,15 +202,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -218,17 +222,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a call_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CallItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of a call object. diff --git a/lib/communications/calls/item/cancel_media_processing/cancel_media_processing_post_request_body.rb b/lib/communications/calls/item/cancel_media_processing/cancel_media_processing_post_request_body.rb index faa243313b..10995f5f4c 100644 --- a/lib/communications/calls/item/cancel_media_processing/cancel_media_processing_post_request_body.rb +++ b/lib/communications/calls/item/cancel_media_processing/cancel_media_processing_post_request_body.rb @@ -19,15 +19,15 @@ class CancelMediaProcessingPostRequestBody # The clientContext property @client_context ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -49,7 +49,7 @@ def client_context=(value) @client_context = value end ## - ## Instantiates a new cancelMediaProcessingPostRequestBody and sets the default values. + ## Instantiates a new CancelMediaProcessingPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/communications/calls/item/cancel_media_processing/cancel_media_processing_request_builder.rb b/lib/communications/calls/item/cancel_media_processing/cancel_media_processing_request_builder.rb index 1805d7da53..4009b2671c 100644 --- a/lib/communications/calls/item/cancel_media_processing/cancel_media_processing_request_builder.rb +++ b/lib/communications/calls/item/cancel_media_processing/cancel_media_processing_request_builder.rb @@ -37,8 +37,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CancelMediaProcessingOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cancel_media_processing_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CancelMediaProcessingRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/calls/item/change_screen_sharing_role/change_screen_sharing_role_post_request_body.rb b/lib/communications/calls/item/change_screen_sharing_role/change_screen_sharing_role_post_request_body.rb index 5fe83dba32..e0bbfdfa46 100644 --- a/lib/communications/calls/item/change_screen_sharing_role/change_screen_sharing_role_post_request_body.rb +++ b/lib/communications/calls/item/change_screen_sharing_role/change_screen_sharing_role_post_request_body.rb @@ -20,22 +20,22 @@ class ChangeScreenSharingRolePostRequestBody # The role property @role ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new changeScreenSharingRolePostRequestBody and sets the default values. + ## Instantiates a new ChangeScreenSharingRolePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/communications/calls/item/change_screen_sharing_role/change_screen_sharing_role_request_builder.rb b/lib/communications/calls/item/change_screen_sharing_role/change_screen_sharing_role_request_builder.rb index 52510824d3..1d6216967e 100644 --- a/lib/communications/calls/item/change_screen_sharing_role/change_screen_sharing_role_request_builder.rb +++ b/lib/communications/calls/item/change_screen_sharing_role/change_screen_sharing_role_request_builder.rb @@ -36,8 +36,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a change_screen_sharing_role_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChangeScreenSharingRoleRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/calls/item/content_sharing_sessions/content_sharing_sessions_request_builder.rb b/lib/communications/calls/item/content_sharing_sessions/content_sharing_sessions_request_builder.rb index b026d52f66..3a216163dd 100644 --- a/lib/communications/calls/item/content_sharing_sessions/content_sharing_sessions_request_builder.rb +++ b/lib/communications/calls/item/content_sharing_sessions/content_sharing_sessions_request_builder.rb @@ -42,7 +42,7 @@ def by_content_sharing_session_id(content_sharing_session_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/contentSharingSessions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/contentSharingSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of contentSharingSession objects in a call. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentSharingSessionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentSharingSession.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_sharing_sessions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentSharingSessionsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of contentSharingSession objects in a call. diff --git a/lib/communications/calls/item/content_sharing_sessions/count/count_request_builder.rb b/lib/communications/calls/item/content_sharing_sessions/count/count_request_builder.rb index d71ae3e480..e0dcf1aea5 100644 --- a/lib/communications/calls/item/content_sharing_sessions/count/count_request_builder.rb +++ b/lib/communications/calls/item/content_sharing_sessions/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/contentSharingSessions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/contentSharingSessions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/communications/calls/item/content_sharing_sessions/item/content_sharing_session_item_request_builder.rb b/lib/communications/calls/item/content_sharing_sessions/item/content_sharing_session_item_request_builder.rb index 3558c54de6..d4b3a7d5e7 100644 --- a/lib/communications/calls/item/content_sharing_sessions/item/content_sharing_session_item_request_builder.rb +++ b/lib/communications/calls/item/content_sharing_sessions/item/content_sharing_session_item_request_builder.rb @@ -25,7 +25,7 @@ class ContentSharingSessionItemRequestBuilder < MicrosoftKiotaAbstractions::Base ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/contentSharingSessions/{contentSharingSession%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/contentSharingSessions/{contentSharingSession%2Did}{?%24expand,%24select}") end ## ## Delete navigation property contentSharingSessions for communications @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentSharingSession.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentSharingSession.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_sharing_session_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentSharingSessionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties of a contentSharingSession object in a call. diff --git a/lib/communications/calls/item/keep_alive/keep_alive_request_builder.rb b/lib/communications/calls/item/keep_alive/keep_alive_request_builder.rb index 2c23ed5b60..8cedcadff9 100644 --- a/lib/communications/calls/item/keep_alive/keep_alive_request_builder.rb +++ b/lib/communications/calls/item/keep_alive/keep_alive_request_builder.rb @@ -34,8 +34,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,15 +44,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a keep_alive_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return KeepAliveRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/calls/item/mute/mute_post_request_body.rb b/lib/communications/calls/item/mute/mute_post_request_body.rb index 077c48ffb6..03f7276551 100644 --- a/lib/communications/calls/item/mute/mute_post_request_body.rb +++ b/lib/communications/calls/item/mute/mute_post_request_body.rb @@ -19,15 +19,15 @@ class MutePostRequestBody # The clientContext property @client_context ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -49,7 +49,7 @@ def client_context=(value) @client_context = value end ## - ## Instantiates a new mutePostRequestBody and sets the default values. + ## Instantiates a new MutePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/communications/calls/item/mute/mute_request_builder.rb b/lib/communications/calls/item/mute/mute_request_builder.rb index 73d4337d5d..41403ce4b9 100644 --- a/lib/communications/calls/item/mute/mute_request_builder.rb +++ b/lib/communications/calls/item/mute/mute_request_builder.rb @@ -37,8 +37,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MuteParticipantOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mute_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MuteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/calls/item/operations/count/count_request_builder.rb b/lib/communications/calls/item/operations/count/count_request_builder.rb index 0c0f0c0440..75f173dafc 100644 --- a/lib/communications/calls/item/operations/count/count_request_builder.rb +++ b/lib/communications/calls/item/operations/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/operations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/operations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/communications/calls/item/operations/item/comms_operation_item_request_builder.rb b/lib/communications/calls/item/operations/item/comms_operation_item_request_builder.rb index b7a3242c88..ce63d6f9a4 100644 --- a/lib/communications/calls/item/operations/item/comms_operation_item_request_builder.rb +++ b/lib/communications/calls/item/operations/item/comms_operation_item_request_builder.rb @@ -25,7 +25,7 @@ class CommsOperationItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/operations/{commsOperation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/operations/{commsOperation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property operations for communications @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CommsOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CommsOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a comms_operation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CommsOperationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the status of an operation that adds the large gallery view to a call. diff --git a/lib/communications/calls/item/operations/operations_request_builder.rb b/lib/communications/calls/item/operations/operations_request_builder.rb index 546e9a195c..e4a54842d7 100644 --- a/lib/communications/calls/item/operations/operations_request_builder.rb +++ b/lib/communications/calls/item/operations/operations_request_builder.rb @@ -42,7 +42,7 @@ def by_comms_operation_id(comms_operation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the status of an operation that adds the large gallery view to a call. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CommsOperationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CommsOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a operations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OperationsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the status of an operation that adds the large gallery view to a call. diff --git a/lib/communications/calls/item/participants/count/count_request_builder.rb b/lib/communications/calls/item/participants/count/count_request_builder.rb index 3645669481..fa9570ddac 100644 --- a/lib/communications/calls/item/participants/count/count_request_builder.rb +++ b/lib/communications/calls/item/participants/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/participants/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/participants/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/communications/calls/item/participants/invite/invite_post_request_body.rb b/lib/communications/calls/item/participants/invite/invite_post_request_body.rb index 798632dd38..d8065bd7e9 100644 --- a/lib/communications/calls/item/participants/invite/invite_post_request_body.rb +++ b/lib/communications/calls/item/participants/invite/invite_post_request_body.rb @@ -25,15 +25,15 @@ class InvitePostRequestBody # The participants property @participants ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -55,7 +55,7 @@ def client_context=(value) @client_context = value end ## - ## Instantiates a new invitePostRequestBody and sets the default values. + ## Instantiates a new InvitePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/communications/calls/item/participants/invite/invite_request_builder.rb b/lib/communications/calls/item/participants/invite/invite_request_builder.rb index be949ad4a6..f8b7c3cefa 100644 --- a/lib/communications/calls/item/participants/invite/invite_request_builder.rb +++ b/lib/communications/calls/item/participants/invite/invite_request_builder.rb @@ -28,7 +28,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/participants/invite") end ## - ## Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. + ## Invite participants to the active call. For more information about how to handle operations, see commsOperation. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of invite_participants_operation @@ -39,12 +39,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::InviteParticipantsOperation.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. + ## Invite participants to the active call. For more information about how to handle operations, see commsOperation. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -52,17 +51,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a invite_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InviteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/calls/item/participants/item/mute/mute_post_request_body.rb b/lib/communications/calls/item/participants/item/mute/mute_post_request_body.rb index 45cc881b64..7d9c2c5e9b 100644 --- a/lib/communications/calls/item/participants/item/mute/mute_post_request_body.rb +++ b/lib/communications/calls/item/participants/item/mute/mute_post_request_body.rb @@ -23,15 +23,15 @@ class MutePostRequestBody # The clientContext property @client_context ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -53,7 +53,7 @@ def client_context=(value) @client_context = value end ## - ## Instantiates a new mutePostRequestBody and sets the default values. + ## Instantiates a new MutePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/communications/calls/item/participants/item/mute/mute_request_builder.rb b/lib/communications/calls/item/participants/item/mute/mute_request_builder.rb index 1fc309e433..57312ca8ee 100644 --- a/lib/communications/calls/item/participants/item/mute/mute_request_builder.rb +++ b/lib/communications/calls/item/participants/item/mute/mute_request_builder.rb @@ -41,8 +41,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MuteParticipantOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mute_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MuteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/calls/item/participants/item/participant_item_request_builder.rb b/lib/communications/calls/item/participants/item/participant_item_request_builder.rb index ef4f805d44..3958b4faad 100644 --- a/lib/communications/calls/item/participants/item/participant_item_request_builder.rb +++ b/lib/communications/calls/item/participants/item/participant_item_request_builder.rb @@ -43,7 +43,7 @@ def stop_hold_music() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/participants/{participant%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/participants/{participant%2Did}{?%24expand,%24select}") end ## ## Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. @@ -55,8 +55,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -69,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Participant.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,8 +83,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Participant.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -96,13 +93,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,15 +110,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,17 +130,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a participant_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParticipantItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of a participant object. diff --git a/lib/communications/calls/item/participants/item/start_hold_music/start_hold_music_post_request_body.rb b/lib/communications/calls/item/participants/item/start_hold_music/start_hold_music_post_request_body.rb index 1165b598f7..2d9a5ed1cb 100644 --- a/lib/communications/calls/item/participants/item/start_hold_music/start_hold_music_post_request_body.rb +++ b/lib/communications/calls/item/participants/item/start_hold_music/start_hold_music_post_request_body.rb @@ -27,15 +27,15 @@ class StartHoldMusicPostRequestBody # The customPrompt property @custom_prompt ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -57,7 +57,7 @@ def client_context=(value) @client_context = value end ## - ## Instantiates a new startHoldMusicPostRequestBody and sets the default values. + ## Instantiates a new StartHoldMusicPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/communications/calls/item/participants/item/start_hold_music/start_hold_music_request_builder.rb b/lib/communications/calls/item/participants/item/start_hold_music/start_hold_music_request_builder.rb index 796d14bab4..d873b89e23 100644 --- a/lib/communications/calls/item/participants/item/start_hold_music/start_hold_music_request_builder.rb +++ b/lib/communications/calls/item/participants/item/start_hold_music/start_hold_music_request_builder.rb @@ -41,8 +41,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StartHoldMusicOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a start_hold_music_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return StartHoldMusicRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/calls/item/participants/item/stop_hold_music/stop_hold_music_post_request_body.rb b/lib/communications/calls/item/participants/item/stop_hold_music/stop_hold_music_post_request_body.rb index 62cbb6e8f6..8906193104 100644 --- a/lib/communications/calls/item/participants/item/stop_hold_music/stop_hold_music_post_request_body.rb +++ b/lib/communications/calls/item/participants/item/stop_hold_music/stop_hold_music_post_request_body.rb @@ -23,15 +23,15 @@ class StopHoldMusicPostRequestBody # The clientContext property @client_context ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -53,7 +53,7 @@ def client_context=(value) @client_context = value end ## - ## Instantiates a new stopHoldMusicPostRequestBody and sets the default values. + ## Instantiates a new StopHoldMusicPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/communications/calls/item/participants/item/stop_hold_music/stop_hold_music_request_builder.rb b/lib/communications/calls/item/participants/item/stop_hold_music/stop_hold_music_request_builder.rb index 763bca387f..f361bdbf46 100644 --- a/lib/communications/calls/item/participants/item/stop_hold_music/stop_hold_music_request_builder.rb +++ b/lib/communications/calls/item/participants/item/stop_hold_music/stop_hold_music_request_builder.rb @@ -41,8 +41,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StopHoldMusicOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a stop_hold_music_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return StopHoldMusicRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/calls/item/participants/participants_request_builder.rb b/lib/communications/calls/item/participants/participants_request_builder.rb index 6a153bd876..43f09819c0 100644 --- a/lib/communications/calls/item/participants/participants_request_builder.rb +++ b/lib/communications/calls/item/participants/participants_request_builder.rb @@ -48,7 +48,7 @@ def by_participant_id(participant_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/participants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/participants{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of participant objects in the call. @@ -60,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ParticipantCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,8 +75,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Participant.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,15 +85,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -107,17 +105,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a participants_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParticipantsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of participant objects in the call. diff --git a/lib/communications/calls/item/play_prompt/play_prompt_post_request_body.rb b/lib/communications/calls/item/play_prompt/play_prompt_post_request_body.rb index 5926cfa00b..61455fa5db 100644 --- a/lib/communications/calls/item/play_prompt/play_prompt_post_request_body.rb +++ b/lib/communications/calls/item/play_prompt/play_prompt_post_request_body.rb @@ -23,15 +23,15 @@ class PlayPromptPostRequestBody # The prompts property @prompts ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -53,7 +53,7 @@ def client_context=(value) @client_context = value end ## - ## Instantiates a new playPromptPostRequestBody and sets the default values. + ## Instantiates a new PlayPromptPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/communications/calls/item/play_prompt/play_prompt_request_builder.rb b/lib/communications/calls/item/play_prompt/play_prompt_request_builder.rb index db63bdcf26..ca906cf0e0 100644 --- a/lib/communications/calls/item/play_prompt/play_prompt_request_builder.rb +++ b/lib/communications/calls/item/play_prompt/play_prompt_request_builder.rb @@ -37,8 +37,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlayPromptOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a play_prompt_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PlayPromptRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/calls/item/record_response/record_response_post_request_body.rb b/lib/communications/calls/item/record_response/record_response_post_request_body.rb index 2740a09feb..2f538fb802 100644 --- a/lib/communications/calls/item/record_response/record_response_post_request_body.rb +++ b/lib/communications/calls/item/record_response/record_response_post_request_body.rb @@ -41,15 +41,15 @@ class RecordResponsePostRequestBody # The stopTones property @stop_tones ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -86,7 +86,7 @@ def client_context=(value) @client_context = value end ## - ## Instantiates a new recordResponsePostRequestBody and sets the default values. + ## Instantiates a new RecordResponsePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/communications/calls/item/record_response/record_response_request_builder.rb b/lib/communications/calls/item/record_response/record_response_request_builder.rb index ee1944b45f..bb20381b9c 100644 --- a/lib/communications/calls/item/record_response/record_response_request_builder.rb +++ b/lib/communications/calls/item/record_response/record_response_request_builder.rb @@ -37,8 +37,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RecordOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a record_response_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RecordResponseRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/calls/item/redirect/redirect_post_request_body.rb b/lib/communications/calls/item/redirect/redirect_post_request_body.rb index ad8af631e4..de62af508d 100644 --- a/lib/communications/calls/item/redirect/redirect_post_request_body.rb +++ b/lib/communications/calls/item/redirect/redirect_post_request_body.rb @@ -26,15 +26,15 @@ class RedirectPostRequestBody # The timeout property @timeout ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -56,7 +56,7 @@ def callback_uri=(value) @callback_uri = value end ## - ## Instantiates a new redirectPostRequestBody and sets the default values. + ## Instantiates a new RedirectPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/communications/calls/item/redirect/redirect_request_builder.rb b/lib/communications/calls/item/redirect/redirect_request_builder.rb index 91dc1c6293..f4b6c0a4a2 100644 --- a/lib/communications/calls/item/redirect/redirect_request_builder.rb +++ b/lib/communications/calls/item/redirect/redirect_request_builder.rb @@ -36,8 +36,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a redirect_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RedirectRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/calls/item/reject/reject_post_request_body.rb b/lib/communications/calls/item/reject/reject_post_request_body.rb index a45e81514f..97559f0e0e 100644 --- a/lib/communications/calls/item/reject/reject_post_request_body.rb +++ b/lib/communications/calls/item/reject/reject_post_request_body.rb @@ -23,15 +23,15 @@ class RejectPostRequestBody # The reason property @reason ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -53,7 +53,7 @@ def callback_uri=(value) @callback_uri = value end ## - ## Instantiates a new rejectPostRequestBody and sets the default values. + ## Instantiates a new RejectPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/communications/calls/item/reject/reject_request_builder.rb b/lib/communications/calls/item/reject/reject_request_builder.rb index c0cc84a60b..dc1ba480f4 100644 --- a/lib/communications/calls/item/reject/reject_request_builder.rb +++ b/lib/communications/calls/item/reject/reject_request_builder.rb @@ -36,8 +36,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reject_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RejectRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/calls/item/send_dtmf_tones/send_dtmf_tones.rb b/lib/communications/calls/item/send_dtmf_tones/send_dtmf_tones.rb new file mode 100644 index 0000000000..a87fd4550f --- /dev/null +++ b/lib/communications/calls/item/send_dtmf_tones/send_dtmf_tones.rb @@ -0,0 +1 @@ +require_relative 'send_dtmf_tones_post_request_body' diff --git a/lib/communications/calls/item/send_dtmf_tones/send_dtmf_tones_post_request_body.rb b/lib/communications/calls/item/send_dtmf_tones/send_dtmf_tones_post_request_body.rb new file mode 100644 index 0000000000..04d8faa74f --- /dev/null +++ b/lib/communications/calls/item/send_dtmf_tones/send_dtmf_tones_post_request_body.rb @@ -0,0 +1,132 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/tone' +require_relative '../../../communications' +require_relative '../../calls' +require_relative '../item' +require_relative './send_dtmf_tones' + +module MicrosoftGraph + module Communications + module Calls + module Item + module SendDtmfTones + class SendDtmfTonesPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The clientContext property + @client_context + ## + # The delayBetweenTonesMs property + @delay_between_tones_ms + ## + # The tones property + @tones + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the clientContext property value. The clientContext property + ## @return a string + ## + def client_context + return @client_context + end + ## + ## Sets the clientContext property value. The clientContext property + ## @param value Value to set for the clientContext property. + ## @return a void + ## + def client_context=(value) + @client_context = value + end + ## + ## Instantiates a new SendDtmfTonesPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a send_dtmf_tones_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return SendDtmfTonesPostRequestBody.new + end + ## + ## Gets the delayBetweenTonesMs property value. The delayBetweenTonesMs property + ## @return a integer + ## + def delay_between_tones_ms + return @delay_between_tones_ms + end + ## + ## Sets the delayBetweenTonesMs property value. The delayBetweenTonesMs property + ## @param value Value to set for the delayBetweenTonesMs property. + ## @return a void + ## + def delay_between_tones_ms=(value) + @delay_between_tones_ms = value + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "clientContext" => lambda {|n| @client_context = n.get_string_value() }, + "delayBetweenTonesMs" => lambda {|n| @delay_between_tones_ms = n.get_number_value() }, + "tones" => lambda {|n| @tones = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Tone.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("clientContext", @client_context) + writer.write_number_value("delayBetweenTonesMs", @delay_between_tones_ms) + writer.write_collection_of_object_values("tones", @tones) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the tones property value. The tones property + ## @return a tone + ## + def tones + return @tones + end + ## + ## Sets the tones property value. The tones property + ## @param value Value to set for the tones property. + ## @return a void + ## + def tones=(value) + @tones = value + end + end + end + end + end + end +end diff --git a/lib/communications/calls/item/send_dtmf_tones/send_dtmf_tones_request_builder.rb b/lib/communications/calls/item/send_dtmf_tones/send_dtmf_tones_request_builder.rb new file mode 100644 index 0000000000..c13a888ab5 --- /dev/null +++ b/lib/communications/calls/item/send_dtmf_tones/send_dtmf_tones_request_builder.rb @@ -0,0 +1,77 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../../models/send_dtmf_tones_operation' +require_relative '../../../communications' +require_relative '../../calls' +require_relative '../item' +require_relative './send_dtmf_tones' + +module MicrosoftGraph + module Communications + module Calls + module Item + module SendDtmfTones + ## + # Provides operations to call the sendDtmfTones method. + class SendDtmfTonesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SendDtmfTonesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/sendDtmfTones") + end + ## + ## Invoke action sendDtmfTones + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of send_dtmf_tones_operation + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SendDtmfTonesOperation.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action sendDtmfTones + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a send_dtmf_tones_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SendDtmfTonesRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end +end diff --git a/lib/communications/calls/item/subscribe_to_tone/subscribe_to_tone_post_request_body.rb b/lib/communications/calls/item/subscribe_to_tone/subscribe_to_tone_post_request_body.rb index ffc63673f8..f445f17ad8 100644 --- a/lib/communications/calls/item/subscribe_to_tone/subscribe_to_tone_post_request_body.rb +++ b/lib/communications/calls/item/subscribe_to_tone/subscribe_to_tone_post_request_body.rb @@ -19,15 +19,15 @@ class SubscribeToTonePostRequestBody # The clientContext property @client_context ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -49,7 +49,7 @@ def client_context=(value) @client_context = value end ## - ## Instantiates a new subscribeToTonePostRequestBody and sets the default values. + ## Instantiates a new SubscribeToTonePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/communications/calls/item/subscribe_to_tone/subscribe_to_tone_request_builder.rb b/lib/communications/calls/item/subscribe_to_tone/subscribe_to_tone_request_builder.rb index 730f926d8f..1a05fca808 100644 --- a/lib/communications/calls/item/subscribe_to_tone/subscribe_to_tone_request_builder.rb +++ b/lib/communications/calls/item/subscribe_to_tone/subscribe_to_tone_request_builder.rb @@ -26,7 +26,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/communications/calls/{call%2Did}/subscribeToTone") end ## - ## Subscribe to DTMF (dual-tone multi-frequency signaling). This allows you to be notified when the user presses keys on a 'dialpad'. + ## Subscribe to DTMF (dual-tone multi-frequency signaling) which allows you to be notified when the user presses keys on a 'dialpad'. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of subscribe_to_tone_operation @@ -37,12 +37,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SubscribeToToneOperation.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Subscribe to DTMF (dual-tone multi-frequency signaling). This allows you to be notified when the user presses keys on a 'dialpad'. + ## Subscribe to DTMF (dual-tone multi-frequency signaling) which allows you to be notified when the user presses keys on a 'dialpad'. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -50,17 +49,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a subscribe_to_tone_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SubscribeToToneRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/calls/item/transfer/transfer_post_request_body.rb b/lib/communications/calls/item/transfer/transfer_post_request_body.rb index 85982c6771..03a0d8e488 100644 --- a/lib/communications/calls/item/transfer/transfer_post_request_body.rb +++ b/lib/communications/calls/item/transfer/transfer_post_request_body.rb @@ -24,22 +24,22 @@ class TransferPostRequestBody # The transferee property @transferee ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new transferPostRequestBody and sets the default values. + ## Instantiates a new TransferPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/communications/calls/item/transfer/transfer_request_builder.rb b/lib/communications/calls/item/transfer/transfer_request_builder.rb index 8709febbe0..2d948f3d18 100644 --- a/lib/communications/calls/item/transfer/transfer_request_builder.rb +++ b/lib/communications/calls/item/transfer/transfer_request_builder.rb @@ -36,8 +36,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a transfer_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TransferRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/calls/item/unmute/unmute_post_request_body.rb b/lib/communications/calls/item/unmute/unmute_post_request_body.rb index a08115687f..7316d525a5 100644 --- a/lib/communications/calls/item/unmute/unmute_post_request_body.rb +++ b/lib/communications/calls/item/unmute/unmute_post_request_body.rb @@ -19,15 +19,15 @@ class UnmutePostRequestBody # The clientContext property @client_context ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -49,7 +49,7 @@ def client_context=(value) @client_context = value end ## - ## Instantiates a new unmutePostRequestBody and sets the default values. + ## Instantiates a new UnmutePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/communications/calls/item/unmute/unmute_request_builder.rb b/lib/communications/calls/item/unmute/unmute_request_builder.rb index 0993fe9409..00c437ed1b 100644 --- a/lib/communications/calls/item/unmute/unmute_request_builder.rb +++ b/lib/communications/calls/item/unmute/unmute_request_builder.rb @@ -37,8 +37,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UnmuteParticipantOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmute_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmuteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/calls/item/update_recording_status/update_recording_status_post_request_body.rb b/lib/communications/calls/item/update_recording_status/update_recording_status_post_request_body.rb index 57e6f8b6f4..cd356efa9d 100644 --- a/lib/communications/calls/item/update_recording_status/update_recording_status_post_request_body.rb +++ b/lib/communications/calls/item/update_recording_status/update_recording_status_post_request_body.rb @@ -23,15 +23,15 @@ class UpdateRecordingStatusPostRequestBody # The status property @status ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -53,7 +53,7 @@ def client_context=(value) @client_context = value end ## - ## Instantiates a new updateRecordingStatusPostRequestBody and sets the default values. + ## Instantiates a new UpdateRecordingStatusPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/communications/calls/item/update_recording_status/update_recording_status_request_builder.rb b/lib/communications/calls/item/update_recording_status/update_recording_status_request_builder.rb index 0265f91a26..d733465b2c 100644 --- a/lib/communications/calls/item/update_recording_status/update_recording_status_request_builder.rb +++ b/lib/communications/calls/item/update_recording_status/update_recording_status_request_builder.rb @@ -37,8 +37,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UpdateRecordingStatusOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a update_recording_status_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UpdateRecordingStatusRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/calls/log_teleconference_device_quality/log_teleconference_device_quality_post_request_body.rb b/lib/communications/calls/log_teleconference_device_quality/log_teleconference_device_quality_post_request_body.rb index dbb9807525..bcc70a434e 100644 --- a/lib/communications/calls/log_teleconference_device_quality/log_teleconference_device_quality_post_request_body.rb +++ b/lib/communications/calls/log_teleconference_device_quality/log_teleconference_device_quality_post_request_body.rb @@ -18,22 +18,22 @@ class LogTeleconferenceDeviceQualityPostRequestBody # The quality property @quality ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new logTeleconferenceDeviceQualityPostRequestBody and sets the default values. + ## Instantiates a new LogTeleconferenceDeviceQualityPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/communications/calls/log_teleconference_device_quality/log_teleconference_device_quality_request_builder.rb b/lib/communications/calls/log_teleconference_device_quality/log_teleconference_device_quality_request_builder.rb index 0d53590807..59975f9b4f 100644 --- a/lib/communications/calls/log_teleconference_device_quality/log_teleconference_device_quality_request_builder.rb +++ b/lib/communications/calls/log_teleconference_device_quality/log_teleconference_device_quality_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a log_teleconference_device_quality_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LogTeleconferenceDeviceQualityRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/communications_request_builder.rb b/lib/communications/communications_request_builder.rb index 0948331828..8c9835d012 100644 --- a/lib/communications/communications_request_builder.rb +++ b/lib/communications/communications_request_builder.rb @@ -47,7 +47,7 @@ def presences() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications{?%24expand,%24select}") end ## ## Get communications @@ -59,8 +59,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudCommunications.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +74,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudCommunications.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,15 +84,15 @@ def patch(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -106,17 +104,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a communications_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CommunicationsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get communications diff --git a/lib/communications/get_presences_by_user_id/get_presences_by_user_id.rb b/lib/communications/get_presences_by_user_id/get_presences_by_user_id.rb index c6d1faac71..707c775b34 100644 --- a/lib/communications/get_presences_by_user_id/get_presences_by_user_id.rb +++ b/lib/communications/get_presences_by_user_id/get_presences_by_user_id.rb @@ -1,2 +1,2 @@ require_relative 'get_presences_by_user_id_post_request_body' -require_relative 'get_presences_by_user_id_response' +require_relative 'get_presences_by_user_id_post_response' diff --git a/lib/communications/get_presences_by_user_id/get_presences_by_user_id_post_request_body.rb b/lib/communications/get_presences_by_user_id/get_presences_by_user_id_post_request_body.rb index 28f607a6c7..982fef811b 100644 --- a/lib/communications/get_presences_by_user_id/get_presences_by_user_id_post_request_body.rb +++ b/lib/communications/get_presences_by_user_id/get_presences_by_user_id_post_request_body.rb @@ -15,22 +15,22 @@ class GetPresencesByUserIdPostRequestBody # The ids property @ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getPresencesByUserIdPostRequestBody and sets the default values. + ## Instantiates a new GetPresencesByUserIdPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/communications/get_presences_by_user_id/get_presences_by_user_id_post_response.rb b/lib/communications/get_presences_by_user_id/get_presences_by_user_id_post_response.rb new file mode 100644 index 0000000000..9a27f0ee0b --- /dev/null +++ b/lib/communications/get_presences_by_user_id/get_presences_by_user_id_post_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_collection_pagination_count_response' +require_relative '../../models/presence' +require_relative '../communications' +require_relative './get_presences_by_user_id' + +module MicrosoftGraph + module Communications + module GetPresencesByUserId + class GetPresencesByUserIdPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetPresencesByUserIdPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_presences_by_user_id_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetPresencesByUserIdPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Presence.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a presence + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/communications/get_presences_by_user_id/get_presences_by_user_id_request_builder.rb b/lib/communications/get_presences_by_user_id/get_presences_by_user_id_request_builder.rb index 43fc6fa047..8b039b291c 100644 --- a/lib/communications/get_presences_by_user_id/get_presences_by_user_id_request_builder.rb +++ b/lib/communications/get_presences_by_user_id/get_presences_by_user_id_request_builder.rb @@ -24,7 +24,7 @@ def initialize(path_parameters, request_adapter) ## Get the presence information for multiple users. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_presences_by_user_id_response + ## @return a Fiber of get_presences_by_user_id_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -32,9 +32,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Communications::GetPresencesByUserId::GetPresencesByUserIdResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Communications::GetPresencesByUserId::GetPresencesByUserIdPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Get the presence information for multiple users. @@ -45,17 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_presences_by_user_id_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetPresencesByUserIdRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/get_presences_by_user_id/get_presences_by_user_id_response.rb b/lib/communications/get_presences_by_user_id/get_presences_by_user_id_response.rb deleted file mode 100644 index 85bc71d969..0000000000 --- a/lib/communications/get_presences_by_user_id/get_presences_by_user_id_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_collection_pagination_count_response' -require_relative '../../models/presence' -require_relative '../communications' -require_relative './get_presences_by_user_id' - -module MicrosoftGraph - module Communications - module GetPresencesByUserId - class GetPresencesByUserIdResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getPresencesByUserIdResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_presences_by_user_id_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetPresencesByUserIdResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Presence.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a presence - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/communications/online_meetings/count/count_request_builder.rb b/lib/communications/online_meetings/count/count_request_builder.rb index 48915b62e3..6163a0a268 100644 --- a/lib/communications/online_meetings/count/count_request_builder.rb +++ b/lib/communications/online_meetings/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/communications/online_meetings/create_or_get/create_or_get_post_request_body.rb b/lib/communications/online_meetings/create_or_get/create_or_get_post_request_body.rb index 45b0253c88..d277f9836c 100644 --- a/lib/communications/online_meetings/create_or_get/create_or_get_post_request_body.rb +++ b/lib/communications/online_meetings/create_or_get/create_or_get_post_request_body.rb @@ -35,15 +35,15 @@ class CreateOrGetPostRequestBody # The subject property @subject ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -65,7 +65,7 @@ def chat_info=(value) @chat_info = value end ## - ## Instantiates a new createOrGetPostRequestBody and sets the default values. + ## Instantiates a new CreateOrGetPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/communications/online_meetings/create_or_get/create_or_get_request_builder.rb b/lib/communications/online_meetings/create_or_get/create_or_get_request_builder.rb index 3cc88ee6d7..a5ba23e7ef 100644 --- a/lib/communications/online_meetings/create_or_get/create_or_get_request_builder.rb +++ b/lib/communications/online_meetings/create_or_get/create_or_get_request_builder.rb @@ -35,8 +35,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnlineMeeting.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a create_or_get_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreateOrGetRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/online_meetings/i056e0011aad1cfd99d94f2d6b75f21d85f8b7cfe3c3983a69234033a5ffcd08b/1a70dcd6f06681cb6af54b45f7af2496869dd6d9321f86addda358e46c7fe7a9.rb b/lib/communications/online_meetings/i056e0011aad1cfd99d94f2d6b75f21d85f8b7cfe3c3983a69234033a5ffcd08b/1a70dcd6f06681cb6af54b45f7af2496869dd6d9321f86addda358e46c7fe7a9.rb new file mode 100644 index 0000000000..be891acc77 --- /dev/null +++ b/lib/communications/online_meetings/i056e0011aad1cfd99d94f2d6b75f21d85f8b7cfe3c3983a69234033a5ffcd08b/1a70dcd6f06681cb6af54b45f7af2496869dd6d9321f86addda358e46c7fe7a9.rb @@ -0,0 +1,72 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../../models/call_transcript' +require_relative '../../communications' +require_relative '../online_meetings' +require_relative './i056e0011aad1cfd99d94f2d6b75f21d85f8b7cfe3c3983a69234033a5ffcd08b' + +module MicrosoftGraph + module Communications + module OnlineMeetings + module I056e0011aad1cfd99d94f2d6b75f21d85f8b7cfe3c3983a69234033a5ffcd08b + class GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_all_transcriptsmeeting_organizer_user_id_meeting_organizer_user_id_with_start_date_time_with_end_date_time_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CallTranscript.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a call_transcript + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/communications/online_meetings/i056e0011aad1cfd99d94f2d6b75f21d85f8b7cfe3c3983a69234033a5ffcd08b/e61b2d5484df5c99782598f88bad613fa3840c5ed2a29782329c8b045393beae.rb b/lib/communications/online_meetings/i056e0011aad1cfd99d94f2d6b75f21d85f8b7cfe3c3983a69234033a5ffcd08b/e61b2d5484df5c99782598f88bad613fa3840c5ed2a29782329c8b045393beae.rb new file mode 100644 index 0000000000..a9ac06293c --- /dev/null +++ b/lib/communications/online_meetings/i056e0011aad1cfd99d94f2d6b75f21d85f8b7cfe3c3983a69234033a5ffcd08b/e61b2d5484df5c99782598f88bad613fa3840c5ed2a29782329c8b045393beae.rb @@ -0,0 +1,142 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../communications' +require_relative '../online_meetings' +require_relative './i056e0011aad1cfd99d94f2d6b75f21d85f8b7cfe3c3983a69234033a5ffcd08b' + +module MicrosoftGraph + module Communications + module OnlineMeetings + module I056e0011aad1cfd99d94f2d6b75f21d85f8b7cfe3c3983a69234033a5ffcd08b + ## + # Provides operations to call the getAllTranscripts method. + class GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/getAllTranscripts(meetingOrganizerUserId='@meetingOrganizerUserId',startDateTime=@startDateTime,endDateTime=@endDateTime){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top,endDateTime*,meetingOrganizerUserId*,startDateTime*}") + end + ## + ## Get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you perform an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of get_all_transcriptsmeeting_organizer_user_id_meeting_organizer_user_id_with_start_date_time_with_end_date_time_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Communications::OnlineMeetings::I056e0011aad1cfd99d94f2d6b75f21d85f8b7cfe3c3983a69234033a5ffcd08b::GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you perform an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_all_transcriptsmeeting_organizer_user_id_meeting_organizer_user_id_with_start_date_time_with_end_date_time_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you perform an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + class GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Usage: endDateTime=@endDateTime + attr_accessor :end_date_time + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Usage: meetingOrganizerUserId='@meetingOrganizerUserId' + attr_accessor :meeting_organizer_user_id + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Usage: startDateTime=@startDateTime + attr_accessor :start_date_time + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "end_date_time" + return "endDateTime" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "meeting_organizer_user_id" + return "meetingOrganizerUserId" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "start_date_time" + return "startDateTime" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/communications/online_meetings/i056e0011aad1cfd99d94f2d6b75f21d85f8b7cfe3c3983a69234033a5ffcd08b/i056e0011aad1cfd99d94f2d6b75f21d85f8b7cfe3c3983a69234033a5ffcd08b.rb b/lib/communications/online_meetings/i056e0011aad1cfd99d94f2d6b75f21d85f8b7cfe3c3983a69234033a5ffcd08b/i056e0011aad1cfd99d94f2d6b75f21d85f8b7cfe3c3983a69234033a5ffcd08b.rb new file mode 100644 index 0000000000..5de55af0fe --- /dev/null +++ b/lib/communications/online_meetings/i056e0011aad1cfd99d94f2d6b75f21d85f8b7cfe3c3983a69234033a5ffcd08b/i056e0011aad1cfd99d94f2d6b75f21d85f8b7cfe3c3983a69234033a5ffcd08b.rb @@ -0,0 +1 @@ +require_relative '1a70dcd6f06681cb6af54b45f7af2496869dd6d9321f86addda358e46c7fe7a9' diff --git a/lib/communications/online_meetings/ibe4c23e921ad9fcaa5c959c34e393ba839c959ee578ec95fd69bc2d9aa0b2597/93b7daca5be018c77b93b12567ae342e4db62833cf6672535af71a36cfe6bba1.rb b/lib/communications/online_meetings/ibe4c23e921ad9fcaa5c959c34e393ba839c959ee578ec95fd69bc2d9aa0b2597/93b7daca5be018c77b93b12567ae342e4db62833cf6672535af71a36cfe6bba1.rb new file mode 100644 index 0000000000..e1995b3d89 --- /dev/null +++ b/lib/communications/online_meetings/ibe4c23e921ad9fcaa5c959c34e393ba839c959ee578ec95fd69bc2d9aa0b2597/93b7daca5be018c77b93b12567ae342e4db62833cf6672535af71a36cfe6bba1.rb @@ -0,0 +1,142 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../communications' +require_relative '../online_meetings' +require_relative './ibe4c23e921ad9fcaa5c959c34e393ba839c959ee578ec95fd69bc2d9aa0b2597' + +module MicrosoftGraph + module Communications + module OnlineMeetings + module Ibe4c23e921ad9fcaa5c959c34e393ba839c959ee578ec95fd69bc2d9aa0b2597 + ## + # Provides operations to call the getAllRecordings method. + class GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/getAllRecordings(meetingOrganizerUserId='@meetingOrganizerUserId',startDateTime=@startDateTime,endDateTime=@endDateTime){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top,endDateTime*,meetingOrganizerUserId*,startDateTime*}") + end + ## + ## Get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you perform an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of get_all_recordingsmeeting_organizer_user_id_meeting_organizer_user_id_with_start_date_time_with_end_date_time_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Communications::OnlineMeetings::Ibe4c23e921ad9fcaa5c959c34e393ba839c959ee578ec95fd69bc2d9aa0b2597::GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you perform an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_all_recordingsmeeting_organizer_user_id_meeting_organizer_user_id_with_start_date_time_with_end_date_time_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you perform an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + class GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Usage: endDateTime=@endDateTime + attr_accessor :end_date_time + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Usage: meetingOrganizerUserId='@meetingOrganizerUserId' + attr_accessor :meeting_organizer_user_id + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Usage: startDateTime=@startDateTime + attr_accessor :start_date_time + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "end_date_time" + return "endDateTime" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "meeting_organizer_user_id" + return "meetingOrganizerUserId" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "start_date_time" + return "startDateTime" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/communications/online_meetings/ibe4c23e921ad9fcaa5c959c34e393ba839c959ee578ec95fd69bc2d9aa0b2597/bbe8ff85c1dde26aab80343dfbdb76cd8b89b9ff2e032493c018ee68f405e559.rb b/lib/communications/online_meetings/ibe4c23e921ad9fcaa5c959c34e393ba839c959ee578ec95fd69bc2d9aa0b2597/bbe8ff85c1dde26aab80343dfbdb76cd8b89b9ff2e032493c018ee68f405e559.rb new file mode 100644 index 0000000000..b9aa99ab97 --- /dev/null +++ b/lib/communications/online_meetings/ibe4c23e921ad9fcaa5c959c34e393ba839c959ee578ec95fd69bc2d9aa0b2597/bbe8ff85c1dde26aab80343dfbdb76cd8b89b9ff2e032493c018ee68f405e559.rb @@ -0,0 +1,72 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../../models/call_recording' +require_relative '../../communications' +require_relative '../online_meetings' +require_relative './ibe4c23e921ad9fcaa5c959c34e393ba839c959ee578ec95fd69bc2d9aa0b2597' + +module MicrosoftGraph + module Communications + module OnlineMeetings + module Ibe4c23e921ad9fcaa5c959c34e393ba839c959ee578ec95fd69bc2d9aa0b2597 + class GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_all_recordingsmeeting_organizer_user_id_meeting_organizer_user_id_with_start_date_time_with_end_date_time_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CallRecording.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a call_recording + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/communications/online_meetings/ibe4c23e921ad9fcaa5c959c34e393ba839c959ee578ec95fd69bc2d9aa0b2597/ibe4c23e921ad9fcaa5c959c34e393ba839c959ee578ec95fd69bc2d9aa0b2597.rb b/lib/communications/online_meetings/ibe4c23e921ad9fcaa5c959c34e393ba839c959ee578ec95fd69bc2d9aa0b2597/ibe4c23e921ad9fcaa5c959c34e393ba839c959ee578ec95fd69bc2d9aa0b2597.rb new file mode 100644 index 0000000000..6da71270fe --- /dev/null +++ b/lib/communications/online_meetings/ibe4c23e921ad9fcaa5c959c34e393ba839c959ee578ec95fd69bc2d9aa0b2597/ibe4c23e921ad9fcaa5c959c34e393ba839c959ee578ec95fd69bc2d9aa0b2597.rb @@ -0,0 +1 @@ +require_relative 'bbe8ff85c1dde26aab80343dfbdb76cd8b89b9ff2e032493c018ee68f405e559' diff --git a/lib/communications/online_meetings/item/attendance_reports/attendance_reports_request_builder.rb b/lib/communications/online_meetings/item/attendance_reports/attendance_reports_request_builder.rb index f8300a17e3..90c1866889 100644 --- a/lib/communications/online_meetings/item/attendance_reports/attendance_reports_request_builder.rb +++ b/lib/communications/online_meetings/item/attendance_reports/attendance_reports_request_builder.rb @@ -16,7 +16,7 @@ module OnlineMeetings module Item module AttendanceReports ## - # Provides operations to manage the attendanceReports property of the microsoft.graph.onlineMeeting entity. + # Provides operations to manage the attendanceReports property of the microsoft.graph.onlineMeetingBase entity. class AttendanceReportsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @@ -25,7 +25,7 @@ def count() return MicrosoftGraph::Communications::OnlineMeetings::Item::AttendanceReports::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## - ## Provides operations to manage the attendanceReports property of the microsoft.graph.onlineMeeting entity. + ## Provides operations to manage the attendanceReports property of the microsoft.graph.onlineMeetingBase entity. ## @param meeting_attendance_report_id The unique identifier of meetingAttendanceReport ## @return a meeting_attendance_report_item_request_builder ## @@ -42,10 +42,10 @@ def by_meeting_attendance_report_id(meeting_attendance_report_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. + ## The attendance reports of an online meeting. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of meeting_attendance_report_collection_response ## @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MeetingAttendanceReportCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,26 +69,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MeetingAttendanceReport.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. + ## The attendance reports of an online meeting. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,20 +99,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attendance_reports_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttendanceReportsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. + # The attendance reports of an online meeting. Read-only. class AttendanceReportsRequestBuilderGetQueryParameters ## diff --git a/lib/communications/online_meetings/item/attendance_reports/count/count_request_builder.rb b/lib/communications/online_meetings/item/attendance_reports/count/count_request_builder.rb index 552890ef29..1df7b97477 100644 --- a/lib/communications/online_meetings/item/attendance_reports/count/count_request_builder.rb +++ b/lib/communications/online_meetings/item/attendance_reports/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/communications/online_meetings/item/attendance_reports/item/attendance_records/attendance_records_request_builder.rb b/lib/communications/online_meetings/item/attendance_reports/item/attendance_records/attendance_records_request_builder.rb index ffa5081600..64906d141d 100644 --- a/lib/communications/online_meetings/item/attendance_reports/item/attendance_records/attendance_records_request_builder.rb +++ b/lib/communications/online_meetings/item/attendance_reports/item/attendance_records/attendance_records_request_builder.rb @@ -46,10 +46,10 @@ def by_attendance_record_id(attendance_record_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get a list of attendanceRecord objects and their properties. + ## List of attendance records of an attendance report. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attendance_record_collection_response ## @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttendanceRecordCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,26 +73,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttendanceRecord.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get a list of attendanceRecord objects and their properties. + ## List of attendance records of an attendance report. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attendance_records_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttendanceRecordsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a list of attendanceRecord objects and their properties. + # List of attendance records of an attendance report. Read-only. class AttendanceRecordsRequestBuilderGetQueryParameters ## diff --git a/lib/communications/online_meetings/item/attendance_reports/item/attendance_records/count/count_request_builder.rb b/lib/communications/online_meetings/item/attendance_reports/item/attendance_records/count/count_request_builder.rb index 02110698fe..3fdbe80ffc 100644 --- a/lib/communications/online_meetings/item/attendance_reports/item/attendance_records/count/count_request_builder.rb +++ b/lib/communications/online_meetings/item/attendance_reports/item/attendance_records/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/communications/online_meetings/item/attendance_reports/item/attendance_records/item/attendance_record_item_request_builder.rb b/lib/communications/online_meetings/item/attendance_reports/item/attendance_records/item/attendance_record_item_request_builder.rb index afc09f0e7b..4b8ae821d4 100644 --- a/lib/communications/online_meetings/item/attendance_reports/item/attendance_records/item/attendance_record_item_request_builder.rb +++ b/lib/communications/online_meetings/item/attendance_reports/item/attendance_records/item/attendance_record_item_request_builder.rb @@ -29,7 +29,7 @@ class AttendanceRecordItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReque ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords/{attendanceRecord%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords/{attendanceRecord%2Did}{?%24expand,%24select}") end ## ## Delete navigation property attendanceRecords for communications @@ -41,8 +41,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttendanceRecord.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttendanceRecord.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,13 +79,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -98,15 +96,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,17 +116,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attendance_record_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttendanceRecordItemRequestBuilder.new(raw_url, @request_adapter) + end ## # List of attendance records of an attendance report. Read-only. diff --git a/lib/communications/online_meetings/item/attendance_reports/item/meeting_attendance_report_item_request_builder.rb b/lib/communications/online_meetings/item/attendance_reports/item/meeting_attendance_report_item_request_builder.rb index 25bd4103dc..16581ad5df 100644 --- a/lib/communications/online_meetings/item/attendance_reports/item/meeting_attendance_report_item_request_builder.rb +++ b/lib/communications/online_meetings/item/attendance_reports/item/meeting_attendance_report_item_request_builder.rb @@ -16,7 +16,7 @@ module Item module AttendanceReports module Item ## - # Provides operations to manage the attendanceReports property of the microsoft.graph.onlineMeeting entity. + # Provides operations to manage the attendanceReports property of the microsoft.graph.onlineMeetingBase entity. class MeetingAttendanceReportItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @@ -31,7 +31,7 @@ def attendance_records() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports/{meetingAttendanceReport%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports/{meetingAttendanceReport%2Did}{?%24expand,%24select}") end ## ## Delete navigation property attendanceReports for communications @@ -43,12 +43,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. + ## The attendance reports of an online meeting. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of meeting_attendance_report ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MeetingAttendanceReport.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MeetingAttendanceReport.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,31 +81,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. + ## The attendance reports of an online meeting. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,20 +118,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a meeting_attendance_report_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MeetingAttendanceReportItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. + # The attendance reports of an online meeting. Read-only. class MeetingAttendanceReportItemRequestBuilderGetQueryParameters ## diff --git a/lib/communications/online_meetings/item/attendee_report/attendee_report_request_builder.rb b/lib/communications/online_meetings/item/attendee_report/attendee_report_request_builder.rb index c2041850d4..e2513fac80 100644 --- a/lib/communications/online_meetings/item/attendee_report/attendee_report_request_builder.rb +++ b/lib/communications/online_meetings/item/attendee_report/attendee_report_request_builder.rb @@ -27,6 +27,19 @@ def initialize(path_parameters, request_adapter) ## ## The content stream of the attendee report of a Microsoft Teams live event. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The content stream of the attendee report of a Microsoft Teams live event. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## def get(request_configuration=nil) @@ -34,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -50,8 +62,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -59,15 +70,33 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The content stream of the attendee report of a Microsoft Teams live event. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -79,16 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attendee_report_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttendeeReportRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/online_meetings/item/get_virtual_appointment_join_web_url/get_virtual_appointment_join_web_url.rb b/lib/communications/online_meetings/item/get_virtual_appointment_join_web_url/get_virtual_appointment_join_web_url.rb index 4d412797ee..93bbb6b5a0 100644 --- a/lib/communications/online_meetings/item/get_virtual_appointment_join_web_url/get_virtual_appointment_join_web_url.rb +++ b/lib/communications/online_meetings/item/get_virtual_appointment_join_web_url/get_virtual_appointment_join_web_url.rb @@ -1 +1 @@ -require_relative 'get_virtual_appointment_join_web_url_response' +require_relative 'get_virtual_appointment_join_web_url_get_response' diff --git a/lib/communications/online_meetings/item/get_virtual_appointment_join_web_url/get_virtual_appointment_join_web_url_get_response.rb b/lib/communications/online_meetings/item/get_virtual_appointment_join_web_url/get_virtual_appointment_join_web_url_get_response.rb new file mode 100644 index 0000000000..2ab17bbdfe --- /dev/null +++ b/lib/communications/online_meetings/item/get_virtual_appointment_join_web_url/get_virtual_appointment_join_web_url_get_response.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../communications' +require_relative '../../online_meetings' +require_relative '../item' +require_relative './get_virtual_appointment_join_web_url' + +module MicrosoftGraph + module Communications + module OnlineMeetings + module Item + module GetVirtualAppointmentJoinWebUrl + class GetVirtualAppointmentJoinWebUrlGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new GetVirtualAppointmentJoinWebUrlGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_virtual_appointment_join_web_url_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetVirtualAppointmentJoinWebUrlGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/communications/online_meetings/item/get_virtual_appointment_join_web_url/get_virtual_appointment_join_web_url_request_builder.rb b/lib/communications/online_meetings/item/get_virtual_appointment_join_web_url/get_virtual_appointment_join_web_url_request_builder.rb index a3a0a20823..fc5bef745a 100644 --- a/lib/communications/online_meetings/item/get_virtual_appointment_join_web_url/get_virtual_appointment_join_web_url_request_builder.rb +++ b/lib/communications/online_meetings/item/get_virtual_appointment_join_web_url/get_virtual_appointment_join_web_url_request_builder.rb @@ -25,36 +25,44 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/getVirtualAppointmentJoinWebUrl()") end ## - ## Invoke function getVirtualAppointmentJoinWebUrl + ## Get a join web URL for a Microsoft Virtual Appointment. This web URL includes enhanced business-to-customer experiences such as mobile browser join and virtual lobby rooms. With Teams Premium, you can configure a custom lobby room experience for attendees by adding your company logo and access the Virtual Appointments usage report for organizational analytics. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_virtual_appointment_join_web_url_response + ## @return a Fiber of get_virtual_appointment_join_web_url_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Communications::OnlineMeetings::Item::GetVirtualAppointmentJoinWebUrl::GetVirtualAppointmentJoinWebUrlResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Communications::OnlineMeetings::Item::GetVirtualAppointmentJoinWebUrl::GetVirtualAppointmentJoinWebUrlGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function getVirtualAppointmentJoinWebUrl + ## Get a join web URL for a Microsoft Virtual Appointment. This web URL includes enhanced business-to-customer experiences such as mobile browser join and virtual lobby rooms. With Teams Premium, you can configure a custom lobby room experience for attendees by adding your company logo and access the Virtual Appointments usage report for organizational analytics. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_virtual_appointment_join_web_url_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetVirtualAppointmentJoinWebUrlRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/online_meetings/item/get_virtual_appointment_join_web_url/get_virtual_appointment_join_web_url_response.rb b/lib/communications/online_meetings/item/get_virtual_appointment_join_web_url/get_virtual_appointment_join_web_url_response.rb deleted file mode 100644 index c0ea6bfff2..0000000000 --- a/lib/communications/online_meetings/item/get_virtual_appointment_join_web_url/get_virtual_appointment_join_web_url_response.rb +++ /dev/null @@ -1,91 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../communications' -require_relative '../../online_meetings' -require_relative '../item' -require_relative './get_virtual_appointment_join_web_url' - -module MicrosoftGraph - module Communications - module OnlineMeetings - module Item - module GetVirtualAppointmentJoinWebUrl - class GetVirtualAppointmentJoinWebUrlResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new getVirtualAppointmentJoinWebUrlResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_virtual_appointment_join_web_url_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetVirtualAppointmentJoinWebUrlResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_string_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_string_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/communications/online_meetings/item/online_meeting_item_request_builder.rb b/lib/communications/online_meetings/item/online_meeting_item_request_builder.rb index 7a40415ee5..15fe7b760e 100644 --- a/lib/communications/online_meetings/item/online_meeting_item_request_builder.rb +++ b/lib/communications/online_meetings/item/online_meeting_item_request_builder.rb @@ -8,6 +8,10 @@ require_relative './attendee_report/attendee_report_request_builder' require_relative './get_virtual_appointment_join_web_url/get_virtual_appointment_join_web_url_request_builder' require_relative './item' +require_relative './recordings/recordings_request_builder' +require_relative './send_virtual_appointment_reminder_sms/send_virtual_appointment_reminder_sms_request_builder' +require_relative './send_virtual_appointment_sms/send_virtual_appointment_sms_request_builder' +require_relative './transcripts/transcripts_request_builder' module MicrosoftGraph module Communications @@ -18,7 +22,7 @@ module Item class OnlineMeetingItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - # Provides operations to manage the attendanceReports property of the microsoft.graph.onlineMeeting entity. + # Provides operations to manage the attendanceReports property of the microsoft.graph.onlineMeetingBase entity. def attendance_reports() return MicrosoftGraph::Communications::OnlineMeetings::Item::AttendanceReports::AttendanceReportsRequestBuilder.new(@path_parameters, @request_adapter) end @@ -33,13 +37,33 @@ def get_virtual_appointment_join_web_url() return MicrosoftGraph::Communications::OnlineMeetings::Item::GetVirtualAppointmentJoinWebUrl::GetVirtualAppointmentJoinWebUrlRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to manage the recordings property of the microsoft.graph.onlineMeeting entity. + def recordings() + return MicrosoftGraph::Communications::OnlineMeetings::Item::Recordings::RecordingsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the sendVirtualAppointmentReminderSms method. + def send_virtual_appointment_reminder_sms() + return MicrosoftGraph::Communications::OnlineMeetings::Item::SendVirtualAppointmentReminderSms::SendVirtualAppointmentReminderSmsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the sendVirtualAppointmentSms method. + def send_virtual_appointment_sms() + return MicrosoftGraph::Communications::OnlineMeetings::Item::SendVirtualAppointmentSms::SendVirtualAppointmentSmsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the transcripts property of the microsoft.graph.onlineMeeting entity. + def transcripts() + return MicrosoftGraph::Communications::OnlineMeetings::Item::Transcripts::TranscriptsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Instantiates a new OnlineMeetingItemRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}{?%24expand,%24select}") end ## ## Delete navigation property onlineMeetings for communications @@ -51,8 +75,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,8 +88,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnlineMeeting.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +103,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnlineMeeting.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,13 +113,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,15 +130,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,17 +150,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a online_meeting_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnlineMeetingItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get onlineMeetings from communications diff --git a/lib/me/app_role_assignments/count/count.rb b/lib/communications/online_meetings/item/recordings/count/count.rb similarity index 100% rename from lib/me/app_role_assignments/count/count.rb rename to lib/communications/online_meetings/item/recordings/count/count.rb diff --git a/lib/communications/online_meetings/item/recordings/count/count_request_builder.rb b/lib/communications/online_meetings/item/recordings/count/count_request_builder.rb new file mode 100644 index 0000000000..ef9fbac95b --- /dev/null +++ b/lib/communications/online_meetings/item/recordings/count/count_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../communications' +require_relative '../../../online_meetings' +require_relative '../../item' +require_relative '../recordings' +require_relative './count' + +module MicrosoftGraph + module Communications + module OnlineMeetings + module Item + module Recordings + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/recordings/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/communications/online_meetings/item/recordings/delta/delta.rb b/lib/communications/online_meetings/item/recordings/delta/delta.rb new file mode 100644 index 0000000000..8a3dc08b72 --- /dev/null +++ b/lib/communications/online_meetings/item/recordings/delta/delta.rb @@ -0,0 +1 @@ +require_relative 'delta_get_response' diff --git a/lib/communications/online_meetings/item/recordings/delta/delta_get_response.rb b/lib/communications/online_meetings/item/recordings/delta/delta_get_response.rb new file mode 100644 index 0000000000..597323a91a --- /dev/null +++ b/lib/communications/online_meetings/item/recordings/delta/delta_get_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_delta_function_response' +require_relative '../../../../../models/call_recording' +require_relative '../../../../communications' +require_relative '../../../online_meetings' +require_relative '../../item' +require_relative '../recordings' +require_relative './delta' + +module MicrosoftGraph + module Communications + module OnlineMeetings + module Item + module Recordings + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CallRecording.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a call_recording + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/communications/online_meetings/item/recordings/delta/delta_request_builder.rb b/lib/communications/online_meetings/item/recordings/delta/delta_request_builder.rb new file mode 100644 index 0000000000..e9a42cb7c0 --- /dev/null +++ b/lib/communications/online_meetings/item/recordings/delta/delta_request_builder.rb @@ -0,0 +1,133 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../communications' +require_relative '../../../online_meetings' +require_relative '../../item' +require_relative '../recordings' +require_relative './delta' + +module MicrosoftGraph + module Communications + module OnlineMeetings + module Item + module Recordings + module Delta + ## + # Provides operations to call the delta method. + class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeltaRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/recordings/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Invoke function delta + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of delta_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Communications::OnlineMeetings::Item::Recordings::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function delta + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Invoke function delta + class DeltaRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/communications/online_meetings/item/recordings/item/call_recording_item_request_builder.rb b/lib/communications/online_meetings/item/recordings/item/call_recording_item_request_builder.rb new file mode 100644 index 0000000000..4a360905df --- /dev/null +++ b/lib/communications/online_meetings/item/recordings/item/call_recording_item_request_builder.rb @@ -0,0 +1,175 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/call_recording' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../communications' +require_relative '../../../online_meetings' +require_relative '../../item' +require_relative '../recordings' +require_relative './content/content_request_builder' +require_relative './item' + +module MicrosoftGraph + module Communications + module OnlineMeetings + module Item + module Recordings + module Item + ## + # Provides operations to manage the recordings property of the microsoft.graph.onlineMeeting entity. + class CallRecordingItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the media for the cloudCommunications entity. + def content() + return MicrosoftGraph::Communications::OnlineMeetings::Item::Recordings::Item::Content::ContentRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new CallRecordingItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/recordings/{callRecording%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property recordings for communications + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The recordings of an online meeting. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of call_recording + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallRecording.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property recordings in communications + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of call_recording + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallRecording.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property recordings for communications + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The recordings of an online meeting. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property recordings in communications + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a call_recording_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CallRecordingItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The recordings of an online meeting. Read-only. + class CallRecordingItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/activities/item/item.rb b/lib/communications/online_meetings/item/recordings/item/content/content.rb similarity index 100% rename from lib/me/activities/item/item.rb rename to lib/communications/online_meetings/item/recordings/item/content/content.rb diff --git a/lib/communications/online_meetings/item/recordings/item/content/content_request_builder.rb b/lib/communications/online_meetings/item/recordings/item/content/content_request_builder.rb new file mode 100644 index 0000000000..c2fbc49ec0 --- /dev/null +++ b/lib/communications/online_meetings/item/recordings/item/content/content_request_builder.rb @@ -0,0 +1,143 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/call_recording' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../communications' +require_relative '../../../../online_meetings' +require_relative '../../../item' +require_relative '../../recordings' +require_relative '../item' +require_relative './content' + +module MicrosoftGraph + module Communications + module OnlineMeetings + module Item + module Recordings + module Item + module Content + ## + # Provides operations to manage the media for the cloudCommunications entity. + class ContentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ContentRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/recordings/{callRecording%2Did}/content") + end + ## + ## The content of the recording. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The content of the recording. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of binary + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, Binary, error_mapping) + end + ## + ## The content of the recording. Read-only. + ## @param body Binary request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of call_recording + ## + def put(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_put_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallRecording.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The content of the recording. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The content of the recording. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') + return request_info + end + ## + ## The content of the recording. Read-only. + ## @param body Binary request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_put_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end +end diff --git a/lib/me/agreement_acceptances/item/item.rb b/lib/communications/online_meetings/item/recordings/item/item.rb similarity index 100% rename from lib/me/agreement_acceptances/item/item.rb rename to lib/communications/online_meetings/item/recordings/item/item.rb diff --git a/lib/me/agreement_acceptances/agreement_acceptances.rb b/lib/communications/online_meetings/item/recordings/recordings.rb similarity index 100% rename from lib/me/agreement_acceptances/agreement_acceptances.rb rename to lib/communications/online_meetings/item/recordings/recordings.rb diff --git a/lib/communications/online_meetings/item/recordings/recordings_request_builder.rb b/lib/communications/online_meetings/item/recordings/recordings_request_builder.rb new file mode 100644 index 0000000000..c060e5e90e --- /dev/null +++ b/lib/communications/online_meetings/item/recordings/recordings_request_builder.rb @@ -0,0 +1,191 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/call_recording' +require_relative '../../../../models/call_recording_collection_response' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../communications' +require_relative '../../online_meetings' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './delta/delta_request_builder' +require_relative './item/call_recording_item_request_builder' +require_relative './recordings' + +module MicrosoftGraph + module Communications + module OnlineMeetings + module Item + module Recordings + ## + # Provides operations to manage the recordings property of the microsoft.graph.onlineMeeting entity. + class RecordingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Communications::OnlineMeetings::Item::Recordings::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delta method. + def delta() + return MicrosoftGraph::Communications::OnlineMeetings::Item::Recordings::Delta::DeltaRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the recordings property of the microsoft.graph.onlineMeeting entity. + ## @param call_recording_id The unique identifier of callRecording + ## @return a call_recording_item_request_builder + ## + def by_call_recording_id(call_recording_id) + raise StandardError, 'call_recording_id cannot be null' if call_recording_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["callRecording%2Did"] = call_recording_id + return MicrosoftGraph::Communications::OnlineMeetings::Item::Recordings::Item::CallRecordingItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new RecordingsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/recordings{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The recordings of an online meeting. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of call_recording_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallRecordingCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to recordings for communications + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of call_recording + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallRecording.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The recordings of an online meeting. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to recordings for communications + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a recordings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RecordingsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The recordings of an online meeting. Read-only. + class RecordingsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/communications/online_meetings/item/send_virtual_appointment_reminder_sms/send_virtual_appointment_reminder_sms.rb b/lib/communications/online_meetings/item/send_virtual_appointment_reminder_sms/send_virtual_appointment_reminder_sms.rb new file mode 100644 index 0000000000..e1aec549c7 --- /dev/null +++ b/lib/communications/online_meetings/item/send_virtual_appointment_reminder_sms/send_virtual_appointment_reminder_sms.rb @@ -0,0 +1 @@ +require_relative 'send_virtual_appointment_reminder_sms_post_request_body' diff --git a/lib/communications/online_meetings/item/send_virtual_appointment_reminder_sms/send_virtual_appointment_reminder_sms_post_request_body.rb b/lib/communications/online_meetings/item/send_virtual_appointment_reminder_sms/send_virtual_appointment_reminder_sms_post_request_body.rb new file mode 100644 index 0000000000..44b7848813 --- /dev/null +++ b/lib/communications/online_meetings/item/send_virtual_appointment_reminder_sms/send_virtual_appointment_reminder_sms_post_request_body.rb @@ -0,0 +1,113 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/attendee_notification_info' +require_relative '../../../../models/remind_before_time_in_minutes_type' +require_relative '../../../communications' +require_relative '../../online_meetings' +require_relative '../item' +require_relative './send_virtual_appointment_reminder_sms' + +module MicrosoftGraph + module Communications + module OnlineMeetings + module Item + module SendVirtualAppointmentReminderSms + class SendVirtualAppointmentReminderSmsPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The attendees property + @attendees + ## + # The remindBeforeTimeInMinutesType property + @remind_before_time_in_minutes_type + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the attendees property value. The attendees property + ## @return a attendee_notification_info + ## + def attendees + return @attendees + end + ## + ## Sets the attendees property value. The attendees property + ## @param value Value to set for the attendees property. + ## @return a void + ## + def attendees=(value) + @attendees = value + end + ## + ## Instantiates a new SendVirtualAppointmentReminderSmsPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a send_virtual_appointment_reminder_sms_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return SendVirtualAppointmentReminderSmsPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "attendees" => lambda {|n| @attendees = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AttendeeNotificationInfo.create_from_discriminator_value(pn) }) }, + "remindBeforeTimeInMinutesType" => lambda {|n| @remind_before_time_in_minutes_type = n.get_enum_value(MicrosoftGraph::Models::RemindBeforeTimeInMinutesType) }, + } + end + ## + ## Gets the remindBeforeTimeInMinutesType property value. The remindBeforeTimeInMinutesType property + ## @return a remind_before_time_in_minutes_type + ## + def remind_before_time_in_minutes_type + return @remind_before_time_in_minutes_type + end + ## + ## Sets the remindBeforeTimeInMinutesType property value. The remindBeforeTimeInMinutesType property + ## @param value Value to set for the remindBeforeTimeInMinutesType property. + ## @return a void + ## + def remind_before_time_in_minutes_type=(value) + @remind_before_time_in_minutes_type = value + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_collection_of_object_values("attendees", @attendees) + writer.write_enum_value("remindBeforeTimeInMinutesType", @remind_before_time_in_minutes_type) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end +end diff --git a/lib/communications/online_meetings/item/send_virtual_appointment_reminder_sms/send_virtual_appointment_reminder_sms_request_builder.rb b/lib/communications/online_meetings/item/send_virtual_appointment_reminder_sms/send_virtual_appointment_reminder_sms_request_builder.rb new file mode 100644 index 0000000000..0e2f8c5769 --- /dev/null +++ b/lib/communications/online_meetings/item/send_virtual_appointment_reminder_sms/send_virtual_appointment_reminder_sms_request_builder.rb @@ -0,0 +1,76 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../communications' +require_relative '../../online_meetings' +require_relative '../item' +require_relative './send_virtual_appointment_reminder_sms' + +module MicrosoftGraph + module Communications + module OnlineMeetings + module Item + module SendVirtualAppointmentReminderSms + ## + # Provides operations to call the sendVirtualAppointmentReminderSms method. + class SendVirtualAppointmentReminderSmsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SendVirtualAppointmentReminderSmsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/sendVirtualAppointmentReminderSms") + end + ## + ## Send an SMS reminder to external attendees for a Teams virtual appointment. This feature requires Teams premium and attendees must have a valid United States phone number to receive SMS notifications. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Send an SMS reminder to external attendees for a Teams virtual appointment. This feature requires Teams premium and attendees must have a valid United States phone number to receive SMS notifications. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a send_virtual_appointment_reminder_sms_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SendVirtualAppointmentReminderSmsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end +end diff --git a/lib/communications/online_meetings/item/send_virtual_appointment_sms/send_virtual_appointment_sms.rb b/lib/communications/online_meetings/item/send_virtual_appointment_sms/send_virtual_appointment_sms.rb new file mode 100644 index 0000000000..830a73138b --- /dev/null +++ b/lib/communications/online_meetings/item/send_virtual_appointment_sms/send_virtual_appointment_sms.rb @@ -0,0 +1 @@ +require_relative 'send_virtual_appointment_sms_post_request_body' diff --git a/lib/communications/online_meetings/item/send_virtual_appointment_sms/send_virtual_appointment_sms_post_request_body.rb b/lib/communications/online_meetings/item/send_virtual_appointment_sms/send_virtual_appointment_sms_post_request_body.rb new file mode 100644 index 0000000000..e8ac0c9eed --- /dev/null +++ b/lib/communications/online_meetings/item/send_virtual_appointment_sms/send_virtual_appointment_sms_post_request_body.rb @@ -0,0 +1,113 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/attendee_notification_info' +require_relative '../../../../models/virtual_appointment_message_type' +require_relative '../../../communications' +require_relative '../../online_meetings' +require_relative '../item' +require_relative './send_virtual_appointment_sms' + +module MicrosoftGraph + module Communications + module OnlineMeetings + module Item + module SendVirtualAppointmentSms + class SendVirtualAppointmentSmsPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The attendees property + @attendees + ## + # The messageType property + @message_type + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the attendees property value. The attendees property + ## @return a attendee_notification_info + ## + def attendees + return @attendees + end + ## + ## Sets the attendees property value. The attendees property + ## @param value Value to set for the attendees property. + ## @return a void + ## + def attendees=(value) + @attendees = value + end + ## + ## Instantiates a new SendVirtualAppointmentSmsPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a send_virtual_appointment_sms_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return SendVirtualAppointmentSmsPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "attendees" => lambda {|n| @attendees = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AttendeeNotificationInfo.create_from_discriminator_value(pn) }) }, + "messageType" => lambda {|n| @message_type = n.get_enum_value(MicrosoftGraph::Models::VirtualAppointmentMessageType) }, + } + end + ## + ## Gets the messageType property value. The messageType property + ## @return a virtual_appointment_message_type + ## + def message_type + return @message_type + end + ## + ## Sets the messageType property value. The messageType property + ## @param value Value to set for the messageType property. + ## @return a void + ## + def message_type=(value) + @message_type = value + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_collection_of_object_values("attendees", @attendees) + writer.write_enum_value("messageType", @message_type) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end +end diff --git a/lib/communications/online_meetings/item/send_virtual_appointment_sms/send_virtual_appointment_sms_request_builder.rb b/lib/communications/online_meetings/item/send_virtual_appointment_sms/send_virtual_appointment_sms_request_builder.rb new file mode 100644 index 0000000000..acd6ab6bbf --- /dev/null +++ b/lib/communications/online_meetings/item/send_virtual_appointment_sms/send_virtual_appointment_sms_request_builder.rb @@ -0,0 +1,76 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../communications' +require_relative '../../online_meetings' +require_relative '../item' +require_relative './send_virtual_appointment_sms' + +module MicrosoftGraph + module Communications + module OnlineMeetings + module Item + module SendVirtualAppointmentSms + ## + # Provides operations to call the sendVirtualAppointmentSms method. + class SendVirtualAppointmentSmsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SendVirtualAppointmentSmsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/sendVirtualAppointmentSms") + end + ## + ## Send an SMS notification to external attendees when a Teams virtual appointment is confirmed, rescheduled, or canceled. This feature requires Teams premium. Attendees must have a valid United States phone number to receive these SMS notifications. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Send an SMS notification to external attendees when a Teams virtual appointment is confirmed, rescheduled, or canceled. This feature requires Teams premium. Attendees must have a valid United States phone number to receive these SMS notifications. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a send_virtual_appointment_sms_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SendVirtualAppointmentSmsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end +end diff --git a/lib/me/authentication/email_methods/count/count.rb b/lib/communications/online_meetings/item/transcripts/count/count.rb similarity index 100% rename from lib/me/authentication/email_methods/count/count.rb rename to lib/communications/online_meetings/item/transcripts/count/count.rb diff --git a/lib/communications/online_meetings/item/transcripts/count/count_request_builder.rb b/lib/communications/online_meetings/item/transcripts/count/count_request_builder.rb new file mode 100644 index 0000000000..72ee48b8e3 --- /dev/null +++ b/lib/communications/online_meetings/item/transcripts/count/count_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../communications' +require_relative '../../../online_meetings' +require_relative '../../item' +require_relative '../transcripts' +require_relative './count' + +module MicrosoftGraph + module Communications + module OnlineMeetings + module Item + module Transcripts + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/communications/online_meetings/item/transcripts/delta/delta.rb b/lib/communications/online_meetings/item/transcripts/delta/delta.rb new file mode 100644 index 0000000000..8a3dc08b72 --- /dev/null +++ b/lib/communications/online_meetings/item/transcripts/delta/delta.rb @@ -0,0 +1 @@ +require_relative 'delta_get_response' diff --git a/lib/communications/online_meetings/item/transcripts/delta/delta_get_response.rb b/lib/communications/online_meetings/item/transcripts/delta/delta_get_response.rb new file mode 100644 index 0000000000..901ef99be0 --- /dev/null +++ b/lib/communications/online_meetings/item/transcripts/delta/delta_get_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_delta_function_response' +require_relative '../../../../../models/call_transcript' +require_relative '../../../../communications' +require_relative '../../../online_meetings' +require_relative '../../item' +require_relative '../transcripts' +require_relative './delta' + +module MicrosoftGraph + module Communications + module OnlineMeetings + module Item + module Transcripts + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CallTranscript.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a call_transcript + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/communications/online_meetings/item/transcripts/delta/delta_request_builder.rb b/lib/communications/online_meetings/item/transcripts/delta/delta_request_builder.rb new file mode 100644 index 0000000000..12af82031c --- /dev/null +++ b/lib/communications/online_meetings/item/transcripts/delta/delta_request_builder.rb @@ -0,0 +1,133 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../communications' +require_relative '../../../online_meetings' +require_relative '../../item' +require_relative '../transcripts' +require_relative './delta' + +module MicrosoftGraph + module Communications + module OnlineMeetings + module Item + module Transcripts + module Delta + ## + # Provides operations to call the delta method. + class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeltaRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Invoke function delta + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of delta_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Communications::OnlineMeetings::Item::Transcripts::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function delta + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Invoke function delta + class DeltaRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/communications/online_meetings/item/transcripts/item/call_transcript_item_request_builder.rb b/lib/communications/online_meetings/item/transcripts/item/call_transcript_item_request_builder.rb new file mode 100644 index 0000000000..488bf7c8fe --- /dev/null +++ b/lib/communications/online_meetings/item/transcripts/item/call_transcript_item_request_builder.rb @@ -0,0 +1,181 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/call_transcript' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../communications' +require_relative '../../../online_meetings' +require_relative '../../item' +require_relative '../transcripts' +require_relative './content/content_request_builder' +require_relative './item' +require_relative './metadata_content/metadata_content_request_builder' + +module MicrosoftGraph + module Communications + module OnlineMeetings + module Item + module Transcripts + module Item + ## + # Provides operations to manage the transcripts property of the microsoft.graph.onlineMeeting entity. + class CallTranscriptItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the media for the cloudCommunications entity. + def content() + return MicrosoftGraph::Communications::OnlineMeetings::Item::Transcripts::Item::Content::ContentRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the media for the cloudCommunications entity. + def metadata_content() + return MicrosoftGraph::Communications::OnlineMeetings::Item::Transcripts::Item::MetadataContent::MetadataContentRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new CallTranscriptItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property transcripts for communications + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The transcripts of an online meeting. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of call_transcript + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallTranscript.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property transcripts in communications + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of call_transcript + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallTranscript.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property transcripts for communications + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The transcripts of an online meeting. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property transcripts in communications + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a call_transcript_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CallTranscriptItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The transcripts of an online meeting. Read-only. + class CallTranscriptItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/app_role_assignments/app_role_assignments.rb b/lib/communications/online_meetings/item/transcripts/item/content/content.rb similarity index 100% rename from lib/me/app_role_assignments/app_role_assignments.rb rename to lib/communications/online_meetings/item/transcripts/item/content/content.rb diff --git a/lib/communications/online_meetings/item/transcripts/item/content/content_request_builder.rb b/lib/communications/online_meetings/item/transcripts/item/content/content_request_builder.rb new file mode 100644 index 0000000000..77a732e567 --- /dev/null +++ b/lib/communications/online_meetings/item/transcripts/item/content/content_request_builder.rb @@ -0,0 +1,143 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/call_transcript' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../communications' +require_relative '../../../../online_meetings' +require_relative '../../../item' +require_relative '../../transcripts' +require_relative '../item' +require_relative './content' + +module MicrosoftGraph + module Communications + module OnlineMeetings + module Item + module Transcripts + module Item + module Content + ## + # Provides operations to manage the media for the cloudCommunications entity. + class ContentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ContentRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}/content") + end + ## + ## The content of the transcript. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The content of the transcript. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of binary + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, Binary, error_mapping) + end + ## + ## The content of the transcript. Read-only. + ## @param body Binary request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of call_transcript + ## + def put(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_put_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallTranscript.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The content of the transcript. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The content of the transcript. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') + return request_info + end + ## + ## The content of the transcript. Read-only. + ## @param body Binary request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_put_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end +end diff --git a/lib/me/app_role_assignments/item/item.rb b/lib/communications/online_meetings/item/transcripts/item/item.rb similarity index 100% rename from lib/me/app_role_assignments/item/item.rb rename to lib/communications/online_meetings/item/transcripts/item/item.rb diff --git a/lib/me/authentication/authentication.rb b/lib/communications/online_meetings/item/transcripts/item/metadata_content/metadata_content.rb similarity index 100% rename from lib/me/authentication/authentication.rb rename to lib/communications/online_meetings/item/transcripts/item/metadata_content/metadata_content.rb diff --git a/lib/communications/online_meetings/item/transcripts/item/metadata_content/metadata_content_request_builder.rb b/lib/communications/online_meetings/item/transcripts/item/metadata_content/metadata_content_request_builder.rb new file mode 100644 index 0000000000..051706b0ac --- /dev/null +++ b/lib/communications/online_meetings/item/transcripts/item/metadata_content/metadata_content_request_builder.rb @@ -0,0 +1,142 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../communications' +require_relative '../../../../online_meetings' +require_relative '../../../item' +require_relative '../../transcripts' +require_relative '../item' +require_relative './metadata_content' + +module MicrosoftGraph + module Communications + module OnlineMeetings + module Item + module Transcripts + module Item + module MetadataContent + ## + # Provides operations to manage the media for the cloudCommunications entity. + class MetadataContentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MetadataContentRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}/metadataContent") + end + ## + ## The time-aligned metadata of the utterances in the transcript. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The time-aligned metadata of the utterances in the transcript. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of binary + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, Binary, error_mapping) + end + ## + ## The time-aligned metadata of the utterances in the transcript. Read-only. + ## @param body Binary request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of binary + ## + def put(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_put_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, Binary, error_mapping) + end + ## + ## The time-aligned metadata of the utterances in the transcript. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The time-aligned metadata of the utterances in the transcript. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') + return request_info + end + ## + ## The time-aligned metadata of the utterances in the transcript. Read-only. + ## @param body Binary request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_put_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a metadata_content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MetadataContentRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/email_methods/email_methods.rb b/lib/communications/online_meetings/item/transcripts/transcripts.rb similarity index 100% rename from lib/me/authentication/email_methods/email_methods.rb rename to lib/communications/online_meetings/item/transcripts/transcripts.rb diff --git a/lib/communications/online_meetings/item/transcripts/transcripts_request_builder.rb b/lib/communications/online_meetings/item/transcripts/transcripts_request_builder.rb new file mode 100644 index 0000000000..b9b30d007a --- /dev/null +++ b/lib/communications/online_meetings/item/transcripts/transcripts_request_builder.rb @@ -0,0 +1,191 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/call_transcript' +require_relative '../../../../models/call_transcript_collection_response' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../communications' +require_relative '../../online_meetings' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './delta/delta_request_builder' +require_relative './item/call_transcript_item_request_builder' +require_relative './transcripts' + +module MicrosoftGraph + module Communications + module OnlineMeetings + module Item + module Transcripts + ## + # Provides operations to manage the transcripts property of the microsoft.graph.onlineMeeting entity. + class TranscriptsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Communications::OnlineMeetings::Item::Transcripts::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delta method. + def delta() + return MicrosoftGraph::Communications::OnlineMeetings::Item::Transcripts::Delta::DeltaRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the transcripts property of the microsoft.graph.onlineMeeting entity. + ## @param call_transcript_id The unique identifier of callTranscript + ## @return a call_transcript_item_request_builder + ## + def by_call_transcript_id(call_transcript_id) + raise StandardError, 'call_transcript_id cannot be null' if call_transcript_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["callTranscript%2Did"] = call_transcript_id + return MicrosoftGraph::Communications::OnlineMeetings::Item::Transcripts::Item::CallTranscriptItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new TranscriptsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The transcripts of an online meeting. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of call_transcript_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallTranscriptCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to transcripts for communications + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of call_transcript + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CallTranscript.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The transcripts of an online meeting. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to transcripts for communications + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a transcripts_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TranscriptsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The transcripts of an online meeting. Read-only. + class TranscriptsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/communications/online_meetings/online_meetings_request_builder.rb b/lib/communications/online_meetings/online_meetings_request_builder.rb index 6d05f7ff6f..7d0110d9b5 100644 --- a/lib/communications/online_meetings/online_meetings_request_builder.rb +++ b/lib/communications/online_meetings/online_meetings_request_builder.rb @@ -6,6 +6,8 @@ require_relative '../communications' require_relative './count/count_request_builder' require_relative './create_or_get/create_or_get_request_builder' +require_relative './i056e0011aad1cfd99d94f2d6b75f21d85f8b7cfe3c3983a69234033a5ffcd08b/e61b2d5484df5c99782598f88bad613fa3840c5ed2a29782329c8b045393beae' +require_relative './ibe4c23e921ad9fcaa5c959c34e393ba839c959ee578ec95fd69bc2d9aa0b2597/93b7daca5be018c77b93b12567ae342e4db62833cf6672535af71a36cfe6bba1' require_relative './item/online_meeting_item_request_builder' require_relative './online_meetings' @@ -27,6 +29,16 @@ def create_or_get() return MicrosoftGraph::Communications::OnlineMeetings::CreateOrGet::CreateOrGetRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the getAllRecordings method. + def get_all_recordingsmeeting_organizer_user_id_meeting_organizer_user_id_with_start_date_time_with_end_date_time() + return MicrosoftGraph::Communications::OnlineMeetings::Ibe4c23e921ad9fcaa5c959c34e393ba839c959ee578ec95fd69bc2d9aa0b2597::GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the getAllTranscripts method. + def get_all_transcriptsmeeting_organizer_user_id_meeting_organizer_user_id_with_start_date_time_with_end_date_time() + return MicrosoftGraph::Communications::OnlineMeetings::I056e0011aad1cfd99d94f2d6b75f21d85f8b7cfe3c3983a69234033a5ffcd08b::GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Provides operations to manage the onlineMeetings property of the microsoft.graph.cloudCommunications entity. ## @param online_meeting_id The unique identifier of onlineMeeting ## @return a online_meeting_item_request_builder @@ -44,10 +56,10 @@ def by_online_meeting_id(online_meeting_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/onlineMeetings{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. + ## Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report (deprecated) and Teams live event recordings (deprecated) are online meeting artifacts. For more information, see Online meeting artifacts and permissions. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of online_meeting_collection_response ## @@ -56,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnlineMeetingCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,26 +83,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnlineMeeting.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. + ## Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report (deprecated) and Teams live event recordings (deprecated) are online meeting artifacts. For more information, see Online meeting artifacts and permissions. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,20 +113,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a online_meetings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnlineMeetingsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. + # Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report (deprecated) and Teams live event recordings (deprecated) are online meeting artifacts. For more information, see Online meeting artifacts and permissions. class OnlineMeetingsRequestBuilderGetQueryParameters ## diff --git a/lib/communications/presences/count/count_request_builder.rb b/lib/communications/presences/count/count_request_builder.rb index 298d243160..6729e1af55 100644 --- a/lib/communications/presences/count/count_request_builder.rb +++ b/lib/communications/presences/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/presences/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/communications/presences/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/communications/presences/item/clear_presence/clear_presence_post_request_body.rb b/lib/communications/presences/item/clear_presence/clear_presence_post_request_body.rb index aa03e2fee0..87160f1772 100644 --- a/lib/communications/presences/item/clear_presence/clear_presence_post_request_body.rb +++ b/lib/communications/presences/item/clear_presence/clear_presence_post_request_body.rb @@ -19,22 +19,22 @@ class ClearPresencePostRequestBody # The sessionId property @session_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new clearPresencePostRequestBody and sets the default values. + ## Instantiates a new ClearPresencePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/communications/presences/item/clear_presence/clear_presence_request_builder.rb b/lib/communications/presences/item/clear_presence/clear_presence_request_builder.rb index a21dbed23e..26e6845703 100644 --- a/lib/communications/presences/item/clear_presence/clear_presence_request_builder.rb +++ b/lib/communications/presences/item/clear_presence/clear_presence_request_builder.rb @@ -36,8 +36,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_presence_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearPresenceRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/presences/item/clear_user_preferred_presence/clear_user_preferred_presence_request_builder.rb b/lib/communications/presences/item/clear_user_preferred_presence/clear_user_preferred_presence_request_builder.rb index 133b0f6018..73e8552b6e 100644 --- a/lib/communications/presences/item/clear_user_preferred_presence/clear_user_preferred_presence_request_builder.rb +++ b/lib/communications/presences/item/clear_user_preferred_presence/clear_user_preferred_presence_request_builder.rb @@ -34,8 +34,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,15 +44,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_user_preferred_presence_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearUserPreferredPresenceRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/presences/item/presence_item_request_builder.rb b/lib/communications/presences/item/presence_item_request_builder.rb index 60a1354eff..895ae5c18a 100644 --- a/lib/communications/presences/item/presence_item_request_builder.rb +++ b/lib/communications/presences/item/presence_item_request_builder.rb @@ -8,6 +8,7 @@ require_relative './clear_user_preferred_presence/clear_user_preferred_presence_request_builder' require_relative './item' require_relative './set_presence/set_presence_request_builder' +require_relative './set_status_message/set_status_message_request_builder' require_relative './set_user_preferred_presence/set_user_preferred_presence_request_builder' module MicrosoftGraph @@ -34,6 +35,11 @@ def set_presence() return MicrosoftGraph::Communications::Presences::Item::SetPresence::SetPresenceRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the setStatusMessage method. + def set_status_message() + return MicrosoftGraph::Communications::Presences::Item::SetStatusMessage::SetStatusMessageRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to call the setUserPreferredPresence method. def set_user_preferred_presence() return MicrosoftGraph::Communications::Presences::Item::SetUserPreferredPresence::SetUserPreferredPresenceRequestBuilder.new(@path_parameters, @request_adapter) @@ -45,7 +51,7 @@ def set_user_preferred_presence() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/presences/{presence%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/presences/{presence%2Did}{?%24expand,%24select}") end ## ## Delete navigation property presences for communications @@ -57,8 +63,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -71,8 +76,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Presence.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,8 +91,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Presence.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -98,13 +101,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,15 +118,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -134,17 +138,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a presence_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PresenceItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a user's presence information. diff --git a/lib/communications/presences/item/set_presence/set_presence_post_request_body.rb b/lib/communications/presences/item/set_presence/set_presence_post_request_body.rb index a44d81b473..5c018ca9d9 100644 --- a/lib/communications/presences/item/set_presence/set_presence_post_request_body.rb +++ b/lib/communications/presences/item/set_presence/set_presence_post_request_body.rb @@ -43,15 +43,15 @@ def activity=(value) @activity = value end ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -73,7 +73,7 @@ def availability=(value) @availability = value end ## - ## Instantiates a new setPresencePostRequestBody and sets the default values. + ## Instantiates a new SetPresencePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/communications/presences/item/set_presence/set_presence_request_builder.rb b/lib/communications/presences/item/set_presence/set_presence_request_builder.rb index 112700f0c1..21c5223f48 100644 --- a/lib/communications/presences/item/set_presence/set_presence_request_builder.rb +++ b/lib/communications/presences/item/set_presence/set_presence_request_builder.rb @@ -36,8 +36,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_presence_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetPresenceRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/presences/item/set_status_message/set_status_message.rb b/lib/communications/presences/item/set_status_message/set_status_message.rb new file mode 100644 index 0000000000..e929ed6192 --- /dev/null +++ b/lib/communications/presences/item/set_status_message/set_status_message.rb @@ -0,0 +1 @@ +require_relative 'set_status_message_post_request_body' diff --git a/lib/communications/presences/item/set_status_message/set_status_message_post_request_body.rb b/lib/communications/presences/item/set_status_message/set_status_message_post_request_body.rb new file mode 100644 index 0000000000..a5b10f8cbe --- /dev/null +++ b/lib/communications/presences/item/set_status_message/set_status_message_post_request_body.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/presence_status_message' +require_relative '../../../communications' +require_relative '../../presences' +require_relative '../item' +require_relative './set_status_message' + +module MicrosoftGraph + module Communications + module Presences + module Item + module SetStatusMessage + class SetStatusMessagePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The statusMessage property + @status_message + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new SetStatusMessagePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a set_status_message_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return SetStatusMessagePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "statusMessage" => lambda {|n| @status_message = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::PresenceStatusMessage.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_object_value("statusMessage", @status_message) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the statusMessage property value. The statusMessage property + ## @return a presence_status_message + ## + def status_message + return @status_message + end + ## + ## Sets the statusMessage property value. The statusMessage property + ## @param value Value to set for the statusMessage property. + ## @return a void + ## + def status_message=(value) + @status_message = value + end + end + end + end + end + end +end diff --git a/lib/communications/presences/item/set_status_message/set_status_message_request_builder.rb b/lib/communications/presences/item/set_status_message/set_status_message_request_builder.rb new file mode 100644 index 0000000000..55a94b8b6a --- /dev/null +++ b/lib/communications/presences/item/set_status_message/set_status_message_request_builder.rb @@ -0,0 +1,76 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../communications' +require_relative '../../presences' +require_relative '../item' +require_relative './set_status_message' + +module MicrosoftGraph + module Communications + module Presences + module Item + module SetStatusMessage + ## + # Provides operations to call the setStatusMessage method. + class SetStatusMessageRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SetStatusMessageRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/communications/presences/{presence%2Did}/setStatusMessage") + end + ## + ## Set a presence status message for a user. An optional expiration date and time can be supplied. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Set a presence status message for a user. An optional expiration date and time can be supplied. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_status_message_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetStatusMessageRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end +end diff --git a/lib/communications/presences/item/set_user_preferred_presence/set_user_preferred_presence_post_request_body.rb b/lib/communications/presences/item/set_user_preferred_presence/set_user_preferred_presence_post_request_body.rb index 1f34e07214..7626069952 100644 --- a/lib/communications/presences/item/set_user_preferred_presence/set_user_preferred_presence_post_request_body.rb +++ b/lib/communications/presences/item/set_user_preferred_presence/set_user_preferred_presence_post_request_body.rb @@ -40,15 +40,15 @@ def activity=(value) @activity = value end ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -70,7 +70,7 @@ def availability=(value) @availability = value end ## - ## Instantiates a new setUserPreferredPresencePostRequestBody and sets the default values. + ## Instantiates a new SetUserPreferredPresencePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/communications/presences/item/set_user_preferred_presence/set_user_preferred_presence_request_builder.rb b/lib/communications/presences/item/set_user_preferred_presence/set_user_preferred_presence_request_builder.rb index 1060063179..566dd685ca 100644 --- a/lib/communications/presences/item/set_user_preferred_presence/set_user_preferred_presence_request_builder.rb +++ b/lib/communications/presences/item/set_user_preferred_presence/set_user_preferred_presence_request_builder.rb @@ -36,8 +36,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_user_preferred_presence_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetUserPreferredPresenceRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/communications/presences/presences_request_builder.rb b/lib/communications/presences/presences_request_builder.rb index 91c5b4aa9d..87763455fd 100644 --- a/lib/communications/presences/presences_request_builder.rb +++ b/lib/communications/presences/presences_request_builder.rb @@ -38,7 +38,7 @@ def by_presence_id(presence_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/communications/presences{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/communications/presences{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a user's presence information. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PresenceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Presence.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a presences_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PresencesRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a user's presence information. diff --git a/lib/compliance/compliance_request_builder.rb b/lib/compliance/compliance_request_builder.rb index 3b114690c8..9547b54b89 100644 --- a/lib/compliance/compliance_request_builder.rb +++ b/lib/compliance/compliance_request_builder.rb @@ -17,7 +17,7 @@ class ComplianceRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/compliance{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/compliance{?%24expand,%24select}") end ## ## Get compliance @@ -29,8 +29,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Compliance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -45,8 +44,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Compliance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,15 +54,15 @@ def patch(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -76,17 +74,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a compliance_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ComplianceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get compliance diff --git a/lib/connections/connections_request_builder.rb b/lib/connections/connections_request_builder.rb index 2fda212ced..2116c482c2 100644 --- a/lib/connections/connections_request_builder.rb +++ b/lib/connections/connections_request_builder.rb @@ -36,7 +36,7 @@ def by_external_connection_id(external_connection_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/connections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/connections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get entities from connections @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalConnectionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,8 +63,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalConnection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,15 +73,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -95,17 +93,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a connections_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConnectionsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get entities from connections diff --git a/lib/connections/count/count_request_builder.rb b/lib/connections/count/count_request_builder.rb index 3ff0be3659..d46bfd3319 100644 --- a/lib/connections/count/count_request_builder.rb +++ b/lib/connections/count/count_request_builder.rb @@ -18,7 +18,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/connections/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/connections/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -30,8 +30,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -41,17 +40,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/connections/item/external_connection_item_request_builder.rb b/lib/connections/item/external_connection_item_request_builder.rb index 4f7fa3b035..d0bd1e8dbd 100644 --- a/lib/connections/item/external_connection_item_request_builder.rb +++ b/lib/connections/item/external_connection_item_request_builder.rb @@ -43,7 +43,7 @@ def schema() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}{?%24expand,%24select}") end ## ## Delete entity from connections @@ -55,8 +55,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -69,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalConnection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,8 +83,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalConnection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -96,13 +93,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,15 +110,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,17 +130,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a external_connection_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExternalConnectionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get entity from connections by key diff --git a/lib/connections/item/groups/count/count_request_builder.rb b/lib/connections/item/groups/count/count_request_builder.rb index 8b29d40272..23d2ec6ca0 100644 --- a/lib/connections/item/groups/count/count_request_builder.rb +++ b/lib/connections/item/groups/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/groups/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/groups/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/connections/item/groups/groups_request_builder.rb b/lib/connections/item/groups/groups_request_builder.rb index edc5d80ceb..2484a00708 100644 --- a/lib/connections/item/groups/groups_request_builder.rb +++ b/lib/connections/item/groups/groups_request_builder.rb @@ -40,10 +40,10 @@ def by_external_group_id(external_group_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/groups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/groups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get an externalGroup object. + ## Get groups from connections ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of external_connectors_external_group_collection_response ## @@ -52,12 +52,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalGroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new externalGroup object. + ## Create new navigation property to groups for connections ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of external_connectors_external_group @@ -68,30 +67,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalGroup.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get an externalGroup object. + ## Get groups from connections ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new externalGroup object. + ## Create new navigation property to groups for connections ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -99,20 +97,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GroupsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get an externalGroup object. + # Get groups from connections class GroupsRequestBuilderGetQueryParameters ## diff --git a/lib/connections/item/groups/item/external_group_item_request_builder.rb b/lib/connections/item/groups/item/external_group_item_request_builder.rb index 178607d6f2..dce11721c2 100644 --- a/lib/connections/item/groups/item/external_group_item_request_builder.rb +++ b/lib/connections/item/groups/item/external_group_item_request_builder.rb @@ -29,10 +29,10 @@ def members() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}{?%24expand,%24select}") end ## - ## Delete an externalGroup object. + ## Delete navigation property groups for connections ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -41,12 +41,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get an externalGroup object. + ## Get groups from connections ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of external_connectors_external_group ## @@ -55,12 +54,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalGroup.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of an externalGroup object. + ## Update the navigation property groups in connections ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of external_connectors_external_group @@ -71,46 +69,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalGroup.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete an externalGroup object. + ## Delete navigation property groups for connections ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get an externalGroup object. + ## Get groups from connections ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of an externalGroup object. + ## Update the navigation property groups in connections ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -118,20 +116,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a external_group_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExternalGroupItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get an externalGroup object. + # Get groups from connections class ExternalGroupItemRequestBuilderGetQueryParameters ## diff --git a/lib/connections/item/groups/item/members/count/count_request_builder.rb b/lib/connections/item/groups/item/members/count/count_request_builder.rb index 8075554325..eb0c62d8e3 100644 --- a/lib/connections/item/groups/item/members/count/count_request_builder.rb +++ b/lib/connections/item/groups/item/members/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/connections/item/groups/item/members/item/identity_item_request_builder.rb b/lib/connections/item/groups/item/members/item/identity_item_request_builder.rb index 6b87b9f53f..a709d37e48 100644 --- a/lib/connections/item/groups/item/members/item/identity_item_request_builder.rb +++ b/lib/connections/item/groups/item/members/item/identity_item_request_builder.rb @@ -27,10 +27,10 @@ class IdentityItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilde ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members/{identity%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members/{identity%2Did}{?%24expand,%24select}") end ## - ## Delete an identity resource to remove the corresponding member from an externalGroup. + ## Delete navigation property members for connections ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -39,12 +39,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + ## A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of external_connectors_identity ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsIdentity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,42 +67,42 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsIdentity.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete an identity resource to remove the corresponding member from an externalGroup. + ## Delete navigation property members for connections ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + ## A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,20 +114,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a identity_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IdentityItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + # A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. class IdentityItemRequestBuilderGetQueryParameters ## diff --git a/lib/connections/item/groups/item/members/members_request_builder.rb b/lib/connections/item/groups/item/members/members_request_builder.rb index 30135e72ee..b9c6cd4362 100644 --- a/lib/connections/item/groups/item/members/members_request_builder.rb +++ b/lib/connections/item/groups/item/members/members_request_builder.rb @@ -44,10 +44,10 @@ def by_identity_id(identity_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + ## A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of external_connectors_identity_collection_response ## @@ -56,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsIdentityCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an identity resource for a new member in an externalGroup. + ## Create new navigation property to members for connections ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of external_connectors_identity @@ -72,30 +71,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsIdentity.create_from_discriminator_value(pn) }, error_mapping) end ## - ## A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + ## A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create an identity resource for a new member in an externalGroup. + ## Create new navigation property to members for connections ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a members_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MembersRequestBuilder.new(raw_url, @request_adapter) + end ## - # A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + # A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. class MembersRequestBuilderGetQueryParameters ## diff --git a/lib/connections/item/items/count/count_request_builder.rb b/lib/connections/item/items/count/count_request_builder.rb index f87da6524e..825553c028 100644 --- a/lib/connections/item/items/count/count_request_builder.rb +++ b/lib/connections/item/items/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/items/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/items/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/connections/item/items/item/activities/activities_request_builder.rb b/lib/connections/item/items/item/activities/activities_request_builder.rb index ebcd898e06..04c14e2e03 100644 --- a/lib/connections/item/items/item/activities/activities_request_builder.rb +++ b/lib/connections/item/items/item/activities/activities_request_builder.rb @@ -44,7 +44,7 @@ def by_external_activity_id(external_activity_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Returns a list of activities performed on the item. Write-only. @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalActivityCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,8 +71,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalActivity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,15 +81,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,17 +101,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a activities_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ActivitiesRequestBuilder.new(raw_url, @request_adapter) + end ## # Returns a list of activities performed on the item. Write-only. diff --git a/lib/connections/item/items/item/activities/count/count_request_builder.rb b/lib/connections/item/items/item/activities/count/count_request_builder.rb index 89fa77496b..28c1711574 100644 --- a/lib/connections/item/items/item/activities/count/count_request_builder.rb +++ b/lib/connections/item/items/item/activities/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/connections/item/items/item/activities/item/external_activity_item_request_builder.rb b/lib/connections/item/items/item/activities/item/external_activity_item_request_builder.rb index f223d8660c..f2a0a7afe9 100644 --- a/lib/connections/item/items/item/activities/item/external_activity_item_request_builder.rb +++ b/lib/connections/item/items/item/activities/item/external_activity_item_request_builder.rb @@ -33,7 +33,7 @@ def performed_by() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/{externalActivity%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/{externalActivity%2Did}{?%24expand,%24select}") end ## ## Delete navigation property activities for connections @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalActivity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalActivity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,13 +83,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -102,15 +100,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,17 +120,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a external_activity_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExternalActivityItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Returns a list of activities performed on the item. Write-only. diff --git a/lib/connections/item/items/item/activities/item/performed_by/performed_by_request_builder.rb b/lib/connections/item/items/item/activities/item/performed_by/performed_by_request_builder.rb index 62e6112190..7d62d60498 100644 --- a/lib/connections/item/items/item/activities/item/performed_by/performed_by_request_builder.rb +++ b/lib/connections/item/items/item/activities/item/performed_by/performed_by_request_builder.rb @@ -29,7 +29,7 @@ class PerformedByRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/{externalActivity%2Did}/performedBy{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/{externalActivity%2Did}/performedBy{?%24expand,%24select}") end ## ## Represents an identity used to identify who is responsible for the activity. @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsIdentity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a performed_by_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PerformedByRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents an identity used to identify who is responsible for the activity. diff --git a/lib/connections/item/items/item/external_item_item_request_builder.rb b/lib/connections/item/items/item/external_item_item_request_builder.rb index 6f4f33a452..ba58bcd066 100644 --- a/lib/connections/item/items/item/external_item_item_request_builder.rb +++ b/lib/connections/item/items/item/external_item_item_request_builder.rb @@ -35,10 +35,10 @@ def microsoft_graph_external_connectors_add_activities() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/items/{externalItem%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/items/{externalItem%2Did}{?%24expand,%24select}") end ## - ## Delete an externalItem object. + ## Delete navigation property items for connections ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -47,12 +47,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read the properties and relationships of an externalItem object. + ## Get items from connections ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of external_connectors_external_item ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,42 +75,42 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalItem.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete an externalItem object. + ## Delete navigation property items for connections ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read the properties and relationships of an externalItem object. + ## Get items from connections ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,20 +122,29 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a external_item_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExternalItemItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of an externalItem object. + # Get items from connections class ExternalItemItemRequestBuilderGetQueryParameters ## diff --git a/lib/connections/item/items/item/microsoft_graph_external_connectors_add_activities/add_activities_post_request_body.rb b/lib/connections/item/items/item/microsoft_graph_external_connectors_add_activities/add_activities_post_request_body.rb index 4f2f46ce64..759ec72a38 100644 --- a/lib/connections/item/items/item/microsoft_graph_external_connectors_add_activities/add_activities_post_request_body.rb +++ b/lib/connections/item/items/item/microsoft_graph_external_connectors_add_activities/add_activities_post_request_body.rb @@ -37,22 +37,22 @@ def activities=(value) @activities = value end ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new addActivitiesPostRequestBody and sets the default values. + ## Instantiates a new AddActivitiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/connections/item/items/item/microsoft_graph_external_connectors_add_activities/add_activities_post_response.rb b/lib/connections/item/items/item/microsoft_graph_external_connectors_add_activities/add_activities_post_response.rb new file mode 100644 index 0000000000..94ea47feaa --- /dev/null +++ b/lib/connections/item/items/item/microsoft_graph_external_connectors_add_activities/add_activities_post_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../models/external_connectors_external_activity_result' +require_relative '../../../../connections' +require_relative '../../../item' +require_relative '../../items' +require_relative '../item' +require_relative './microsoft_graph_external_connectors_add_activities' + +module MicrosoftGraph + module Connections + module Item + module Items + module Item + module MicrosoftGraphExternalConnectorsAddActivities + class AddActivitiesPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new AddActivitiesPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a add_activities_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AddActivitiesPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalActivityResult.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a external_connectors_external_activity_result + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/connections/item/items/item/microsoft_graph_external_connectors_add_activities/add_activities_response.rb b/lib/connections/item/items/item/microsoft_graph_external_connectors_add_activities/add_activities_response.rb deleted file mode 100644 index 816f34bcb6..0000000000 --- a/lib/connections/item/items/item/microsoft_graph_external_connectors_add_activities/add_activities_response.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../models/external_connectors_external_activity_result' -require_relative '../../../../connections' -require_relative '../../../item' -require_relative '../../items' -require_relative '../item' -require_relative './microsoft_graph_external_connectors_add_activities' - -module MicrosoftGraph - module Connections - module Item - module Items - module Item - module MicrosoftGraphExternalConnectorsAddActivities - class AddActivitiesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new addActivitiesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a add_activities_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return AddActivitiesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalActivityResult.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a external_connectors_external_activity_result - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/connections/item/items/item/microsoft_graph_external_connectors_add_activities/microsoft_graph_external_connectors_add_activities.rb b/lib/connections/item/items/item/microsoft_graph_external_connectors_add_activities/microsoft_graph_external_connectors_add_activities.rb index dac5da197a..9899615c26 100644 --- a/lib/connections/item/items/item/microsoft_graph_external_connectors_add_activities/microsoft_graph_external_connectors_add_activities.rb +++ b/lib/connections/item/items/item/microsoft_graph_external_connectors_add_activities/microsoft_graph_external_connectors_add_activities.rb @@ -1,2 +1,2 @@ require_relative 'add_activities_post_request_body' -require_relative 'add_activities_response' +require_relative 'add_activities_post_response' diff --git a/lib/connections/item/items/item/microsoft_graph_external_connectors_add_activities/microsoft_graph_external_connectors_add_activities_request_builder.rb b/lib/connections/item/items/item/microsoft_graph_external_connectors_add_activities/microsoft_graph_external_connectors_add_activities_request_builder.rb index ab5fcce076..e2ab5bbb6c 100644 --- a/lib/connections/item/items/item/microsoft_graph_external_connectors_add_activities/microsoft_graph_external_connectors_add_activities_request_builder.rb +++ b/lib/connections/item/items/item/microsoft_graph_external_connectors_add_activities/microsoft_graph_external_connectors_add_activities_request_builder.rb @@ -30,7 +30,7 @@ def initialize(path_parameters, request_adapter) ## Invoke action addActivities ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of add_activities_response + ## @return a Fiber of add_activities_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -38,9 +38,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Connections::Item::Items::Item::MicrosoftGraphExternalConnectorsAddActivities::AddActivitiesResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Connections::Item::Items::Item::MicrosoftGraphExternalConnectorsAddActivities::AddActivitiesPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke action addActivities @@ -51,17 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a microsoft_graph_external_connectors_add_activities_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/connections/item/items/items_request_builder.rb b/lib/connections/item/items/items_request_builder.rb index 14c2ffd74d..1a3fe159ba 100644 --- a/lib/connections/item/items/items_request_builder.rb +++ b/lib/connections/item/items/items_request_builder.rb @@ -40,10 +40,10 @@ def by_external_item_id(external_item_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/items{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Read the properties and relationships of an externalItem object. + ## Get items from connections ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of external_connectors_external_item_collection_response ## @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalItemCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,26 +67,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalItem.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Read the properties and relationships of an externalItem object. + ## Get items from connections ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,20 +97,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a items_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of an externalItem object. + # Get items from connections class ItemsRequestBuilderGetQueryParameters ## diff --git a/lib/connections/item/operations/count/count_request_builder.rb b/lib/connections/item/operations/count/count_request_builder.rb index a70cfd473e..1a576ec4eb 100644 --- a/lib/connections/item/operations/count/count_request_builder.rb +++ b/lib/connections/item/operations/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/operations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/operations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/connections/item/operations/item/connection_operation_item_request_builder.rb b/lib/connections/item/operations/item/connection_operation_item_request_builder.rb index 77ad2e9981..bd1ae21987 100644 --- a/lib/connections/item/operations/item/connection_operation_item_request_builder.rb +++ b/lib/connections/item/operations/item/connection_operation_item_request_builder.rb @@ -23,7 +23,7 @@ class ConnectionOperationItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/operations/{connectionOperation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/operations/{connectionOperation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property operations for connections @@ -35,12 +35,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read the properties and relationships of a connectionOperation object. + ## Get operations from connections ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of external_connectors_connection_operation ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsConnectionOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsConnectionOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,31 +73,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read the properties and relationships of a connectionOperation object. + ## Get operations from connections ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,20 +110,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a connection_operation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConnectionOperationItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a connectionOperation object. + # Get operations from connections class ConnectionOperationItemRequestBuilderGetQueryParameters ## diff --git a/lib/connections/item/operations/operations_request_builder.rb b/lib/connections/item/operations/operations_request_builder.rb index 0f55110b2c..7c598b6245 100644 --- a/lib/connections/item/operations/operations_request_builder.rb +++ b/lib/connections/item/operations/operations_request_builder.rb @@ -40,10 +40,10 @@ def by_connection_operation_id(connection_operation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Read the properties and relationships of a connectionOperation object. + ## Get operations from connections ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of external_connectors_connection_operation_collection_response ## @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsConnectionOperationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,26 +67,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsConnectionOperation.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Read the properties and relationships of a connectionOperation object. + ## Get operations from connections ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,20 +97,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a operations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OperationsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a connectionOperation object. + # Get operations from connections class OperationsRequestBuilderGetQueryParameters ## diff --git a/lib/connections/item/schema/schema_request_builder.rb b/lib/connections/item/schema/schema_request_builder.rb index 69c0c3b053..5fd71b1f09 100644 --- a/lib/connections/item/schema/schema_request_builder.rb +++ b/lib/connections/item/schema/schema_request_builder.rb @@ -21,24 +21,10 @@ class SchemaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/schema{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/connections/{externalConnection%2Did}/schema{?%24expand,%24select}") end ## - ## Delete navigation property schema for connections - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of void - ## - def delete(request_configuration=nil) - request_info = self.to_delete_request_information( - request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, nil, error_mapping) - end - ## - ## Read the properties and relationships of a schema object. + ## Get schema from connections ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of external_connectors_schema ## @@ -47,8 +33,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsSchema.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,42 +48,25 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsSchema.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete navigation property schema for connections + ## Get schema from connections ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_delete_request_information(request_configuration=nil) + def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end - return request_info - end - ## - ## Read the properties and relationships of a schema object. - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_get_request_information(request_configuration=nil) - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() request_info.url_template = @url_template request_info.path_parameters = @path_parameters request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) - request_info.add_request_options(request_configuration.options) - end + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,20 +78,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a schema_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SchemaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a schema object. + # Get schema from connections class SchemaRequestBuilderGetQueryParameters ## diff --git a/lib/contacts/contacts_request_builder.rb b/lib/contacts/contacts_request_builder.rb index f99a687968..5575e9f2a1 100644 --- a/lib/contacts/contacts_request_builder.rb +++ b/lib/contacts/contacts_request_builder.rb @@ -60,7 +60,7 @@ def by_org_contact_id(org_contact_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/contacts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the list of organizational contacts for this organization. @@ -72,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OrgContactCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,8 +87,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OrgContact.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,15 +97,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -119,17 +117,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a contacts_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContactsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the list of organizational contacts for this organization. diff --git a/lib/contacts/count/count_request_builder.rb b/lib/contacts/count/count_request_builder.rb index f4bffafd0a..bdf0f8ed1d 100644 --- a/lib/contacts/count/count_request_builder.rb +++ b/lib/contacts/count/count_request_builder.rb @@ -18,7 +18,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -30,8 +30,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -41,17 +40,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/contacts/delta/delta.rb b/lib/contacts/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/contacts/delta/delta.rb +++ b/lib/contacts/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/contacts/delta/delta_get_response.rb b/lib/contacts/delta/delta_get_response.rb new file mode 100644 index 0000000000..8d289ef401 --- /dev/null +++ b/lib/contacts/delta/delta_get_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_delta_function_response' +require_relative '../../models/org_contact' +require_relative '../contacts' +require_relative './delta' + +module MicrosoftGraph + module Contacts + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::OrgContact.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a org_contact + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/contacts/delta/delta_request_builder.rb b/lib/contacts/delta/delta_request_builder.rb index ec1b651935..c520f8222a 100644 --- a/lib/contacts/delta/delta_request_builder.rb +++ b/lib/contacts/delta/delta_request_builder.rb @@ -18,49 +18,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## Get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contacts::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contacts::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## Get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # Get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. class DeltaRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -88,6 +99,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/contacts/delta/delta_response.rb b/lib/contacts/delta/delta_response.rb deleted file mode 100644 index 87640cc3a1..0000000000 --- a/lib/contacts/delta/delta_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_delta_function_response' -require_relative '../../models/org_contact' -require_relative '../contacts' -require_relative './delta' - -module MicrosoftGraph - module Contacts - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::OrgContact.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a org_contact - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/contacts/get_available_extension_properties/get_available_extension_properties.rb b/lib/contacts/get_available_extension_properties/get_available_extension_properties.rb index b6fee576bf..ce1b642cad 100644 --- a/lib/contacts/get_available_extension_properties/get_available_extension_properties.rb +++ b/lib/contacts/get_available_extension_properties/get_available_extension_properties.rb @@ -1,2 +1,2 @@ require_relative 'get_available_extension_properties_post_request_body' -require_relative 'get_available_extension_properties_response' +require_relative 'get_available_extension_properties_post_response' diff --git a/lib/contacts/get_available_extension_properties/get_available_extension_properties_post_request_body.rb b/lib/contacts/get_available_extension_properties/get_available_extension_properties_post_request_body.rb index b5c93c352a..50ed7cf4cd 100644 --- a/lib/contacts/get_available_extension_properties/get_available_extension_properties_post_request_body.rb +++ b/lib/contacts/get_available_extension_properties/get_available_extension_properties_post_request_body.rb @@ -15,22 +15,22 @@ class GetAvailableExtensionPropertiesPostRequestBody # The isSyncedFromOnPremises property @is_synced_from_on_premises ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getAvailableExtensionPropertiesPostRequestBody and sets the default values. + ## Instantiates a new GetAvailableExtensionPropertiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/contacts/get_available_extension_properties/get_available_extension_properties_post_response.rb b/lib/contacts/get_available_extension_properties/get_available_extension_properties_post_response.rb new file mode 100644 index 0000000000..8c5ef48779 --- /dev/null +++ b/lib/contacts/get_available_extension_properties/get_available_extension_properties_post_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_collection_pagination_count_response' +require_relative '../../models/extension_property' +require_relative '../contacts' +require_relative './get_available_extension_properties' + +module MicrosoftGraph + module Contacts + module GetAvailableExtensionProperties + class GetAvailableExtensionPropertiesPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetAvailableExtensionPropertiesPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_available_extension_properties_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetAvailableExtensionPropertiesPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a extension_property + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/contacts/get_available_extension_properties/get_available_extension_properties_request_builder.rb b/lib/contacts/get_available_extension_properties/get_available_extension_properties_request_builder.rb index f6c112444e..6ee7c4e418 100644 --- a/lib/contacts/get_available_extension_properties/get_available_extension_properties_request_builder.rb +++ b/lib/contacts/get_available_extension_properties/get_available_extension_properties_request_builder.rb @@ -21,10 +21,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/contacts/getAvailableExtensionProperties") end ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_available_extension_properties_response + ## @return a Fiber of get_available_extension_properties_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -32,12 +32,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contacts::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contacts::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -45,17 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_available_extension_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetAvailableExtensionPropertiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/contacts/get_available_extension_properties/get_available_extension_properties_response.rb b/lib/contacts/get_available_extension_properties/get_available_extension_properties_response.rb deleted file mode 100644 index 74005afe33..0000000000 --- a/lib/contacts/get_available_extension_properties/get_available_extension_properties_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_collection_pagination_count_response' -require_relative '../../models/extension_property' -require_relative '../contacts' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module Contacts - module GetAvailableExtensionProperties - class GetAvailableExtensionPropertiesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_available_extension_properties_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAvailableExtensionPropertiesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a extension_property - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/contacts/get_by_ids/get_by_ids.rb b/lib/contacts/get_by_ids/get_by_ids.rb index e4b0824834..131a179969 100644 --- a/lib/contacts/get_by_ids/get_by_ids.rb +++ b/lib/contacts/get_by_ids/get_by_ids.rb @@ -1,2 +1,2 @@ require_relative 'get_by_ids_post_request_body' -require_relative 'get_by_ids_response' +require_relative 'get_by_ids_post_response' diff --git a/lib/contacts/get_by_ids/get_by_ids_post_request_body.rb b/lib/contacts/get_by_ids/get_by_ids_post_request_body.rb index 015477085a..bd4f0b0ea1 100644 --- a/lib/contacts/get_by_ids/get_by_ids_post_request_body.rb +++ b/lib/contacts/get_by_ids/get_by_ids_post_request_body.rb @@ -18,22 +18,22 @@ class GetByIdsPostRequestBody # The types property @types ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getByIdsPostRequestBody and sets the default values. + ## Instantiates a new GetByIdsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/contacts/get_by_ids/get_by_ids_post_response.rb b/lib/contacts/get_by_ids/get_by_ids_post_response.rb new file mode 100644 index 0000000000..2749b5cdc7 --- /dev/null +++ b/lib/contacts/get_by_ids/get_by_ids_post_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_collection_pagination_count_response' +require_relative '../../models/directory_object' +require_relative '../contacts' +require_relative './get_by_ids' + +module MicrosoftGraph + module Contacts + module GetByIds + class GetByIdsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetByIdsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_by_ids_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetByIdsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a directory_object + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/contacts/get_by_ids/get_by_ids_request_builder.rb b/lib/contacts/get_by_ids/get_by_ids_request_builder.rb index e97a37c861..1fce53d426 100644 --- a/lib/contacts/get_by_ids/get_by_ids_request_builder.rb +++ b/lib/contacts/get_by_ids/get_by_ids_request_builder.rb @@ -24,7 +24,7 @@ def initialize(path_parameters, request_adapter) ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_by_ids_response + ## @return a Fiber of get_by_ids_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -32,9 +32,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contacts::GetByIds::GetByIdsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contacts::GetByIds::GetByIdsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: @@ -45,17 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_by_ids_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetByIdsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/contacts/get_by_ids/get_by_ids_response.rb b/lib/contacts/get_by_ids/get_by_ids_response.rb deleted file mode 100644 index bf6bd1b93b..0000000000 --- a/lib/contacts/get_by_ids/get_by_ids_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_collection_pagination_count_response' -require_relative '../../models/directory_object' -require_relative '../contacts' -require_relative './get_by_ids' - -module MicrosoftGraph - module Contacts - module GetByIds - class GetByIdsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getByIdsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_by_ids_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetByIdsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/contacts/item/check_member_groups/check_member_groups.rb b/lib/contacts/item/check_member_groups/check_member_groups.rb index 938b908522..98148024fe 100644 --- a/lib/contacts/item/check_member_groups/check_member_groups.rb +++ b/lib/contacts/item/check_member_groups/check_member_groups.rb @@ -1,2 +1,2 @@ require_relative 'check_member_groups_post_request_body' -require_relative 'check_member_groups_response' +require_relative 'check_member_groups_post_response' diff --git a/lib/contacts/item/check_member_groups/check_member_groups_post_request_body.rb b/lib/contacts/item/check_member_groups/check_member_groups_post_request_body.rb index 240c453c37..9dec1e1a8c 100644 --- a/lib/contacts/item/check_member_groups/check_member_groups_post_request_body.rb +++ b/lib/contacts/item/check_member_groups/check_member_groups_post_request_body.rb @@ -17,22 +17,22 @@ class CheckMemberGroupsPostRequestBody # The groupIds property @group_ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new checkMemberGroupsPostRequestBody and sets the default values. + ## Instantiates a new CheckMemberGroupsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/contacts/item/check_member_groups/check_member_groups_post_response.rb b/lib/contacts/item/check_member_groups/check_member_groups_post_response.rb new file mode 100644 index 0000000000..ee17a8b0f8 --- /dev/null +++ b/lib/contacts/item/check_member_groups/check_member_groups_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../contacts' +require_relative '../item' +require_relative './check_member_groups' + +module MicrosoftGraph + module Contacts + module Item + module CheckMemberGroups + class CheckMemberGroupsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new CheckMemberGroupsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a check_member_groups_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CheckMemberGroupsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/contacts/item/check_member_groups/check_member_groups_request_builder.rb b/lib/contacts/item/check_member_groups/check_member_groups_request_builder.rb index c17bfc33d6..c301a6688c 100644 --- a/lib/contacts/item/check_member_groups/check_member_groups_request_builder.rb +++ b/lib/contacts/item/check_member_groups/check_member_groups_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/checkMemberGroups") end ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + ## Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_groups_response + ## @return a Fiber of check_member_groups_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contacts::Item::CheckMemberGroups::CheckMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contacts::Item::CheckMemberGroups::CheckMemberGroupsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + ## Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a check_member_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CheckMemberGroupsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/contacts/item/check_member_groups/check_member_groups_response.rb b/lib/contacts/item/check_member_groups/check_member_groups_response.rb deleted file mode 100644 index d643a43e81..0000000000 --- a/lib/contacts/item/check_member_groups/check_member_groups_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../contacts' -require_relative '../item' -require_relative './check_member_groups' - -module MicrosoftGraph - module Contacts - module Item - module CheckMemberGroups - class CheckMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/contacts/item/check_member_objects/check_member_objects.rb b/lib/contacts/item/check_member_objects/check_member_objects.rb index 67fbf971e7..1826285d49 100644 --- a/lib/contacts/item/check_member_objects/check_member_objects.rb +++ b/lib/contacts/item/check_member_objects/check_member_objects.rb @@ -1,2 +1,2 @@ require_relative 'check_member_objects_post_request_body' -require_relative 'check_member_objects_response' +require_relative 'check_member_objects_post_response' diff --git a/lib/contacts/item/check_member_objects/check_member_objects_post_request_body.rb b/lib/contacts/item/check_member_objects/check_member_objects_post_request_body.rb index ca7ff224d2..ddf4fb9be9 100644 --- a/lib/contacts/item/check_member_objects/check_member_objects_post_request_body.rb +++ b/lib/contacts/item/check_member_objects/check_member_objects_post_request_body.rb @@ -17,22 +17,22 @@ class CheckMemberObjectsPostRequestBody # The ids property @ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new checkMemberObjectsPostRequestBody and sets the default values. + ## Instantiates a new CheckMemberObjectsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/contacts/item/check_member_objects/check_member_objects_post_response.rb b/lib/contacts/item/check_member_objects/check_member_objects_post_response.rb new file mode 100644 index 0000000000..6f33f2b803 --- /dev/null +++ b/lib/contacts/item/check_member_objects/check_member_objects_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../contacts' +require_relative '../item' +require_relative './check_member_objects' + +module MicrosoftGraph + module Contacts + module Item + module CheckMemberObjects + class CheckMemberObjectsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new CheckMemberObjectsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a check_member_objects_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CheckMemberObjectsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/contacts/item/check_member_objects/check_member_objects_request_builder.rb b/lib/contacts/item/check_member_objects/check_member_objects_request_builder.rb index b10ba25b9a..49e06f9e1d 100644 --- a/lib/contacts/item/check_member_objects/check_member_objects_request_builder.rb +++ b/lib/contacts/item/check_member_objects/check_member_objects_request_builder.rb @@ -26,7 +26,7 @@ def initialize(path_parameters, request_adapter) ## Invoke action checkMemberObjects ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_objects_response + ## @return a Fiber of check_member_objects_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,9 +34,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contacts::Item::CheckMemberObjects::CheckMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contacts::Item::CheckMemberObjects::CheckMemberObjectsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke action checkMemberObjects @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a check_member_objects_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CheckMemberObjectsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/contacts/item/check_member_objects/check_member_objects_response.rb b/lib/contacts/item/check_member_objects/check_member_objects_response.rb deleted file mode 100644 index b605d02c75..0000000000 --- a/lib/contacts/item/check_member_objects/check_member_objects_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../contacts' -require_relative '../item' -require_relative './check_member_objects' - -module MicrosoftGraph - module Contacts - module Item - module CheckMemberObjects - class CheckMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/contacts/item/direct_reports/count/count_request_builder.rb b/lib/contacts/item/direct_reports/count/count_request_builder.rb index 422249f331..2b49c1149d 100644 --- a/lib/contacts/item/direct_reports/count/count_request_builder.rb +++ b/lib/contacts/item/direct_reports/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/directReports/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/directReports/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/contacts/item/direct_reports/direct_reports_request_builder.rb b/lib/contacts/item/direct_reports/direct_reports_request_builder.rb index aab9d4535b..451e474df1 100644 --- a/lib/contacts/item/direct_reports/direct_reports_request_builder.rb +++ b/lib/contacts/item/direct_reports/direct_reports_request_builder.rb @@ -51,10 +51,10 @@ def by_directory_object_id(directory_object_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/directReports{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/directReports{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## The contact's direct reports. (The users and contacts that have their manager property set to this contact.) Read-only. Nullable. Supports $expand. + ## Get the direct reports for this organizational contact. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object_collection_response ## @@ -63,31 +63,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The contact's direct reports. (The users and contacts that have their manager property set to this contact.) Read-only. Nullable. Supports $expand. + ## Get the direct reports for this organizational contact. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a direct_reports_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectReportsRequestBuilder.new(raw_url, @request_adapter) + end ## - # The contact's direct reports. (The users and contacts that have their manager property set to this contact.) Read-only. Nullable. Supports $expand. + # Get the direct reports for this organizational contact. class DirectReportsRequestBuilderGetQueryParameters ## diff --git a/lib/contacts/item/direct_reports/graph_org_contact/count/count_request_builder.rb b/lib/contacts/item/direct_reports/graph_org_contact/count/count_request_builder.rb index dfca953005..7eb38994df 100644 --- a/lib/contacts/item/direct_reports/graph_org_contact/count/count_request_builder.rb +++ b/lib/contacts/item/direct_reports/graph_org_contact/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/directReports/graph.orgContact/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/directReports/graph.orgContact/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/contacts/item/direct_reports/graph_org_contact/graph_org_contact_request_builder.rb b/lib/contacts/item/direct_reports/graph_org_contact/graph_org_contact_request_builder.rb index 4ff72fae60..341830fa46 100644 --- a/lib/contacts/item/direct_reports/graph_org_contact/graph_org_contact_request_builder.rb +++ b/lib/contacts/item/direct_reports/graph_org_contact/graph_org_contact_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/directReports/graph.orgContact{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/directReports/graph.orgContact{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OrgContactCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_org_contact_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphOrgContactRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection diff --git a/lib/contacts/item/direct_reports/graph_user/count/count_request_builder.rb b/lib/contacts/item/direct_reports/graph_user/count/count_request_builder.rb index 402c4f9622..57bca2b5be 100644 --- a/lib/contacts/item/direct_reports/graph_user/count/count_request_builder.rb +++ b/lib/contacts/item/direct_reports/graph_user/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/directReports/graph.user/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/directReports/graph.user/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/contacts/item/direct_reports/graph_user/graph_user_request_builder.rb b/lib/contacts/item/direct_reports/graph_user/graph_user_request_builder.rb index 11f83ddc19..1527c81b4f 100644 --- a/lib/contacts/item/direct_reports/graph_user/graph_user_request_builder.rb +++ b/lib/contacts/item/direct_reports/graph_user/graph_user_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/directReports/graph.user{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/directReports/graph.user{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection diff --git a/lib/contacts/item/direct_reports/item/directory_object_item_request_builder.rb b/lib/contacts/item/direct_reports/item/directory_object_item_request_builder.rb index 1b1b9869a5..333a334a20 100644 --- a/lib/contacts/item/direct_reports/item/directory_object_item_request_builder.rb +++ b/lib/contacts/item/direct_reports/item/directory_object_item_request_builder.rb @@ -35,7 +35,7 @@ def graph_user() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/directReports/{directoryObject%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/directReports/{directoryObject%2Did}{?%24expand,%24select}") end ## ## The contact's direct reports. (The users and contacts that have their manager property set to this contact.) Read-only. Nullable. Supports $expand. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directory_object_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoryObjectItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The contact's direct reports. (The users and contacts that have their manager property set to this contact.) Read-only. Nullable. Supports $expand. diff --git a/lib/contacts/item/direct_reports/item/graph_org_contact/graph_org_contact_request_builder.rb b/lib/contacts/item/direct_reports/item/graph_org_contact/graph_org_contact_request_builder.rb index f32273c2d0..eba4134f69 100644 --- a/lib/contacts/item/direct_reports/item/graph_org_contact/graph_org_contact_request_builder.rb +++ b/lib/contacts/item/direct_reports/item/graph_org_contact/graph_org_contact_request_builder.rb @@ -25,7 +25,7 @@ class GraphOrgContactRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/directReports/{directoryObject%2Did}/graph.orgContact{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/directReports/{directoryObject%2Did}/graph.orgContact{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OrgContact.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_org_contact_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphOrgContactRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact diff --git a/lib/contacts/item/direct_reports/item/graph_user/graph_user_request_builder.rb b/lib/contacts/item/direct_reports/item/graph_user/graph_user_request_builder.rb index 9103a1c297..9e7eaebb34 100644 --- a/lib/contacts/item/direct_reports/item/graph_user/graph_user_request_builder.rb +++ b/lib/contacts/item/direct_reports/item/graph_user/graph_user_request_builder.rb @@ -25,7 +25,7 @@ class GraphUserRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/directReports/{directoryObject%2Did}/graph.user{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/directReports/{directoryObject%2Did}/graph.user{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.user @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.user diff --git a/lib/contacts/item/get_member_groups/get_member_groups.rb b/lib/contacts/item/get_member_groups/get_member_groups.rb index 0a25b012ea..9190b99738 100644 --- a/lib/contacts/item/get_member_groups/get_member_groups.rb +++ b/lib/contacts/item/get_member_groups/get_member_groups.rb @@ -1,2 +1,2 @@ require_relative 'get_member_groups_post_request_body' -require_relative 'get_member_groups_response' +require_relative 'get_member_groups_post_response' diff --git a/lib/contacts/item/get_member_groups/get_member_groups_post_request_body.rb b/lib/contacts/item/get_member_groups/get_member_groups_post_request_body.rb index fe121b7eb2..65ca576cc4 100644 --- a/lib/contacts/item/get_member_groups/get_member_groups_post_request_body.rb +++ b/lib/contacts/item/get_member_groups/get_member_groups_post_request_body.rb @@ -17,22 +17,22 @@ class GetMemberGroupsPostRequestBody # The securityEnabledOnly property @security_enabled_only ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getMemberGroupsPostRequestBody and sets the default values. + ## Instantiates a new GetMemberGroupsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/contacts/item/get_member_groups/get_member_groups_post_response.rb b/lib/contacts/item/get_member_groups/get_member_groups_post_response.rb new file mode 100644 index 0000000000..25bfa51a5a --- /dev/null +++ b/lib/contacts/item/get_member_groups/get_member_groups_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../contacts' +require_relative '../item' +require_relative './get_member_groups' + +module MicrosoftGraph + module Contacts + module Item + module GetMemberGroups + class GetMemberGroupsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetMemberGroupsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_member_groups_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetMemberGroupsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/contacts/item/get_member_groups/get_member_groups_request_builder.rb b/lib/contacts/item/get_member_groups/get_member_groups_request_builder.rb index 8756ffaf46..c53a765ccc 100644 --- a/lib/contacts/item/get_member_groups/get_member_groups_request_builder.rb +++ b/lib/contacts/item/get_member_groups/get_member_groups_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/getMemberGroups") end ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. + ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_groups_response + ## @return a Fiber of get_member_groups_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contacts::Item::GetMemberGroups::GetMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contacts::Item::GetMemberGroups::GetMemberGroupsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. + ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_member_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetMemberGroupsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/contacts/item/get_member_groups/get_member_groups_response.rb b/lib/contacts/item/get_member_groups/get_member_groups_response.rb deleted file mode 100644 index 878074ec2a..0000000000 --- a/lib/contacts/item/get_member_groups/get_member_groups_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../contacts' -require_relative '../item' -require_relative './get_member_groups' - -module MicrosoftGraph - module Contacts - module Item - module GetMemberGroups - class GetMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/contacts/item/get_member_objects/get_member_objects.rb b/lib/contacts/item/get_member_objects/get_member_objects.rb index 40edad6b9e..f7a486b0f9 100644 --- a/lib/contacts/item/get_member_objects/get_member_objects.rb +++ b/lib/contacts/item/get_member_objects/get_member_objects.rb @@ -1,2 +1,2 @@ require_relative 'get_member_objects_post_request_body' -require_relative 'get_member_objects_response' +require_relative 'get_member_objects_post_response' diff --git a/lib/contacts/item/get_member_objects/get_member_objects_post_request_body.rb b/lib/contacts/item/get_member_objects/get_member_objects_post_request_body.rb index 6e9fc8147f..a666393915 100644 --- a/lib/contacts/item/get_member_objects/get_member_objects_post_request_body.rb +++ b/lib/contacts/item/get_member_objects/get_member_objects_post_request_body.rb @@ -17,22 +17,22 @@ class GetMemberObjectsPostRequestBody # The securityEnabledOnly property @security_enabled_only ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getMemberObjectsPostRequestBody and sets the default values. + ## Instantiates a new GetMemberObjectsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/contacts/item/get_member_objects/get_member_objects_post_response.rb b/lib/contacts/item/get_member_objects/get_member_objects_post_response.rb new file mode 100644 index 0000000000..5b6145797c --- /dev/null +++ b/lib/contacts/item/get_member_objects/get_member_objects_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../contacts' +require_relative '../item' +require_relative './get_member_objects' + +module MicrosoftGraph + module Contacts + module Item + module GetMemberObjects + class GetMemberObjectsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetMemberObjectsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_member_objects_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetMemberObjectsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/contacts/item/get_member_objects/get_member_objects_request_builder.rb b/lib/contacts/item/get_member_objects/get_member_objects_request_builder.rb index ff4e3a5d7f..9077b505be 100644 --- a/lib/contacts/item/get_member_objects/get_member_objects_request_builder.rb +++ b/lib/contacts/item/get_member_objects/get_member_objects_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/getMemberObjects") end ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + ## Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_objects_response + ## @return a Fiber of get_member_objects_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contacts::Item::GetMemberObjects::GetMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contacts::Item::GetMemberObjects::GetMemberObjectsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + ## Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_member_objects_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetMemberObjectsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/contacts/item/get_member_objects/get_member_objects_response.rb b/lib/contacts/item/get_member_objects/get_member_objects_response.rb deleted file mode 100644 index 576d2d8b39..0000000000 --- a/lib/contacts/item/get_member_objects/get_member_objects_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../contacts' -require_relative '../item' -require_relative './get_member_objects' - -module MicrosoftGraph - module Contacts - module Item - module GetMemberObjects - class GetMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/contacts/item/manager/manager_request_builder.rb b/lib/contacts/item/manager/manager_request_builder.rb index f00609f8f8..13c4c129b3 100644 --- a/lib/contacts/item/manager/manager_request_builder.rb +++ b/lib/contacts/item/manager/manager_request_builder.rb @@ -21,7 +21,7 @@ class ManagerRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/manager{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/manager{?%24expand,%24select}") end ## ## Get this organizational contact's manager. @@ -33,8 +33,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -44,17 +43,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a manager_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagerRequestBuilder.new(raw_url, @request_adapter) + end ## # Get this organizational contact's manager. diff --git a/lib/contacts/item/member_of/count/count_request_builder.rb b/lib/contacts/item/member_of/count/count_request_builder.rb index 4fa72d8da8..0d89d485d5 100644 --- a/lib/contacts/item/member_of/count/count_request_builder.rb +++ b/lib/contacts/item/member_of/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/memberOf/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/memberOf/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/contacts/item/member_of/graph_administrative_unit/count/count_request_builder.rb b/lib/contacts/item/member_of/graph_administrative_unit/count/count_request_builder.rb index c8d3811758..53d48ef82c 100644 --- a/lib/contacts/item/member_of/graph_administrative_unit/count/count_request_builder.rb +++ b/lib/contacts/item/member_of/graph_administrative_unit/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/memberOf/graph.administrativeUnit/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/memberOf/graph.administrativeUnit/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/contacts/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/contacts/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb index d0d500cfeb..b0116a2f5f 100644 --- a/lib/contacts/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +++ b/lib/contacts/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/memberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/memberOf/graph.administrativeUnit{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnitCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_administrative_unit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAdministrativeUnitRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection diff --git a/lib/contacts/item/member_of/graph_group/count/count_request_builder.rb b/lib/contacts/item/member_of/graph_group/count/count_request_builder.rb index 999f3860f5..2961b584db 100644 --- a/lib/contacts/item/member_of/graph_group/count/count_request_builder.rb +++ b/lib/contacts/item/member_of/graph_group/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/memberOf/graph.group/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/memberOf/graph.group/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/contacts/item/member_of/graph_group/graph_group_request_builder.rb b/lib/contacts/item/member_of/graph_group/graph_group_request_builder.rb index 8a8b16de91..e440861d2a 100644 --- a/lib/contacts/item/member_of/graph_group/graph_group_request_builder.rb +++ b/lib/contacts/item/member_of/graph_group/graph_group_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/memberOf/graph.group{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/memberOf/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection diff --git a/lib/contacts/item/member_of/item/directory_object_item_request_builder.rb b/lib/contacts/item/member_of/item/directory_object_item_request_builder.rb index 572f8dd8c5..a3fb0f6cf0 100644 --- a/lib/contacts/item/member_of/item/directory_object_item_request_builder.rb +++ b/lib/contacts/item/member_of/item/directory_object_item_request_builder.rb @@ -35,7 +35,7 @@ def graph_group() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/memberOf/{directoryObject%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/memberOf/{directoryObject%2Did}{?%24expand,%24select}") end ## ## Groups that this contact is a member of. Read-only. Nullable. Supports $expand. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directory_object_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoryObjectItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Groups that this contact is a member of. Read-only. Nullable. Supports $expand. diff --git a/lib/contacts/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/contacts/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb index e88fa5e4f0..0b63dd89ee 100644 --- a/lib/contacts/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +++ b/lib/contacts/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -25,7 +25,7 @@ class GraphAdministrativeUnitRequestBuilder < MicrosoftKiotaAbstractions::BaseRe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/memberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/memberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_administrative_unit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAdministrativeUnitRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit diff --git a/lib/contacts/item/member_of/item/graph_group/graph_group_request_builder.rb b/lib/contacts/item/member_of/item/graph_group/graph_group_request_builder.rb index 6a4aa1fe21..9b9aefb757 100644 --- a/lib/contacts/item/member_of/item/graph_group/graph_group_request_builder.rb +++ b/lib/contacts/item/member_of/item/graph_group/graph_group_request_builder.rb @@ -25,7 +25,7 @@ class GraphGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/memberOf/{directoryObject%2Did}/graph.group{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/memberOf/{directoryObject%2Did}/graph.group{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.group @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.group diff --git a/lib/contacts/item/member_of/member_of_request_builder.rb b/lib/contacts/item/member_of/member_of_request_builder.rb index 373a52322f..25a1fe93d6 100644 --- a/lib/contacts/item/member_of/member_of_request_builder.rb +++ b/lib/contacts/item/member_of/member_of_request_builder.rb @@ -51,10 +51,10 @@ def by_directory_object_id(directory_object_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/memberOf{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/memberOf{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Groups that this contact is a member of. Read-only. Nullable. Supports $expand. + ## List the groups that this organizational contact is a member of. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object_collection_response ## @@ -63,31 +63,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Groups that this contact is a member of. Read-only. Nullable. Supports $expand. + ## List the groups that this organizational contact is a member of. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a member_of_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MemberOfRequestBuilder.new(raw_url, @request_adapter) + end ## - # Groups that this contact is a member of. Read-only. Nullable. Supports $expand. + # List the groups that this organizational contact is a member of. class MemberOfRequestBuilderGetQueryParameters ## diff --git a/lib/contacts/item/org_contact_item_request_builder.rb b/lib/contacts/item/org_contact_item_request_builder.rb index 6e3fc14f63..c97bd5083c 100644 --- a/lib/contacts/item/org_contact_item_request_builder.rb +++ b/lib/contacts/item/org_contact_item_request_builder.rb @@ -12,6 +12,8 @@ require_relative './manager/manager_request_builder' require_relative './member_of/member_of_request_builder' require_relative './restore/restore_request_builder' +require_relative './retry_service_provisioning/retry_service_provisioning_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' require_relative './transitive_member_of/transitive_member_of_request_builder' module MicrosoftGraph @@ -62,6 +64,16 @@ def restore() return MicrosoftGraph::Contacts::Item::Restore::RestoreRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the retryServiceProvisioning method. + def retry_service_provisioning() + return MicrosoftGraph::Contacts::Item::RetryServiceProvisioning::RetryServiceProvisioningRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Contacts::Item::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to manage the transitiveMemberOf property of the microsoft.graph.orgContact entity. def transitive_member_of() return MicrosoftGraph::Contacts::Item::TransitiveMemberOf::TransitiveMemberOfRequestBuilder.new(@path_parameters, @request_adapter) @@ -73,7 +85,7 @@ def transitive_member_of() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}{?%24expand,%24select}") end ## ## Delete entity from contacts @@ -85,8 +97,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -99,8 +110,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OrgContact.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -115,8 +125,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OrgContact.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -126,13 +135,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -142,15 +152,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -162,17 +172,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a org_contact_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OrgContactItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the properties and relationships of an organizational contact. diff --git a/lib/contacts/item/restore/restore_request_builder.rb b/lib/contacts/item/restore/restore_request_builder.rb index 2deb3d20b9..12c3ee0c70 100644 --- a/lib/contacts/item/restore/restore_request_builder.rb +++ b/lib/contacts/item/restore/restore_request_builder.rb @@ -24,7 +24,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/restore") end ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object ## @@ -33,27 +33,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a restore_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RestoreRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/me/authentication/email_methods/item/item.rb b/lib/contacts/item/retry_service_provisioning/retry_service_provisioning.rb similarity index 100% rename from lib/me/authentication/email_methods/item/item.rb rename to lib/contacts/item/retry_service_provisioning/retry_service_provisioning.rb diff --git a/lib/contacts/item/retry_service_provisioning/retry_service_provisioning_request_builder.rb b/lib/contacts/item/retry_service_provisioning/retry_service_provisioning_request_builder.rb new file mode 100644 index 0000000000..8baaabf7dd --- /dev/null +++ b/lib/contacts/item/retry_service_provisioning/retry_service_provisioning_request_builder.rb @@ -0,0 +1,68 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../contacts' +require_relative '../item' +require_relative './retry_service_provisioning' + +module MicrosoftGraph + module Contacts + module Item + module RetryServiceProvisioning + ## + # Provides operations to call the retryServiceProvisioning method. + class RetryServiceProvisioningRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RetryServiceProvisioningRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/retryServiceProvisioning") + end + ## + ## Invoke action retryServiceProvisioning + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action retryServiceProvisioning + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a retry_service_provisioning_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RetryServiceProvisioningRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end +end diff --git a/lib/me/authentication/fido2_methods/count/count.rb b/lib/contacts/item/service_provisioning_errors/count/count.rb similarity index 100% rename from lib/me/authentication/fido2_methods/count/count.rb rename to lib/contacts/item/service_provisioning_errors/count/count.rb diff --git a/lib/contacts/item/service_provisioning_errors/count/count_request_builder.rb b/lib/contacts/item/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..ee5a701c02 --- /dev/null +++ b/lib/contacts/item/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../contacts' +require_relative '../../item' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Contacts + module Item + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/fido2_methods/fido2_methods.rb b/lib/contacts/item/service_provisioning_errors/service_provisioning_errors.rb similarity index 100% rename from lib/me/authentication/fido2_methods/fido2_methods.rb rename to lib/contacts/item/service_provisioning_errors/service_provisioning_errors.rb diff --git a/lib/contacts/item/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/contacts/item/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..4b7d13db21 --- /dev/null +++ b/lib/contacts/item/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,134 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../../models/service_provisioning_error_collection_response' +require_relative '../../contacts' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Contacts + module Item + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \contacts\{orgContact-id}\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Contacts::Item::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from an organizational contact object . Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from an organizational contact object . Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from an organizational contact object . Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/contacts/item/transitive_member_of/count/count_request_builder.rb b/lib/contacts/item/transitive_member_of/count/count_request_builder.rb index c9c3423957..5d0f50d535 100644 --- a/lib/contacts/item/transitive_member_of/count/count_request_builder.rb +++ b/lib/contacts/item/transitive_member_of/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/contacts/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb b/lib/contacts/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb index 70f4afed86..8944157171 100644 --- a/lib/contacts/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb +++ b/lib/contacts/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/graph.administrativeUnit/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/graph.administrativeUnit/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/contacts/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/contacts/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb index eb1d1e213c..aeaf5a62c8 100644 --- a/lib/contacts/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +++ b/lib/contacts/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/graph.administrativeUnit{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnitCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_administrative_unit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAdministrativeUnitRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection diff --git a/lib/contacts/item/transitive_member_of/graph_group/count/count_request_builder.rb b/lib/contacts/item/transitive_member_of/graph_group/count/count_request_builder.rb index 5589661514..451179e3e7 100644 --- a/lib/contacts/item/transitive_member_of/graph_group/count/count_request_builder.rb +++ b/lib/contacts/item/transitive_member_of/graph_group/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/graph.group/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/graph.group/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/contacts/item/transitive_member_of/graph_group/graph_group_request_builder.rb b/lib/contacts/item/transitive_member_of/graph_group/graph_group_request_builder.rb index ee21aebe0d..1a295ac87e 100644 --- a/lib/contacts/item/transitive_member_of/graph_group/graph_group_request_builder.rb +++ b/lib/contacts/item/transitive_member_of/graph_group/graph_group_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/graph.group{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection diff --git a/lib/contacts/item/transitive_member_of/item/directory_object_item_request_builder.rb b/lib/contacts/item/transitive_member_of/item/directory_object_item_request_builder.rb index e01fe5131b..8bff30038d 100644 --- a/lib/contacts/item/transitive_member_of/item/directory_object_item_request_builder.rb +++ b/lib/contacts/item/transitive_member_of/item/directory_object_item_request_builder.rb @@ -35,7 +35,7 @@ def graph_group() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/{directoryObject%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/{directoryObject%2Did}{?%24expand,%24select}") end ## ## Groups that this contact is a member of, including groups that the contact is nested under. Read-only. Nullable. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directory_object_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoryObjectItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Groups that this contact is a member of, including groups that the contact is nested under. Read-only. Nullable. diff --git a/lib/contacts/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/contacts/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb index 8b7deb9817..f533c75b79 100644 --- a/lib/contacts/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +++ b/lib/contacts/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -25,7 +25,7 @@ class GraphAdministrativeUnitRequestBuilder < MicrosoftKiotaAbstractions::BaseRe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_administrative_unit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAdministrativeUnitRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit diff --git a/lib/contacts/item/transitive_member_of/item/graph_group/graph_group_request_builder.rb b/lib/contacts/item/transitive_member_of/item/graph_group/graph_group_request_builder.rb index 1b0c24b20c..62fd003f3d 100644 --- a/lib/contacts/item/transitive_member_of/item/graph_group/graph_group_request_builder.rb +++ b/lib/contacts/item/transitive_member_of/item/graph_group/graph_group_request_builder.rb @@ -25,7 +25,7 @@ class GraphGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.group{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.group{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.group @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.group diff --git a/lib/contacts/item/transitive_member_of/transitive_member_of_request_builder.rb b/lib/contacts/item/transitive_member_of/transitive_member_of_request_builder.rb index 73c6f00d76..f76b8eaf13 100644 --- a/lib/contacts/item/transitive_member_of/transitive_member_of_request_builder.rb +++ b/lib/contacts/item/transitive_member_of/transitive_member_of_request_builder.rb @@ -51,10 +51,10 @@ def by_directory_object_id(directory_object_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Groups that this contact is a member of, including groups that the contact is nested under. Read-only. Nullable. + ## Get groups that this organizational contact is a member of. The API request is transitive, and returns all groups the organizational contact is a nested member of. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object_collection_response ## @@ -63,31 +63,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Groups that this contact is a member of, including groups that the contact is nested under. Read-only. Nullable. + ## Get groups that this organizational contact is a member of. The API request is transitive, and returns all groups the organizational contact is a nested member of. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a transitive_member_of_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TransitiveMemberOfRequestBuilder.new(raw_url, @request_adapter) + end ## - # Groups that this contact is a member of, including groups that the contact is nested under. Read-only. Nullable. + # Get groups that this organizational contact is a member of. The API request is transitive, and returns all groups the organizational contact is a nested member of. class TransitiveMemberOfRequestBuilderGetQueryParameters ## diff --git a/lib/contacts/validate_properties/validate_properties_post_request_body.rb b/lib/contacts/validate_properties/validate_properties_post_request_body.rb index a6b8b42aa0..8ee59b0493 100644 --- a/lib/contacts/validate_properties/validate_properties_post_request_body.rb +++ b/lib/contacts/validate_properties/validate_properties_post_request_body.rb @@ -24,22 +24,22 @@ class ValidatePropertiesPostRequestBody # The onBehalfOfUserId property @on_behalf_of_user_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new validatePropertiesPostRequestBody and sets the default values. + ## Instantiates a new ValidatePropertiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/contacts/validate_properties/validate_properties_request_builder.rb b/lib/contacts/validate_properties/validate_properties_request_builder.rb index 3229b977fc..6efeab11ea 100644 --- a/lib/contacts/validate_properties/validate_properties_request_builder.rb +++ b/lib/contacts/validate_properties/validate_properties_request_builder.rb @@ -32,8 +32,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,16 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a validate_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ValidatePropertiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/contracts/contracts_request_builder.rb b/lib/contracts/contracts_request_builder.rb index dbd09a22c8..bc1d7e5848 100644 --- a/lib/contracts/contracts_request_builder.rb +++ b/lib/contracts/contracts_request_builder.rb @@ -60,7 +60,7 @@ def by_contract_id(contract_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contracts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/contracts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of contract objects associated to a partner tenant. @@ -72,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContractCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,8 +87,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Contract.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,15 +97,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -119,17 +117,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a contracts_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContractsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of contract objects associated to a partner tenant. diff --git a/lib/contracts/count/count_request_builder.rb b/lib/contracts/count/count_request_builder.rb index aa765e688c..904cac8fcb 100644 --- a/lib/contracts/count/count_request_builder.rb +++ b/lib/contracts/count/count_request_builder.rb @@ -18,7 +18,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contracts/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/contracts/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -30,8 +30,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -41,17 +40,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/contracts/delta/delta.rb b/lib/contracts/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/contracts/delta/delta.rb +++ b/lib/contracts/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/contracts/delta/delta_get_response.rb b/lib/contracts/delta/delta_get_response.rb new file mode 100644 index 0000000000..8ee70760b8 --- /dev/null +++ b/lib/contracts/delta/delta_get_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_delta_function_response' +require_relative '../../models/directory_object' +require_relative '../contracts' +require_relative './delta' + +module MicrosoftGraph + module Contracts + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a directory_object + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/contracts/delta/delta_request_builder.rb b/lib/contracts/delta/delta_request_builder.rb index 98a43daac3..ff7b27613f 100644 --- a/lib/contracts/delta/delta_request_builder.rb +++ b/lib/contracts/delta/delta_request_builder.rb @@ -18,49 +18,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contracts/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/contracts/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contracts::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contracts::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # 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 ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -88,6 +99,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/contracts/delta/delta_response.rb b/lib/contracts/delta/delta_response.rb deleted file mode 100644 index 90ab6b4544..0000000000 --- a/lib/contracts/delta/delta_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_delta_function_response' -require_relative '../../models/directory_object' -require_relative '../contracts' -require_relative './delta' - -module MicrosoftGraph - module Contracts - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/contracts/get_available_extension_properties/get_available_extension_properties.rb b/lib/contracts/get_available_extension_properties/get_available_extension_properties.rb index b6fee576bf..ce1b642cad 100644 --- a/lib/contracts/get_available_extension_properties/get_available_extension_properties.rb +++ b/lib/contracts/get_available_extension_properties/get_available_extension_properties.rb @@ -1,2 +1,2 @@ require_relative 'get_available_extension_properties_post_request_body' -require_relative 'get_available_extension_properties_response' +require_relative 'get_available_extension_properties_post_response' diff --git a/lib/contracts/get_available_extension_properties/get_available_extension_properties_post_request_body.rb b/lib/contracts/get_available_extension_properties/get_available_extension_properties_post_request_body.rb index 38fa7c8d3c..dcd930b776 100644 --- a/lib/contracts/get_available_extension_properties/get_available_extension_properties_post_request_body.rb +++ b/lib/contracts/get_available_extension_properties/get_available_extension_properties_post_request_body.rb @@ -15,22 +15,22 @@ class GetAvailableExtensionPropertiesPostRequestBody # The isSyncedFromOnPremises property @is_synced_from_on_premises ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getAvailableExtensionPropertiesPostRequestBody and sets the default values. + ## Instantiates a new GetAvailableExtensionPropertiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/contracts/get_available_extension_properties/get_available_extension_properties_post_response.rb b/lib/contracts/get_available_extension_properties/get_available_extension_properties_post_response.rb new file mode 100644 index 0000000000..4a092e317a --- /dev/null +++ b/lib/contracts/get_available_extension_properties/get_available_extension_properties_post_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_collection_pagination_count_response' +require_relative '../../models/extension_property' +require_relative '../contracts' +require_relative './get_available_extension_properties' + +module MicrosoftGraph + module Contracts + module GetAvailableExtensionProperties + class GetAvailableExtensionPropertiesPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetAvailableExtensionPropertiesPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_available_extension_properties_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetAvailableExtensionPropertiesPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a extension_property + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/contracts/get_available_extension_properties/get_available_extension_properties_request_builder.rb b/lib/contracts/get_available_extension_properties/get_available_extension_properties_request_builder.rb index 6fdb7a7693..bae6de8ddc 100644 --- a/lib/contracts/get_available_extension_properties/get_available_extension_properties_request_builder.rb +++ b/lib/contracts/get_available_extension_properties/get_available_extension_properties_request_builder.rb @@ -21,10 +21,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/contracts/getAvailableExtensionProperties") end ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_available_extension_properties_response + ## @return a Fiber of get_available_extension_properties_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -32,12 +32,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contracts::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contracts::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -45,17 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_available_extension_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetAvailableExtensionPropertiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/contracts/get_available_extension_properties/get_available_extension_properties_response.rb b/lib/contracts/get_available_extension_properties/get_available_extension_properties_response.rb deleted file mode 100644 index 377501193e..0000000000 --- a/lib/contracts/get_available_extension_properties/get_available_extension_properties_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_collection_pagination_count_response' -require_relative '../../models/extension_property' -require_relative '../contracts' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module Contracts - module GetAvailableExtensionProperties - class GetAvailableExtensionPropertiesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_available_extension_properties_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAvailableExtensionPropertiesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a extension_property - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/contracts/get_by_ids/get_by_ids.rb b/lib/contracts/get_by_ids/get_by_ids.rb index e4b0824834..131a179969 100644 --- a/lib/contracts/get_by_ids/get_by_ids.rb +++ b/lib/contracts/get_by_ids/get_by_ids.rb @@ -1,2 +1,2 @@ require_relative 'get_by_ids_post_request_body' -require_relative 'get_by_ids_response' +require_relative 'get_by_ids_post_response' diff --git a/lib/contracts/get_by_ids/get_by_ids_post_request_body.rb b/lib/contracts/get_by_ids/get_by_ids_post_request_body.rb index a8f5809e3b..a6abfcf013 100644 --- a/lib/contracts/get_by_ids/get_by_ids_post_request_body.rb +++ b/lib/contracts/get_by_ids/get_by_ids_post_request_body.rb @@ -18,22 +18,22 @@ class GetByIdsPostRequestBody # The types property @types ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getByIdsPostRequestBody and sets the default values. + ## Instantiates a new GetByIdsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/contracts/get_by_ids/get_by_ids_post_response.rb b/lib/contracts/get_by_ids/get_by_ids_post_response.rb new file mode 100644 index 0000000000..074a847709 --- /dev/null +++ b/lib/contracts/get_by_ids/get_by_ids_post_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_collection_pagination_count_response' +require_relative '../../models/directory_object' +require_relative '../contracts' +require_relative './get_by_ids' + +module MicrosoftGraph + module Contracts + module GetByIds + class GetByIdsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetByIdsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_by_ids_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetByIdsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a directory_object + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/contracts/get_by_ids/get_by_ids_request_builder.rb b/lib/contracts/get_by_ids/get_by_ids_request_builder.rb index 91c8dcb193..6ea5dcf7aa 100644 --- a/lib/contracts/get_by_ids/get_by_ids_request_builder.rb +++ b/lib/contracts/get_by_ids/get_by_ids_request_builder.rb @@ -24,7 +24,7 @@ def initialize(path_parameters, request_adapter) ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_by_ids_response + ## @return a Fiber of get_by_ids_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -32,9 +32,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contracts::GetByIds::GetByIdsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contracts::GetByIds::GetByIdsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: @@ -45,17 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_by_ids_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetByIdsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/contracts/get_by_ids/get_by_ids_response.rb b/lib/contracts/get_by_ids/get_by_ids_response.rb deleted file mode 100644 index b92281d14c..0000000000 --- a/lib/contracts/get_by_ids/get_by_ids_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_collection_pagination_count_response' -require_relative '../../models/directory_object' -require_relative '../contracts' -require_relative './get_by_ids' - -module MicrosoftGraph - module Contracts - module GetByIds - class GetByIdsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getByIdsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_by_ids_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetByIdsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/contracts/item/check_member_groups/check_member_groups.rb b/lib/contracts/item/check_member_groups/check_member_groups.rb index 938b908522..98148024fe 100644 --- a/lib/contracts/item/check_member_groups/check_member_groups.rb +++ b/lib/contracts/item/check_member_groups/check_member_groups.rb @@ -1,2 +1,2 @@ require_relative 'check_member_groups_post_request_body' -require_relative 'check_member_groups_response' +require_relative 'check_member_groups_post_response' diff --git a/lib/contracts/item/check_member_groups/check_member_groups_post_request_body.rb b/lib/contracts/item/check_member_groups/check_member_groups_post_request_body.rb index 2f0d61da14..9d13787ca1 100644 --- a/lib/contracts/item/check_member_groups/check_member_groups_post_request_body.rb +++ b/lib/contracts/item/check_member_groups/check_member_groups_post_request_body.rb @@ -17,22 +17,22 @@ class CheckMemberGroupsPostRequestBody # The groupIds property @group_ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new checkMemberGroupsPostRequestBody and sets the default values. + ## Instantiates a new CheckMemberGroupsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/contracts/item/check_member_groups/check_member_groups_post_response.rb b/lib/contracts/item/check_member_groups/check_member_groups_post_response.rb new file mode 100644 index 0000000000..3f524ab4ee --- /dev/null +++ b/lib/contracts/item/check_member_groups/check_member_groups_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../contracts' +require_relative '../item' +require_relative './check_member_groups' + +module MicrosoftGraph + module Contracts + module Item + module CheckMemberGroups + class CheckMemberGroupsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new CheckMemberGroupsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a check_member_groups_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CheckMemberGroupsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/contracts/item/check_member_groups/check_member_groups_request_builder.rb b/lib/contracts/item/check_member_groups/check_member_groups_request_builder.rb index 8b2e42d13c..0432967372 100644 --- a/lib/contracts/item/check_member_groups/check_member_groups_request_builder.rb +++ b/lib/contracts/item/check_member_groups/check_member_groups_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/contracts/{contract%2Did}/checkMemberGroups") end ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + ## Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_groups_response + ## @return a Fiber of check_member_groups_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contracts::Item::CheckMemberGroups::CheckMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contracts::Item::CheckMemberGroups::CheckMemberGroupsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + ## Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a check_member_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CheckMemberGroupsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/contracts/item/check_member_groups/check_member_groups_response.rb b/lib/contracts/item/check_member_groups/check_member_groups_response.rb deleted file mode 100644 index ae9cbecde8..0000000000 --- a/lib/contracts/item/check_member_groups/check_member_groups_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../contracts' -require_relative '../item' -require_relative './check_member_groups' - -module MicrosoftGraph - module Contracts - module Item - module CheckMemberGroups - class CheckMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/contracts/item/check_member_objects/check_member_objects.rb b/lib/contracts/item/check_member_objects/check_member_objects.rb index 67fbf971e7..1826285d49 100644 --- a/lib/contracts/item/check_member_objects/check_member_objects.rb +++ b/lib/contracts/item/check_member_objects/check_member_objects.rb @@ -1,2 +1,2 @@ require_relative 'check_member_objects_post_request_body' -require_relative 'check_member_objects_response' +require_relative 'check_member_objects_post_response' diff --git a/lib/contracts/item/check_member_objects/check_member_objects_post_request_body.rb b/lib/contracts/item/check_member_objects/check_member_objects_post_request_body.rb index e783848bea..fe9c400266 100644 --- a/lib/contracts/item/check_member_objects/check_member_objects_post_request_body.rb +++ b/lib/contracts/item/check_member_objects/check_member_objects_post_request_body.rb @@ -17,22 +17,22 @@ class CheckMemberObjectsPostRequestBody # The ids property @ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new checkMemberObjectsPostRequestBody and sets the default values. + ## Instantiates a new CheckMemberObjectsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/contracts/item/check_member_objects/check_member_objects_post_response.rb b/lib/contracts/item/check_member_objects/check_member_objects_post_response.rb new file mode 100644 index 0000000000..f0642d91a9 --- /dev/null +++ b/lib/contracts/item/check_member_objects/check_member_objects_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../contracts' +require_relative '../item' +require_relative './check_member_objects' + +module MicrosoftGraph + module Contracts + module Item + module CheckMemberObjects + class CheckMemberObjectsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new CheckMemberObjectsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a check_member_objects_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CheckMemberObjectsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/contracts/item/check_member_objects/check_member_objects_request_builder.rb b/lib/contracts/item/check_member_objects/check_member_objects_request_builder.rb index 9763ab5ea5..10efd5401f 100644 --- a/lib/contracts/item/check_member_objects/check_member_objects_request_builder.rb +++ b/lib/contracts/item/check_member_objects/check_member_objects_request_builder.rb @@ -26,7 +26,7 @@ def initialize(path_parameters, request_adapter) ## Invoke action checkMemberObjects ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_objects_response + ## @return a Fiber of check_member_objects_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,9 +34,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contracts::Item::CheckMemberObjects::CheckMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contracts::Item::CheckMemberObjects::CheckMemberObjectsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke action checkMemberObjects @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a check_member_objects_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CheckMemberObjectsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/contracts/item/check_member_objects/check_member_objects_response.rb b/lib/contracts/item/check_member_objects/check_member_objects_response.rb deleted file mode 100644 index 251422950f..0000000000 --- a/lib/contracts/item/check_member_objects/check_member_objects_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../contracts' -require_relative '../item' -require_relative './check_member_objects' - -module MicrosoftGraph - module Contracts - module Item - module CheckMemberObjects - class CheckMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/contracts/item/contract_item_request_builder.rb b/lib/contracts/item/contract_item_request_builder.rb index fa4fbc1078..34c2e354bd 100644 --- a/lib/contracts/item/contract_item_request_builder.rb +++ b/lib/contracts/item/contract_item_request_builder.rb @@ -49,7 +49,7 @@ def restore() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/contracts/{contract%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/contracts/{contract%2Did}{?%24expand,%24select}") end ## ## Delete entity from contracts @@ -61,8 +61,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -75,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Contract.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Contract.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,13 +99,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,15 +116,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,17 +136,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a contract_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContractItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of contract object. diff --git a/lib/contracts/item/get_member_groups/get_member_groups.rb b/lib/contracts/item/get_member_groups/get_member_groups.rb index 0a25b012ea..9190b99738 100644 --- a/lib/contracts/item/get_member_groups/get_member_groups.rb +++ b/lib/contracts/item/get_member_groups/get_member_groups.rb @@ -1,2 +1,2 @@ require_relative 'get_member_groups_post_request_body' -require_relative 'get_member_groups_response' +require_relative 'get_member_groups_post_response' diff --git a/lib/contracts/item/get_member_groups/get_member_groups_post_request_body.rb b/lib/contracts/item/get_member_groups/get_member_groups_post_request_body.rb index 6c917cd622..fea096ef7a 100644 --- a/lib/contracts/item/get_member_groups/get_member_groups_post_request_body.rb +++ b/lib/contracts/item/get_member_groups/get_member_groups_post_request_body.rb @@ -17,22 +17,22 @@ class GetMemberGroupsPostRequestBody # The securityEnabledOnly property @security_enabled_only ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getMemberGroupsPostRequestBody and sets the default values. + ## Instantiates a new GetMemberGroupsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/contracts/item/get_member_groups/get_member_groups_post_response.rb b/lib/contracts/item/get_member_groups/get_member_groups_post_response.rb new file mode 100644 index 0000000000..1507dd6702 --- /dev/null +++ b/lib/contracts/item/get_member_groups/get_member_groups_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../contracts' +require_relative '../item' +require_relative './get_member_groups' + +module MicrosoftGraph + module Contracts + module Item + module GetMemberGroups + class GetMemberGroupsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetMemberGroupsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_member_groups_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetMemberGroupsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/contracts/item/get_member_groups/get_member_groups_request_builder.rb b/lib/contracts/item/get_member_groups/get_member_groups_request_builder.rb index c352f838c0..05fe8c0a4a 100644 --- a/lib/contracts/item/get_member_groups/get_member_groups_request_builder.rb +++ b/lib/contracts/item/get_member_groups/get_member_groups_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/contracts/{contract%2Did}/getMemberGroups") end ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. + ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_groups_response + ## @return a Fiber of get_member_groups_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contracts::Item::GetMemberGroups::GetMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contracts::Item::GetMemberGroups::GetMemberGroupsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. + ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_member_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetMemberGroupsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/contracts/item/get_member_groups/get_member_groups_response.rb b/lib/contracts/item/get_member_groups/get_member_groups_response.rb deleted file mode 100644 index 58f8463311..0000000000 --- a/lib/contracts/item/get_member_groups/get_member_groups_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../contracts' -require_relative '../item' -require_relative './get_member_groups' - -module MicrosoftGraph - module Contracts - module Item - module GetMemberGroups - class GetMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/contracts/item/get_member_objects/get_member_objects.rb b/lib/contracts/item/get_member_objects/get_member_objects.rb index 40edad6b9e..f7a486b0f9 100644 --- a/lib/contracts/item/get_member_objects/get_member_objects.rb +++ b/lib/contracts/item/get_member_objects/get_member_objects.rb @@ -1,2 +1,2 @@ require_relative 'get_member_objects_post_request_body' -require_relative 'get_member_objects_response' +require_relative 'get_member_objects_post_response' diff --git a/lib/contracts/item/get_member_objects/get_member_objects_post_request_body.rb b/lib/contracts/item/get_member_objects/get_member_objects_post_request_body.rb index 7173756029..2eef9f3347 100644 --- a/lib/contracts/item/get_member_objects/get_member_objects_post_request_body.rb +++ b/lib/contracts/item/get_member_objects/get_member_objects_post_request_body.rb @@ -17,22 +17,22 @@ class GetMemberObjectsPostRequestBody # The securityEnabledOnly property @security_enabled_only ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getMemberObjectsPostRequestBody and sets the default values. + ## Instantiates a new GetMemberObjectsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/contracts/item/get_member_objects/get_member_objects_post_response.rb b/lib/contracts/item/get_member_objects/get_member_objects_post_response.rb new file mode 100644 index 0000000000..5dc688ad87 --- /dev/null +++ b/lib/contracts/item/get_member_objects/get_member_objects_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../contracts' +require_relative '../item' +require_relative './get_member_objects' + +module MicrosoftGraph + module Contracts + module Item + module GetMemberObjects + class GetMemberObjectsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetMemberObjectsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_member_objects_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetMemberObjectsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/contracts/item/get_member_objects/get_member_objects_request_builder.rb b/lib/contracts/item/get_member_objects/get_member_objects_request_builder.rb index a4c4881d05..ae19f5f83e 100644 --- a/lib/contracts/item/get_member_objects/get_member_objects_request_builder.rb +++ b/lib/contracts/item/get_member_objects/get_member_objects_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/contracts/{contract%2Did}/getMemberObjects") end ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + ## Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_objects_response + ## @return a Fiber of get_member_objects_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contracts::Item::GetMemberObjects::GetMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Contracts::Item::GetMemberObjects::GetMemberObjectsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + ## Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_member_objects_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetMemberObjectsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/contracts/item/get_member_objects/get_member_objects_response.rb b/lib/contracts/item/get_member_objects/get_member_objects_response.rb deleted file mode 100644 index 318e5e23b1..0000000000 --- a/lib/contracts/item/get_member_objects/get_member_objects_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../contracts' -require_relative '../item' -require_relative './get_member_objects' - -module MicrosoftGraph - module Contracts - module Item - module GetMemberObjects - class GetMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/contracts/item/restore/restore_request_builder.rb b/lib/contracts/item/restore/restore_request_builder.rb index e5f6839230..430bb8d1bb 100644 --- a/lib/contracts/item/restore/restore_request_builder.rb +++ b/lib/contracts/item/restore/restore_request_builder.rb @@ -24,7 +24,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/contracts/{contract%2Did}/restore") end ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object ## @@ -33,27 +33,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a restore_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RestoreRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/contracts/validate_properties/validate_properties_post_request_body.rb b/lib/contracts/validate_properties/validate_properties_post_request_body.rb index 71cd60521d..998c838966 100644 --- a/lib/contracts/validate_properties/validate_properties_post_request_body.rb +++ b/lib/contracts/validate_properties/validate_properties_post_request_body.rb @@ -24,22 +24,22 @@ class ValidatePropertiesPostRequestBody # The onBehalfOfUserId property @on_behalf_of_user_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new validatePropertiesPostRequestBody and sets the default values. + ## Instantiates a new ValidatePropertiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/contracts/validate_properties/validate_properties_request_builder.rb b/lib/contracts/validate_properties/validate_properties_request_builder.rb index b7f89db76c..8867fe2633 100644 --- a/lib/contracts/validate_properties/validate_properties_request_builder.rb +++ b/lib/contracts/validate_properties/validate_properties_request_builder.rb @@ -32,8 +32,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,16 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a validate_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ValidatePropertiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/data_policy_operations/count/count_request_builder.rb b/lib/data_policy_operations/count/count_request_builder.rb index 085ec6de77..b47cc27aa2 100644 --- a/lib/data_policy_operations/count/count_request_builder.rb +++ b/lib/data_policy_operations/count/count_request_builder.rb @@ -18,7 +18,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/dataPolicyOperations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/dataPolicyOperations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -30,8 +30,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -41,17 +40,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/data_policy_operations/data_policy_operations_request_builder.rb b/lib/data_policy_operations/data_policy_operations_request_builder.rb index 40447e48e7..8b0d77610a 100644 --- a/lib/data_policy_operations/data_policy_operations_request_builder.rb +++ b/lib/data_policy_operations/data_policy_operations_request_builder.rb @@ -36,7 +36,7 @@ def by_data_policy_operation_id(data_policy_operation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/dataPolicyOperations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/dataPolicyOperations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve the properties of a dataPolicyOperation object. @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DataPolicyOperationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,8 +63,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DataPolicyOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,15 +73,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -95,17 +93,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a data_policy_operations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DataPolicyOperationsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties of a dataPolicyOperation object. diff --git a/lib/data_policy_operations/item/data_policy_operation_item_request_builder.rb b/lib/data_policy_operations/item/data_policy_operation_item_request_builder.rb index 4420f1fa08..2fd85e00f1 100644 --- a/lib/data_policy_operations/item/data_policy_operation_item_request_builder.rb +++ b/lib/data_policy_operations/item/data_policy_operation_item_request_builder.rb @@ -19,7 +19,7 @@ class DataPolicyOperationItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/dataPolicyOperations/{dataPolicyOperation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/dataPolicyOperations/{dataPolicyOperation%2Did}{?%24expand,%24select}") end ## ## Delete entity from dataPolicyOperations @@ -31,8 +31,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DataPolicyOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -61,8 +59,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DataPolicyOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,13 +69,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -88,15 +86,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,17 +106,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a data_policy_operation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DataPolicyOperationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties of a dataPolicyOperation object. diff --git a/lib/device_app_management/android_managed_app_protections/android_managed_app_protections_request_builder.rb b/lib/device_app_management/android_managed_app_protections/android_managed_app_protections_request_builder.rb index ba9b903a1b..514267804d 100644 --- a/lib/device_app_management/android_managed_app_protections/android_managed_app_protections_request_builder.rb +++ b/lib/device_app_management/android_managed_app_protections/android_managed_app_protections_request_builder.rb @@ -38,7 +38,7 @@ def by_android_managed_app_protection_id(android_managed_app_protection_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/androidManagedAppProtections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/androidManagedAppProtections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the androidManagedAppProtection objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AndroidManagedAppProtectionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AndroidManagedAppProtection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a android_managed_app_protections_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AndroidManagedAppProtectionsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the androidManagedAppProtection objects. diff --git a/lib/device_app_management/android_managed_app_protections/count/count_request_builder.rb b/lib/device_app_management/android_managed_app_protections/count/count_request_builder.rb index ebea766a2e..bc1bf35e5f 100644 --- a/lib/device_app_management/android_managed_app_protections/count/count_request_builder.rb +++ b/lib/device_app_management/android_managed_app_protections/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/androidManagedAppProtections/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/androidManagedAppProtections/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/android_managed_app_protections/item/android_managed_app_protection_item_request_builder.rb b/lib/device_app_management/android_managed_app_protections/item/android_managed_app_protection_item_request_builder.rb index a5c296d8fe..c8b0796e3e 100644 --- a/lib/device_app_management/android_managed_app_protections/item/android_managed_app_protection_item_request_builder.rb +++ b/lib/device_app_management/android_managed_app_protections/item/android_managed_app_protection_item_request_builder.rb @@ -39,7 +39,7 @@ def deployment_summary() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}{?%24expand,%24select}") end ## ## Deletes a androidManagedAppProtection. @@ -51,8 +51,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AndroidManagedAppProtection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AndroidManagedAppProtection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,13 +89,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,15 +106,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,17 +126,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a android_managed_app_protection_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AndroidManagedAppProtectionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the androidManagedAppProtection object. diff --git a/lib/device_app_management/android_managed_app_protections/item/apps/apps_request_builder.rb b/lib/device_app_management/android_managed_app_protections/item/apps/apps_request_builder.rb index 8e7dd8a69a..0b61295de9 100644 --- a/lib/device_app_management/android_managed_app_protections/item/apps/apps_request_builder.rb +++ b/lib/device_app_management/android_managed_app_protections/item/apps/apps_request_builder.rb @@ -42,7 +42,7 @@ def by_managed_mobile_app_id(managed_mobile_app_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/apps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/apps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List of apps to which the policy is deployed. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedMobileAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedMobileApp.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AppsRequestBuilder.new(raw_url, @request_adapter) + end ## # List of apps to which the policy is deployed. diff --git a/lib/device_app_management/android_managed_app_protections/item/apps/count/count_request_builder.rb b/lib/device_app_management/android_managed_app_protections/item/apps/count/count_request_builder.rb index ad6032ed4e..5d791b2ea9 100644 --- a/lib/device_app_management/android_managed_app_protections/item/apps/count/count_request_builder.rb +++ b/lib/device_app_management/android_managed_app_protections/item/apps/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/apps/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/apps/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/android_managed_app_protections/item/apps/item/managed_mobile_app_item_request_builder.rb b/lib/device_app_management/android_managed_app_protections/item/apps/item/managed_mobile_app_item_request_builder.rb index f9cb33cb2b..b91c75c583 100644 --- a/lib/device_app_management/android_managed_app_protections/item/apps/item/managed_mobile_app_item_request_builder.rb +++ b/lib/device_app_management/android_managed_app_protections/item/apps/item/managed_mobile_app_item_request_builder.rb @@ -25,7 +25,7 @@ class ManagedMobileAppItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReque ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/apps/{managedMobileApp%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/apps/{managedMobileApp%2Did}{?%24expand,%24select}") end ## ## Delete navigation property apps for deviceAppManagement @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedMobileApp.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedMobileApp.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_mobile_app_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedMobileAppItemRequestBuilder.new(raw_url, @request_adapter) + end ## # List of apps to which the policy is deployed. diff --git a/lib/device_app_management/android_managed_app_protections/item/assignments/assignments_request_builder.rb b/lib/device_app_management/android_managed_app_protections/item/assignments/assignments_request_builder.rb index 21a826c1f3..fd329e9466 100644 --- a/lib/device_app_management/android_managed_app_protections/item/assignments/assignments_request_builder.rb +++ b/lib/device_app_management/android_managed_app_protections/item/assignments/assignments_request_builder.rb @@ -42,7 +42,7 @@ def by_targeted_managed_app_policy_assignment_id(targeted_managed_app_policy_ass ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Navigation property to list of inclusion and exclusion groups to which the policy is deployed. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppPolicyAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppPolicyAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end ## # Navigation property to list of inclusion and exclusion groups to which the policy is deployed. diff --git a/lib/device_app_management/android_managed_app_protections/item/assignments/count/count_request_builder.rb b/lib/device_app_management/android_managed_app_protections/item/assignments/count/count_request_builder.rb index 22cac2d879..cdaa570ab7 100644 --- a/lib/device_app_management/android_managed_app_protections/item/assignments/count/count_request_builder.rb +++ b/lib/device_app_management/android_managed_app_protections/item/assignments/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/assignments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/assignments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/android_managed_app_protections/item/assignments/item/targeted_managed_app_policy_assignment_item_request_builder.rb b/lib/device_app_management/android_managed_app_protections/item/assignments/item/targeted_managed_app_policy_assignment_item_request_builder.rb index 0ba1094d32..6e1a1f53dc 100644 --- a/lib/device_app_management/android_managed_app_protections/item/assignments/item/targeted_managed_app_policy_assignment_item_request_builder.rb +++ b/lib/device_app_management/android_managed_app_protections/item/assignments/item/targeted_managed_app_policy_assignment_item_request_builder.rb @@ -25,7 +25,7 @@ class TargetedManagedAppPolicyAssignmentItemRequestBuilder < MicrosoftKiotaAbstr ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/assignments/{targetedManagedAppPolicyAssignment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/assignments/{targetedManagedAppPolicyAssignment%2Did}{?%24expand,%24select}") end ## ## Delete navigation property assignments for deviceAppManagement @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppPolicyAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppPolicyAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a targeted_managed_app_policy_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TargetedManagedAppPolicyAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Navigation property to list of inclusion and exclusion groups to which the policy is deployed. diff --git a/lib/device_app_management/android_managed_app_protections/item/deployment_summary/deployment_summary_request_builder.rb b/lib/device_app_management/android_managed_app_protections/item/deployment_summary/deployment_summary_request_builder.rb index cca13a3843..3cb8a95b22 100644 --- a/lib/device_app_management/android_managed_app_protections/item/deployment_summary/deployment_summary_request_builder.rb +++ b/lib/device_app_management/android_managed_app_protections/item/deployment_summary/deployment_summary_request_builder.rb @@ -23,7 +23,7 @@ class DeploymentSummaryRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestB ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/deploymentSummary{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/deploymentSummary{?%24expand,%24select}") end ## ## Delete navigation property deploymentSummary for deviceAppManagement @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicyDeploymentSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicyDeploymentSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a deployment_summary_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeploymentSummaryRequestBuilder.new(raw_url, @request_adapter) + end ## # Navigation property to deployment summary of the configuration. diff --git a/lib/device_app_management/default_managed_app_protections/count/count_request_builder.rb b/lib/device_app_management/default_managed_app_protections/count/count_request_builder.rb index 9c8d62c72d..70fbaec903 100644 --- a/lib/device_app_management/default_managed_app_protections/count/count_request_builder.rb +++ b/lib/device_app_management/default_managed_app_protections/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/defaultManagedAppProtections/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/defaultManagedAppProtections/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/default_managed_app_protections/default_managed_app_protections_request_builder.rb b/lib/device_app_management/default_managed_app_protections/default_managed_app_protections_request_builder.rb index c98cc57a75..2dc2c62c6d 100644 --- a/lib/device_app_management/default_managed_app_protections/default_managed_app_protections_request_builder.rb +++ b/lib/device_app_management/default_managed_app_protections/default_managed_app_protections_request_builder.rb @@ -38,7 +38,7 @@ def by_default_managed_app_protection_id(default_managed_app_protection_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/defaultManagedAppProtections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/defaultManagedAppProtections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the defaultManagedAppProtection objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DefaultManagedAppProtectionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DefaultManagedAppProtection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a default_managed_app_protections_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DefaultManagedAppProtectionsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the defaultManagedAppProtection objects. diff --git a/lib/device_app_management/default_managed_app_protections/item/apps/apps_request_builder.rb b/lib/device_app_management/default_managed_app_protections/item/apps/apps_request_builder.rb index e45be274f7..5e83fb46da 100644 --- a/lib/device_app_management/default_managed_app_protections/item/apps/apps_request_builder.rb +++ b/lib/device_app_management/default_managed_app_protections/item/apps/apps_request_builder.rb @@ -42,7 +42,7 @@ def by_managed_mobile_app_id(managed_mobile_app_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/defaultManagedAppProtections/{defaultManagedAppProtection%2Did}/apps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/defaultManagedAppProtections/{defaultManagedAppProtection%2Did}/apps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List of apps to which the policy is deployed. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedMobileAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedMobileApp.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AppsRequestBuilder.new(raw_url, @request_adapter) + end ## # List of apps to which the policy is deployed. diff --git a/lib/device_app_management/default_managed_app_protections/item/apps/count/count_request_builder.rb b/lib/device_app_management/default_managed_app_protections/item/apps/count/count_request_builder.rb index 9ca91f1c8d..fd1fa5d012 100644 --- a/lib/device_app_management/default_managed_app_protections/item/apps/count/count_request_builder.rb +++ b/lib/device_app_management/default_managed_app_protections/item/apps/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/defaultManagedAppProtections/{defaultManagedAppProtection%2Did}/apps/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/defaultManagedAppProtections/{defaultManagedAppProtection%2Did}/apps/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/default_managed_app_protections/item/apps/item/managed_mobile_app_item_request_builder.rb b/lib/device_app_management/default_managed_app_protections/item/apps/item/managed_mobile_app_item_request_builder.rb index 88875d608f..a41efe054d 100644 --- a/lib/device_app_management/default_managed_app_protections/item/apps/item/managed_mobile_app_item_request_builder.rb +++ b/lib/device_app_management/default_managed_app_protections/item/apps/item/managed_mobile_app_item_request_builder.rb @@ -25,7 +25,7 @@ class ManagedMobileAppItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReque ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/defaultManagedAppProtections/{defaultManagedAppProtection%2Did}/apps/{managedMobileApp%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/defaultManagedAppProtections/{defaultManagedAppProtection%2Did}/apps/{managedMobileApp%2Did}{?%24expand,%24select}") end ## ## Delete navigation property apps for deviceAppManagement @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedMobileApp.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedMobileApp.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_mobile_app_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedMobileAppItemRequestBuilder.new(raw_url, @request_adapter) + end ## # List of apps to which the policy is deployed. diff --git a/lib/device_app_management/default_managed_app_protections/item/default_managed_app_protection_item_request_builder.rb b/lib/device_app_management/default_managed_app_protections/item/default_managed_app_protection_item_request_builder.rb index f8eea4c663..df4ce29b11 100644 --- a/lib/device_app_management/default_managed_app_protections/item/default_managed_app_protection_item_request_builder.rb +++ b/lib/device_app_management/default_managed_app_protections/item/default_managed_app_protection_item_request_builder.rb @@ -33,7 +33,7 @@ def deployment_summary() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/defaultManagedAppProtections/{defaultManagedAppProtection%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/defaultManagedAppProtections/{defaultManagedAppProtection%2Did}{?%24expand,%24select}") end ## ## Deletes a defaultManagedAppProtection. @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DefaultManagedAppProtection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DefaultManagedAppProtection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,13 +83,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -102,15 +100,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,17 +120,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a default_managed_app_protection_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DefaultManagedAppProtectionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the defaultManagedAppProtection object. diff --git a/lib/device_app_management/default_managed_app_protections/item/deployment_summary/deployment_summary_request_builder.rb b/lib/device_app_management/default_managed_app_protections/item/deployment_summary/deployment_summary_request_builder.rb index 489cb6d155..bf4db8c511 100644 --- a/lib/device_app_management/default_managed_app_protections/item/deployment_summary/deployment_summary_request_builder.rb +++ b/lib/device_app_management/default_managed_app_protections/item/deployment_summary/deployment_summary_request_builder.rb @@ -23,7 +23,7 @@ class DeploymentSummaryRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestB ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/defaultManagedAppProtections/{defaultManagedAppProtection%2Did}/deploymentSummary{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/defaultManagedAppProtections/{defaultManagedAppProtection%2Did}/deploymentSummary{?%24expand,%24select}") end ## ## Delete navigation property deploymentSummary for deviceAppManagement @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicyDeploymentSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicyDeploymentSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a deployment_summary_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeploymentSummaryRequestBuilder.new(raw_url, @request_adapter) + end ## # Navigation property to deployment summary of the configuration. diff --git a/lib/device_app_management/device_app_management_request_builder.rb b/lib/device_app_management/device_app_management_request_builder.rb index 8410db0b53..d3accb42a0 100644 --- a/lib/device_app_management/device_app_management_request_builder.rb +++ b/lib/device_app_management/device_app_management_request_builder.rb @@ -107,7 +107,7 @@ def windows_information_protection_policies() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement{?%24expand,%24select}") end ## ## Read properties and relationships of the deviceAppManagement object. @@ -119,8 +119,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceAppManagement.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -135,8 +134,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceAppManagement.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -146,15 +144,15 @@ def patch(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -166,17 +164,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_app_management_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceAppManagementRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceAppManagement object. diff --git a/lib/device_app_management/ios_managed_app_protections/count/count_request_builder.rb b/lib/device_app_management/ios_managed_app_protections/count/count_request_builder.rb index bed3968770..fa8ddf4dae 100644 --- a/lib/device_app_management/ios_managed_app_protections/count/count_request_builder.rb +++ b/lib/device_app_management/ios_managed_app_protections/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/iosManagedAppProtections/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/iosManagedAppProtections/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/ios_managed_app_protections/ios_managed_app_protections_request_builder.rb b/lib/device_app_management/ios_managed_app_protections/ios_managed_app_protections_request_builder.rb index 63bddd0d2b..bce29126a7 100644 --- a/lib/device_app_management/ios_managed_app_protections/ios_managed_app_protections_request_builder.rb +++ b/lib/device_app_management/ios_managed_app_protections/ios_managed_app_protections_request_builder.rb @@ -38,7 +38,7 @@ def by_ios_managed_app_protection_id(ios_managed_app_protection_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/iosManagedAppProtections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/iosManagedAppProtections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the iosManagedAppProtection objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IosManagedAppProtectionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IosManagedAppProtection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ios_managed_app_protections_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IosManagedAppProtectionsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the iosManagedAppProtection objects. diff --git a/lib/device_app_management/ios_managed_app_protections/item/apps/apps_request_builder.rb b/lib/device_app_management/ios_managed_app_protections/item/apps/apps_request_builder.rb index 7c2907566f..d889223f88 100644 --- a/lib/device_app_management/ios_managed_app_protections/item/apps/apps_request_builder.rb +++ b/lib/device_app_management/ios_managed_app_protections/item/apps/apps_request_builder.rb @@ -42,7 +42,7 @@ def by_managed_mobile_app_id(managed_mobile_app_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/apps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/apps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the managedMobileApp objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedMobileAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedMobileApp.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AppsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the managedMobileApp objects. diff --git a/lib/device_app_management/ios_managed_app_protections/item/apps/count/count_request_builder.rb b/lib/device_app_management/ios_managed_app_protections/item/apps/count/count_request_builder.rb index 8c5903735d..3046340801 100644 --- a/lib/device_app_management/ios_managed_app_protections/item/apps/count/count_request_builder.rb +++ b/lib/device_app_management/ios_managed_app_protections/item/apps/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/apps/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/apps/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/ios_managed_app_protections/item/apps/item/managed_mobile_app_item_request_builder.rb b/lib/device_app_management/ios_managed_app_protections/item/apps/item/managed_mobile_app_item_request_builder.rb index 84ec0002a4..e5c9250505 100644 --- a/lib/device_app_management/ios_managed_app_protections/item/apps/item/managed_mobile_app_item_request_builder.rb +++ b/lib/device_app_management/ios_managed_app_protections/item/apps/item/managed_mobile_app_item_request_builder.rb @@ -25,7 +25,7 @@ class ManagedMobileAppItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReque ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/apps/{managedMobileApp%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/apps/{managedMobileApp%2Did}{?%24expand,%24select}") end ## ## Deletes a managedMobileApp. @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedMobileApp.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedMobileApp.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_mobile_app_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedMobileAppItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the managedMobileApp object. diff --git a/lib/device_app_management/ios_managed_app_protections/item/assignments/assignments_request_builder.rb b/lib/device_app_management/ios_managed_app_protections/item/assignments/assignments_request_builder.rb index 4b01f52dc0..7b57062fdd 100644 --- a/lib/device_app_management/ios_managed_app_protections/item/assignments/assignments_request_builder.rb +++ b/lib/device_app_management/ios_managed_app_protections/item/assignments/assignments_request_builder.rb @@ -42,10 +42,10 @@ def by_targeted_managed_app_policy_assignment_id(targeted_managed_app_policy_ass ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Navigation property to list of inclusion and exclusion groups to which the policy is deployed. + ## List properties and relationships of the targetedManagedAppPolicyAssignment objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of targeted_managed_app_policy_assignment_collection_response ## @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppPolicyAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,26 +69,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppPolicyAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Navigation property to list of inclusion and exclusion groups to which the policy is deployed. + ## List properties and relationships of the targetedManagedAppPolicyAssignment objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,20 +99,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Navigation property to list of inclusion and exclusion groups to which the policy is deployed. + # List properties and relationships of the targetedManagedAppPolicyAssignment objects. class AssignmentsRequestBuilderGetQueryParameters ## diff --git a/lib/device_app_management/ios_managed_app_protections/item/assignments/count/count_request_builder.rb b/lib/device_app_management/ios_managed_app_protections/item/assignments/count/count_request_builder.rb index 43151bdb9c..da7cb87e22 100644 --- a/lib/device_app_management/ios_managed_app_protections/item/assignments/count/count_request_builder.rb +++ b/lib/device_app_management/ios_managed_app_protections/item/assignments/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/assignments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/assignments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/ios_managed_app_protections/item/assignments/item/targeted_managed_app_policy_assignment_item_request_builder.rb b/lib/device_app_management/ios_managed_app_protections/item/assignments/item/targeted_managed_app_policy_assignment_item_request_builder.rb index ccc0b1048d..4491809c01 100644 --- a/lib/device_app_management/ios_managed_app_protections/item/assignments/item/targeted_managed_app_policy_assignment_item_request_builder.rb +++ b/lib/device_app_management/ios_managed_app_protections/item/assignments/item/targeted_managed_app_policy_assignment_item_request_builder.rb @@ -25,10 +25,10 @@ class TargetedManagedAppPolicyAssignmentItemRequestBuilder < MicrosoftKiotaAbstr ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/assignments/{targetedManagedAppPolicyAssignment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/assignments/{targetedManagedAppPolicyAssignment%2Did}{?%24expand,%24select}") end ## - ## Delete navigation property assignments for deviceAppManagement + ## Deletes a targetedManagedAppPolicyAssignment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -37,12 +37,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Navigation property to list of inclusion and exclusion groups to which the policy is deployed. + ## Read properties and relationships of the targetedManagedAppPolicyAssignment object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of targeted_managed_app_policy_assignment ## @@ -51,12 +50,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppPolicyAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the navigation property assignments in deviceAppManagement + ## Update the properties of a targetedManagedAppPolicyAssignment object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of targeted_managed_app_policy_assignment @@ -67,46 +65,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppPolicyAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete navigation property assignments for deviceAppManagement + ## Deletes a targetedManagedAppPolicyAssignment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Navigation property to list of inclusion and exclusion groups to which the policy is deployed. + ## Read properties and relationships of the targetedManagedAppPolicyAssignment object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the navigation property assignments in deviceAppManagement + ## Update the properties of a targetedManagedAppPolicyAssignment object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -114,20 +112,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a targeted_managed_app_policy_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TargetedManagedAppPolicyAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Navigation property to list of inclusion and exclusion groups to which the policy is deployed. + # Read properties and relationships of the targetedManagedAppPolicyAssignment object. class TargetedManagedAppPolicyAssignmentItemRequestBuilderGetQueryParameters ## diff --git a/lib/device_app_management/ios_managed_app_protections/item/deployment_summary/deployment_summary_request_builder.rb b/lib/device_app_management/ios_managed_app_protections/item/deployment_summary/deployment_summary_request_builder.rb index d962123cb0..c9ee8c51ce 100644 --- a/lib/device_app_management/ios_managed_app_protections/item/deployment_summary/deployment_summary_request_builder.rb +++ b/lib/device_app_management/ios_managed_app_protections/item/deployment_summary/deployment_summary_request_builder.rb @@ -23,7 +23,7 @@ class DeploymentSummaryRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestB ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/deploymentSummary{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/deploymentSummary{?%24expand,%24select}") end ## ## Delete navigation property deploymentSummary for deviceAppManagement @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicyDeploymentSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicyDeploymentSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a deployment_summary_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeploymentSummaryRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the managedAppPolicyDeploymentSummary object. diff --git a/lib/device_app_management/ios_managed_app_protections/item/ios_managed_app_protection_item_request_builder.rb b/lib/device_app_management/ios_managed_app_protections/item/ios_managed_app_protection_item_request_builder.rb index 93249f66bb..abd06ac03c 100644 --- a/lib/device_app_management/ios_managed_app_protections/item/ios_managed_app_protection_item_request_builder.rb +++ b/lib/device_app_management/ios_managed_app_protections/item/ios_managed_app_protection_item_request_builder.rb @@ -39,7 +39,7 @@ def deployment_summary() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}{?%24expand,%24select}") end ## ## Deletes a iosManagedAppProtection. @@ -51,8 +51,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IosManagedAppProtection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IosManagedAppProtection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,13 +89,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,15 +106,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,17 +126,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ios_managed_app_protection_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IosManagedAppProtectionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the iosManagedAppProtection object. diff --git a/lib/device_app_management/managed_app_policies/count/count_request_builder.rb b/lib/device_app_management/managed_app_policies/count/count_request_builder.rb index a244890488..9c168ba8e8 100644 --- a/lib/device_app_management/managed_app_policies/count/count_request_builder.rb +++ b/lib/device_app_management/managed_app_policies/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppPolicies/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppPolicies/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/managed_app_policies/item/managed_app_policy_item_request_builder.rb b/lib/device_app_management/managed_app_policies/item/managed_app_policy_item_request_builder.rb index c4fe072d26..813d240b41 100644 --- a/lib/device_app_management/managed_app_policies/item/managed_app_policy_item_request_builder.rb +++ b/lib/device_app_management/managed_app_policies/item/managed_app_policy_item_request_builder.rb @@ -27,7 +27,7 @@ def target_apps() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppPolicies/{managedAppPolicy%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppPolicies/{managedAppPolicy%2Did}{?%24expand,%24select}") end ## ## Delete navigation property managedAppPolicies for deviceAppManagement @@ -39,12 +39,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read properties and relationships of the managedAppPolicy object. + ## Read properties and relationships of the windowsInformationProtection object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of managed_app_policy ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,31 +77,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read properties and relationships of the managedAppPolicy object. + ## Read properties and relationships of the windowsInformationProtection object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,20 +114,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_app_policy_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedAppPolicyItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read properties and relationships of the managedAppPolicy object. + # Read properties and relationships of the windowsInformationProtection object. class ManagedAppPolicyItemRequestBuilderGetQueryParameters ## diff --git a/lib/device_app_management/managed_app_policies/item/target_apps/target_apps_post_request_body.rb b/lib/device_app_management/managed_app_policies/item/target_apps/target_apps_post_request_body.rb index 94881ca4de..cddb17812b 100644 --- a/lib/device_app_management/managed_app_policies/item/target_apps/target_apps_post_request_body.rb +++ b/lib/device_app_management/managed_app_policies/item/target_apps/target_apps_post_request_body.rb @@ -20,15 +20,15 @@ class TargetAppsPostRequestBody # The apps property @apps ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -50,7 +50,7 @@ def apps=(value) @apps = value end ## - ## Instantiates a new targetAppsPostRequestBody and sets the default values. + ## Instantiates a new TargetAppsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_app_management/managed_app_policies/item/target_apps/target_apps_request_builder.rb b/lib/device_app_management/managed_app_policies/item/target_apps/target_apps_request_builder.rb index 567d81f605..0b6805d721 100644 --- a/lib/device_app_management/managed_app_policies/item/target_apps/target_apps_request_builder.rb +++ b/lib/device_app_management/managed_app_policies/item/target_apps/target_apps_request_builder.rb @@ -36,8 +36,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a target_apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TargetAppsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_app_management/managed_app_policies/managed_app_policies_request_builder.rb b/lib/device_app_management/managed_app_policies/managed_app_policies_request_builder.rb index c6b98a386d..20d66378ea 100644 --- a/lib/device_app_management/managed_app_policies/managed_app_policies_request_builder.rb +++ b/lib/device_app_management/managed_app_policies/managed_app_policies_request_builder.rb @@ -38,10 +38,10 @@ def by_managed_app_policy_id(managed_app_policy_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List properties and relationships of the windowsInformationProtection objects. + ## List properties and relationships of the managedAppConfiguration objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of managed_app_policy_collection_response ## @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicyCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,26 +65,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List properties and relationships of the windowsInformationProtection objects. + ## List properties and relationships of the managedAppConfiguration objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,20 +95,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_app_policies_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedAppPoliciesRequestBuilder.new(raw_url, @request_adapter) + end ## - # List properties and relationships of the windowsInformationProtection objects. + # List properties and relationships of the managedAppConfiguration objects. class ManagedAppPoliciesRequestBuilderGetQueryParameters ## diff --git a/lib/device_app_management/managed_app_registrations/count/count_request_builder.rb b/lib/device_app_management/managed_app_registrations/count/count_request_builder.rb index 8daedaa16d..dc41f17621 100644 --- a/lib/device_app_management/managed_app_registrations/count/count_request_builder.rb +++ b/lib/device_app_management/managed_app_registrations/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/managed_app_registrations/get_user_ids_with_flagged_app_registration/get_user_ids_with_flagged_app_registration.rb b/lib/device_app_management/managed_app_registrations/get_user_ids_with_flagged_app_registration/get_user_ids_with_flagged_app_registration.rb index b374e4812b..d5c6d95ae7 100644 --- a/lib/device_app_management/managed_app_registrations/get_user_ids_with_flagged_app_registration/get_user_ids_with_flagged_app_registration.rb +++ b/lib/device_app_management/managed_app_registrations/get_user_ids_with_flagged_app_registration/get_user_ids_with_flagged_app_registration.rb @@ -1 +1 @@ -require_relative 'get_user_ids_with_flagged_app_registration_response' +require_relative 'get_user_ids_with_flagged_app_registration_get_response' diff --git a/lib/device_app_management/managed_app_registrations/get_user_ids_with_flagged_app_registration/get_user_ids_with_flagged_app_registration_get_response.rb b/lib/device_app_management/managed_app_registrations/get_user_ids_with_flagged_app_registration/get_user_ids_with_flagged_app_registration_get_response.rb new file mode 100644 index 0000000000..a6be5c4587 --- /dev/null +++ b/lib/device_app_management/managed_app_registrations/get_user_ids_with_flagged_app_registration/get_user_ids_with_flagged_app_registration_get_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../device_app_management' +require_relative '../managed_app_registrations' +require_relative './get_user_ids_with_flagged_app_registration' + +module MicrosoftGraph + module DeviceAppManagement + module ManagedAppRegistrations + module GetUserIdsWithFlaggedAppRegistration + class GetUserIdsWithFlaggedAppRegistrationGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetUserIdsWithFlaggedAppRegistrationGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_user_ids_with_flagged_app_registration_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetUserIdsWithFlaggedAppRegistrationGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/device_app_management/managed_app_registrations/get_user_ids_with_flagged_app_registration/get_user_ids_with_flagged_app_registration_request_builder.rb b/lib/device_app_management/managed_app_registrations/get_user_ids_with_flagged_app_registration/get_user_ids_with_flagged_app_registration_request_builder.rb index dfc16f79a9..43c49412cb 100644 --- a/lib/device_app_management/managed_app_registrations/get_user_ids_with_flagged_app_registration/get_user_ids_with_flagged_app_registration_request_builder.rb +++ b/lib/device_app_management/managed_app_registrations/get_user_ids_with_flagged_app_registration/get_user_ids_with_flagged_app_registration_request_builder.rb @@ -20,43 +20,51 @@ class GetUserIdsWithFlaggedAppRegistrationRequestBuilder < MicrosoftKiotaAbstrac ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/getUserIdsWithFlaggedAppRegistration(){?%24top,%24skip,%24search,%24filter,%24count}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/getUserIdsWithFlaggedAppRegistration(){?%24count,%24filter,%24search,%24skip,%24top}") end ## - ## Invoke function getUserIdsWithFlaggedAppRegistration + ## Not yet documented ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_user_ids_with_flagged_app_registration_response + ## @return a Fiber of get_user_ids_with_flagged_app_registration_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceAppManagement::ManagedAppRegistrations::GetUserIdsWithFlaggedAppRegistration::GetUserIdsWithFlaggedAppRegistrationResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceAppManagement::ManagedAppRegistrations::GetUserIdsWithFlaggedAppRegistration::GetUserIdsWithFlaggedAppRegistrationGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function getUserIdsWithFlaggedAppRegistration + ## Not yet documented ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_user_ids_with_flagged_app_registration_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetUserIdsWithFlaggedAppRegistrationRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function getUserIdsWithFlaggedAppRegistration + # Not yet documented class GetUserIdsWithFlaggedAppRegistrationRequestBuilderGetQueryParameters ## diff --git a/lib/device_app_management/managed_app_registrations/get_user_ids_with_flagged_app_registration/get_user_ids_with_flagged_app_registration_response.rb b/lib/device_app_management/managed_app_registrations/get_user_ids_with_flagged_app_registration/get_user_ids_with_flagged_app_registration_response.rb deleted file mode 100644 index d1193eaeea..0000000000 --- a/lib/device_app_management/managed_app_registrations/get_user_ids_with_flagged_app_registration/get_user_ids_with_flagged_app_registration_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../device_app_management' -require_relative '../managed_app_registrations' -require_relative './get_user_ids_with_flagged_app_registration' - -module MicrosoftGraph - module DeviceAppManagement - module ManagedAppRegistrations - module GetUserIdsWithFlaggedAppRegistration - class GetUserIdsWithFlaggedAppRegistrationResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getUserIdsWithFlaggedAppRegistrationResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_user_ids_with_flagged_app_registration_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetUserIdsWithFlaggedAppRegistrationResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/device_app_management/managed_app_registrations/item/applied_policies/applied_policies_request_builder.rb b/lib/device_app_management/managed_app_registrations/item/applied_policies/applied_policies_request_builder.rb index c83e76e60f..55752a3054 100644 --- a/lib/device_app_management/managed_app_registrations/item/applied_policies/applied_policies_request_builder.rb +++ b/lib/device_app_management/managed_app_registrations/item/applied_policies/applied_policies_request_builder.rb @@ -42,7 +42,7 @@ def by_managed_app_policy_id(managed_app_policy_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/appliedPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/appliedPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Zero or more policys already applied on the registered app when it last synchronized with managment service. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicyCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a applied_policies_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AppliedPoliciesRequestBuilder.new(raw_url, @request_adapter) + end ## # Zero or more policys already applied on the registered app when it last synchronized with managment service. diff --git a/lib/device_app_management/managed_app_registrations/item/applied_policies/count/count_request_builder.rb b/lib/device_app_management/managed_app_registrations/item/applied_policies/count/count_request_builder.rb index d82f0c1a31..eb6d58a99d 100644 --- a/lib/device_app_management/managed_app_registrations/item/applied_policies/count/count_request_builder.rb +++ b/lib/device_app_management/managed_app_registrations/item/applied_policies/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/appliedPolicies/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/appliedPolicies/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/managed_app_registrations/item/applied_policies/item/managed_app_policy_item_request_builder.rb b/lib/device_app_management/managed_app_registrations/item/applied_policies/item/managed_app_policy_item_request_builder.rb index d79b8cae91..0db41374dd 100644 --- a/lib/device_app_management/managed_app_registrations/item/applied_policies/item/managed_app_policy_item_request_builder.rb +++ b/lib/device_app_management/managed_app_registrations/item/applied_policies/item/managed_app_policy_item_request_builder.rb @@ -31,7 +31,7 @@ def target_apps() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/appliedPolicies/{managedAppPolicy%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/appliedPolicies/{managedAppPolicy%2Did}{?%24expand,%24select}") end ## ## Delete navigation property appliedPolicies for deviceAppManagement @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,15 +98,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_app_policy_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedAppPolicyItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Zero or more policys already applied on the registered app when it last synchronized with managment service. diff --git a/lib/device_app_management/managed_app_registrations/item/applied_policies/item/target_apps/target_apps_post_request_body.rb b/lib/device_app_management/managed_app_registrations/item/applied_policies/item/target_apps/target_apps_post_request_body.rb index 70733c46dd..3805d5b72c 100644 --- a/lib/device_app_management/managed_app_registrations/item/applied_policies/item/target_apps/target_apps_post_request_body.rb +++ b/lib/device_app_management/managed_app_registrations/item/applied_policies/item/target_apps/target_apps_post_request_body.rb @@ -24,15 +24,15 @@ class TargetAppsPostRequestBody # The apps property @apps ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -54,7 +54,7 @@ def apps=(value) @apps = value end ## - ## Instantiates a new targetAppsPostRequestBody and sets the default values. + ## Instantiates a new TargetAppsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_app_management/managed_app_registrations/item/applied_policies/item/target_apps/target_apps_request_builder.rb b/lib/device_app_management/managed_app_registrations/item/applied_policies/item/target_apps/target_apps_request_builder.rb index d6a5c7d4fd..5e10a07335 100644 --- a/lib/device_app_management/managed_app_registrations/item/applied_policies/item/target_apps/target_apps_request_builder.rb +++ b/lib/device_app_management/managed_app_registrations/item/applied_policies/item/target_apps/target_apps_request_builder.rb @@ -40,8 +40,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,16 +52,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a target_apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TargetAppsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_app_management/managed_app_registrations/item/intended_policies/count/count_request_builder.rb b/lib/device_app_management/managed_app_registrations/item/intended_policies/count/count_request_builder.rb index a2f72e97b7..9518c3b219 100644 --- a/lib/device_app_management/managed_app_registrations/item/intended_policies/count/count_request_builder.rb +++ b/lib/device_app_management/managed_app_registrations/item/intended_policies/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/intendedPolicies/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/intendedPolicies/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/managed_app_registrations/item/intended_policies/intended_policies_request_builder.rb b/lib/device_app_management/managed_app_registrations/item/intended_policies/intended_policies_request_builder.rb index 120a8ebac5..89eebc411e 100644 --- a/lib/device_app_management/managed_app_registrations/item/intended_policies/intended_policies_request_builder.rb +++ b/lib/device_app_management/managed_app_registrations/item/intended_policies/intended_policies_request_builder.rb @@ -42,7 +42,7 @@ def by_managed_app_policy_id(managed_app_policy_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/intendedPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/intendedPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Zero or more policies admin intended for the app as of now. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicyCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intended_policies_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntendedPoliciesRequestBuilder.new(raw_url, @request_adapter) + end ## # Zero or more policies admin intended for the app as of now. diff --git a/lib/device_app_management/managed_app_registrations/item/intended_policies/item/managed_app_policy_item_request_builder.rb b/lib/device_app_management/managed_app_registrations/item/intended_policies/item/managed_app_policy_item_request_builder.rb index 3da5224ee9..148eafb9a6 100644 --- a/lib/device_app_management/managed_app_registrations/item/intended_policies/item/managed_app_policy_item_request_builder.rb +++ b/lib/device_app_management/managed_app_registrations/item/intended_policies/item/managed_app_policy_item_request_builder.rb @@ -31,7 +31,7 @@ def target_apps() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/intendedPolicies/{managedAppPolicy%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/intendedPolicies/{managedAppPolicy%2Did}{?%24expand,%24select}") end ## ## Delete navigation property intendedPolicies for deviceAppManagement @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,15 +98,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_app_policy_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedAppPolicyItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Zero or more policies admin intended for the app as of now. diff --git a/lib/device_app_management/managed_app_registrations/item/intended_policies/item/target_apps/target_apps_post_request_body.rb b/lib/device_app_management/managed_app_registrations/item/intended_policies/item/target_apps/target_apps_post_request_body.rb index 0f34a84896..2ba8ac9db2 100644 --- a/lib/device_app_management/managed_app_registrations/item/intended_policies/item/target_apps/target_apps_post_request_body.rb +++ b/lib/device_app_management/managed_app_registrations/item/intended_policies/item/target_apps/target_apps_post_request_body.rb @@ -24,15 +24,15 @@ class TargetAppsPostRequestBody # The apps property @apps ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -54,7 +54,7 @@ def apps=(value) @apps = value end ## - ## Instantiates a new targetAppsPostRequestBody and sets the default values. + ## Instantiates a new TargetAppsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_app_management/managed_app_registrations/item/intended_policies/item/target_apps/target_apps_request_builder.rb b/lib/device_app_management/managed_app_registrations/item/intended_policies/item/target_apps/target_apps_request_builder.rb index 117e48b946..7254153813 100644 --- a/lib/device_app_management/managed_app_registrations/item/intended_policies/item/target_apps/target_apps_request_builder.rb +++ b/lib/device_app_management/managed_app_registrations/item/intended_policies/item/target_apps/target_apps_request_builder.rb @@ -40,8 +40,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,16 +52,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a target_apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TargetAppsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_app_management/managed_app_registrations/item/managed_app_registration_item_request_builder.rb b/lib/device_app_management/managed_app_registrations/item/managed_app_registration_item_request_builder.rb index 57725b0254..f50ab6606e 100644 --- a/lib/device_app_management/managed_app_registrations/item/managed_app_registration_item_request_builder.rb +++ b/lib/device_app_management/managed_app_registrations/item/managed_app_registration_item_request_builder.rb @@ -39,7 +39,7 @@ def operations() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}{?%24expand,%24select}") end ## ## Delete navigation property managedAppRegistrations for deviceAppManagement @@ -51,12 +51,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read properties and relationships of the managedAppRegistration object. + ## Read properties and relationships of the androidManagedAppRegistration object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of managed_app_registration ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppRegistration.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppRegistration.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,31 +89,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read properties and relationships of the managedAppRegistration object. + ## Read properties and relationships of the androidManagedAppRegistration object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,20 +126,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_app_registration_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedAppRegistrationItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read properties and relationships of the managedAppRegistration object. + # Read properties and relationships of the androidManagedAppRegistration object. class ManagedAppRegistrationItemRequestBuilderGetQueryParameters ## diff --git a/lib/device_app_management/managed_app_registrations/item/operations/count/count_request_builder.rb b/lib/device_app_management/managed_app_registrations/item/operations/count/count_request_builder.rb index 6d7abf29a3..f570f8b67f 100644 --- a/lib/device_app_management/managed_app_registrations/item/operations/count/count_request_builder.rb +++ b/lib/device_app_management/managed_app_registrations/item/operations/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/operations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/operations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/managed_app_registrations/item/operations/item/managed_app_operation_item_request_builder.rb b/lib/device_app_management/managed_app_registrations/item/operations/item/managed_app_operation_item_request_builder.rb index 8113509287..112700f874 100644 --- a/lib/device_app_management/managed_app_registrations/item/operations/item/managed_app_operation_item_request_builder.rb +++ b/lib/device_app_management/managed_app_registrations/item/operations/item/managed_app_operation_item_request_builder.rb @@ -25,7 +25,7 @@ class ManagedAppOperationItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/operations/{managedAppOperation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/operations/{managedAppOperation%2Did}{?%24expand,%24select}") end ## ## Deletes a managedAppOperation. @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_app_operation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedAppOperationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the managedAppOperation object. diff --git a/lib/device_app_management/managed_app_registrations/item/operations/operations_request_builder.rb b/lib/device_app_management/managed_app_registrations/item/operations/operations_request_builder.rb index d85ea61e2e..1f7d4729ec 100644 --- a/lib/device_app_management/managed_app_registrations/item/operations/operations_request_builder.rb +++ b/lib/device_app_management/managed_app_registrations/item/operations/operations_request_builder.rb @@ -42,7 +42,7 @@ def by_managed_app_operation_id(managed_app_operation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the managedAppOperation objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppOperationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a operations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OperationsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the managedAppOperation objects. diff --git a/lib/device_app_management/managed_app_registrations/managed_app_registrations_request_builder.rb b/lib/device_app_management/managed_app_registrations/managed_app_registrations_request_builder.rb index 43ff8f0a0d..c251210b84 100644 --- a/lib/device_app_management/managed_app_registrations/managed_app_registrations_request_builder.rb +++ b/lib/device_app_management/managed_app_registrations/managed_app_registrations_request_builder.rb @@ -44,10 +44,10 @@ def by_managed_app_registration_id(managed_app_registration_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List properties and relationships of the managedAppRegistration objects. + ## List properties and relationships of the androidManagedAppRegistration objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of managed_app_registration_collection_response ## @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppRegistrationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,26 +71,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppRegistration.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List properties and relationships of the managedAppRegistration objects. + ## List properties and relationships of the androidManagedAppRegistration objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_app_registrations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedAppRegistrationsRequestBuilder.new(raw_url, @request_adapter) + end ## - # List properties and relationships of the managedAppRegistration objects. + # List properties and relationships of the androidManagedAppRegistration objects. class ManagedAppRegistrationsRequestBuilderGetQueryParameters ## diff --git a/lib/device_app_management/managed_app_statuses/count/count_request_builder.rb b/lib/device_app_management/managed_app_statuses/count/count_request_builder.rb index 2794b8efc2..67299a1e90 100644 --- a/lib/device_app_management/managed_app_statuses/count/count_request_builder.rb +++ b/lib/device_app_management/managed_app_statuses/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppStatuses/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppStatuses/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/managed_app_statuses/item/managed_app_status_item_request_builder.rb b/lib/device_app_management/managed_app_statuses/item/managed_app_status_item_request_builder.rb index 94c6ee7f53..ce3042d184 100644 --- a/lib/device_app_management/managed_app_statuses/item/managed_app_status_item_request_builder.rb +++ b/lib/device_app_management/managed_app_statuses/item/managed_app_status_item_request_builder.rb @@ -21,7 +21,7 @@ class ManagedAppStatusItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReque ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppStatuses/{managedAppStatus%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppStatuses/{managedAppStatus%2Did}{?%24expand,%24select}") end ## ## Delete navigation property managedAppStatuses for deviceAppManagement @@ -33,12 +33,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read properties and relationships of the managedAppStatus object. + ## Read properties and relationships of the managedAppStatusRaw object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of managed_app_status ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,31 +71,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read properties and relationships of the managedAppStatus object. + ## Read properties and relationships of the managedAppStatusRaw object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,20 +108,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_app_status_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedAppStatusItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read properties and relationships of the managedAppStatus object. + # Read properties and relationships of the managedAppStatusRaw object. class ManagedAppStatusItemRequestBuilderGetQueryParameters ## diff --git a/lib/device_app_management/managed_app_statuses/managed_app_statuses_request_builder.rb b/lib/device_app_management/managed_app_statuses/managed_app_statuses_request_builder.rb index e23418da7f..9e3516ca70 100644 --- a/lib/device_app_management/managed_app_statuses/managed_app_statuses_request_builder.rb +++ b/lib/device_app_management/managed_app_statuses/managed_app_statuses_request_builder.rb @@ -38,7 +38,7 @@ def by_managed_app_status_id(managed_app_status_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppStatuses{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedAppStatuses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the managedAppStatusRaw objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppStatusCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_app_statuses_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedAppStatusesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the managedAppStatusRaw objects. diff --git a/lib/device_app_management/managed_e_books/count/count_request_builder.rb b/lib/device_app_management/managed_e_books/count/count_request_builder.rb index f87c5c2941..726dd95164 100644 --- a/lib/device_app_management/managed_e_books/count/count_request_builder.rb +++ b/lib/device_app_management/managed_e_books/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/managed_e_books/item/assign/assign_post_request_body.rb b/lib/device_app_management/managed_e_books/item/assign/assign_post_request_body.rb index 8ed66bf1c5..c94fc1a3dd 100644 --- a/lib/device_app_management/managed_e_books/item/assign/assign_post_request_body.rb +++ b/lib/device_app_management/managed_e_books/item/assign/assign_post_request_body.rb @@ -20,22 +20,22 @@ class AssignPostRequestBody # The managedEBookAssignments property @managed_e_book_assignments ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new assignPostRequestBody and sets the default values. + ## Instantiates a new AssignPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_app_management/managed_e_books/item/assign/assign_request_builder.rb b/lib/device_app_management/managed_e_books/item/assign/assign_request_builder.rb index 7a0b8881f3..af75ce2d84 100644 --- a/lib/device_app_management/managed_e_books/item/assign/assign_request_builder.rb +++ b/lib/device_app_management/managed_e_books/item/assign/assign_request_builder.rb @@ -36,8 +36,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assign_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_app_management/managed_e_books/item/assignments/assignments_request_builder.rb b/lib/device_app_management/managed_e_books/item/assignments/assignments_request_builder.rb index 02f4397c78..aaf3c9c00c 100644 --- a/lib/device_app_management/managed_e_books/item/assignments/assignments_request_builder.rb +++ b/lib/device_app_management/managed_e_books/item/assignments/assignments_request_builder.rb @@ -42,10 +42,10 @@ def by_managed_e_book_assignment_id(managed_e_book_assignment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List properties and relationships of the iosVppEBookAssignment objects. + ## List properties and relationships of the managedEBookAssignment objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of managed_e_book_assignment_collection_response ## @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedEBookAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,26 +69,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedEBookAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List properties and relationships of the iosVppEBookAssignment objects. + ## List properties and relationships of the managedEBookAssignment objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,20 +99,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end ## - # List properties and relationships of the iosVppEBookAssignment objects. + # List properties and relationships of the managedEBookAssignment objects. class AssignmentsRequestBuilderGetQueryParameters ## diff --git a/lib/device_app_management/managed_e_books/item/assignments/count/count_request_builder.rb b/lib/device_app_management/managed_e_books/item/assignments/count/count_request_builder.rb index 7b47fdf189..8d6275da92 100644 --- a/lib/device_app_management/managed_e_books/item/assignments/count/count_request_builder.rb +++ b/lib/device_app_management/managed_e_books/item/assignments/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assignments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assignments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/managed_e_books/item/assignments/item/managed_e_book_assignment_item_request_builder.rb b/lib/device_app_management/managed_e_books/item/assignments/item/managed_e_book_assignment_item_request_builder.rb index d1bdf44415..0a4f49cb9c 100644 --- a/lib/device_app_management/managed_e_books/item/assignments/item/managed_e_book_assignment_item_request_builder.rb +++ b/lib/device_app_management/managed_e_books/item/assignments/item/managed_e_book_assignment_item_request_builder.rb @@ -25,7 +25,7 @@ class ManagedEBookAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::Bas ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assignments/{managedEBookAssignment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assignments/{managedEBookAssignment%2Did}{?%24expand,%24select}") end ## ## Deletes a iosVppEBookAssignment. @@ -37,12 +37,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read properties and relationships of the iosVppEBookAssignment object. + ## Read properties and relationships of the managedEBookAssignment object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of managed_e_book_assignment ## @@ -51,12 +50,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedEBookAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of a managedEBookAssignment object. + ## Update the properties of a iosVppEBookAssignment object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of managed_e_book_assignment @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedEBookAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,35 +75,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read properties and relationships of the iosVppEBookAssignment object. + ## Read properties and relationships of the managedEBookAssignment object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of a managedEBookAssignment object. + ## Update the properties of a iosVppEBookAssignment object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -114,20 +112,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_e_book_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedEBookAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read properties and relationships of the iosVppEBookAssignment object. + # Read properties and relationships of the managedEBookAssignment object. class ManagedEBookAssignmentItemRequestBuilderGetQueryParameters ## diff --git a/lib/device_app_management/managed_e_books/item/device_states/count/count_request_builder.rb b/lib/device_app_management/managed_e_books/item/device_states/count/count_request_builder.rb index bfa83c7ae7..1500541be1 100644 --- a/lib/device_app_management/managed_e_books/item/device_states/count/count_request_builder.rb +++ b/lib/device_app_management/managed_e_books/item/device_states/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/deviceStates/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/deviceStates/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/managed_e_books/item/device_states/device_states_request_builder.rb b/lib/device_app_management/managed_e_books/item/device_states/device_states_request_builder.rb index 815960d7d0..a88798785a 100644 --- a/lib/device_app_management/managed_e_books/item/device_states/device_states_request_builder.rb +++ b/lib/device_app_management/managed_e_books/item/device_states/device_states_request_builder.rb @@ -42,7 +42,7 @@ def by_device_install_state_id(device_install_state_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/deviceStates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/deviceStates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the deviceInstallState objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceInstallStateCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceInstallState.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_states_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceStatesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the deviceInstallState objects. diff --git a/lib/device_app_management/managed_e_books/item/device_states/item/device_install_state_item_request_builder.rb b/lib/device_app_management/managed_e_books/item/device_states/item/device_install_state_item_request_builder.rb index 38b443f282..48362c6b35 100644 --- a/lib/device_app_management/managed_e_books/item/device_states/item/device_install_state_item_request_builder.rb +++ b/lib/device_app_management/managed_e_books/item/device_states/item/device_install_state_item_request_builder.rb @@ -25,7 +25,7 @@ class DeviceInstallStateItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReq ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/deviceStates/{deviceInstallState%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/deviceStates/{deviceInstallState%2Did}{?%24expand,%24select}") end ## ## Deletes a deviceInstallState. @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceInstallState.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceInstallState.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_install_state_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceInstallStateItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceInstallState object. diff --git a/lib/device_app_management/managed_e_books/item/install_summary/install_summary_request_builder.rb b/lib/device_app_management/managed_e_books/item/install_summary/install_summary_request_builder.rb index 1462eb1d2c..86f5761c25 100644 --- a/lib/device_app_management/managed_e_books/item/install_summary/install_summary_request_builder.rb +++ b/lib/device_app_management/managed_e_books/item/install_summary/install_summary_request_builder.rb @@ -23,7 +23,7 @@ class InstallSummaryRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/installSummary{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/installSummary{?%24expand,%24select}") end ## ## Delete navigation property installSummary for deviceAppManagement @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EBookInstallSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EBookInstallSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a install_summary_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InstallSummaryRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the eBookInstallSummary object. diff --git a/lib/device_app_management/managed_e_books/item/managed_e_book_item_request_builder.rb b/lib/device_app_management/managed_e_books/item/managed_e_book_item_request_builder.rb index acd1365314..c605a3b574 100644 --- a/lib/device_app_management/managed_e_books/item/managed_e_book_item_request_builder.rb +++ b/lib/device_app_management/managed_e_books/item/managed_e_book_item_request_builder.rb @@ -51,7 +51,7 @@ def user_state_summary() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}{?%24expand,%24select}") end ## ## Deletes a iosVppEBook. @@ -63,8 +63,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -77,8 +76,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedEBook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,8 +91,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedEBook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -104,13 +101,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,15 +118,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -140,17 +138,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_e_book_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedEBookItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the iosVppEBook object. diff --git a/lib/device_app_management/managed_e_books/item/user_state_summary/count/count_request_builder.rb b/lib/device_app_management/managed_e_books/item/user_state_summary/count/count_request_builder.rb index e29145c1cd..c402d1acbe 100644 --- a/lib/device_app_management/managed_e_books/item/user_state_summary/count/count_request_builder.rb +++ b/lib/device_app_management/managed_e_books/item/user_state_summary/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/managed_e_books/item/user_state_summary/item/device_states/count/count_request_builder.rb b/lib/device_app_management/managed_e_books/item/user_state_summary/item/device_states/count/count_request_builder.rb index 68e9264124..5451570c95 100644 --- a/lib/device_app_management/managed_e_books/item/user_state_summary/item/device_states/count/count_request_builder.rb +++ b/lib/device_app_management/managed_e_books/item/user_state_summary/item/device_states/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary/{userInstallStateSummary%2Did}/deviceStates/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary/{userInstallStateSummary%2Did}/deviceStates/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/managed_e_books/item/user_state_summary/item/device_states/device_states_request_builder.rb b/lib/device_app_management/managed_e_books/item/user_state_summary/item/device_states/device_states_request_builder.rb index 4d69285f16..e82202db43 100644 --- a/lib/device_app_management/managed_e_books/item/user_state_summary/item/device_states/device_states_request_builder.rb +++ b/lib/device_app_management/managed_e_books/item/user_state_summary/item/device_states/device_states_request_builder.rb @@ -46,7 +46,7 @@ def by_device_install_state_id(device_install_state_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary/{userInstallStateSummary%2Did}/deviceStates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary/{userInstallStateSummary%2Did}/deviceStates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The install state of the eBook. @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceInstallStateCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,8 +73,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceInstallState.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,15 +83,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,17 +103,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_states_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceStatesRequestBuilder.new(raw_url, @request_adapter) + end ## # The install state of the eBook. diff --git a/lib/device_app_management/managed_e_books/item/user_state_summary/item/device_states/item/device_install_state_item_request_builder.rb b/lib/device_app_management/managed_e_books/item/user_state_summary/item/device_states/item/device_install_state_item_request_builder.rb index 86ee3ebf1c..03ae3af89c 100644 --- a/lib/device_app_management/managed_e_books/item/user_state_summary/item/device_states/item/device_install_state_item_request_builder.rb +++ b/lib/device_app_management/managed_e_books/item/user_state_summary/item/device_states/item/device_install_state_item_request_builder.rb @@ -29,7 +29,7 @@ class DeviceInstallStateItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReq ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary/{userInstallStateSummary%2Did}/deviceStates/{deviceInstallState%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary/{userInstallStateSummary%2Did}/deviceStates/{deviceInstallState%2Did}{?%24expand,%24select}") end ## ## Delete navigation property deviceStates for deviceAppManagement @@ -41,8 +41,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceInstallState.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceInstallState.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,13 +79,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -98,15 +96,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,17 +116,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_install_state_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceInstallStateItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The install state of the eBook. diff --git a/lib/device_app_management/managed_e_books/item/user_state_summary/item/user_install_state_summary_item_request_builder.rb b/lib/device_app_management/managed_e_books/item/user_state_summary/item/user_install_state_summary_item_request_builder.rb index b8adf243e6..8dc7034d1e 100644 --- a/lib/device_app_management/managed_e_books/item/user_state_summary/item/user_install_state_summary_item_request_builder.rb +++ b/lib/device_app_management/managed_e_books/item/user_state_summary/item/user_install_state_summary_item_request_builder.rb @@ -31,7 +31,7 @@ def device_states() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary/{userInstallStateSummary%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary/{userInstallStateSummary%2Did}{?%24expand,%24select}") end ## ## Deletes a userInstallStateSummary. @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserInstallStateSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserInstallStateSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,15 +98,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_install_state_summary_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserInstallStateSummaryItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the userInstallStateSummary object. diff --git a/lib/device_app_management/managed_e_books/item/user_state_summary/user_state_summary_request_builder.rb b/lib/device_app_management/managed_e_books/item/user_state_summary/user_state_summary_request_builder.rb index 2bc9ba4408..797e9f225a 100644 --- a/lib/device_app_management/managed_e_books/item/user_state_summary/user_state_summary_request_builder.rb +++ b/lib/device_app_management/managed_e_books/item/user_state_summary/user_state_summary_request_builder.rb @@ -42,7 +42,7 @@ def by_user_install_state_summary_id(user_install_state_summary_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the userInstallStateSummary objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserInstallStateSummaryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserInstallStateSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_state_summary_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserStateSummaryRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the userInstallStateSummary objects. diff --git a/lib/device_app_management/managed_e_books/managed_e_books_request_builder.rb b/lib/device_app_management/managed_e_books/managed_e_books_request_builder.rb index fcd9ff3b71..5e73de6930 100644 --- a/lib/device_app_management/managed_e_books/managed_e_books_request_builder.rb +++ b/lib/device_app_management/managed_e_books/managed_e_books_request_builder.rb @@ -38,10 +38,10 @@ def by_managed_e_book_id(managed_e_book_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/managedEBooks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List properties and relationships of the iosVppEBook objects. + ## List properties and relationships of the managedEBook objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of managed_e_book_collection_response ## @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedEBookCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,26 +65,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedEBook.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List properties and relationships of the iosVppEBook objects. + ## List properties and relationships of the managedEBook objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,20 +95,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_e_books_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedEBooksRequestBuilder.new(raw_url, @request_adapter) + end ## - # List properties and relationships of the iosVppEBook objects. + # List properties and relationships of the managedEBook objects. class ManagedEBooksRequestBuilderGetQueryParameters ## diff --git a/lib/device_app_management/mdm_windows_information_protection_policies/count/count_request_builder.rb b/lib/device_app_management/mdm_windows_information_protection_policies/count/count_request_builder.rb index 97fc11ddf2..b0d5814915 100644 --- a/lib/device_app_management/mdm_windows_information_protection_policies/count/count_request_builder.rb +++ b/lib/device_app_management/mdm_windows_information_protection_policies/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/mdm_windows_information_protection_policies/item/assignments/assignments_request_builder.rb b/lib/device_app_management/mdm_windows_information_protection_policies/item/assignments/assignments_request_builder.rb index c91b77597c..49ca0f5d46 100644 --- a/lib/device_app_management/mdm_windows_information_protection_policies/item/assignments/assignments_request_builder.rb +++ b/lib/device_app_management/mdm_windows_information_protection_policies/item/assignments/assignments_request_builder.rb @@ -42,7 +42,7 @@ def by_targeted_managed_app_policy_assignment_id(targeted_managed_app_policy_ass ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Navigation property to list of security groups targeted for policy. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppPolicyAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppPolicyAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end ## # Navigation property to list of security groups targeted for policy. diff --git a/lib/device_app_management/mdm_windows_information_protection_policies/item/assignments/count/count_request_builder.rb b/lib/device_app_management/mdm_windows_information_protection_policies/item/assignments/count/count_request_builder.rb index 83b1bef22f..bd6fc1b254 100644 --- a/lib/device_app_management/mdm_windows_information_protection_policies/item/assignments/count/count_request_builder.rb +++ b/lib/device_app_management/mdm_windows_information_protection_policies/item/assignments/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/assignments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/assignments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/mdm_windows_information_protection_policies/item/assignments/item/targeted_managed_app_policy_assignment_item_request_builder.rb b/lib/device_app_management/mdm_windows_information_protection_policies/item/assignments/item/targeted_managed_app_policy_assignment_item_request_builder.rb index 934644eaa9..2ecbabe00c 100644 --- a/lib/device_app_management/mdm_windows_information_protection_policies/item/assignments/item/targeted_managed_app_policy_assignment_item_request_builder.rb +++ b/lib/device_app_management/mdm_windows_information_protection_policies/item/assignments/item/targeted_managed_app_policy_assignment_item_request_builder.rb @@ -25,7 +25,7 @@ class TargetedManagedAppPolicyAssignmentItemRequestBuilder < MicrosoftKiotaAbstr ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/assignments/{targetedManagedAppPolicyAssignment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/assignments/{targetedManagedAppPolicyAssignment%2Did}{?%24expand,%24select}") end ## ## Delete navigation property assignments for deviceAppManagement @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppPolicyAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppPolicyAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a targeted_managed_app_policy_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TargetedManagedAppPolicyAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Navigation property to list of security groups targeted for policy. diff --git a/lib/device_app_management/mdm_windows_information_protection_policies/item/exempt_app_locker_files/count/count_request_builder.rb b/lib/device_app_management/mdm_windows_information_protection_policies/item/exempt_app_locker_files/count/count_request_builder.rb index 53d9f1af13..be43801450 100644 --- a/lib/device_app_management/mdm_windows_information_protection_policies/item/exempt_app_locker_files/count/count_request_builder.rb +++ b/lib/device_app_management/mdm_windows_information_protection_policies/item/exempt_app_locker_files/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/mdm_windows_information_protection_policies/item/exempt_app_locker_files/exempt_app_locker_files_request_builder.rb b/lib/device_app_management/mdm_windows_information_protection_policies/item/exempt_app_locker_files/exempt_app_locker_files_request_builder.rb index 54f1b7359e..fdebe722ee 100644 --- a/lib/device_app_management/mdm_windows_information_protection_policies/item/exempt_app_locker_files/exempt_app_locker_files_request_builder.rb +++ b/lib/device_app_management/mdm_windows_information_protection_policies/item/exempt_app_locker_files/exempt_app_locker_files_request_builder.rb @@ -42,7 +42,7 @@ def by_windows_information_protection_app_locker_file_id(windows_information_pro ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Another way to input exempt apps through xml files @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionAppLockerFileCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionAppLockerFile.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a exempt_app_locker_files_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExemptAppLockerFilesRequestBuilder.new(raw_url, @request_adapter) + end ## # Another way to input exempt apps through xml files diff --git a/lib/device_app_management/mdm_windows_information_protection_policies/item/exempt_app_locker_files/item/windows_information_protection_app_locker_file_item_request_builder.rb b/lib/device_app_management/mdm_windows_information_protection_policies/item/exempt_app_locker_files/item/windows_information_protection_app_locker_file_item_request_builder.rb index 518e4188d9..48b1442f77 100644 --- a/lib/device_app_management/mdm_windows_information_protection_policies/item/exempt_app_locker_files/item/windows_information_protection_app_locker_file_item_request_builder.rb +++ b/lib/device_app_management/mdm_windows_information_protection_policies/item/exempt_app_locker_files/item/windows_information_protection_app_locker_file_item_request_builder.rb @@ -25,7 +25,7 @@ class WindowsInformationProtectionAppLockerFileItemRequestBuilder < MicrosoftKio ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles/{windowsInformationProtectionAppLockerFile%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles/{windowsInformationProtectionAppLockerFile%2Did}{?%24expand,%24select}") end ## ## Delete navigation property exemptAppLockerFiles for deviceAppManagement @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionAppLockerFile.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionAppLockerFile.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a windows_information_protection_app_locker_file_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WindowsInformationProtectionAppLockerFileItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Another way to input exempt apps through xml files diff --git a/lib/device_app_management/mdm_windows_information_protection_policies/item/mdm_windows_information_protection_policy_item_request_builder.rb b/lib/device_app_management/mdm_windows_information_protection_policies/item/mdm_windows_information_protection_policy_item_request_builder.rb index 1bb3292e84..7f85487ced 100644 --- a/lib/device_app_management/mdm_windows_information_protection_policies/item/mdm_windows_information_protection_policy_item_request_builder.rb +++ b/lib/device_app_management/mdm_windows_information_protection_policies/item/mdm_windows_information_protection_policy_item_request_builder.rb @@ -39,7 +39,7 @@ def protected_app_locker_files() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}{?%24expand,%24select}") end ## ## Deletes a mdmWindowsInformationProtectionPolicy. @@ -51,8 +51,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MdmWindowsInformationProtectionPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MdmWindowsInformationProtectionPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,13 +89,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,15 +106,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,17 +126,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mdm_windows_information_protection_policy_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MdmWindowsInformationProtectionPolicyItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the mdmWindowsInformationProtectionPolicy object. diff --git a/lib/device_app_management/mdm_windows_information_protection_policies/item/protected_app_locker_files/count/count_request_builder.rb b/lib/device_app_management/mdm_windows_information_protection_policies/item/protected_app_locker_files/count/count_request_builder.rb index 150dafcd80..6246a5905e 100644 --- a/lib/device_app_management/mdm_windows_information_protection_policies/item/protected_app_locker_files/count/count_request_builder.rb +++ b/lib/device_app_management/mdm_windows_information_protection_policies/item/protected_app_locker_files/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/mdm_windows_information_protection_policies/item/protected_app_locker_files/item/windows_information_protection_app_locker_file_item_request_builder.rb b/lib/device_app_management/mdm_windows_information_protection_policies/item/protected_app_locker_files/item/windows_information_protection_app_locker_file_item_request_builder.rb index abc15a3a89..26566b20b1 100644 --- a/lib/device_app_management/mdm_windows_information_protection_policies/item/protected_app_locker_files/item/windows_information_protection_app_locker_file_item_request_builder.rb +++ b/lib/device_app_management/mdm_windows_information_protection_policies/item/protected_app_locker_files/item/windows_information_protection_app_locker_file_item_request_builder.rb @@ -25,7 +25,7 @@ class WindowsInformationProtectionAppLockerFileItemRequestBuilder < MicrosoftKio ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles/{windowsInformationProtectionAppLockerFile%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles/{windowsInformationProtectionAppLockerFile%2Did}{?%24expand,%24select}") end ## ## Delete navigation property protectedAppLockerFiles for deviceAppManagement @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionAppLockerFile.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionAppLockerFile.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a windows_information_protection_app_locker_file_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WindowsInformationProtectionAppLockerFileItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Another way to input protected apps through xml files diff --git a/lib/device_app_management/mdm_windows_information_protection_policies/item/protected_app_locker_files/protected_app_locker_files_request_builder.rb b/lib/device_app_management/mdm_windows_information_protection_policies/item/protected_app_locker_files/protected_app_locker_files_request_builder.rb index c8329c1667..ddc47ce218 100644 --- a/lib/device_app_management/mdm_windows_information_protection_policies/item/protected_app_locker_files/protected_app_locker_files_request_builder.rb +++ b/lib/device_app_management/mdm_windows_information_protection_policies/item/protected_app_locker_files/protected_app_locker_files_request_builder.rb @@ -42,7 +42,7 @@ def by_windows_information_protection_app_locker_file_id(windows_information_pro ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Another way to input protected apps through xml files @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionAppLockerFileCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionAppLockerFile.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a protected_app_locker_files_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ProtectedAppLockerFilesRequestBuilder.new(raw_url, @request_adapter) + end ## # Another way to input protected apps through xml files diff --git a/lib/device_app_management/mdm_windows_information_protection_policies/mdm_windows_information_protection_policies_request_builder.rb b/lib/device_app_management/mdm_windows_information_protection_policies/mdm_windows_information_protection_policies_request_builder.rb index 6fcdde39f4..550a4ac2c9 100644 --- a/lib/device_app_management/mdm_windows_information_protection_policies/mdm_windows_information_protection_policies_request_builder.rb +++ b/lib/device_app_management/mdm_windows_information_protection_policies/mdm_windows_information_protection_policies_request_builder.rb @@ -38,7 +38,7 @@ def by_mdm_windows_information_protection_policy_id(mdm_windows_information_prot ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the mdmWindowsInformationProtectionPolicy objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MdmWindowsInformationProtectionPolicyCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MdmWindowsInformationProtectionPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mdm_windows_information_protection_policies_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MdmWindowsInformationProtectionPoliciesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the mdmWindowsInformationProtectionPolicy objects. diff --git a/lib/device_app_management/mobile_app_categories/count/count_request_builder.rb b/lib/device_app_management/mobile_app_categories/count/count_request_builder.rb index 93e590465b..723dddd832 100644 --- a/lib/device_app_management/mobile_app_categories/count/count_request_builder.rb +++ b/lib/device_app_management/mobile_app_categories/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppCategories/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppCategories/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/mobile_app_categories/item/mobile_app_category_item_request_builder.rb b/lib/device_app_management/mobile_app_categories/item/mobile_app_category_item_request_builder.rb index 395c9c20c8..948db0894b 100644 --- a/lib/device_app_management/mobile_app_categories/item/mobile_app_category_item_request_builder.rb +++ b/lib/device_app_management/mobile_app_categories/item/mobile_app_category_item_request_builder.rb @@ -21,7 +21,7 @@ class MobileAppCategoryItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppCategories/{mobileAppCategory%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppCategories/{mobileAppCategory%2Did}{?%24expand,%24select}") end ## ## Deletes a mobileAppCategory. @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_category_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppCategoryItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the mobileAppCategory object. diff --git a/lib/device_app_management/mobile_app_categories/mobile_app_categories_request_builder.rb b/lib/device_app_management/mobile_app_categories/mobile_app_categories_request_builder.rb index b70b364852..bbfc9e3eb5 100644 --- a/lib/device_app_management/mobile_app_categories/mobile_app_categories_request_builder.rb +++ b/lib/device_app_management/mobile_app_categories/mobile_app_categories_request_builder.rb @@ -38,7 +38,7 @@ def by_mobile_app_category_id(mobile_app_category_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppCategories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppCategories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the mobileAppCategory objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppCategoriesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the mobileAppCategory objects. diff --git a/lib/device_app_management/mobile_app_configurations/count/count_request_builder.rb b/lib/device_app_management/mobile_app_configurations/count/count_request_builder.rb index d4b821ef5a..22e4c48b1b 100644 --- a/lib/device_app_management/mobile_app_configurations/count/count_request_builder.rb +++ b/lib/device_app_management/mobile_app_configurations/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/mobile_app_configurations/item/assign/assign_post_request_body.rb b/lib/device_app_management/mobile_app_configurations/item/assign/assign_post_request_body.rb index a3339776ee..482307a53e 100644 --- a/lib/device_app_management/mobile_app_configurations/item/assign/assign_post_request_body.rb +++ b/lib/device_app_management/mobile_app_configurations/item/assign/assign_post_request_body.rb @@ -20,15 +20,15 @@ class AssignPostRequestBody # The assignments property @assignments ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -50,7 +50,7 @@ def assignments=(value) @assignments = value end ## - ## Instantiates a new assignPostRequestBody and sets the default values. + ## Instantiates a new AssignPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_app_management/mobile_app_configurations/item/assign/assign_request_builder.rb b/lib/device_app_management/mobile_app_configurations/item/assign/assign_request_builder.rb index 5380f016ce..33582b1532 100644 --- a/lib/device_app_management/mobile_app_configurations/item/assign/assign_request_builder.rb +++ b/lib/device_app_management/mobile_app_configurations/item/assign/assign_request_builder.rb @@ -36,8 +36,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assign_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_app_management/mobile_app_configurations/item/assignments/assignments_request_builder.rb b/lib/device_app_management/mobile_app_configurations/item/assignments/assignments_request_builder.rb index a6c044d298..3aa44a42c8 100644 --- a/lib/device_app_management/mobile_app_configurations/item/assignments/assignments_request_builder.rb +++ b/lib/device_app_management/mobile_app_configurations/item/assignments/assignments_request_builder.rb @@ -42,7 +42,7 @@ def by_managed_device_mobile_app_configuration_assignment_id(managed_device_mobi ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the managedDeviceMobileAppConfigurationAssignment objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the managedDeviceMobileAppConfigurationAssignment objects. diff --git a/lib/device_app_management/mobile_app_configurations/item/assignments/count/count_request_builder.rb b/lib/device_app_management/mobile_app_configurations/item/assignments/count/count_request_builder.rb index cad60ff5da..c57cbfe6e9 100644 --- a/lib/device_app_management/mobile_app_configurations/item/assignments/count/count_request_builder.rb +++ b/lib/device_app_management/mobile_app_configurations/item/assignments/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/assignments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/assignments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/mobile_app_configurations/item/assignments/item/managed_device_mobile_app_configuration_assignment_item_request_builder.rb b/lib/device_app_management/mobile_app_configurations/item/assignments/item/managed_device_mobile_app_configuration_assignment_item_request_builder.rb index d4cd16ce75..9f1fbd984f 100644 --- a/lib/device_app_management/mobile_app_configurations/item/assignments/item/managed_device_mobile_app_configuration_assignment_item_request_builder.rb +++ b/lib/device_app_management/mobile_app_configurations/item/assignments/item/managed_device_mobile_app_configuration_assignment_item_request_builder.rb @@ -25,7 +25,7 @@ class ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilder < Microsof ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/assignments/{managedDeviceMobileAppConfigurationAssignment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/assignments/{managedDeviceMobileAppConfigurationAssignment%2Did}{?%24expand,%24select}") end ## ## Deletes a managedDeviceMobileAppConfigurationAssignment. @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_device_mobile_app_configuration_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the managedDeviceMobileAppConfigurationAssignment object. diff --git a/lib/device_app_management/mobile_app_configurations/item/device_status_summary/device_status_summary_request_builder.rb b/lib/device_app_management/mobile_app_configurations/item/device_status_summary/device_status_summary_request_builder.rb index b1e2d96083..9be00a2f27 100644 --- a/lib/device_app_management/mobile_app_configurations/item/device_status_summary/device_status_summary_request_builder.rb +++ b/lib/device_app_management/mobile_app_configurations/item/device_status_summary/device_status_summary_request_builder.rb @@ -23,7 +23,7 @@ class DeviceStatusSummaryRequestBuilder < MicrosoftKiotaAbstractions::BaseReques ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/deviceStatusSummary{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/deviceStatusSummary{?%24expand,%24select}") end ## ## Delete navigation property deviceStatusSummary for deviceAppManagement @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationDeviceSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationDeviceSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_status_summary_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceStatusSummaryRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the managedDeviceMobileAppConfigurationDeviceSummary object. diff --git a/lib/device_app_management/mobile_app_configurations/item/device_statuses/count/count_request_builder.rb b/lib/device_app_management/mobile_app_configurations/item/device_statuses/count/count_request_builder.rb index ed5be58c69..f4ebad20c7 100644 --- a/lib/device_app_management/mobile_app_configurations/item/device_statuses/count/count_request_builder.rb +++ b/lib/device_app_management/mobile_app_configurations/item/device_statuses/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/deviceStatuses/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/deviceStatuses/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/mobile_app_configurations/item/device_statuses/device_statuses_request_builder.rb b/lib/device_app_management/mobile_app_configurations/item/device_statuses/device_statuses_request_builder.rb index dea4c1d037..5c6cbaa542 100644 --- a/lib/device_app_management/mobile_app_configurations/item/device_statuses/device_statuses_request_builder.rb +++ b/lib/device_app_management/mobile_app_configurations/item/device_statuses/device_statuses_request_builder.rb @@ -42,7 +42,7 @@ def by_managed_device_mobile_app_configuration_device_status_id(managed_device_m ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/deviceStatuses{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/deviceStatuses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the managedDeviceMobileAppConfigurationDeviceStatus objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationDeviceStatusCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationDeviceStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_statuses_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceStatusesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the managedDeviceMobileAppConfigurationDeviceStatus objects. diff --git a/lib/device_app_management/mobile_app_configurations/item/device_statuses/item/managed_device_mobile_app_configuration_device_status_item_request_builder.rb b/lib/device_app_management/mobile_app_configurations/item/device_statuses/item/managed_device_mobile_app_configuration_device_status_item_request_builder.rb index b6aed0d3aa..26fa5411d8 100644 --- a/lib/device_app_management/mobile_app_configurations/item/device_statuses/item/managed_device_mobile_app_configuration_device_status_item_request_builder.rb +++ b/lib/device_app_management/mobile_app_configurations/item/device_statuses/item/managed_device_mobile_app_configuration_device_status_item_request_builder.rb @@ -25,7 +25,7 @@ class ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilder < Micros ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/deviceStatuses/{managedDeviceMobileAppConfigurationDeviceStatus%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/deviceStatuses/{managedDeviceMobileAppConfigurationDeviceStatus%2Did}{?%24expand,%24select}") end ## ## Deletes a managedDeviceMobileAppConfigurationDeviceStatus. @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationDeviceStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationDeviceStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_device_mobile_app_configuration_device_status_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the managedDeviceMobileAppConfigurationDeviceStatus object. diff --git a/lib/device_app_management/mobile_app_configurations/item/managed_device_mobile_app_configuration_item_request_builder.rb b/lib/device_app_management/mobile_app_configurations/item/managed_device_mobile_app_configuration_item_request_builder.rb index 2a7e4d57d1..33bc493e12 100644 --- a/lib/device_app_management/mobile_app_configurations/item/managed_device_mobile_app_configuration_item_request_builder.rb +++ b/lib/device_app_management/mobile_app_configurations/item/managed_device_mobile_app_configuration_item_request_builder.rb @@ -57,7 +57,7 @@ def user_status_summary() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}{?%24expand,%24select}") end ## ## Deletes a iosMobileAppConfiguration. @@ -69,12 +69,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read properties and relationships of the iosMobileAppConfiguration object. + ## Read properties and relationships of the managedDeviceMobileAppConfiguration object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of managed_device_mobile_app_configuration ## @@ -83,8 +82,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,8 +97,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -110,31 +107,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read properties and relationships of the iosMobileAppConfiguration object. + ## Read properties and relationships of the managedDeviceMobileAppConfiguration object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -146,20 +144,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_device_mobile_app_configuration_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedDeviceMobileAppConfigurationItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read properties and relationships of the iosMobileAppConfiguration object. + # Read properties and relationships of the managedDeviceMobileAppConfiguration object. class ManagedDeviceMobileAppConfigurationItemRequestBuilderGetQueryParameters ## diff --git a/lib/device_app_management/mobile_app_configurations/item/user_status_summary/user_status_summary_request_builder.rb b/lib/device_app_management/mobile_app_configurations/item/user_status_summary/user_status_summary_request_builder.rb index 6b1c037ad6..c628c4e4b6 100644 --- a/lib/device_app_management/mobile_app_configurations/item/user_status_summary/user_status_summary_request_builder.rb +++ b/lib/device_app_management/mobile_app_configurations/item/user_status_summary/user_status_summary_request_builder.rb @@ -23,7 +23,7 @@ class UserStatusSummaryRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestB ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/userStatusSummary{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/userStatusSummary{?%24expand,%24select}") end ## ## Delete navigation property userStatusSummary for deviceAppManagement @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationUserSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationUserSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_status_summary_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserStatusSummaryRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the managedDeviceMobileAppConfigurationUserSummary object. diff --git a/lib/device_app_management/mobile_app_configurations/item/user_statuses/count/count_request_builder.rb b/lib/device_app_management/mobile_app_configurations/item/user_statuses/count/count_request_builder.rb index d22654a887..67c00abdba 100644 --- a/lib/device_app_management/mobile_app_configurations/item/user_statuses/count/count_request_builder.rb +++ b/lib/device_app_management/mobile_app_configurations/item/user_statuses/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/userStatuses/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/userStatuses/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/mobile_app_configurations/item/user_statuses/item/managed_device_mobile_app_configuration_user_status_item_request_builder.rb b/lib/device_app_management/mobile_app_configurations/item/user_statuses/item/managed_device_mobile_app_configuration_user_status_item_request_builder.rb index 1fb7bb0daf..3ec72913b0 100644 --- a/lib/device_app_management/mobile_app_configurations/item/user_statuses/item/managed_device_mobile_app_configuration_user_status_item_request_builder.rb +++ b/lib/device_app_management/mobile_app_configurations/item/user_statuses/item/managed_device_mobile_app_configuration_user_status_item_request_builder.rb @@ -25,7 +25,7 @@ class ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilder < Microsof ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/userStatuses/{managedDeviceMobileAppConfigurationUserStatus%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/userStatuses/{managedDeviceMobileAppConfigurationUserStatus%2Did}{?%24expand,%24select}") end ## ## Deletes a managedDeviceMobileAppConfigurationUserStatus. @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationUserStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationUserStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_device_mobile_app_configuration_user_status_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the managedDeviceMobileAppConfigurationUserStatus object. diff --git a/lib/device_app_management/mobile_app_configurations/item/user_statuses/user_statuses_request_builder.rb b/lib/device_app_management/mobile_app_configurations/item/user_statuses/user_statuses_request_builder.rb index 6637c4b5f1..eeabead6a4 100644 --- a/lib/device_app_management/mobile_app_configurations/item/user_statuses/user_statuses_request_builder.rb +++ b/lib/device_app_management/mobile_app_configurations/item/user_statuses/user_statuses_request_builder.rb @@ -42,7 +42,7 @@ def by_managed_device_mobile_app_configuration_user_status_id(managed_device_mob ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/userStatuses{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/userStatuses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the managedDeviceMobileAppConfigurationUserStatus objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationUserStatusCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationUserStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_statuses_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserStatusesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the managedDeviceMobileAppConfigurationUserStatus objects. diff --git a/lib/device_app_management/mobile_app_configurations/mobile_app_configurations_request_builder.rb b/lib/device_app_management/mobile_app_configurations/mobile_app_configurations_request_builder.rb index ea848df312..6c44ed5575 100644 --- a/lib/device_app_management/mobile_app_configurations/mobile_app_configurations_request_builder.rb +++ b/lib/device_app_management/mobile_app_configurations/mobile_app_configurations_request_builder.rb @@ -38,10 +38,10 @@ def by_managed_device_mobile_app_configuration_id(managed_device_mobile_app_conf ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List properties and relationships of the managedDeviceMobileAppConfiguration objects. + ## List properties and relationships of the iosMobileAppConfiguration objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of managed_device_mobile_app_configuration_collection_response ## @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,26 +65,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List properties and relationships of the managedDeviceMobileAppConfiguration objects. + ## List properties and relationships of the iosMobileAppConfiguration objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,20 +95,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_configurations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppConfigurationsRequestBuilder.new(raw_url, @request_adapter) + end ## - # List properties and relationships of the managedDeviceMobileAppConfiguration objects. + # List properties and relationships of the iosMobileAppConfiguration objects. class MobileAppConfigurationsRequestBuilderGetQueryParameters ## diff --git a/lib/device_app_management/mobile_apps/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/count/count_request_builder.rb index 64f94df7d2..015c7d4ad7 100644 --- a/lib/device_app_management/mobile_apps/count/count_request_builder.rb +++ b/lib/device_app_management/mobile_apps/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/me/authentication/methods/count/count.rb b/lib/device_app_management/mobile_apps/graph_android_lob_app/count/count.rb similarity index 100% rename from lib/me/authentication/methods/count/count.rb rename to lib/device_app_management/mobile_apps/graph_android_lob_app/count/count.rb diff --git a/lib/device_app_management/mobile_apps/graph_android_lob_app/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/graph_android_lob_app/count/count_request_builder.rb new file mode 100644 index 0000000000..f09f0451e6 --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_android_lob_app/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../graph_android_lob_app' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphAndroidLobApp + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.androidLobApp/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/fido2_methods/item/item.rb b/lib/device_app_management/mobile_apps/graph_android_lob_app/graph_android_lob_app.rb similarity index 100% rename from lib/me/authentication/fido2_methods/item/item.rb rename to lib/device_app_management/mobile_apps/graph_android_lob_app/graph_android_lob_app.rb diff --git a/lib/device_app_management/mobile_apps/graph_android_lob_app/graph_android_lob_app_request_builder.rb b/lib/device_app_management/mobile_apps/graph_android_lob_app/graph_android_lob_app_request_builder.rb new file mode 100644 index 0000000000..722fce3754 --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_android_lob_app/graph_android_lob_app_request_builder.rb @@ -0,0 +1,134 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/android_lob_app_collection_response' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../device_app_management' +require_relative '../mobile_apps' +require_relative './count/count_request_builder' +require_relative './graph_android_lob_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphAndroidLobApp + ## + # Casts the previous resource to androidLobApp. + class GraphAndroidLobAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphAndroidLobApp::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphAndroidLobAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.androidLobApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get the items of type microsoft.graph.androidLobApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of android_lob_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AndroidLobAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.androidLobApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_android_lob_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAndroidLobAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the items of type microsoft.graph.androidLobApp in the microsoft.graph.mobileApp collection + class GraphAndroidLobAppRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/microsoft_authenticator_methods/count/count.rb b/lib/device_app_management/mobile_apps/graph_android_store_app/count/count.rb similarity index 100% rename from lib/me/authentication/microsoft_authenticator_methods/count/count.rb rename to lib/device_app_management/mobile_apps/graph_android_store_app/count/count.rb diff --git a/lib/device_app_management/mobile_apps/graph_android_store_app/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/graph_android_store_app/count/count_request_builder.rb new file mode 100644 index 0000000000..a6140a7f23 --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_android_store_app/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../graph_android_store_app' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphAndroidStoreApp + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.androidStoreApp/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/methods/item/item.rb b/lib/device_app_management/mobile_apps/graph_android_store_app/graph_android_store_app.rb similarity index 100% rename from lib/me/authentication/methods/item/item.rb rename to lib/device_app_management/mobile_apps/graph_android_store_app/graph_android_store_app.rb diff --git a/lib/device_app_management/mobile_apps/graph_android_store_app/graph_android_store_app_request_builder.rb b/lib/device_app_management/mobile_apps/graph_android_store_app/graph_android_store_app_request_builder.rb new file mode 100644 index 0000000000..eb350fc2a8 --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_android_store_app/graph_android_store_app_request_builder.rb @@ -0,0 +1,134 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/android_store_app_collection_response' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../device_app_management' +require_relative '../mobile_apps' +require_relative './count/count_request_builder' +require_relative './graph_android_store_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphAndroidStoreApp + ## + # Casts the previous resource to androidStoreApp. + class GraphAndroidStoreAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphAndroidStoreApp::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphAndroidStoreAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.androidStoreApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get the items of type microsoft.graph.androidStoreApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of android_store_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AndroidStoreAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.androidStoreApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_android_store_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAndroidStoreAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the items of type microsoft.graph.androidStoreApp in the microsoft.graph.mobileApp collection + class GraphAndroidStoreAppRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/operations/count/count.rb b/lib/device_app_management/mobile_apps/graph_ios_lob_app/count/count.rb similarity index 100% rename from lib/me/authentication/operations/count/count.rb rename to lib/device_app_management/mobile_apps/graph_ios_lob_app/count/count.rb diff --git a/lib/device_app_management/mobile_apps/graph_ios_lob_app/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/graph_ios_lob_app/count/count_request_builder.rb new file mode 100644 index 0000000000..10bdbbd38c --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_ios_lob_app/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../graph_ios_lob_app' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphIosLobApp + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.iosLobApp/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/methods/methods.rb b/lib/device_app_management/mobile_apps/graph_ios_lob_app/graph_ios_lob_app.rb similarity index 100% rename from lib/me/authentication/methods/methods.rb rename to lib/device_app_management/mobile_apps/graph_ios_lob_app/graph_ios_lob_app.rb diff --git a/lib/device_app_management/mobile_apps/graph_ios_lob_app/graph_ios_lob_app_request_builder.rb b/lib/device_app_management/mobile_apps/graph_ios_lob_app/graph_ios_lob_app_request_builder.rb new file mode 100644 index 0000000000..14fb5d7d8b --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_ios_lob_app/graph_ios_lob_app_request_builder.rb @@ -0,0 +1,134 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/ios_lob_app_collection_response' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../device_app_management' +require_relative '../mobile_apps' +require_relative './count/count_request_builder' +require_relative './graph_ios_lob_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphIosLobApp + ## + # Casts the previous resource to iosLobApp. + class GraphIosLobAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphIosLobApp::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphIosLobAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.iosLobApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get the items of type microsoft.graph.iosLobApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of ios_lob_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IosLobAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.iosLobApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_ios_lob_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphIosLobAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the items of type microsoft.graph.iosLobApp in the microsoft.graph.mobileApp collection + class GraphIosLobAppRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/password_methods/count/count.rb b/lib/device_app_management/mobile_apps/graph_ios_store_app/count/count.rb similarity index 100% rename from lib/me/authentication/password_methods/count/count.rb rename to lib/device_app_management/mobile_apps/graph_ios_store_app/count/count.rb diff --git a/lib/device_app_management/mobile_apps/graph_ios_store_app/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/graph_ios_store_app/count/count_request_builder.rb new file mode 100644 index 0000000000..944f30ecfe --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_ios_store_app/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../graph_ios_store_app' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphIosStoreApp + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.iosStoreApp/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/microsoft_authenticator_methods/item/device/device.rb b/lib/device_app_management/mobile_apps/graph_ios_store_app/graph_ios_store_app.rb similarity index 100% rename from lib/me/authentication/microsoft_authenticator_methods/item/device/device.rb rename to lib/device_app_management/mobile_apps/graph_ios_store_app/graph_ios_store_app.rb diff --git a/lib/device_app_management/mobile_apps/graph_ios_store_app/graph_ios_store_app_request_builder.rb b/lib/device_app_management/mobile_apps/graph_ios_store_app/graph_ios_store_app_request_builder.rb new file mode 100644 index 0000000000..e803032b3e --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_ios_store_app/graph_ios_store_app_request_builder.rb @@ -0,0 +1,134 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/ios_store_app_collection_response' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../device_app_management' +require_relative '../mobile_apps' +require_relative './count/count_request_builder' +require_relative './graph_ios_store_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphIosStoreApp + ## + # Casts the previous resource to iosStoreApp. + class GraphIosStoreAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphIosStoreApp::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphIosStoreAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.iosStoreApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get the items of type microsoft.graph.iosStoreApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of ios_store_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IosStoreAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.iosStoreApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_ios_store_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphIosStoreAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the items of type microsoft.graph.iosStoreApp in the microsoft.graph.mobileApp collection + class GraphIosStoreAppRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/phone_methods/count/count.rb b/lib/device_app_management/mobile_apps/graph_ios_vpp_app/count/count.rb similarity index 100% rename from lib/me/authentication/phone_methods/count/count.rb rename to lib/device_app_management/mobile_apps/graph_ios_vpp_app/count/count.rb diff --git a/lib/device_app_management/mobile_apps/graph_ios_vpp_app/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/graph_ios_vpp_app/count/count_request_builder.rb new file mode 100644 index 0000000000..077d2a06d8 --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_ios_vpp_app/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../graph_ios_vpp_app' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphIosVppApp + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.iosVppApp/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/microsoft_authenticator_methods/item/item.rb b/lib/device_app_management/mobile_apps/graph_ios_vpp_app/graph_ios_vpp_app.rb similarity index 100% rename from lib/me/authentication/microsoft_authenticator_methods/item/item.rb rename to lib/device_app_management/mobile_apps/graph_ios_vpp_app/graph_ios_vpp_app.rb diff --git a/lib/device_app_management/mobile_apps/graph_ios_vpp_app/graph_ios_vpp_app_request_builder.rb b/lib/device_app_management/mobile_apps/graph_ios_vpp_app/graph_ios_vpp_app_request_builder.rb new file mode 100644 index 0000000000..ab927de8fe --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_ios_vpp_app/graph_ios_vpp_app_request_builder.rb @@ -0,0 +1,134 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/ios_vpp_app_collection_response' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../device_app_management' +require_relative '../mobile_apps' +require_relative './count/count_request_builder' +require_relative './graph_ios_vpp_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphIosVppApp + ## + # Casts the previous resource to iosVppApp. + class GraphIosVppAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphIosVppApp::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphIosVppAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.iosVppApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get the items of type microsoft.graph.iosVppApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of ios_vpp_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IosVppAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.iosVppApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_ios_vpp_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphIosVppAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the items of type microsoft.graph.iosVppApp in the microsoft.graph.mobileApp collection + class GraphIosVppAppRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/software_oath_methods/count/count.rb b/lib/device_app_management/mobile_apps/graph_mac_o_s_dmg_app/count/count.rb similarity index 100% rename from lib/me/authentication/software_oath_methods/count/count.rb rename to lib/device_app_management/mobile_apps/graph_mac_o_s_dmg_app/count/count.rb diff --git a/lib/device_app_management/mobile_apps/graph_mac_o_s_dmg_app/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/graph_mac_o_s_dmg_app/count/count_request_builder.rb new file mode 100644 index 0000000000..844ae761d4 --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_mac_o_s_dmg_app/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../graph_mac_o_s_dmg_app' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphMacOSDmgApp + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.macOSDmgApp/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/microsoft_authenticator_methods/microsoft_authenticator_methods.rb b/lib/device_app_management/mobile_apps/graph_mac_o_s_dmg_app/graph_mac_o_s_dmg_app.rb similarity index 100% rename from lib/me/authentication/microsoft_authenticator_methods/microsoft_authenticator_methods.rb rename to lib/device_app_management/mobile_apps/graph_mac_o_s_dmg_app/graph_mac_o_s_dmg_app.rb diff --git a/lib/device_app_management/mobile_apps/graph_mac_o_s_dmg_app/graph_mac_o_s_dmg_app_request_builder.rb b/lib/device_app_management/mobile_apps/graph_mac_o_s_dmg_app/graph_mac_o_s_dmg_app_request_builder.rb new file mode 100644 index 0000000000..80673fe135 --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_mac_o_s_dmg_app/graph_mac_o_s_dmg_app_request_builder.rb @@ -0,0 +1,134 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/mac_o_s_dmg_app_collection_response' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../device_app_management' +require_relative '../mobile_apps' +require_relative './count/count_request_builder' +require_relative './graph_mac_o_s_dmg_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphMacOSDmgApp + ## + # Casts the previous resource to macOSDmgApp. + class GraphMacOSDmgAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphMacOSDmgApp::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphMacOSDmgAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.macOSDmgApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get the items of type microsoft.graph.macOSDmgApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mac_o_s_dmg_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MacOSDmgAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.macOSDmgApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_mac_o_s_dmg_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphMacOSDmgAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the items of type microsoft.graph.macOSDmgApp in the microsoft.graph.mobileApp collection + class GraphMacOSDmgAppRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/temporary_access_pass_methods/count/count.rb b/lib/device_app_management/mobile_apps/graph_mac_o_s_lob_app/count/count.rb similarity index 100% rename from lib/me/authentication/temporary_access_pass_methods/count/count.rb rename to lib/device_app_management/mobile_apps/graph_mac_o_s_lob_app/count/count.rb diff --git a/lib/device_app_management/mobile_apps/graph_mac_o_s_lob_app/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/graph_mac_o_s_lob_app/count/count_request_builder.rb new file mode 100644 index 0000000000..e936311b8e --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_mac_o_s_lob_app/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../graph_mac_o_s_lob_app' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphMacOSLobApp + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.macOSLobApp/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/operations/item/item.rb b/lib/device_app_management/mobile_apps/graph_mac_o_s_lob_app/graph_mac_o_s_lob_app.rb similarity index 100% rename from lib/me/authentication/operations/item/item.rb rename to lib/device_app_management/mobile_apps/graph_mac_o_s_lob_app/graph_mac_o_s_lob_app.rb diff --git a/lib/device_app_management/mobile_apps/graph_mac_o_s_lob_app/graph_mac_o_s_lob_app_request_builder.rb b/lib/device_app_management/mobile_apps/graph_mac_o_s_lob_app/graph_mac_o_s_lob_app_request_builder.rb new file mode 100644 index 0000000000..45e326257f --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_mac_o_s_lob_app/graph_mac_o_s_lob_app_request_builder.rb @@ -0,0 +1,134 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/mac_o_s_lob_app_collection_response' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../device_app_management' +require_relative '../mobile_apps' +require_relative './count/count_request_builder' +require_relative './graph_mac_o_s_lob_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphMacOSLobApp + ## + # Casts the previous resource to macOSLobApp. + class GraphMacOSLobAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphMacOSLobApp::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphMacOSLobAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.macOSLobApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get the items of type microsoft.graph.macOSLobApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mac_o_s_lob_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MacOSLobAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.macOSLobApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_mac_o_s_lob_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphMacOSLobAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the items of type microsoft.graph.macOSLobApp in the microsoft.graph.mobileApp collection + class GraphMacOSLobAppRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/windows_hello_for_business_methods/count/count.rb b/lib/device_app_management/mobile_apps/graph_managed_android_lob_app/count/count.rb similarity index 100% rename from lib/me/authentication/windows_hello_for_business_methods/count/count.rb rename to lib/device_app_management/mobile_apps/graph_managed_android_lob_app/count/count.rb diff --git a/lib/device_app_management/mobile_apps/graph_managed_android_lob_app/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/graph_managed_android_lob_app/count/count_request_builder.rb new file mode 100644 index 0000000000..a21a6eb32f --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_managed_android_lob_app/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../graph_managed_android_lob_app' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphManagedAndroidLobApp + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.managedAndroidLobApp/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/operations/operations.rb b/lib/device_app_management/mobile_apps/graph_managed_android_lob_app/graph_managed_android_lob_app.rb similarity index 100% rename from lib/me/authentication/operations/operations.rb rename to lib/device_app_management/mobile_apps/graph_managed_android_lob_app/graph_managed_android_lob_app.rb diff --git a/lib/device_app_management/mobile_apps/graph_managed_android_lob_app/graph_managed_android_lob_app_request_builder.rb b/lib/device_app_management/mobile_apps/graph_managed_android_lob_app/graph_managed_android_lob_app_request_builder.rb new file mode 100644 index 0000000000..cbe05654aa --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_managed_android_lob_app/graph_managed_android_lob_app_request_builder.rb @@ -0,0 +1,134 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/managed_android_lob_app_collection_response' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../device_app_management' +require_relative '../mobile_apps' +require_relative './count/count_request_builder' +require_relative './graph_managed_android_lob_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphManagedAndroidLobApp + ## + # Casts the previous resource to managedAndroidLobApp. + class GraphManagedAndroidLobAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphManagedAndroidLobApp::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphManagedAndroidLobAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.managedAndroidLobApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get the items of type microsoft.graph.managedAndroidLobApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of managed_android_lob_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAndroidLobAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.managedAndroidLobApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_managed_android_lob_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphManagedAndroidLobAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the items of type microsoft.graph.managedAndroidLobApp in the microsoft.graph.mobileApp collection + class GraphManagedAndroidLobAppRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar_permissions/count/count.rb b/lib/device_app_management/mobile_apps/graph_managed_i_o_s_lob_app/count/count.rb similarity index 100% rename from lib/me/calendar/calendar_permissions/count/count.rb rename to lib/device_app_management/mobile_apps/graph_managed_i_o_s_lob_app/count/count.rb diff --git a/lib/device_app_management/mobile_apps/graph_managed_i_o_s_lob_app/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/graph_managed_i_o_s_lob_app/count/count_request_builder.rb new file mode 100644 index 0000000000..12066bff13 --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_managed_i_o_s_lob_app/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../graph_managed_i_o_s_lob_app' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphManagedIOSLobApp + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.managedIOSLobApp/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/password_methods/item/item.rb b/lib/device_app_management/mobile_apps/graph_managed_i_o_s_lob_app/graph_managed_i_o_s_lob_app.rb similarity index 100% rename from lib/me/authentication/password_methods/item/item.rb rename to lib/device_app_management/mobile_apps/graph_managed_i_o_s_lob_app/graph_managed_i_o_s_lob_app.rb diff --git a/lib/device_app_management/mobile_apps/graph_managed_i_o_s_lob_app/graph_managed_i_o_s_lob_app_request_builder.rb b/lib/device_app_management/mobile_apps/graph_managed_i_o_s_lob_app/graph_managed_i_o_s_lob_app_request_builder.rb new file mode 100644 index 0000000000..ef14e5444e --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_managed_i_o_s_lob_app/graph_managed_i_o_s_lob_app_request_builder.rb @@ -0,0 +1,134 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/managed_i_o_s_lob_app_collection_response' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../device_app_management' +require_relative '../mobile_apps' +require_relative './count/count_request_builder' +require_relative './graph_managed_i_o_s_lob_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphManagedIOSLobApp + ## + # Casts the previous resource to managedIOSLobApp. + class GraphManagedIOSLobAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphManagedIOSLobApp::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphManagedIOSLobAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.managedIOSLobApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get the items of type microsoft.graph.managedIOSLobApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of managed_i_o_s_lob_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedIOSLobAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.managedIOSLobApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_managed_i_o_s_lob_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphManagedIOSLobAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the items of type microsoft.graph.managedIOSLobApp in the microsoft.graph.mobileApp collection + class GraphManagedIOSLobAppRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/graph_managed_mobile_lob_app/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/graph_managed_mobile_lob_app/count/count_request_builder.rb index 00bf0edad9..4ff85ef73f 100644 --- a/lib/device_app_management/mobile_apps/graph_managed_mobile_lob_app/count/count_request_builder.rb +++ b/lib/device_app_management/mobile_apps/graph_managed_mobile_lob_app/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.managedMobileLobApp/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.managedMobileLobApp/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/mobile_apps/graph_managed_mobile_lob_app/graph_managed_mobile_lob_app_request_builder.rb b/lib/device_app_management/mobile_apps/graph_managed_mobile_lob_app/graph_managed_mobile_lob_app_request_builder.rb index bfef12baf6..637593d3f2 100644 --- a/lib/device_app_management/mobile_apps/graph_managed_mobile_lob_app/graph_managed_mobile_lob_app_request_builder.rb +++ b/lib/device_app_management/mobile_apps/graph_managed_mobile_lob_app/graph_managed_mobile_lob_app_request_builder.rb @@ -27,7 +27,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.managedMobileLobApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.managedMobileLobApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.managedMobileLobApp in the microsoft.graph.mobileApp collection @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedMobileLobAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_managed_mobile_lob_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphManagedMobileLobAppRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.managedMobileLobApp in the microsoft.graph.mobileApp collection diff --git a/lib/me/calendar/calendar_view/count/count.rb b/lib/device_app_management/mobile_apps/graph_microsoft_store_for_business_app/count/count.rb similarity index 100% rename from lib/me/calendar/calendar_view/count/count.rb rename to lib/device_app_management/mobile_apps/graph_microsoft_store_for_business_app/count/count.rb diff --git a/lib/device_app_management/mobile_apps/graph_microsoft_store_for_business_app/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/graph_microsoft_store_for_business_app/count/count_request_builder.rb new file mode 100644 index 0000000000..072633f8c3 --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_microsoft_store_for_business_app/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../graph_microsoft_store_for_business_app' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphMicrosoftStoreForBusinessApp + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.microsoftStoreForBusinessApp/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/password_methods/password_methods.rb b/lib/device_app_management/mobile_apps/graph_microsoft_store_for_business_app/graph_microsoft_store_for_business_app.rb similarity index 100% rename from lib/me/authentication/password_methods/password_methods.rb rename to lib/device_app_management/mobile_apps/graph_microsoft_store_for_business_app/graph_microsoft_store_for_business_app.rb diff --git a/lib/device_app_management/mobile_apps/graph_microsoft_store_for_business_app/graph_microsoft_store_for_business_app_request_builder.rb b/lib/device_app_management/mobile_apps/graph_microsoft_store_for_business_app/graph_microsoft_store_for_business_app_request_builder.rb new file mode 100644 index 0000000000..3cbb9fa5be --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_microsoft_store_for_business_app/graph_microsoft_store_for_business_app_request_builder.rb @@ -0,0 +1,134 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/microsoft_store_for_business_app_collection_response' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../device_app_management' +require_relative '../mobile_apps' +require_relative './count/count_request_builder' +require_relative './graph_microsoft_store_for_business_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphMicrosoftStoreForBusinessApp + ## + # Casts the previous resource to microsoftStoreForBusinessApp. + class GraphMicrosoftStoreForBusinessAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphMicrosoftStoreForBusinessApp::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphMicrosoftStoreForBusinessAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.microsoftStoreForBusinessApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get the items of type microsoft.graph.microsoftStoreForBusinessApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of microsoft_store_for_business_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MicrosoftStoreForBusinessAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.microsoftStoreForBusinessApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_microsoft_store_for_business_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphMicrosoftStoreForBusinessAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the items of type microsoft.graph.microsoftStoreForBusinessApp in the microsoft.graph.mobileApp collection + class GraphMicrosoftStoreForBusinessAppRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/graph_mobile_lob_app/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/graph_mobile_lob_app/count/count_request_builder.rb deleted file mode 100644 index c32b51260c..0000000000 --- a/lib/device_app_management/mobile_apps/graph_mobile_lob_app/count/count_request_builder.rb +++ /dev/null @@ -1,92 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/o_data_errors_o_data_error' -require_relative '../../../device_app_management' -require_relative '../../mobile_apps' -require_relative '../graph_mobile_lob_app' -require_relative './count' - -module MicrosoftGraph - module DeviceAppManagement - module MobileApps - module GraphMobileLobApp - module Count - ## - # Provides operations to count the resources in the collection. - class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new CountRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.mobileLobApp/$count{?%24search,%24filter}") - end - ## - ## Get the number of the resource - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of integer - ## - def get(request_configuration=nil) - request_info = self.to_get_request_information( - request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, number, error_mapping) - end - ## - ## Get the number of the resource - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_get_request_information(request_configuration=nil) - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) - request_info.add_request_options(request_configuration.options) - end - return request_info - end - - ## - # Get the number of the resource - class CountRequestBuilderGetQueryParameters - - ## - # Filter items by property values - attr_accessor :filter - ## - # Search items by search phrases - attr_accessor :search - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "filter" - return "%24filter" - when "search" - return "%24search" - else - return original_name - end - end - end - end - end - end - end - end -end diff --git a/lib/device_app_management/mobile_apps/graph_mobile_lob_app/graph_mobile_lob_app_request_builder.rb b/lib/device_app_management/mobile_apps/graph_mobile_lob_app/graph_mobile_lob_app_request_builder.rb deleted file mode 100644 index cfeff5e62b..0000000000 --- a/lib/device_app_management/mobile_apps/graph_mobile_lob_app/graph_mobile_lob_app_request_builder.rb +++ /dev/null @@ -1,126 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/mobile_lob_app_collection_response' -require_relative '../../../models/o_data_errors_o_data_error' -require_relative '../../device_app_management' -require_relative '../mobile_apps' -require_relative './count/count_request_builder' -require_relative './graph_mobile_lob_app' - -module MicrosoftGraph - module DeviceAppManagement - module MobileApps - module GraphMobileLobApp - ## - # Casts the previous resource to mobileLobApp. - class GraphMobileLobAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - # Provides operations to count the resources in the collection. - def count() - return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphMobileLobApp::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - ## Instantiates a new GraphMobileLobAppRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.mobileLobApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") - end - ## - ## Get the items of type microsoft.graph.mobileLobApp in the microsoft.graph.mobileApp collection - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of mobile_lob_app_collection_response - ## - def get(request_configuration=nil) - request_info = self.to_get_request_information( - request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileLobAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Get the items of type microsoft.graph.mobileLobApp in the microsoft.graph.mobileApp collection - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_get_request_information(request_configuration=nil) - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) - request_info.add_request_options(request_configuration.options) - end - return request_info - end - - ## - # Get the items of type microsoft.graph.mobileLobApp in the microsoft.graph.mobileApp collection - class GraphMobileLobAppRequestBuilderGetQueryParameters - - ## - # Include count of items - attr_accessor :count - ## - # Expand related entities - attr_accessor :expand - ## - # Filter items by property values - attr_accessor :filter - ## - # Order items by property values - attr_accessor :orderby - ## - # Search items by search phrases - attr_accessor :search - ## - # Select properties to be returned - attr_accessor :select - ## - # Skip the first n items - attr_accessor :skip - ## - # Show only the first n items - attr_accessor :top - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "count" - return "%24count" - when "expand" - return "%24expand" - when "filter" - return "%24filter" - when "orderby" - return "%24orderby" - when "search" - return "%24search" - when "select" - return "%24select" - when "skip" - return "%24skip" - when "top" - return "%24top" - else - return original_name - end - end - end - end - end - end - end -end diff --git a/lib/me/calendar/calendar_view/item/attachments/count/count.rb b/lib/device_app_management/mobile_apps/graph_win32_lob_app/count/count.rb similarity index 100% rename from lib/me/calendar/calendar_view/item/attachments/count/count.rb rename to lib/device_app_management/mobile_apps/graph_win32_lob_app/count/count.rb diff --git a/lib/device_app_management/mobile_apps/graph_win32_lob_app/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/graph_win32_lob_app/count/count_request_builder.rb new file mode 100644 index 0000000000..e390877694 --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_win32_lob_app/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../graph_win32_lob_app' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphWin32LobApp + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.win32LobApp/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/phone_methods/item/disable_sms_sign_in/disable_sms_sign_in.rb b/lib/device_app_management/mobile_apps/graph_win32_lob_app/graph_win32_lob_app.rb similarity index 100% rename from lib/me/authentication/phone_methods/item/disable_sms_sign_in/disable_sms_sign_in.rb rename to lib/device_app_management/mobile_apps/graph_win32_lob_app/graph_win32_lob_app.rb diff --git a/lib/device_app_management/mobile_apps/graph_win32_lob_app/graph_win32_lob_app_request_builder.rb b/lib/device_app_management/mobile_apps/graph_win32_lob_app/graph_win32_lob_app_request_builder.rb new file mode 100644 index 0000000000..2f4263e41c --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_win32_lob_app/graph_win32_lob_app_request_builder.rb @@ -0,0 +1,134 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../../models/win32_lob_app_collection_response' +require_relative '../../device_app_management' +require_relative '../mobile_apps' +require_relative './count/count_request_builder' +require_relative './graph_win32_lob_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphWin32LobApp + ## + # Casts the previous resource to win32LobApp. + class GraphWin32LobAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphWin32LobApp::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphWin32LobAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.win32LobApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get the items of type microsoft.graph.win32LobApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of win32_lob_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Win32LobAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.win32LobApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_win32_lob_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphWin32LobAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the items of type microsoft.graph.win32LobApp in the microsoft.graph.mobileApp collection + class GraphWin32LobAppRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar_view/item/extensions/count/count.rb b/lib/device_app_management/mobile_apps/graph_windows_app_x/count/count.rb similarity index 100% rename from lib/me/calendar/calendar_view/item/extensions/count/count.rb rename to lib/device_app_management/mobile_apps/graph_windows_app_x/count/count.rb diff --git a/lib/device_app_management/mobile_apps/graph_windows_app_x/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/graph_windows_app_x/count/count_request_builder.rb new file mode 100644 index 0000000000..7336625132 --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_windows_app_x/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../graph_windows_app_x' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphWindowsAppX + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.windowsAppX/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/phone_methods/item/enable_sms_sign_in/enable_sms_sign_in.rb b/lib/device_app_management/mobile_apps/graph_windows_app_x/graph_windows_app_x.rb similarity index 100% rename from lib/me/authentication/phone_methods/item/enable_sms_sign_in/enable_sms_sign_in.rb rename to lib/device_app_management/mobile_apps/graph_windows_app_x/graph_windows_app_x.rb diff --git a/lib/device_app_management/mobile_apps/graph_windows_app_x/graph_windows_app_x_request_builder.rb b/lib/device_app_management/mobile_apps/graph_windows_app_x/graph_windows_app_x_request_builder.rb new file mode 100644 index 0000000000..c03a6e3c4f --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_windows_app_x/graph_windows_app_x_request_builder.rb @@ -0,0 +1,134 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../../models/windows_app_x_collection_response' +require_relative '../../device_app_management' +require_relative '../mobile_apps' +require_relative './count/count_request_builder' +require_relative './graph_windows_app_x' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphWindowsAppX + ## + # Casts the previous resource to windowsAppX. + class GraphWindowsAppXRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphWindowsAppX::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphWindowsAppXRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.windowsAppX{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get the items of type microsoft.graph.windowsAppX in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of windows_app_x_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsAppXCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.windowsAppX in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_windows_app_x_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphWindowsAppXRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the items of type microsoft.graph.windowsAppX in the microsoft.graph.mobileApp collection + class GraphWindowsAppXRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar_view/item/instances/count/count.rb b/lib/device_app_management/mobile_apps/graph_windows_mobile_m_s_i/count/count.rb similarity index 100% rename from lib/me/calendar/calendar_view/item/instances/count/count.rb rename to lib/device_app_management/mobile_apps/graph_windows_mobile_m_s_i/count/count.rb diff --git a/lib/device_app_management/mobile_apps/graph_windows_mobile_m_s_i/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/graph_windows_mobile_m_s_i/count/count_request_builder.rb new file mode 100644 index 0000000000..5786f1cb30 --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_windows_mobile_m_s_i/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../graph_windows_mobile_m_s_i' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphWindowsMobileMSI + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.windowsMobileMSI/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/phone_methods/item/item.rb b/lib/device_app_management/mobile_apps/graph_windows_mobile_m_s_i/graph_windows_mobile_m_s_i.rb similarity index 100% rename from lib/me/authentication/phone_methods/item/item.rb rename to lib/device_app_management/mobile_apps/graph_windows_mobile_m_s_i/graph_windows_mobile_m_s_i.rb diff --git a/lib/device_app_management/mobile_apps/graph_windows_mobile_m_s_i/graph_windows_mobile_m_s_i_request_builder.rb b/lib/device_app_management/mobile_apps/graph_windows_mobile_m_s_i/graph_windows_mobile_m_s_i_request_builder.rb new file mode 100644 index 0000000000..b753f75a3e --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_windows_mobile_m_s_i/graph_windows_mobile_m_s_i_request_builder.rb @@ -0,0 +1,134 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../../models/windows_mobile_m_s_i_collection_response' +require_relative '../../device_app_management' +require_relative '../mobile_apps' +require_relative './count/count_request_builder' +require_relative './graph_windows_mobile_m_s_i' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphWindowsMobileMSI + ## + # Casts the previous resource to windowsMobileMSI. + class GraphWindowsMobileMSIRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphWindowsMobileMSI::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphWindowsMobileMSIRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.windowsMobileMSI{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get the items of type microsoft.graph.windowsMobileMSI in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of windows_mobile_m_s_i_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsMobileMSICollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.windowsMobileMSI in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_windows_mobile_m_s_i_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphWindowsMobileMSIRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the items of type microsoft.graph.windowsMobileMSI in the microsoft.graph.mobileApp collection + class GraphWindowsMobileMSIRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar_view/item/instances/item/attachments/count/count.rb b/lib/device_app_management/mobile_apps/graph_windows_universal_app_x/count/count.rb similarity index 100% rename from lib/me/calendar/calendar_view/item/instances/item/attachments/count/count.rb rename to lib/device_app_management/mobile_apps/graph_windows_universal_app_x/count/count.rb diff --git a/lib/device_app_management/mobile_apps/graph_windows_universal_app_x/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/graph_windows_universal_app_x/count/count_request_builder.rb new file mode 100644 index 0000000000..32f14ed5a5 --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_windows_universal_app_x/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../graph_windows_universal_app_x' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphWindowsUniversalAppX + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.windowsUniversalAppX/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/phone_methods/phone_methods.rb b/lib/device_app_management/mobile_apps/graph_windows_universal_app_x/graph_windows_universal_app_x.rb similarity index 100% rename from lib/me/authentication/phone_methods/phone_methods.rb rename to lib/device_app_management/mobile_apps/graph_windows_universal_app_x/graph_windows_universal_app_x.rb diff --git a/lib/device_app_management/mobile_apps/graph_windows_universal_app_x/graph_windows_universal_app_x_request_builder.rb b/lib/device_app_management/mobile_apps/graph_windows_universal_app_x/graph_windows_universal_app_x_request_builder.rb new file mode 100644 index 0000000000..d97d1f780a --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_windows_universal_app_x/graph_windows_universal_app_x_request_builder.rb @@ -0,0 +1,134 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../../models/windows_universal_app_x_collection_response' +require_relative '../../device_app_management' +require_relative '../mobile_apps' +require_relative './count/count_request_builder' +require_relative './graph_windows_universal_app_x' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphWindowsUniversalAppX + ## + # Casts the previous resource to windowsUniversalAppX. + class GraphWindowsUniversalAppXRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphWindowsUniversalAppX::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphWindowsUniversalAppXRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.windowsUniversalAppX{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get the items of type microsoft.graph.windowsUniversalAppX in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of windows_universal_app_x_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsUniversalAppXCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.windowsUniversalAppX in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_windows_universal_app_x_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphWindowsUniversalAppXRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the items of type microsoft.graph.windowsUniversalAppX in the microsoft.graph.mobileApp collection + class GraphWindowsUniversalAppXRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar_view/item/instances/item/extensions/count/count.rb b/lib/device_app_management/mobile_apps/graph_windows_web_app/count/count.rb similarity index 100% rename from lib/me/calendar/calendar_view/item/instances/item/extensions/count/count.rb rename to lib/device_app_management/mobile_apps/graph_windows_web_app/count/count.rb diff --git a/lib/device_app_management/mobile_apps/graph_windows_web_app/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/graph_windows_web_app/count/count_request_builder.rb new file mode 100644 index 0000000000..6b9b781cee --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_windows_web_app/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../graph_windows_web_app' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphWindowsWebApp + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.windowsWebApp/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/software_oath_methods/item/item.rb b/lib/device_app_management/mobile_apps/graph_windows_web_app/graph_windows_web_app.rb similarity index 100% rename from lib/me/authentication/software_oath_methods/item/item.rb rename to lib/device_app_management/mobile_apps/graph_windows_web_app/graph_windows_web_app.rb diff --git a/lib/device_app_management/mobile_apps/graph_windows_web_app/graph_windows_web_app_request_builder.rb b/lib/device_app_management/mobile_apps/graph_windows_web_app/graph_windows_web_app_request_builder.rb new file mode 100644 index 0000000000..1879b58fc7 --- /dev/null +++ b/lib/device_app_management/mobile_apps/graph_windows_web_app/graph_windows_web_app_request_builder.rb @@ -0,0 +1,134 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../../models/windows_web_app_collection_response' +require_relative '../../device_app_management' +require_relative '../mobile_apps' +require_relative './count/count_request_builder' +require_relative './graph_windows_web_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module GraphWindowsWebApp + ## + # Casts the previous resource to windowsWebApp. + class GraphWindowsWebAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphWindowsWebApp::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphWindowsWebAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/graph.windowsWebApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get the items of type microsoft.graph.windowsWebApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of windows_web_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsWebAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.windowsWebApp in the microsoft.graph.mobileApp collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_windows_web_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphWindowsWebAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the items of type microsoft.graph.windowsWebApp in the microsoft.graph.mobileApp collection + class GraphWindowsWebAppRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/assign/assign_post_request_body.rb b/lib/device_app_management/mobile_apps/item/assign/assign_post_request_body.rb index 95ab01d1e5..66d282c0b0 100644 --- a/lib/device_app_management/mobile_apps/item/assign/assign_post_request_body.rb +++ b/lib/device_app_management/mobile_apps/item/assign/assign_post_request_body.rb @@ -20,22 +20,22 @@ class AssignPostRequestBody # The mobileAppAssignments property @mobile_app_assignments ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new assignPostRequestBody and sets the default values. + ## Instantiates a new AssignPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_app_management/mobile_apps/item/assign/assign_request_builder.rb b/lib/device_app_management/mobile_apps/item/assign/assign_request_builder.rb index fceb784c1b..dafe315906 100644 --- a/lib/device_app_management/mobile_apps/item/assign/assign_request_builder.rb +++ b/lib/device_app_management/mobile_apps/item/assign/assign_request_builder.rb @@ -25,7 +25,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/assign") end ## - ## Not yet documented + ## Invoke action assign ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -36,12 +36,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Not yet documented + ## Invoke action assign ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assign_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_app_management/mobile_apps/item/assignments/assignments_request_builder.rb b/lib/device_app_management/mobile_apps/item/assignments/assignments_request_builder.rb index d6b22a8925..e260bed4c0 100644 --- a/lib/device_app_management/mobile_apps/item/assignments/assignments_request_builder.rb +++ b/lib/device_app_management/mobile_apps/item/assignments/assignments_request_builder.rb @@ -42,7 +42,7 @@ def by_mobile_app_assignment_id(mobile_app_assignment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the mobileAppAssignment objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the mobileAppAssignment objects. diff --git a/lib/device_app_management/mobile_apps/item/assignments/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/assignments/count/count_request_builder.rb index 7825131bfe..5d968ec78a 100644 --- a/lib/device_app_management/mobile_apps/item/assignments/count/count_request_builder.rb +++ b/lib/device_app_management/mobile_apps/item/assignments/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/assignments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/assignments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/mobile_apps/item/assignments/item/mobile_app_assignment_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/assignments/item/mobile_app_assignment_item_request_builder.rb index 697bfaf2a2..2ac08511b3 100644 --- a/lib/device_app_management/mobile_apps/item/assignments/item/mobile_app_assignment_item_request_builder.rb +++ b/lib/device_app_management/mobile_apps/item/assignments/item/mobile_app_assignment_item_request_builder.rb @@ -25,7 +25,7 @@ class MobileAppAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}") end ## ## Deletes a mobileAppAssignment. @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the mobileAppAssignment object. diff --git a/lib/device_app_management/mobile_apps/item/categories/categories_request_builder.rb b/lib/device_app_management/mobile_apps/item/categories/categories_request_builder.rb index 504cbf7912..e653cc4963 100644 --- a/lib/device_app_management/mobile_apps/item/categories/categories_request_builder.rb +++ b/lib/device_app_management/mobile_apps/item/categories/categories_request_builder.rb @@ -41,7 +41,7 @@ def by_mobile_app_category_id(mobile_app_category_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The list of categories for this app. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CategoriesRequestBuilder.new(raw_url, @request_adapter) + end ## # The list of categories for this app. diff --git a/lib/device_app_management/mobile_apps/item/categories/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/categories/count/count_request_builder.rb index 69f2f0e6ca..093b2f773b 100644 --- a/lib/device_app_management/mobile_apps/item/categories/count/count_request_builder.rb +++ b/lib/device_app_management/mobile_apps/item/categories/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/categories/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/categories/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/mobile_apps/item/categories/item/mobile_app_category_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/categories/item/mobile_app_category_item_request_builder.rb index e7a0ddebc4..87177d9a36 100644 --- a/lib/device_app_management/mobile_apps/item/categories/item/mobile_app_category_item_request_builder.rb +++ b/lib/device_app_management/mobile_apps/item/categories/item/mobile_app_category_item_request_builder.rb @@ -25,7 +25,7 @@ class MobileAppCategoryItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/categories/{mobileAppCategory%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/categories/{mobileAppCategory%2Did}{?%24expand,%24select}") end ## ## The list of categories for this app. @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_category_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppCategoryItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The list of categories for this app. diff --git a/lib/me/authentication/software_oath_methods/software_oath_methods.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/assignments/assignments.rb similarity index 100% rename from lib/me/authentication/software_oath_methods/software_oath_methods.rb rename to lib/device_app_management/mobile_apps/item/graph_android_lob_app/assignments/assignments.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_lob_app/assignments/assignments_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/assignments/assignments_request_builder.rb new file mode 100644 index 0000000000..38f6b29f99 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/assignments/assignments_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_assignment' +require_relative '../../../../../models/mobile_app_assignment_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_android_lob_app' +require_relative './assignments' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_assignment_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidLobApp + module Assignments + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class AssignmentsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidLobApp::Assignments::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_assignment_id The unique identifier of mobileAppAssignment + ## @return a mobile_app_assignment_item_request_builder + ## + def by_mobile_app_assignment_id(mobile_app_assignment_id) + raise StandardError, 'mobile_app_assignment_id cannot be null' if mobile_app_assignment_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppAssignment%2Did"] = mobile_app_assignment_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidLobApp::Assignments::Item::MobileAppAssignmentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AssignmentsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class AssignmentsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/events/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/assignments/count/count.rb similarity index 100% rename from lib/me/calendar/events/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_android_lob_app/assignments/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_lob_app/assignments/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/assignments/count/count_request_builder.rb new file mode 100644 index 0000000000..b1fa5ce723 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/assignments/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_android_lob_app' +require_relative '../assignments' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidLobApp + module Assignments + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/assignments/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/temporary_access_pass_methods/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/assignments/item/item.rb similarity index 100% rename from lib/me/authentication/temporary_access_pass_methods/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_android_lob_app/assignments/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_lob_app/assignments/item/mobile_app_assignment_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/assignments/item/mobile_app_assignment_item_request_builder.rb new file mode 100644 index 0000000000..1703b01b45 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/assignments/item/mobile_app_assignment_item_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_assignment' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_android_lob_app' +require_relative '../assignments' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidLobApp + module Assignments + module Item + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class MobileAppAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class MobileAppAssignmentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/temporary_access_pass_methods/temporary_access_pass_methods.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/categories/categories.rb similarity index 100% rename from lib/me/authentication/temporary_access_pass_methods/temporary_access_pass_methods.rb rename to lib/device_app_management/mobile_apps/item/graph_android_lob_app/categories/categories.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_lob_app/categories/categories_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/categories/categories_request_builder.rb new file mode 100644 index 0000000000..ab1d23db89 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/categories/categories_request_builder.rb @@ -0,0 +1,152 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_category_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_android_lob_app' +require_relative './categories' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_category_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidLobApp + module Categories + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class CategoriesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidLobApp::Categories::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_category_id The unique identifier of mobileAppCategory + ## @return a mobile_app_category_item_request_builder + ## + def by_mobile_app_category_id(mobile_app_category_id) + raise StandardError, 'mobile_app_category_id cannot be null' if mobile_app_category_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppCategory%2Did"] = mobile_app_category_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidLobApp::Categories::Item::MobileAppCategoryItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new CategoriesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CategoriesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class CategoriesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/events/item/attachments/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/categories/count/count.rb similarity index 100% rename from lib/me/calendar/events/item/attachments/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_android_lob_app/categories/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_lob_app/categories/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/categories/count/count_request_builder.rb new file mode 100644 index 0000000000..8d63a8e781 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/categories/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_android_lob_app' +require_relative '../categories' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidLobApp + module Categories + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/categories/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/windows_hello_for_business_methods/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/categories/item/item.rb similarity index 100% rename from lib/me/authentication/windows_hello_for_business_methods/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_android_lob_app/categories/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_lob_app/categories/item/mobile_app_category_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/categories/item/mobile_app_category_item_request_builder.rb new file mode 100644 index 0000000000..12fb8eb2f5 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/categories/item/mobile_app_category_item_request_builder.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_category' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_android_lob_app' +require_relative '../categories' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidLobApp + module Categories + module Item + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class MobileAppCategoryItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategory.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_category_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppCategoryItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class MobileAppCategoryItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/windows_hello_for_business_methods/item/device/device.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/content_versions.rb similarity index 100% rename from lib/me/authentication/windows_hello_for_business_methods/item/device/device.rb rename to lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/content_versions.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/content_versions_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/content_versions_request_builder.rb new file mode 100644 index 0000000000..a31ad89566 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/content_versions_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_content' +require_relative '../../../../../models/mobile_app_content_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_android_lob_app' +require_relative './content_versions' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_content_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidLobApp + module ContentVersions + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + class ContentVersionsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidLobApp::ContentVersions::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + ## @param mobile_app_content_id The unique identifier of mobileAppContent + ## @return a mobile_app_content_item_request_builder + ## + def by_mobile_app_content_id(mobile_app_content_id) + raise StandardError, 'mobile_app_content_id cannot be null' if mobile_app_content_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppContent%2Did"] = mobile_app_content_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidLobApp::ContentVersions::Item::MobileAppContentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ContentVersionsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to contentVersions for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to contentVersions for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_versions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentVersionsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of content versions for this app. + class ContentVersionsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/events/item/extensions/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/count/count.rb similarity index 100% rename from lib/me/calendar/events/item/extensions/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/count/count_request_builder.rb new file mode 100644 index 0000000000..9cdcd02971 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_android_lob_app' +require_relative '../content_versions' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidLobApp + module ContentVersions + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/authentication/windows_hello_for_business_methods/windows_hello_for_business_methods.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/contained_apps/contained_apps.rb similarity index 100% rename from lib/me/authentication/windows_hello_for_business_methods/windows_hello_for_business_methods.rb rename to lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/contained_apps/contained_apps.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/contained_apps/contained_apps_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/contained_apps/contained_apps_request_builder.rb new file mode 100644 index 0000000000..be124bcb4a --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/contained_apps/contained_apps_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/mobile_contained_app' +require_relative '../../../../../../../models/mobile_contained_app_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../device_app_management' +require_relative '../../../../../mobile_apps' +require_relative '../../../../item' +require_relative '../../../graph_android_lob_app' +require_relative '../../content_versions' +require_relative '../item' +require_relative './contained_apps' +require_relative './count/count_request_builder' +require_relative './item/mobile_contained_app_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidLobApp + module ContentVersions + module Item + module ContainedApps + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + class ContainedAppsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidLobApp::ContentVersions::Item::ContainedApps::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + ## @param mobile_contained_app_id The unique identifier of mobileContainedApp + ## @return a mobile_contained_app_item_request_builder + ## + def by_mobile_contained_app_id(mobile_contained_app_id) + raise StandardError, 'mobile_contained_app_id cannot be null' if mobile_contained_app_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileContainedApp%2Did"] = mobile_contained_app_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidLobApp::ContentVersions::Item::ContainedApps::Item::MobileContainedAppItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ContainedAppsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to containedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to containedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a contained_apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContainedAppsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in a MobileLobApp acting as a package. + class ContainedAppsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/events/item/instances/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/contained_apps/count/count.rb similarity index 100% rename from lib/me/calendar/events/item/instances/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/contained_apps/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/contained_apps/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/contained_apps/count/count_request_builder.rb new file mode 100644 index 0000000000..eb2d4bf6c3 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/contained_apps/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_android_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../contained_apps' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidLobApp + module ContentVersions + module Item + module ContainedApps + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar_permissions/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/contained_apps/item/item.rb similarity index 100% rename from lib/me/calendar/calendar_permissions/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/contained_apps/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb new file mode 100644 index 0000000000..afa061add8 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb @@ -0,0 +1,178 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mobile_contained_app' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_android_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../contained_apps' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidLobApp + module ContentVersions + module Item + module ContainedApps + module Item + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + class MobileContainedAppItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property containedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property containedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property containedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property containedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_contained_app_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileContainedAppItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in a MobileLobApp acting as a package. + class MobileContainedAppItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/events/item/instances/item/attachments/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/count/count.rb similarity index 100% rename from lib/me/calendar/events/item/instances/item/attachments/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/count/count_request_builder.rb new file mode 100644 index 0000000000..bf21bbc6bf --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_android_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../files' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidLobApp + module ContentVersions + module Item + module Files + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/files.rb similarity index 100% rename from lib/me/calendar/calendar.rb rename to lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/files.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/files_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/files_request_builder.rb new file mode 100644 index 0000000000..47dd55d6c4 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/files_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/mobile_app_content_file' +require_relative '../../../../../../../models/mobile_app_content_file_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../device_app_management' +require_relative '../../../../../mobile_apps' +require_relative '../../../../item' +require_relative '../../../graph_android_lob_app' +require_relative '../../content_versions' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './files' +require_relative './item/mobile_app_content_file_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidLobApp + module ContentVersions + module Item + module Files + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + class FilesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidLobApp::ContentVersions::Item::Files::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + ## @param mobile_app_content_file_id The unique identifier of mobileAppContentFile + ## @return a mobile_app_content_file_item_request_builder + ## + def by_mobile_app_content_file_id(mobile_app_content_file_id) + raise StandardError, 'mobile_app_content_file_id cannot be null' if mobile_app_content_file_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppContentFile%2Did"] = mobile_app_content_file_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidLobApp::ContentVersions::Item::Files::Item::MobileAppContentFileItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new FilesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFileCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to files for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to files for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a files_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of files for this app content version. + class FilesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/item/commit/commit.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/item/commit/commit.rb new file mode 100644 index 0000000000..b61410499d --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/item/commit/commit.rb @@ -0,0 +1 @@ +require_relative 'commit_post_request_body' diff --git a/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/item/commit/commit_post_request_body.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/item/commit/commit_post_request_body.rb new file mode 100644 index 0000000000..8c8bd259f2 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/item/commit/commit_post_request_body.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/file_encryption_info' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_android_lob_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './commit' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidLobApp + module ContentVersions + module Item + module Files + module Item + module Commit + class CommitPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The fileEncryptionInfo property + @file_encryption_info + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new CommitPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a commit_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CommitPostRequestBody.new + end + ## + ## Gets the fileEncryptionInfo property value. The fileEncryptionInfo property + ## @return a file_encryption_info + ## + def file_encryption_info + return @file_encryption_info + end + ## + ## Sets the fileEncryptionInfo property value. The fileEncryptionInfo property + ## @param value Value to set for the fileEncryptionInfo property. + ## @return a void + ## + def file_encryption_info=(value) + @file_encryption_info = value + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "fileEncryptionInfo" => lambda {|n| @file_encryption_info = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::FileEncryptionInfo.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_object_value("fileEncryptionInfo", @file_encryption_info) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/item/commit/commit_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/item/commit/commit_request_builder.rb new file mode 100644 index 0000000000..ab5a84fe07 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/item/commit/commit_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_android_lob_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './commit' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidLobApp + module ContentVersions + module Item + module Files + module Item + module Commit + ## + # Provides operations to call the commit method. + class CommitRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CommitRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit") + end + ## + ## Commits a file of a given app. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Commits a file of a given app. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a commit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CommitRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar_view/item/attachments/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/item/item.rb similarity index 100% rename from lib/me/calendar/calendar_view/item/attachments/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb new file mode 100644 index 0000000000..e265b7b0c1 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb @@ -0,0 +1,190 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mobile_app_content_file' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_android_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../files' +require_relative './commit/commit_request_builder' +require_relative './item' +require_relative './renew_upload/renew_upload_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidLobApp + module ContentVersions + module Item + module Files + module Item + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + class MobileAppContentFileItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the commit method. + def commit() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidLobApp::ContentVersions::Item::Files::Item::Commit::CommitRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the renewUpload method. + def renew_upload() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidLobApp::ContentVersions::Item::Files::Item::RenewUpload::RenewUploadRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property files for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property files in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property files for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property files in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_content_file_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppContentFileItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of files for this app content version. + class MobileAppContentFileItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar_permissions/calendar_permissions.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/item/renew_upload/renew_upload.rb similarity index 100% rename from lib/me/calendar/calendar_permissions/calendar_permissions.rb rename to lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/item/renew_upload/renew_upload.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb new file mode 100644 index 0000000000..08ee2ff631 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_android_lob_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './renew_upload' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidLobApp + module ContentVersions + module Item + module Files + module Item + module RenewUpload + ## + # Provides operations to call the renewUpload method. + class RenewUploadRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RenewUploadRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload") + end + ## + ## Renews the SAS URI for an application file upload. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Renews the SAS URI for an application file upload. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a renew_upload_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RenewUploadRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar_view/item/extensions/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/item.rb similarity index 100% rename from lib/me/calendar/calendar_view/item/extensions/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/mobile_app_content_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/mobile_app_content_item_request_builder.rb new file mode 100644 index 0000000000..8b34c443d9 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/content_versions/item/mobile_app_content_item_request_builder.rb @@ -0,0 +1,184 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_content' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_android_lob_app' +require_relative '../content_versions' +require_relative './contained_apps/contained_apps_request_builder' +require_relative './files/files_request_builder' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidLobApp + module ContentVersions + module Item + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + class MobileAppContentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + def contained_apps() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidLobApp::ContentVersions::Item::ContainedApps::ContainedAppsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + def files() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidLobApp::ContentVersions::Item::Files::FilesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property contentVersions for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property contentVersions in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property contentVersions for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property contentVersions in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_content_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppContentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of content versions for this app. + class MobileAppContentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar_view/calendar_view.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/graph_android_lob_app.rb similarity index 100% rename from lib/me/calendar/calendar_view/calendar_view.rb rename to lib/device_app_management/mobile_apps/item/graph_android_lob_app/graph_android_lob_app.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_lob_app/graph_android_lob_app_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/graph_android_lob_app_request_builder.rb new file mode 100644 index 0000000000..9236717035 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_lob_app/graph_android_lob_app_request_builder.rb @@ -0,0 +1,119 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/android_lob_app' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../item' +require_relative './assignments/assignments_request_builder' +require_relative './categories/categories_request_builder' +require_relative './content_versions/content_versions_request_builder' +require_relative './graph_android_lob_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidLobApp + ## + # Casts the previous resource to androidLobApp. + class GraphAndroidLobAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + def assignments() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidLobApp::Assignments::AssignmentsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + def categories() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidLobApp::Categories::CategoriesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + def content_versions() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidLobApp::ContentVersions::ContentVersionsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphAndroidLobAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp{?%24expand,%24select}") + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.androidLobApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of android_lob_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AndroidLobApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.androidLobApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_android_lob_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAndroidLobAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the item of type microsoft.graph.mobileApp as microsoft.graph.androidLobApp + class GraphAndroidLobAppRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar_view/item/attachments/attachments.rb b/lib/device_app_management/mobile_apps/item/graph_android_store_app/assignments/assignments.rb similarity index 100% rename from lib/me/calendar/calendar_view/item/attachments/attachments.rb rename to lib/device_app_management/mobile_apps/item/graph_android_store_app/assignments/assignments.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_store_app/assignments/assignments_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_store_app/assignments/assignments_request_builder.rb new file mode 100644 index 0000000000..69b8ad8027 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_store_app/assignments/assignments_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_assignment' +require_relative '../../../../../models/mobile_app_assignment_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_android_store_app' +require_relative './assignments' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_assignment_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidStoreApp + module Assignments + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class AssignmentsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidStoreApp::Assignments::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_assignment_id The unique identifier of mobileAppAssignment + ## @return a mobile_app_assignment_item_request_builder + ## + def by_mobile_app_assignment_id(mobile_app_assignment_id) + raise StandardError, 'mobile_app_assignment_id cannot be null' if mobile_app_assignment_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppAssignment%2Did"] = mobile_app_assignment_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidStoreApp::Assignments::Item::MobileAppAssignmentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AssignmentsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class AssignmentsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/events/item/instances/item/extensions/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_android_store_app/assignments/count/count.rb similarity index 100% rename from lib/me/calendar/events/item/instances/item/extensions/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_android_store_app/assignments/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_store_app/assignments/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_store_app/assignments/count/count_request_builder.rb new file mode 100644 index 0000000000..c9d79e7c3c --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_store_app/assignments/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_android_store_app' +require_relative '../assignments' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidStoreApp + module Assignments + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/assignments/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar_view/item/instances/item/attachments/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_android_store_app/assignments/item/item.rb similarity index 100% rename from lib/me/calendar/calendar_view/item/instances/item/attachments/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_android_store_app/assignments/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_store_app/assignments/item/mobile_app_assignment_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_store_app/assignments/item/mobile_app_assignment_item_request_builder.rb new file mode 100644 index 0000000000..6ddf75f8b3 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_store_app/assignments/item/mobile_app_assignment_item_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_assignment' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_android_store_app' +require_relative '../assignments' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidStoreApp + module Assignments + module Item + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class MobileAppAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class MobileAppAssignmentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar_view/item/calendar/calendar.rb b/lib/device_app_management/mobile_apps/item/graph_android_store_app/categories/categories.rb similarity index 100% rename from lib/me/calendar/calendar_view/item/calendar/calendar.rb rename to lib/device_app_management/mobile_apps/item/graph_android_store_app/categories/categories.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_store_app/categories/categories_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_store_app/categories/categories_request_builder.rb new file mode 100644 index 0000000000..fb8ead4503 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_store_app/categories/categories_request_builder.rb @@ -0,0 +1,152 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_category_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_android_store_app' +require_relative './categories' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_category_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidStoreApp + module Categories + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class CategoriesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidStoreApp::Categories::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_category_id The unique identifier of mobileAppCategory + ## @return a mobile_app_category_item_request_builder + ## + def by_mobile_app_category_id(mobile_app_category_id) + raise StandardError, 'mobile_app_category_id cannot be null' if mobile_app_category_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppCategory%2Did"] = mobile_app_category_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidStoreApp::Categories::Item::MobileAppCategoryItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new CategoriesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CategoriesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class CategoriesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_android_store_app/categories/count/count.rb similarity index 100% rename from lib/me/calendar_groups/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_android_store_app/categories/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_store_app/categories/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_store_app/categories/count/count_request_builder.rb new file mode 100644 index 0000000000..d32651b066 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_store_app/categories/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_android_store_app' +require_relative '../categories' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidStoreApp + module Categories + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/categories/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar_view/item/instances/item/extensions/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_android_store_app/categories/item/item.rb similarity index 100% rename from lib/me/calendar/calendar_view/item/instances/item/extensions/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_android_store_app/categories/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_store_app/categories/item/mobile_app_category_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_store_app/categories/item/mobile_app_category_item_request_builder.rb new file mode 100644 index 0000000000..9ef9607318 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_store_app/categories/item/mobile_app_category_item_request_builder.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_category' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_android_store_app' +require_relative '../categories' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidStoreApp + module Categories + module Item + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class MobileAppCategoryItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategory.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_category_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppCategoryItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class MobileAppCategoryItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar_view/item/dismiss_reminder/dismiss_reminder.rb b/lib/device_app_management/mobile_apps/item/graph_android_store_app/graph_android_store_app.rb similarity index 100% rename from lib/me/calendar/calendar_view/item/dismiss_reminder/dismiss_reminder.rb rename to lib/device_app_management/mobile_apps/item/graph_android_store_app/graph_android_store_app.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_android_store_app/graph_android_store_app_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_android_store_app/graph_android_store_app_request_builder.rb new file mode 100644 index 0000000000..deafbff63d --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_android_store_app/graph_android_store_app_request_builder.rb @@ -0,0 +1,113 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/android_store_app' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../item' +require_relative './assignments/assignments_request_builder' +require_relative './categories/categories_request_builder' +require_relative './graph_android_store_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphAndroidStoreApp + ## + # Casts the previous resource to androidStoreApp. + class GraphAndroidStoreAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + def assignments() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidStoreApp::Assignments::AssignmentsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + def categories() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidStoreApp::Categories::CategoriesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphAndroidStoreAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp{?%24expand,%24select}") + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.androidStoreApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of android_store_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AndroidStoreApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.androidStoreApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_android_store_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAndroidStoreAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the item of type microsoft.graph.mobileApp as microsoft.graph.androidStoreApp + class GraphAndroidStoreAppRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar_view/item/extensions/extensions.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/assignments/assignments.rb similarity index 100% rename from lib/me/calendar/calendar_view/item/extensions/extensions.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_lob_app/assignments/assignments.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/assignments/assignments_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/assignments/assignments_request_builder.rb new file mode 100644 index 0000000000..03b604704a --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/assignments/assignments_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_assignment' +require_relative '../../../../../models/mobile_app_assignment_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_ios_lob_app' +require_relative './assignments' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_assignment_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosLobApp + module Assignments + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class AssignmentsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosLobApp::Assignments::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_assignment_id The unique identifier of mobileAppAssignment + ## @return a mobile_app_assignment_item_request_builder + ## + def by_mobile_app_assignment_id(mobile_app_assignment_id) + raise StandardError, 'mobile_app_assignment_id cannot be null' if mobile_app_assignment_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppAssignment%2Did"] = mobile_app_assignment_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosLobApp::Assignments::Item::MobileAppAssignmentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AssignmentsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class AssignmentsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/assignments/count/count.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_lob_app/assignments/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/assignments/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/assignments/count/count_request_builder.rb new file mode 100644 index 0000000000..3debfcb8b0 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/assignments/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_ios_lob_app' +require_relative '../assignments' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosLobApp + module Assignments + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/assignments/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar_view/item/instances/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/assignments/item/item.rb similarity index 100% rename from lib/me/calendar/calendar_view/item/instances/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_lob_app/assignments/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/assignments/item/mobile_app_assignment_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/assignments/item/mobile_app_assignment_item_request_builder.rb new file mode 100644 index 0000000000..c6046559b8 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/assignments/item/mobile_app_assignment_item_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_assignment' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_ios_lob_app' +require_relative '../assignments' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosLobApp + module Assignments + module Item + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class MobileAppAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class MobileAppAssignmentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar_view/item/instances/instances.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/categories/categories.rb similarity index 100% rename from lib/me/calendar/calendar_view/item/instances/instances.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_lob_app/categories/categories.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/categories/categories_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/categories/categories_request_builder.rb new file mode 100644 index 0000000000..bf85ac01aa --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/categories/categories_request_builder.rb @@ -0,0 +1,152 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_category_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_ios_lob_app' +require_relative './categories' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_category_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosLobApp + module Categories + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class CategoriesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosLobApp::Categories::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_category_id The unique identifier of mobileAppCategory + ## @return a mobile_app_category_item_request_builder + ## + def by_mobile_app_category_id(mobile_app_category_id) + raise StandardError, 'mobile_app_category_id cannot be null' if mobile_app_category_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppCategory%2Did"] = mobile_app_category_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosLobApp::Categories::Item::MobileAppCategoryItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new CategoriesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CategoriesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class CategoriesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_permissions/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/categories/count/count.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_permissions/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_lob_app/categories/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/categories/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/categories/count/count_request_builder.rb new file mode 100644 index 0000000000..22f9fb6407 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/categories/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_ios_lob_app' +require_relative '../categories' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosLobApp + module Categories + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/categories/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar_view/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/categories/item/item.rb similarity index 100% rename from lib/me/calendar/calendar_view/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_lob_app/categories/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/categories/item/mobile_app_category_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/categories/item/mobile_app_category_item_request_builder.rb new file mode 100644 index 0000000000..ff839e6c49 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/categories/item/mobile_app_category_item_request_builder.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_category' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_ios_lob_app' +require_relative '../categories' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosLobApp + module Categories + module Item + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class MobileAppCategoryItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategory.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_category_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppCategoryItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class MobileAppCategoryItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar_view/item/instances/item/attachments/attachments.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/content_versions.rb similarity index 100% rename from lib/me/calendar/calendar_view/item/instances/item/attachments/attachments.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/content_versions.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/content_versions_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/content_versions_request_builder.rb new file mode 100644 index 0000000000..0e9b5eae24 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/content_versions_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_content' +require_relative '../../../../../models/mobile_app_content_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_ios_lob_app' +require_relative './content_versions' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_content_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosLobApp + module ContentVersions + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + class ContentVersionsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosLobApp::ContentVersions::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + ## @param mobile_app_content_id The unique identifier of mobileAppContent + ## @return a mobile_app_content_item_request_builder + ## + def by_mobile_app_content_id(mobile_app_content_id) + raise StandardError, 'mobile_app_content_id cannot be null' if mobile_app_content_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppContent%2Did"] = mobile_app_content_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosLobApp::ContentVersions::Item::MobileAppContentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ContentVersionsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to contentVersions for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to contentVersions for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_versions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentVersionsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of content versions for this app. + class ContentVersionsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/count/count.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_view/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/count/count_request_builder.rb new file mode 100644 index 0000000000..82c1769f2c --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_ios_lob_app' +require_relative '../content_versions' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosLobApp + module ContentVersions + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar_view/item/instances/item/calendar/calendar.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/contained_apps/contained_apps.rb similarity index 100% rename from lib/me/calendar/calendar_view/item/instances/item/calendar/calendar.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/contained_apps/contained_apps.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/contained_apps/contained_apps_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/contained_apps/contained_apps_request_builder.rb new file mode 100644 index 0000000000..aaef05fd4b --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/contained_apps/contained_apps_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/mobile_contained_app' +require_relative '../../../../../../../models/mobile_contained_app_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../device_app_management' +require_relative '../../../../../mobile_apps' +require_relative '../../../../item' +require_relative '../../../graph_ios_lob_app' +require_relative '../../content_versions' +require_relative '../item' +require_relative './contained_apps' +require_relative './count/count_request_builder' +require_relative './item/mobile_contained_app_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosLobApp + module ContentVersions + module Item + module ContainedApps + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + class ContainedAppsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosLobApp::ContentVersions::Item::ContainedApps::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + ## @param mobile_contained_app_id The unique identifier of mobileContainedApp + ## @return a mobile_contained_app_item_request_builder + ## + def by_mobile_contained_app_id(mobile_contained_app_id) + raise StandardError, 'mobile_contained_app_id cannot be null' if mobile_contained_app_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileContainedApp%2Did"] = mobile_contained_app_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosLobApp::ContentVersions::Item::ContainedApps::Item::MobileContainedAppItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ContainedAppsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to containedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to containedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a contained_apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContainedAppsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in a MobileLobApp acting as a package. + class ContainedAppsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/attachments/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/contained_apps/count/count.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_view/item/attachments/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/contained_apps/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/contained_apps/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/contained_apps/count/count_request_builder.rb new file mode 100644 index 0000000000..bb04c89de3 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/contained_apps/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_ios_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../contained_apps' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosLobApp + module ContentVersions + module Item + module ContainedApps + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/events/item/attachments/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/contained_apps/item/item.rb similarity index 100% rename from lib/me/calendar/events/item/attachments/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/contained_apps/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb new file mode 100644 index 0000000000..27780d0858 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb @@ -0,0 +1,178 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mobile_contained_app' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_ios_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../contained_apps' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosLobApp + module ContentVersions + module Item + module ContainedApps + module Item + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + class MobileContainedAppItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property containedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property containedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property containedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property containedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_contained_app_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileContainedAppItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in a MobileLobApp acting as a package. + class MobileContainedAppItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/extensions/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/count/count.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_view/item/extensions/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/count/count_request_builder.rb new file mode 100644 index 0000000000..c80c612838 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_ios_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../files' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosLobApp + module ContentVersions + module Item + module Files + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar_view/item/instances/item/dismiss_reminder/dismiss_reminder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/files.rb similarity index 100% rename from lib/me/calendar/calendar_view/item/instances/item/dismiss_reminder/dismiss_reminder.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/files.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/files_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/files_request_builder.rb new file mode 100644 index 0000000000..30bcf92b51 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/files_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/mobile_app_content_file' +require_relative '../../../../../../../models/mobile_app_content_file_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../device_app_management' +require_relative '../../../../../mobile_apps' +require_relative '../../../../item' +require_relative '../../../graph_ios_lob_app' +require_relative '../../content_versions' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './files' +require_relative './item/mobile_app_content_file_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosLobApp + module ContentVersions + module Item + module Files + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + class FilesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosLobApp::ContentVersions::Item::Files::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + ## @param mobile_app_content_file_id The unique identifier of mobileAppContentFile + ## @return a mobile_app_content_file_item_request_builder + ## + def by_mobile_app_content_file_id(mobile_app_content_file_id) + raise StandardError, 'mobile_app_content_file_id cannot be null' if mobile_app_content_file_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppContentFile%2Did"] = mobile_app_content_file_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosLobApp::ContentVersions::Item::Files::Item::MobileAppContentFileItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new FilesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFileCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to files for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to files for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a files_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of files for this app content version. + class FilesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/item/commit/commit.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/item/commit/commit.rb new file mode 100644 index 0000000000..b61410499d --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/item/commit/commit.rb @@ -0,0 +1 @@ +require_relative 'commit_post_request_body' diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/item/commit/commit_post_request_body.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/item/commit/commit_post_request_body.rb new file mode 100644 index 0000000000..f41dfcb2bd --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/item/commit/commit_post_request_body.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/file_encryption_info' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_ios_lob_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './commit' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosLobApp + module ContentVersions + module Item + module Files + module Item + module Commit + class CommitPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The fileEncryptionInfo property + @file_encryption_info + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new CommitPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a commit_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CommitPostRequestBody.new + end + ## + ## Gets the fileEncryptionInfo property value. The fileEncryptionInfo property + ## @return a file_encryption_info + ## + def file_encryption_info + return @file_encryption_info + end + ## + ## Sets the fileEncryptionInfo property value. The fileEncryptionInfo property + ## @param value Value to set for the fileEncryptionInfo property. + ## @return a void + ## + def file_encryption_info=(value) + @file_encryption_info = value + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "fileEncryptionInfo" => lambda {|n| @file_encryption_info = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::FileEncryptionInfo.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_object_value("fileEncryptionInfo", @file_encryption_info) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/item/commit/commit_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/item/commit/commit_request_builder.rb new file mode 100644 index 0000000000..0ebf8341c0 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/item/commit/commit_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_ios_lob_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './commit' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosLobApp + module ContentVersions + module Item + module Files + module Item + module Commit + ## + # Provides operations to call the commit method. + class CommitRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CommitRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit") + end + ## + ## Commits a file of a given app. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Commits a file of a given app. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a commit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CommitRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/events/item/extensions/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/item/item.rb similarity index 100% rename from lib/me/calendar/events/item/extensions/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb new file mode 100644 index 0000000000..77b7f09924 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb @@ -0,0 +1,190 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mobile_app_content_file' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_ios_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../files' +require_relative './commit/commit_request_builder' +require_relative './item' +require_relative './renew_upload/renew_upload_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosLobApp + module ContentVersions + module Item + module Files + module Item + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + class MobileAppContentFileItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the commit method. + def commit() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosLobApp::ContentVersions::Item::Files::Item::Commit::CommitRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the renewUpload method. + def renew_upload() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosLobApp::ContentVersions::Item::Files::Item::RenewUpload::RenewUploadRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property files for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property files in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property files for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property files in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_content_file_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppContentFileItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of files for this app content version. + class MobileAppContentFileItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/calendar_view/item/instances/item/extensions/extensions.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/item/renew_upload/renew_upload.rb similarity index 100% rename from lib/me/calendar/calendar_view/item/instances/item/extensions/extensions.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/item/renew_upload/renew_upload.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb new file mode 100644 index 0000000000..f5d00e5b09 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_ios_lob_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './renew_upload' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosLobApp + module ContentVersions + module Item + module Files + module Item + module RenewUpload + ## + # Provides operations to call the renewUpload method. + class RenewUploadRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RenewUploadRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload") + end + ## + ## Renews the SAS URI for an application file upload. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Renews the SAS URI for an application file upload. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a renew_upload_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RenewUploadRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/events/item/instances/item/attachments/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/item.rb similarity index 100% rename from lib/me/calendar/events/item/instances/item/attachments/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/mobile_app_content_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/mobile_app_content_item_request_builder.rb new file mode 100644 index 0000000000..61e2c4b0b2 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/content_versions/item/mobile_app_content_item_request_builder.rb @@ -0,0 +1,184 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_content' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_ios_lob_app' +require_relative '../content_versions' +require_relative './contained_apps/contained_apps_request_builder' +require_relative './files/files_request_builder' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosLobApp + module ContentVersions + module Item + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + class MobileAppContentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + def contained_apps() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosLobApp::ContentVersions::Item::ContainedApps::ContainedAppsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + def files() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosLobApp::ContentVersions::Item::Files::FilesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property contentVersions for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property contentVersions in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property contentVersions for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property contentVersions in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_content_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppContentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of content versions for this app. + class MobileAppContentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/events/events.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/graph_ios_lob_app.rb similarity index 100% rename from lib/me/calendar/events/events.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_lob_app/graph_ios_lob_app.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/graph_ios_lob_app_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/graph_ios_lob_app_request_builder.rb new file mode 100644 index 0000000000..a67f3a293d --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_lob_app/graph_ios_lob_app_request_builder.rb @@ -0,0 +1,119 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/ios_lob_app' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../item' +require_relative './assignments/assignments_request_builder' +require_relative './categories/categories_request_builder' +require_relative './content_versions/content_versions_request_builder' +require_relative './graph_ios_lob_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosLobApp + ## + # Casts the previous resource to iosLobApp. + class GraphIosLobAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + def assignments() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosLobApp::Assignments::AssignmentsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + def categories() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosLobApp::Categories::CategoriesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + def content_versions() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosLobApp::ContentVersions::ContentVersionsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphIosLobAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp{?%24expand,%24select}") + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosLobApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of ios_lob_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IosLobApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosLobApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_ios_lob_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphIosLobAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosLobApp + class GraphIosLobAppRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/events/item/attachments/attachments.rb b/lib/device_app_management/mobile_apps/item/graph_ios_store_app/assignments/assignments.rb similarity index 100% rename from lib/me/calendar/events/item/attachments/attachments.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_store_app/assignments/assignments.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_store_app/assignments/assignments_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_store_app/assignments/assignments_request_builder.rb new file mode 100644 index 0000000000..e59cc6436d --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_store_app/assignments/assignments_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_assignment' +require_relative '../../../../../models/mobile_app_assignment_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_ios_store_app' +require_relative './assignments' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_assignment_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosStoreApp + module Assignments + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class AssignmentsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosStoreApp::Assignments::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_assignment_id The unique identifier of mobileAppAssignment + ## @return a mobile_app_assignment_item_request_builder + ## + def by_mobile_app_assignment_id(mobile_app_assignment_id) + raise StandardError, 'mobile_app_assignment_id cannot be null' if mobile_app_assignment_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppAssignment%2Did"] = mobile_app_assignment_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosStoreApp::Assignments::Item::MobileAppAssignmentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AssignmentsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class AssignmentsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_ios_store_app/assignments/count/count.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_store_app/assignments/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_store_app/assignments/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_store_app/assignments/count/count_request_builder.rb new file mode 100644 index 0000000000..81ffd231c0 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_store_app/assignments/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_ios_store_app' +require_relative '../assignments' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosStoreApp + module Assignments + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/assignments/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/events/item/instances/item/extensions/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_ios_store_app/assignments/item/item.rb similarity index 100% rename from lib/me/calendar/events/item/instances/item/extensions/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_store_app/assignments/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_store_app/assignments/item/mobile_app_assignment_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_store_app/assignments/item/mobile_app_assignment_item_request_builder.rb new file mode 100644 index 0000000000..f90fbe3b28 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_store_app/assignments/item/mobile_app_assignment_item_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_assignment' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_ios_store_app' +require_relative '../assignments' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosStoreApp + module Assignments + module Item + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class MobileAppAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class MobileAppAssignmentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/events/item/calendar/calendar.rb b/lib/device_app_management/mobile_apps/item/graph_ios_store_app/categories/categories.rb similarity index 100% rename from lib/me/calendar/events/item/calendar/calendar.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_store_app/categories/categories.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_store_app/categories/categories_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_store_app/categories/categories_request_builder.rb new file mode 100644 index 0000000000..e27ffb8992 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_store_app/categories/categories_request_builder.rb @@ -0,0 +1,152 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_category_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_ios_store_app' +require_relative './categories' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_category_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosStoreApp + module Categories + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class CategoriesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosStoreApp::Categories::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_category_id The unique identifier of mobileAppCategory + ## @return a mobile_app_category_item_request_builder + ## + def by_mobile_app_category_id(mobile_app_category_id) + raise StandardError, 'mobile_app_category_id cannot be null' if mobile_app_category_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppCategory%2Did"] = mobile_app_category_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosStoreApp::Categories::Item::MobileAppCategoryItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new CategoriesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CategoriesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class CategoriesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/attachments/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_ios_store_app/categories/count/count.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/attachments/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_store_app/categories/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_store_app/categories/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_store_app/categories/count/count_request_builder.rb new file mode 100644 index 0000000000..aa7d69c739 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_store_app/categories/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_ios_store_app' +require_relative '../categories' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosStoreApp + module Categories + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/categories/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/events/item/instances/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_ios_store_app/categories/item/item.rb similarity index 100% rename from lib/me/calendar/events/item/instances/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_store_app/categories/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_store_app/categories/item/mobile_app_category_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_store_app/categories/item/mobile_app_category_item_request_builder.rb new file mode 100644 index 0000000000..655cb61c68 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_store_app/categories/item/mobile_app_category_item_request_builder.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_category' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_ios_store_app' +require_relative '../categories' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosStoreApp + module Categories + module Item + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class MobileAppCategoryItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategory.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_category_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppCategoryItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class MobileAppCategoryItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/events/item/dismiss_reminder/dismiss_reminder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_store_app/graph_ios_store_app.rb similarity index 100% rename from lib/me/calendar/events/item/dismiss_reminder/dismiss_reminder.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_store_app/graph_ios_store_app.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_store_app/graph_ios_store_app_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_store_app/graph_ios_store_app_request_builder.rb new file mode 100644 index 0000000000..48913ac1b2 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_store_app/graph_ios_store_app_request_builder.rb @@ -0,0 +1,113 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/ios_store_app' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../item' +require_relative './assignments/assignments_request_builder' +require_relative './categories/categories_request_builder' +require_relative './graph_ios_store_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosStoreApp + ## + # Casts the previous resource to iosStoreApp. + class GraphIosStoreAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + def assignments() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosStoreApp::Assignments::AssignmentsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + def categories() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosStoreApp::Categories::CategoriesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphIosStoreAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp{?%24expand,%24select}") + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosStoreApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of ios_store_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IosStoreApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosStoreApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_ios_store_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphIosStoreAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosStoreApp + class GraphIosStoreAppRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/events/item/extensions/extensions.rb b/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/assignments/assignments.rb similarity index 100% rename from lib/me/calendar/events/item/extensions/extensions.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/assignments/assignments.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/assignments/assignments_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/assignments/assignments_request_builder.rb new file mode 100644 index 0000000000..6a4c884c7f --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/assignments/assignments_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_assignment' +require_relative '../../../../../models/mobile_app_assignment_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_ios_vpp_app' +require_relative './assignments' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_assignment_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosVppApp + module Assignments + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class AssignmentsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosVppApp::Assignments::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_assignment_id The unique identifier of mobileAppAssignment + ## @return a mobile_app_assignment_item_request_builder + ## + def by_mobile_app_assignment_id(mobile_app_assignment_id) + raise StandardError, 'mobile_app_assignment_id cannot be null' if mobile_app_assignment_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppAssignment%2Did"] = mobile_app_assignment_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosVppApp::Assignments::Item::MobileAppAssignmentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AssignmentsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class AssignmentsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/extensions/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/assignments/count/count.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/extensions/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/assignments/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/assignments/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/assignments/count/count_request_builder.rb new file mode 100644 index 0000000000..4069c0371f --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/assignments/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_ios_vpp_app' +require_relative '../assignments' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosVppApp + module Assignments + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/assignments/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/events/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/assignments/item/item.rb similarity index 100% rename from lib/me/calendar/events/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/assignments/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/assignments/item/mobile_app_assignment_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/assignments/item/mobile_app_assignment_item_request_builder.rb new file mode 100644 index 0000000000..ec311c336b --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/assignments/item/mobile_app_assignment_item_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_assignment' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_ios_vpp_app' +require_relative '../assignments' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosVppApp + module Assignments + module Item + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class MobileAppAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class MobileAppAssignmentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/events/item/instances/instances.rb b/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/categories/categories.rb similarity index 100% rename from lib/me/calendar/events/item/instances/instances.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/categories/categories.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/categories/categories_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/categories/categories_request_builder.rb new file mode 100644 index 0000000000..3640867a1c --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/categories/categories_request_builder.rb @@ -0,0 +1,152 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_category_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_ios_vpp_app' +require_relative './categories' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_category_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosVppApp + module Categories + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class CategoriesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosVppApp::Categories::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_category_id The unique identifier of mobileAppCategory + ## @return a mobile_app_category_item_request_builder + ## + def by_mobile_app_category_id(mobile_app_category_id) + raise StandardError, 'mobile_app_category_id cannot be null' if mobile_app_category_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppCategory%2Did"] = mobile_app_category_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosVppApp::Categories::Item::MobileAppCategoryItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new CategoriesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CategoriesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class CategoriesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/events/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/categories/count/count.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/events/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/categories/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/categories/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/categories/count/count_request_builder.rb new file mode 100644 index 0000000000..0d3308ed12 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/categories/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_ios_vpp_app' +require_relative '../categories' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosVppApp + module Categories + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/categories/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_permissions/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/categories/item/item.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_permissions/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/categories/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/categories/item/mobile_app_category_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/categories/item/mobile_app_category_item_request_builder.rb new file mode 100644 index 0000000000..48c89d8b15 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/categories/item/mobile_app_category_item_request_builder.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_category' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_ios_vpp_app' +require_relative '../categories' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosVppApp + module Categories + module Item + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class MobileAppCategoryItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategory.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_category_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppCategoryItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class MobileAppCategoryItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/events/item/instances/item/attachments/attachments.rb b/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/graph_ios_vpp_app.rb similarity index 100% rename from lib/me/calendar/events/item/instances/item/attachments/attachments.rb rename to lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/graph_ios_vpp_app.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/graph_ios_vpp_app_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/graph_ios_vpp_app_request_builder.rb new file mode 100644 index 0000000000..c0f956512f --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_ios_vpp_app/graph_ios_vpp_app_request_builder.rb @@ -0,0 +1,113 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/ios_vpp_app' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../item' +require_relative './assignments/assignments_request_builder' +require_relative './categories/categories_request_builder' +require_relative './graph_ios_vpp_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphIosVppApp + ## + # Casts the previous resource to iosVppApp. + class GraphIosVppAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + def assignments() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosVppApp::Assignments::AssignmentsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + def categories() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosVppApp::Categories::CategoriesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphIosVppAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp{?%24expand,%24select}") + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosVppApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of ios_vpp_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IosVppApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosVppApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_ios_vpp_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphIosVppAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosVppApp + class GraphIosVppAppRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/events/item/instances/item/calendar/calendar.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/assignments/assignments.rb similarity index 100% rename from lib/me/calendar/events/item/instances/item/calendar/calendar.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/assignments/assignments.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/assignments/assignments_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/assignments/assignments_request_builder.rb new file mode 100644 index 0000000000..1122c86ffb --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/assignments/assignments_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_assignment' +require_relative '../../../../../models/mobile_app_assignment_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_mac_o_s_dmg_app' +require_relative './assignments' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_assignment_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSDmgApp + module Assignments + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class AssignmentsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSDmgApp::Assignments::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_assignment_id The unique identifier of mobileAppAssignment + ## @return a mobile_app_assignment_item_request_builder + ## + def by_mobile_app_assignment_id(mobile_app_assignment_id) + raise StandardError, 'mobile_app_assignment_id cannot be null' if mobile_app_assignment_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppAssignment%2Did"] = mobile_app_assignment_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSDmgApp::Assignments::Item::MobileAppAssignmentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AssignmentsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class AssignmentsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/events/item/attachments/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/assignments/count/count.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/events/item/attachments/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/assignments/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/assignments/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/assignments/count/count_request_builder.rb new file mode 100644 index 0000000000..c4338b2145 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/assignments/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_mac_o_s_dmg_app' +require_relative '../assignments' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSDmgApp + module Assignments + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/assignments/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/attachments/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/assignments/item/item.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_view/item/attachments/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/assignments/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/assignments/item/mobile_app_assignment_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/assignments/item/mobile_app_assignment_item_request_builder.rb new file mode 100644 index 0000000000..5e03006a8e --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/assignments/item/mobile_app_assignment_item_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_assignment' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_mac_o_s_dmg_app' +require_relative '../assignments' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSDmgApp + module Assignments + module Item + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class MobileAppAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class MobileAppAssignmentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/events/item/instances/item/dismiss_reminder/dismiss_reminder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/categories/categories.rb similarity index 100% rename from lib/me/calendar/events/item/instances/item/dismiss_reminder/dismiss_reminder.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/categories/categories.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/categories/categories_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/categories/categories_request_builder.rb new file mode 100644 index 0000000000..80c0ee88a2 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/categories/categories_request_builder.rb @@ -0,0 +1,152 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_category_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_mac_o_s_dmg_app' +require_relative './categories' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_category_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSDmgApp + module Categories + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class CategoriesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSDmgApp::Categories::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_category_id The unique identifier of mobileAppCategory + ## @return a mobile_app_category_item_request_builder + ## + def by_mobile_app_category_id(mobile_app_category_id) + raise StandardError, 'mobile_app_category_id cannot be null' if mobile_app_category_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppCategory%2Did"] = mobile_app_category_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSDmgApp::Categories::Item::MobileAppCategoryItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new CategoriesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CategoriesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class CategoriesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/events/item/extensions/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/categories/count/count.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/events/item/extensions/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/categories/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/categories/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/categories/count/count_request_builder.rb new file mode 100644 index 0000000000..1fb8db0340 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/categories/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_mac_o_s_dmg_app' +require_relative '../categories' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSDmgApp + module Categories + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/categories/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/extensions/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/categories/item/item.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_view/item/extensions/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/categories/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/categories/item/mobile_app_category_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/categories/item/mobile_app_category_item_request_builder.rb new file mode 100644 index 0000000000..2c962be506 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/categories/item/mobile_app_category_item_request_builder.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_category' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_mac_o_s_dmg_app' +require_relative '../categories' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSDmgApp + module Categories + module Item + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class MobileAppCategoryItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategory.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_category_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppCategoryItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class MobileAppCategoryItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar/events/item/instances/item/extensions/extensions.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/content_versions.rb similarity index 100% rename from lib/me/calendar/events/item/instances/item/extensions/extensions.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/content_versions.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/content_versions_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/content_versions_request_builder.rb new file mode 100644 index 0000000000..137fdc1f0b --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/content_versions_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_content' +require_relative '../../../../../models/mobile_app_content_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_mac_o_s_dmg_app' +require_relative './content_versions' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_content_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSDmgApp + module ContentVersions + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + class ContentVersionsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSDmgApp::ContentVersions::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + ## @param mobile_app_content_id The unique identifier of mobileAppContent + ## @return a mobile_app_content_item_request_builder + ## + def by_mobile_app_content_id(mobile_app_content_id) + raise StandardError, 'mobile_app_content_id cannot be null' if mobile_app_content_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppContent%2Did"] = mobile_app_content_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSDmgApp::ContentVersions::Item::MobileAppContentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ContentVersionsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to contentVersions for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to contentVersions for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_versions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentVersionsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of content versions for this app. + class ContentVersionsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/events/item/instances/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/count/count.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/events/item/instances/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/count/count_request_builder.rb new file mode 100644 index 0000000000..a83a6f5ea2 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_mac_o_s_dmg_app' +require_relative '../content_versions' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSDmgApp + module ContentVersions + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/calendar_groups.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/contained_apps/contained_apps.rb similarity index 100% rename from lib/me/calendar_groups/calendar_groups.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/contained_apps/contained_apps.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/contained_apps/contained_apps_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/contained_apps/contained_apps_request_builder.rb new file mode 100644 index 0000000000..80fcf29251 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/contained_apps/contained_apps_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/mobile_contained_app' +require_relative '../../../../../../../models/mobile_contained_app_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../device_app_management' +require_relative '../../../../../mobile_apps' +require_relative '../../../../item' +require_relative '../../../graph_mac_o_s_dmg_app' +require_relative '../../content_versions' +require_relative '../item' +require_relative './contained_apps' +require_relative './count/count_request_builder' +require_relative './item/mobile_contained_app_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSDmgApp + module ContentVersions + module Item + module ContainedApps + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + class ContainedAppsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSDmgApp::ContentVersions::Item::ContainedApps::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + ## @param mobile_contained_app_id The unique identifier of mobileContainedApp + ## @return a mobile_contained_app_item_request_builder + ## + def by_mobile_contained_app_id(mobile_contained_app_id) + raise StandardError, 'mobile_contained_app_id cannot be null' if mobile_contained_app_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileContainedApp%2Did"] = mobile_contained_app_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSDmgApp::ContentVersions::Item::ContainedApps::Item::MobileContainedAppItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ContainedAppsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to containedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to containedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a contained_apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContainedAppsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in a MobileLobApp acting as a package. + class ContainedAppsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/events/item/instances/item/attachments/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/contained_apps/count/count.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/events/item/instances/item/attachments/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/contained_apps/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/contained_apps/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/contained_apps/count/count_request_builder.rb new file mode 100644 index 0000000000..85828b5685 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/contained_apps/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_mac_o_s_dmg_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../contained_apps' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSDmgApp + module ContentVersions + module Item + module ContainedApps + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/attachments/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/contained_apps/item/item.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/attachments/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/contained_apps/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb new file mode 100644 index 0000000000..cbc3a6614d --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb @@ -0,0 +1,178 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mobile_contained_app' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_mac_o_s_dmg_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../contained_apps' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSDmgApp + module ContentVersions + module Item + module ContainedApps + module Item + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + class MobileContainedAppItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property containedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property containedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property containedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property containedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_contained_app_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileContainedAppItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in a MobileLobApp acting as a package. + class MobileContainedAppItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/events/item/instances/item/extensions/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/count/count.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/events/item/instances/item/extensions/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/count/count_request_builder.rb new file mode 100644 index 0000000000..731dd06501 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_mac_o_s_dmg_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../files' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSDmgApp + module ContentVersions + module Item + module Files + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/calendars.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/files.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/calendars.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/files.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/files_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/files_request_builder.rb new file mode 100644 index 0000000000..39ec0dc833 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/files_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/mobile_app_content_file' +require_relative '../../../../../../../models/mobile_app_content_file_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../device_app_management' +require_relative '../../../../../mobile_apps' +require_relative '../../../../item' +require_relative '../../../graph_mac_o_s_dmg_app' +require_relative '../../content_versions' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './files' +require_relative './item/mobile_app_content_file_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSDmgApp + module ContentVersions + module Item + module Files + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + class FilesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSDmgApp::ContentVersions::Item::Files::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + ## @param mobile_app_content_file_id The unique identifier of mobileAppContentFile + ## @return a mobile_app_content_file_item_request_builder + ## + def by_mobile_app_content_file_id(mobile_app_content_file_id) + raise StandardError, 'mobile_app_content_file_id cannot be null' if mobile_app_content_file_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppContentFile%2Did"] = mobile_app_content_file_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSDmgApp::ContentVersions::Item::Files::Item::MobileAppContentFileItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new FilesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFileCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to files for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to files for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a files_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of files for this app content version. + class FilesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/item/commit/commit.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/item/commit/commit.rb new file mode 100644 index 0000000000..b61410499d --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/item/commit/commit.rb @@ -0,0 +1 @@ +require_relative 'commit_post_request_body' diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/item/commit/commit_post_request_body.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/item/commit/commit_post_request_body.rb new file mode 100644 index 0000000000..b1df5c8df8 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/item/commit/commit_post_request_body.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/file_encryption_info' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_mac_o_s_dmg_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './commit' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSDmgApp + module ContentVersions + module Item + module Files + module Item + module Commit + class CommitPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The fileEncryptionInfo property + @file_encryption_info + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new CommitPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a commit_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CommitPostRequestBody.new + end + ## + ## Gets the fileEncryptionInfo property value. The fileEncryptionInfo property + ## @return a file_encryption_info + ## + def file_encryption_info + return @file_encryption_info + end + ## + ## Sets the fileEncryptionInfo property value. The fileEncryptionInfo property + ## @param value Value to set for the fileEncryptionInfo property. + ## @return a void + ## + def file_encryption_info=(value) + @file_encryption_info = value + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "fileEncryptionInfo" => lambda {|n| @file_encryption_info = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::FileEncryptionInfo.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_object_value("fileEncryptionInfo", @file_encryption_info) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/item/commit/commit_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/item/commit/commit_request_builder.rb new file mode 100644 index 0000000000..29dec9842d --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/item/commit/commit_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_mac_o_s_dmg_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './commit' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSDmgApp + module ContentVersions + module Item + module Files + module Item + module Commit + ## + # Provides operations to call the commit method. + class CommitRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CommitRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit") + end + ## + ## Commits a file of a given app. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Commits a file of a given app. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a commit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CommitRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/extensions/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/item/item.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/extensions/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb new file mode 100644 index 0000000000..8c3c850406 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb @@ -0,0 +1,190 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mobile_app_content_file' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_mac_o_s_dmg_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../files' +require_relative './commit/commit_request_builder' +require_relative './item' +require_relative './renew_upload/renew_upload_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSDmgApp + module ContentVersions + module Item + module Files + module Item + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + class MobileAppContentFileItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the commit method. + def commit() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSDmgApp::ContentVersions::Item::Files::Item::Commit::CommitRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the renewUpload method. + def renew_upload() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSDmgApp::ContentVersions::Item::Files::Item::RenewUpload::RenewUploadRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property files for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property files in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property files for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property files in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_content_file_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppContentFileItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of files for this app content version. + class MobileAppContentFileItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_permissions/calendar_permissions.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/item/renew_upload/renew_upload.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_permissions/calendar_permissions.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/item/renew_upload/renew_upload.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb new file mode 100644 index 0000000000..41c48f2c9f --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_mac_o_s_dmg_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './renew_upload' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSDmgApp + module ContentVersions + module Item + module Files + module Item + module RenewUpload + ## + # Provides operations to call the renewUpload method. + class RenewUploadRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RenewUploadRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload") + end + ## + ## Renews the SAS URI for an application file upload. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Renews the SAS URI for an application file upload. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a renew_upload_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RenewUploadRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/item.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/mobile_app_content_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/mobile_app_content_item_request_builder.rb new file mode 100644 index 0000000000..6dcab7fe36 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/content_versions/item/mobile_app_content_item_request_builder.rb @@ -0,0 +1,184 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_content' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_mac_o_s_dmg_app' +require_relative '../content_versions' +require_relative './contained_apps/contained_apps_request_builder' +require_relative './files/files_request_builder' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSDmgApp + module ContentVersions + module Item + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + class MobileAppContentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + def contained_apps() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSDmgApp::ContentVersions::Item::ContainedApps::ContainedAppsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + def files() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSDmgApp::ContentVersions::Item::Files::FilesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property contentVersions for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property contentVersions in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property contentVersions for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property contentVersions in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_content_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppContentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of content versions for this app. + class MobileAppContentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/calendar_view.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/graph_mac_o_s_dmg_app.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_view/calendar_view.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/graph_mac_o_s_dmg_app.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/graph_mac_o_s_dmg_app_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/graph_mac_o_s_dmg_app_request_builder.rb new file mode 100644 index 0000000000..2e45f97ed5 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_dmg_app/graph_mac_o_s_dmg_app_request_builder.rb @@ -0,0 +1,119 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/mac_o_s_dmg_app' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../item' +require_relative './assignments/assignments_request_builder' +require_relative './categories/categories_request_builder' +require_relative './content_versions/content_versions_request_builder' +require_relative './graph_mac_o_s_dmg_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSDmgApp + ## + # Casts the previous resource to macOSDmgApp. + class GraphMacOSDmgAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + def assignments() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSDmgApp::Assignments::AssignmentsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + def categories() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSDmgApp::Categories::CategoriesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + def content_versions() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSDmgApp::ContentVersions::ContentVersionsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphMacOSDmgAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp{?%24expand,%24select}") + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.macOSDmgApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mac_o_s_dmg_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MacOSDmgApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.macOSDmgApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_mac_o_s_dmg_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphMacOSDmgAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the item of type microsoft.graph.mobileApp as microsoft.graph.macOSDmgApp + class GraphMacOSDmgAppRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/attachments/attachments.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/assignments/assignments.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_view/item/attachments/attachments.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/assignments/assignments.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/assignments/assignments_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/assignments/assignments_request_builder.rb new file mode 100644 index 0000000000..b9eff63b96 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/assignments/assignments_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_assignment' +require_relative '../../../../../models/mobile_app_assignment_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_mac_o_s_lob_app' +require_relative './assignments' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_assignment_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSLobApp + module Assignments + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class AssignmentsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSLobApp::Assignments::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_assignment_id The unique identifier of mobileAppAssignment + ## @return a mobile_app_assignment_item_request_builder + ## + def by_mobile_app_assignment_id(mobile_app_assignment_id) + raise StandardError, 'mobile_app_assignment_id cannot be null' if mobile_app_assignment_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppAssignment%2Did"] = mobile_app_assignment_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSLobApp::Assignments::Item::MobileAppAssignmentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AssignmentsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class AssignmentsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_view/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/assignments/count/count.rb similarity index 100% rename from lib/me/calendar_view/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/assignments/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/assignments/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/assignments/count/count_request_builder.rb new file mode 100644 index 0000000000..ed4881b07e --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/assignments/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_mac_o_s_lob_app' +require_relative '../assignments' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSLobApp + module Assignments + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/assignments/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/assignments/item/item.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_view/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/assignments/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/assignments/item/mobile_app_assignment_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/assignments/item/mobile_app_assignment_item_request_builder.rb new file mode 100644 index 0000000000..4a9ae07ccb --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/assignments/item/mobile_app_assignment_item_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_assignment' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_mac_o_s_lob_app' +require_relative '../assignments' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSLobApp + module Assignments + module Item + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class MobileAppAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class MobileAppAssignmentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/calendar/calendar.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/categories/categories.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_view/item/calendar/calendar.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/categories/categories.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/categories/categories_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/categories/categories_request_builder.rb new file mode 100644 index 0000000000..6cd623b4ba --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/categories/categories_request_builder.rb @@ -0,0 +1,152 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_category_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_mac_o_s_lob_app' +require_relative './categories' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_category_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSLobApp + module Categories + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class CategoriesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSLobApp::Categories::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_category_id The unique identifier of mobileAppCategory + ## @return a mobile_app_category_item_request_builder + ## + def by_mobile_app_category_id(mobile_app_category_id) + raise StandardError, 'mobile_app_category_id cannot be null' if mobile_app_category_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppCategory%2Did"] = mobile_app_category_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSLobApp::Categories::Item::MobileAppCategoryItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new CategoriesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CategoriesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class CategoriesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_view/item/attachments/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/categories/count/count.rb similarity index 100% rename from lib/me/calendar_view/item/attachments/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/categories/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/categories/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/categories/count/count_request_builder.rb new file mode 100644 index 0000000000..913d1bb0e3 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/categories/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_mac_o_s_lob_app' +require_relative '../categories' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSLobApp + module Categories + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/categories/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/events/item/attachments/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/categories/item/item.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/events/item/attachments/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/categories/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/categories/item/mobile_app_category_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/categories/item/mobile_app_category_item_request_builder.rb new file mode 100644 index 0000000000..e8ad8f0f09 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/categories/item/mobile_app_category_item_request_builder.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_category' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_mac_o_s_lob_app' +require_relative '../categories' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSLobApp + module Categories + module Item + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class MobileAppCategoryItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategory.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_category_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppCategoryItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class MobileAppCategoryItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/dismiss_reminder/dismiss_reminder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/content_versions.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_view/item/dismiss_reminder/dismiss_reminder.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/content_versions.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/content_versions_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/content_versions_request_builder.rb new file mode 100644 index 0000000000..381b671f92 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/content_versions_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_content' +require_relative '../../../../../models/mobile_app_content_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_mac_o_s_lob_app' +require_relative './content_versions' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_content_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSLobApp + module ContentVersions + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + class ContentVersionsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSLobApp::ContentVersions::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + ## @param mobile_app_content_id The unique identifier of mobileAppContent + ## @return a mobile_app_content_item_request_builder + ## + def by_mobile_app_content_id(mobile_app_content_id) + raise StandardError, 'mobile_app_content_id cannot be null' if mobile_app_content_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppContent%2Did"] = mobile_app_content_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSLobApp::ContentVersions::Item::MobileAppContentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ContentVersionsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to contentVersions for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to contentVersions for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_versions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentVersionsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of content versions for this app. + class ContentVersionsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_view/item/extensions/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/count/count.rb similarity index 100% rename from lib/me/calendar_view/item/extensions/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/count/count_request_builder.rb new file mode 100644 index 0000000000..9977e557ff --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_mac_o_s_lob_app' +require_relative '../content_versions' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSLobApp + module ContentVersions + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/extensions/extensions.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/contained_apps/contained_apps.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_view/item/extensions/extensions.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/contained_apps/contained_apps.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/contained_apps/contained_apps_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/contained_apps/contained_apps_request_builder.rb new file mode 100644 index 0000000000..67cc1ee0fd --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/contained_apps/contained_apps_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/mobile_contained_app' +require_relative '../../../../../../../models/mobile_contained_app_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../device_app_management' +require_relative '../../../../../mobile_apps' +require_relative '../../../../item' +require_relative '../../../graph_mac_o_s_lob_app' +require_relative '../../content_versions' +require_relative '../item' +require_relative './contained_apps' +require_relative './count/count_request_builder' +require_relative './item/mobile_contained_app_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSLobApp + module ContentVersions + module Item + module ContainedApps + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + class ContainedAppsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSLobApp::ContentVersions::Item::ContainedApps::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + ## @param mobile_contained_app_id The unique identifier of mobileContainedApp + ## @return a mobile_contained_app_item_request_builder + ## + def by_mobile_contained_app_id(mobile_contained_app_id) + raise StandardError, 'mobile_contained_app_id cannot be null' if mobile_contained_app_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileContainedApp%2Did"] = mobile_contained_app_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSLobApp::ContentVersions::Item::ContainedApps::Item::MobileContainedAppItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ContainedAppsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to containedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to containedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a contained_apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContainedAppsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in a MobileLobApp acting as a package. + class ContainedAppsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_view/item/instances/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/contained_apps/count/count.rb similarity index 100% rename from lib/me/calendar_view/item/instances/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/contained_apps/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/contained_apps/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/contained_apps/count/count_request_builder.rb new file mode 100644 index 0000000000..6876750ba4 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/contained_apps/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_mac_o_s_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../contained_apps' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSLobApp + module ContentVersions + module Item + module ContainedApps + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/events/item/extensions/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/contained_apps/item/item.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/events/item/extensions/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/contained_apps/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb new file mode 100644 index 0000000000..a898ed5dea --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb @@ -0,0 +1,178 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mobile_contained_app' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_mac_o_s_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../contained_apps' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSLobApp + module ContentVersions + module Item + module ContainedApps + module Item + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + class MobileContainedAppItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property containedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property containedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property containedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property containedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_contained_app_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileContainedAppItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in a MobileLobApp acting as a package. + class MobileContainedAppItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_view/item/instances/item/attachments/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/count/count.rb similarity index 100% rename from lib/me/calendar_view/item/instances/item/attachments/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/count/count_request_builder.rb new file mode 100644 index 0000000000..35f6e65097 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_mac_o_s_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../files' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSLobApp + module ContentVersions + module Item + module Files + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/instances.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/files.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/instances.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/files.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/files_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/files_request_builder.rb new file mode 100644 index 0000000000..92424c3dbb --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/files_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/mobile_app_content_file' +require_relative '../../../../../../../models/mobile_app_content_file_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../device_app_management' +require_relative '../../../../../mobile_apps' +require_relative '../../../../item' +require_relative '../../../graph_mac_o_s_lob_app' +require_relative '../../content_versions' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './files' +require_relative './item/mobile_app_content_file_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSLobApp + module ContentVersions + module Item + module Files + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + class FilesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSLobApp::ContentVersions::Item::Files::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + ## @param mobile_app_content_file_id The unique identifier of mobileAppContentFile + ## @return a mobile_app_content_file_item_request_builder + ## + def by_mobile_app_content_file_id(mobile_app_content_file_id) + raise StandardError, 'mobile_app_content_file_id cannot be null' if mobile_app_content_file_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppContentFile%2Did"] = mobile_app_content_file_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSLobApp::ContentVersions::Item::Files::Item::MobileAppContentFileItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new FilesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFileCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to files for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to files for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a files_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of files for this app content version. + class FilesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/item/commit/commit.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/item/commit/commit.rb new file mode 100644 index 0000000000..b61410499d --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/item/commit/commit.rb @@ -0,0 +1 @@ +require_relative 'commit_post_request_body' diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/item/commit/commit_post_request_body.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/item/commit/commit_post_request_body.rb new file mode 100644 index 0000000000..631c546e23 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/item/commit/commit_post_request_body.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/file_encryption_info' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_mac_o_s_lob_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './commit' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSLobApp + module ContentVersions + module Item + module Files + module Item + module Commit + class CommitPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The fileEncryptionInfo property + @file_encryption_info + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new CommitPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a commit_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CommitPostRequestBody.new + end + ## + ## Gets the fileEncryptionInfo property value. The fileEncryptionInfo property + ## @return a file_encryption_info + ## + def file_encryption_info + return @file_encryption_info + end + ## + ## Sets the fileEncryptionInfo property value. The fileEncryptionInfo property + ## @param value Value to set for the fileEncryptionInfo property. + ## @return a void + ## + def file_encryption_info=(value) + @file_encryption_info = value + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "fileEncryptionInfo" => lambda {|n| @file_encryption_info = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::FileEncryptionInfo.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_object_value("fileEncryptionInfo", @file_encryption_info) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/item/commit/commit_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/item/commit/commit_request_builder.rb new file mode 100644 index 0000000000..4aa997debf --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/item/commit/commit_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_mac_o_s_lob_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './commit' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSLobApp + module ContentVersions + module Item + module Files + module Item + module Commit + ## + # Provides operations to call the commit method. + class CommitRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CommitRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit") + end + ## + ## Commits a file of a given app. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Commits a file of a given app. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a commit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CommitRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/events/item/instances/item/attachments/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/item/item.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/events/item/instances/item/attachments/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb new file mode 100644 index 0000000000..e9af00072a --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb @@ -0,0 +1,190 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mobile_app_content_file' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_mac_o_s_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../files' +require_relative './commit/commit_request_builder' +require_relative './item' +require_relative './renew_upload/renew_upload_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSLobApp + module ContentVersions + module Item + module Files + module Item + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + class MobileAppContentFileItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the commit method. + def commit() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSLobApp::ContentVersions::Item::Files::Item::Commit::CommitRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the renewUpload method. + def renew_upload() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSLobApp::ContentVersions::Item::Files::Item::RenewUpload::RenewUploadRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property files for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property files in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property files for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property files in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_content_file_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppContentFileItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of files for this app content version. + class MobileAppContentFileItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/attachments/attachments.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/item/renew_upload/renew_upload.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/attachments/attachments.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/item/renew_upload/renew_upload.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb new file mode 100644 index 0000000000..c9c4efabe8 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_mac_o_s_lob_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './renew_upload' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSLobApp + module ContentVersions + module Item + module Files + module Item + module RenewUpload + ## + # Provides operations to call the renewUpload method. + class RenewUploadRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RenewUploadRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload") + end + ## + ## Renews the SAS URI for an application file upload. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Renews the SAS URI for an application file upload. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a renew_upload_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RenewUploadRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/events/item/instances/item/extensions/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/item.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/events/item/instances/item/extensions/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/mobile_app_content_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/mobile_app_content_item_request_builder.rb new file mode 100644 index 0000000000..5d60a5a5bf --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/content_versions/item/mobile_app_content_item_request_builder.rb @@ -0,0 +1,184 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_content' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_mac_o_s_lob_app' +require_relative '../content_versions' +require_relative './contained_apps/contained_apps_request_builder' +require_relative './files/files_request_builder' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSLobApp + module ContentVersions + module Item + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + class MobileAppContentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + def contained_apps() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSLobApp::ContentVersions::Item::ContainedApps::ContainedAppsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + def files() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSLobApp::ContentVersions::Item::Files::FilesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property contentVersions for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property contentVersions in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property contentVersions for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property contentVersions in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_content_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppContentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of content versions for this app. + class MobileAppContentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/calendar/calendar.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/graph_mac_o_s_lob_app.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/calendar/calendar.rb rename to lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/graph_mac_o_s_lob_app.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/graph_mac_o_s_lob_app_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/graph_mac_o_s_lob_app_request_builder.rb new file mode 100644 index 0000000000..8587e5491a --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_mac_o_s_lob_app/graph_mac_o_s_lob_app_request_builder.rb @@ -0,0 +1,119 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/mac_o_s_lob_app' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../item' +require_relative './assignments/assignments_request_builder' +require_relative './categories/categories_request_builder' +require_relative './content_versions/content_versions_request_builder' +require_relative './graph_mac_o_s_lob_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMacOSLobApp + ## + # Casts the previous resource to macOSLobApp. + class GraphMacOSLobAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + def assignments() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSLobApp::Assignments::AssignmentsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + def categories() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSLobApp::Categories::CategoriesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + def content_versions() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSLobApp::ContentVersions::ContentVersionsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphMacOSLobAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp{?%24expand,%24select}") + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.macOSLobApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mac_o_s_lob_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MacOSLobApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.macOSLobApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_mac_o_s_lob_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphMacOSLobAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the item of type microsoft.graph.mobileApp as microsoft.graph.macOSLobApp + class GraphMacOSLobAppRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/dismiss_reminder/dismiss_reminder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/assignments/assignments.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/dismiss_reminder/dismiss_reminder.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/assignments/assignments.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/assignments/assignments_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/assignments/assignments_request_builder.rb new file mode 100644 index 0000000000..c8e324582b --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/assignments/assignments_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_assignment' +require_relative '../../../../../models/mobile_app_assignment_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_managed_android_lob_app' +require_relative './assignments' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_assignment_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedAndroidLobApp + module Assignments + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class AssignmentsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedAndroidLobApp::Assignments::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_assignment_id The unique identifier of mobileAppAssignment + ## @return a mobile_app_assignment_item_request_builder + ## + def by_mobile_app_assignment_id(mobile_app_assignment_id) + raise StandardError, 'mobile_app_assignment_id cannot be null' if mobile_app_assignment_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppAssignment%2Did"] = mobile_app_assignment_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedAndroidLobApp::Assignments::Item::MobileAppAssignmentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AssignmentsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class AssignmentsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_view/item/instances/item/extensions/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/assignments/count/count.rb similarity index 100% rename from lib/me/calendar_view/item/instances/item/extensions/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/assignments/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/assignments/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/assignments/count/count_request_builder.rb new file mode 100644 index 0000000000..1daf9cf4a2 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/assignments/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_managed_android_lob_app' +require_relative '../assignments' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedAndroidLobApp + module Assignments + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/assignments/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/events/item/instances/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/assignments/item/item.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/events/item/instances/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/assignments/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/assignments/item/mobile_app_assignment_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/assignments/item/mobile_app_assignment_item_request_builder.rb new file mode 100644 index 0000000000..1c9aa9c399 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/assignments/item/mobile_app_assignment_item_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_assignment' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_managed_android_lob_app' +require_relative '../assignments' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedAndroidLobApp + module Assignments + module Item + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class MobileAppAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class MobileAppAssignmentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/extensions/extensions.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/categories/categories.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/extensions/extensions.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/categories/categories.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/categories/categories_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/categories/categories_request_builder.rb new file mode 100644 index 0000000000..459a6de4d4 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/categories/categories_request_builder.rb @@ -0,0 +1,152 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_category_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_managed_android_lob_app' +require_relative './categories' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_category_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedAndroidLobApp + module Categories + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class CategoriesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedAndroidLobApp::Categories::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_category_id The unique identifier of mobileAppCategory + ## @return a mobile_app_category_item_request_builder + ## + def by_mobile_app_category_id(mobile_app_category_id) + raise StandardError, 'mobile_app_category_id cannot be null' if mobile_app_category_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppCategory%2Did"] = mobile_app_category_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedAndroidLobApp::Categories::Item::MobileAppCategoryItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new CategoriesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CategoriesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class CategoriesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/categories/count/count.rb similarity index 100% rename from lib/me/calendars/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/categories/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/categories/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/categories/count/count_request_builder.rb new file mode 100644 index 0000000000..f766e38873 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/categories/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_managed_android_lob_app' +require_relative '../categories' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedAndroidLobApp + module Categories + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/categories/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/events/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/categories/item/item.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/events/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/categories/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/categories/item/mobile_app_category_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/categories/item/mobile_app_category_item_request_builder.rb new file mode 100644 index 0000000000..76e0961745 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/categories/item/mobile_app_category_item_request_builder.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_category' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_managed_android_lob_app' +require_relative '../categories' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedAndroidLobApp + module Categories + module Item + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class MobileAppCategoryItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategory.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_category_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppCategoryItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class MobileAppCategoryItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/events/events.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/content_versions.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/events/events.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/content_versions.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/content_versions_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/content_versions_request_builder.rb new file mode 100644 index 0000000000..11f130d3d7 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/content_versions_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_content' +require_relative '../../../../../models/mobile_app_content_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_managed_android_lob_app' +require_relative './content_versions' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_content_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedAndroidLobApp + module ContentVersions + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + class ContentVersionsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedAndroidLobApp::ContentVersions::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + ## @param mobile_app_content_id The unique identifier of mobileAppContent + ## @return a mobile_app_content_item_request_builder + ## + def by_mobile_app_content_id(mobile_app_content_id) + raise StandardError, 'mobile_app_content_id cannot be null' if mobile_app_content_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppContent%2Did"] = mobile_app_content_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedAndroidLobApp::ContentVersions::Item::MobileAppContentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ContentVersionsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to contentVersions for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to contentVersions for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_versions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentVersionsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of content versions for this app. + class ContentVersionsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_permissions/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/count/count.rb similarity index 100% rename from lib/me/calendars/item/calendar_permissions/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/count/count_request_builder.rb new file mode 100644 index 0000000000..ec8ba7dbf4 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_managed_android_lob_app' +require_relative '../content_versions' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedAndroidLobApp + module ContentVersions + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/events/item/attachments/attachments.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/contained_apps/contained_apps.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/events/item/attachments/attachments.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/contained_apps/contained_apps.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/contained_apps/contained_apps_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/contained_apps/contained_apps_request_builder.rb new file mode 100644 index 0000000000..6f6c00803c --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/contained_apps/contained_apps_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/mobile_contained_app' +require_relative '../../../../../../../models/mobile_contained_app_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../device_app_management' +require_relative '../../../../../mobile_apps' +require_relative '../../../../item' +require_relative '../../../graph_managed_android_lob_app' +require_relative '../../content_versions' +require_relative '../item' +require_relative './contained_apps' +require_relative './count/count_request_builder' +require_relative './item/mobile_contained_app_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedAndroidLobApp + module ContentVersions + module Item + module ContainedApps + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + class ContainedAppsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedAndroidLobApp::ContentVersions::Item::ContainedApps::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + ## @param mobile_contained_app_id The unique identifier of mobileContainedApp + ## @return a mobile_contained_app_item_request_builder + ## + def by_mobile_contained_app_id(mobile_contained_app_id) + raise StandardError, 'mobile_contained_app_id cannot be null' if mobile_contained_app_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileContainedApp%2Did"] = mobile_contained_app_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedAndroidLobApp::ContentVersions::Item::ContainedApps::Item::MobileContainedAppItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ContainedAppsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to containedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to containedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a contained_apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContainedAppsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in a MobileLobApp acting as a package. + class ContainedAppsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_view/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/contained_apps/count/count.rb similarity index 100% rename from lib/me/calendars/item/calendar_view/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/contained_apps/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/contained_apps/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/contained_apps/count/count_request_builder.rb new file mode 100644 index 0000000000..a5e36419ca --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/contained_apps/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_managed_android_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../contained_apps' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedAndroidLobApp + module ContentVersions + module Item + module ContainedApps + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/contained_apps/item/item.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/contained_apps/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb new file mode 100644 index 0000000000..61cb31cb8b --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb @@ -0,0 +1,178 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mobile_contained_app' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_managed_android_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../contained_apps' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedAndroidLobApp + module ContentVersions + module Item + module ContainedApps + module Item + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + class MobileContainedAppItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property containedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property containedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property containedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property containedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_contained_app_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileContainedAppItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in a MobileLobApp acting as a package. + class MobileContainedAppItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_view/item/attachments/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/count/count.rb similarity index 100% rename from lib/me/calendars/item/calendar_view/item/attachments/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/count/count_request_builder.rb new file mode 100644 index 0000000000..7ad469d85f --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_managed_android_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../files' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedAndroidLobApp + module ContentVersions + module Item + module Files + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/events/item/calendar/calendar.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/files.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/events/item/calendar/calendar.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/files.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/files_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/files_request_builder.rb new file mode 100644 index 0000000000..c7d047634a --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/files_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/mobile_app_content_file' +require_relative '../../../../../../../models/mobile_app_content_file_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../device_app_management' +require_relative '../../../../../mobile_apps' +require_relative '../../../../item' +require_relative '../../../graph_managed_android_lob_app' +require_relative '../../content_versions' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './files' +require_relative './item/mobile_app_content_file_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedAndroidLobApp + module ContentVersions + module Item + module Files + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + class FilesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedAndroidLobApp::ContentVersions::Item::Files::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + ## @param mobile_app_content_file_id The unique identifier of mobileAppContentFile + ## @return a mobile_app_content_file_item_request_builder + ## + def by_mobile_app_content_file_id(mobile_app_content_file_id) + raise StandardError, 'mobile_app_content_file_id cannot be null' if mobile_app_content_file_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppContentFile%2Did"] = mobile_app_content_file_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedAndroidLobApp::ContentVersions::Item::Files::Item::MobileAppContentFileItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new FilesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFileCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to files for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to files for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a files_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of files for this app content version. + class FilesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/item/commit/commit.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/item/commit/commit.rb new file mode 100644 index 0000000000..b61410499d --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/item/commit/commit.rb @@ -0,0 +1 @@ +require_relative 'commit_post_request_body' diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/item/commit/commit_post_request_body.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/item/commit/commit_post_request_body.rb new file mode 100644 index 0000000000..dec2b3e626 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/item/commit/commit_post_request_body.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/file_encryption_info' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_managed_android_lob_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './commit' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedAndroidLobApp + module ContentVersions + module Item + module Files + module Item + module Commit + class CommitPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The fileEncryptionInfo property + @file_encryption_info + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new CommitPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a commit_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CommitPostRequestBody.new + end + ## + ## Gets the fileEncryptionInfo property value. The fileEncryptionInfo property + ## @return a file_encryption_info + ## + def file_encryption_info + return @file_encryption_info + end + ## + ## Sets the fileEncryptionInfo property value. The fileEncryptionInfo property + ## @param value Value to set for the fileEncryptionInfo property. + ## @return a void + ## + def file_encryption_info=(value) + @file_encryption_info = value + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "fileEncryptionInfo" => lambda {|n| @file_encryption_info = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::FileEncryptionInfo.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_object_value("fileEncryptionInfo", @file_encryption_info) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/item/commit/commit_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/item/commit/commit_request_builder.rb new file mode 100644 index 0000000000..b67f4cc6cb --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/item/commit/commit_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_managed_android_lob_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './commit' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedAndroidLobApp + module ContentVersions + module Item + module Files + module Item + module Commit + ## + # Provides operations to call the commit method. + class CommitRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CommitRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit") + end + ## + ## Commits a file of a given app. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Commits a file of a given app. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a commit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CommitRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/item/item.rb similarity index 100% rename from lib/me/calendar_groups/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb new file mode 100644 index 0000000000..a313a7d51e --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb @@ -0,0 +1,190 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mobile_app_content_file' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_managed_android_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../files' +require_relative './commit/commit_request_builder' +require_relative './item' +require_relative './renew_upload/renew_upload_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedAndroidLobApp + module ContentVersions + module Item + module Files + module Item + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + class MobileAppContentFileItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the commit method. + def commit() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedAndroidLobApp::ContentVersions::Item::Files::Item::Commit::CommitRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the renewUpload method. + def renew_upload() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedAndroidLobApp::ContentVersions::Item::Files::Item::RenewUpload::RenewUploadRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property files for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property files in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property files for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property files in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_content_file_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppContentFileItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of files for this app content version. + class MobileAppContentFileItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/events/item/dismiss_reminder/dismiss_reminder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/item/renew_upload/renew_upload.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/events/item/dismiss_reminder/dismiss_reminder.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/item/renew_upload/renew_upload.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb new file mode 100644 index 0000000000..817f8925c1 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_managed_android_lob_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './renew_upload' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedAndroidLobApp + module ContentVersions + module Item + module Files + module Item + module RenewUpload + ## + # Provides operations to call the renewUpload method. + class RenewUploadRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RenewUploadRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload") + end + ## + ## Renews the SAS URI for an application file upload. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Renews the SAS URI for an application file upload. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a renew_upload_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RenewUploadRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_view/item/attachments/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/item.rb similarity index 100% rename from lib/me/calendar_view/item/attachments/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/mobile_app_content_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/mobile_app_content_item_request_builder.rb new file mode 100644 index 0000000000..a8c484330d --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/content_versions/item/mobile_app_content_item_request_builder.rb @@ -0,0 +1,184 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_content' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_managed_android_lob_app' +require_relative '../content_versions' +require_relative './contained_apps/contained_apps_request_builder' +require_relative './files/files_request_builder' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedAndroidLobApp + module ContentVersions + module Item + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + class MobileAppContentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + def contained_apps() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedAndroidLobApp::ContentVersions::Item::ContainedApps::ContainedAppsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + def files() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedAndroidLobApp::ContentVersions::Item::Files::FilesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property contentVersions for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property contentVersions in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property contentVersions for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property contentVersions in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_content_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppContentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of content versions for this app. + class MobileAppContentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/events/item/extensions/extensions.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/graph_managed_android_lob_app.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/events/item/extensions/extensions.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/graph_managed_android_lob_app.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/graph_managed_android_lob_app_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/graph_managed_android_lob_app_request_builder.rb new file mode 100644 index 0000000000..98a671f752 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_android_lob_app/graph_managed_android_lob_app_request_builder.rb @@ -0,0 +1,119 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/managed_android_lob_app' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../item' +require_relative './assignments/assignments_request_builder' +require_relative './categories/categories_request_builder' +require_relative './content_versions/content_versions_request_builder' +require_relative './graph_managed_android_lob_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedAndroidLobApp + ## + # Casts the previous resource to managedAndroidLobApp. + class GraphManagedAndroidLobAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + def assignments() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedAndroidLobApp::Assignments::AssignmentsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + def categories() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedAndroidLobApp::Categories::CategoriesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + def content_versions() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedAndroidLobApp::ContentVersions::ContentVersionsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphManagedAndroidLobAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp{?%24expand,%24select}") + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.managedAndroidLobApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of managed_android_lob_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAndroidLobApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.managedAndroidLobApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_managed_android_lob_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphManagedAndroidLobAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the item of type microsoft.graph.mobileApp as microsoft.graph.managedAndroidLobApp + class GraphManagedAndroidLobAppRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/events/item/instances/instances.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/assignments/assignments.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/events/item/instances/instances.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/assignments/assignments.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/assignments/assignments_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/assignments/assignments_request_builder.rb new file mode 100644 index 0000000000..1b18024890 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/assignments/assignments_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_assignment' +require_relative '../../../../../models/mobile_app_assignment_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_managed_i_o_s_lob_app' +require_relative './assignments' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_assignment_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedIOSLobApp + module Assignments + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class AssignmentsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedIOSLobApp::Assignments::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_assignment_id The unique identifier of mobileAppAssignment + ## @return a mobile_app_assignment_item_request_builder + ## + def by_mobile_app_assignment_id(mobile_app_assignment_id) + raise StandardError, 'mobile_app_assignment_id cannot be null' if mobile_app_assignment_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppAssignment%2Did"] = mobile_app_assignment_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedIOSLobApp::Assignments::Item::MobileAppAssignmentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AssignmentsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class AssignmentsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_view/item/extensions/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/assignments/count/count.rb similarity index 100% rename from lib/me/calendars/item/calendar_view/item/extensions/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/assignments/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/assignments/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/assignments/count/count_request_builder.rb new file mode 100644 index 0000000000..02fc6787bc --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/assignments/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_managed_i_o_s_lob_app' +require_relative '../assignments' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedIOSLobApp + module Assignments + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/assignments/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_view/item/extensions/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/assignments/item/item.rb similarity index 100% rename from lib/me/calendar_view/item/extensions/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/assignments/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/assignments/item/mobile_app_assignment_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/assignments/item/mobile_app_assignment_item_request_builder.rb new file mode 100644 index 0000000000..299d12d92b --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/assignments/item/mobile_app_assignment_item_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_assignment' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_managed_i_o_s_lob_app' +require_relative '../assignments' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedIOSLobApp + module Assignments + module Item + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class MobileAppAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class MobileAppAssignmentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/events/item/instances/item/attachments/attachments.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/categories/categories.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/events/item/instances/item/attachments/attachments.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/categories/categories.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/categories/categories_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/categories/categories_request_builder.rb new file mode 100644 index 0000000000..44a3037fbe --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/categories/categories_request_builder.rb @@ -0,0 +1,152 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_category_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_managed_i_o_s_lob_app' +require_relative './categories' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_category_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedIOSLobApp + module Categories + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class CategoriesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedIOSLobApp::Categories::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_category_id The unique identifier of mobileAppCategory + ## @return a mobile_app_category_item_request_builder + ## + def by_mobile_app_category_id(mobile_app_category_id) + raise StandardError, 'mobile_app_category_id cannot be null' if mobile_app_category_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppCategory%2Did"] = mobile_app_category_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedIOSLobApp::Categories::Item::MobileAppCategoryItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new CategoriesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CategoriesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class CategoriesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_view/item/instances/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/categories/count/count.rb similarity index 100% rename from lib/me/calendars/item/calendar_view/item/instances/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/categories/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/categories/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/categories/count/count_request_builder.rb new file mode 100644 index 0000000000..9fb95dd1ca --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/categories/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_managed_i_o_s_lob_app' +require_relative '../categories' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedIOSLobApp + module Categories + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/categories/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_view/item/instances/item/attachments/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/categories/item/item.rb similarity index 100% rename from lib/me/calendar_view/item/instances/item/attachments/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/categories/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/categories/item/mobile_app_category_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/categories/item/mobile_app_category_item_request_builder.rb new file mode 100644 index 0000000000..c39db68a5c --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/categories/item/mobile_app_category_item_request_builder.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_category' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_managed_i_o_s_lob_app' +require_relative '../categories' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedIOSLobApp + module Categories + module Item + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class MobileAppCategoryItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategory.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_category_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppCategoryItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class MobileAppCategoryItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/events/item/instances/item/calendar/calendar.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/content_versions.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/events/item/instances/item/calendar/calendar.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/content_versions.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/content_versions_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/content_versions_request_builder.rb new file mode 100644 index 0000000000..61f264804e --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/content_versions_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_content' +require_relative '../../../../../models/mobile_app_content_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_managed_i_o_s_lob_app' +require_relative './content_versions' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_content_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedIOSLobApp + module ContentVersions + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + class ContentVersionsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedIOSLobApp::ContentVersions::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + ## @param mobile_app_content_id The unique identifier of mobileAppContent + ## @return a mobile_app_content_item_request_builder + ## + def by_mobile_app_content_id(mobile_app_content_id) + raise StandardError, 'mobile_app_content_id cannot be null' if mobile_app_content_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppContent%2Did"] = mobile_app_content_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedIOSLobApp::ContentVersions::Item::MobileAppContentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ContentVersionsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to contentVersions for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to contentVersions for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_versions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentVersionsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of content versions for this app. + class ContentVersionsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_view/item/instances/item/attachments/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/count/count.rb similarity index 100% rename from lib/me/calendars/item/calendar_view/item/instances/item/attachments/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/count/count_request_builder.rb new file mode 100644 index 0000000000..88b2ac4ef6 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_managed_i_o_s_lob_app' +require_relative '../content_versions' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedIOSLobApp + module ContentVersions + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/events/item/instances/item/dismiss_reminder/dismiss_reminder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/contained_apps/contained_apps.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/events/item/instances/item/dismiss_reminder/dismiss_reminder.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/contained_apps/contained_apps.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/contained_apps/contained_apps_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/contained_apps/contained_apps_request_builder.rb new file mode 100644 index 0000000000..7be12665d8 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/contained_apps/contained_apps_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/mobile_contained_app' +require_relative '../../../../../../../models/mobile_contained_app_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../device_app_management' +require_relative '../../../../../mobile_apps' +require_relative '../../../../item' +require_relative '../../../graph_managed_i_o_s_lob_app' +require_relative '../../content_versions' +require_relative '../item' +require_relative './contained_apps' +require_relative './count/count_request_builder' +require_relative './item/mobile_contained_app_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedIOSLobApp + module ContentVersions + module Item + module ContainedApps + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + class ContainedAppsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedIOSLobApp::ContentVersions::Item::ContainedApps::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + ## @param mobile_contained_app_id The unique identifier of mobileContainedApp + ## @return a mobile_contained_app_item_request_builder + ## + def by_mobile_contained_app_id(mobile_contained_app_id) + raise StandardError, 'mobile_contained_app_id cannot be null' if mobile_contained_app_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileContainedApp%2Did"] = mobile_contained_app_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedIOSLobApp::ContentVersions::Item::ContainedApps::Item::MobileContainedAppItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ContainedAppsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to containedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to containedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a contained_apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContainedAppsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in a MobileLobApp acting as a package. + class ContainedAppsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_view/item/instances/item/extensions/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/contained_apps/count/count.rb similarity index 100% rename from lib/me/calendars/item/calendar_view/item/instances/item/extensions/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/contained_apps/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/contained_apps/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/contained_apps/count/count_request_builder.rb new file mode 100644 index 0000000000..a9d022bb22 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/contained_apps/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_managed_i_o_s_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../contained_apps' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedIOSLobApp + module ContentVersions + module Item + module ContainedApps + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_view/item/instances/item/extensions/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/contained_apps/item/item.rb similarity index 100% rename from lib/me/calendar_view/item/instances/item/extensions/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/contained_apps/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb new file mode 100644 index 0000000000..da9527e703 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb @@ -0,0 +1,178 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mobile_contained_app' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_managed_i_o_s_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../contained_apps' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedIOSLobApp + module ContentVersions + module Item + module ContainedApps + module Item + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + class MobileContainedAppItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property containedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property containedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property containedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property containedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_contained_app_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileContainedAppItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in a MobileLobApp acting as a package. + class MobileContainedAppItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/events/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/count/count.rb similarity index 100% rename from lib/me/calendars/item/events/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/count/count_request_builder.rb new file mode 100644 index 0000000000..b35b1bdfba --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_managed_i_o_s_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../files' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedIOSLobApp + module ContentVersions + module Item + module Files + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_groups/item/calendars/item/events/item/instances/item/extensions/extensions.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/files.rb similarity index 100% rename from lib/me/calendar_groups/item/calendars/item/events/item/instances/item/extensions/extensions.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/files.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/files_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/files_request_builder.rb new file mode 100644 index 0000000000..55c135658e --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/files_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/mobile_app_content_file' +require_relative '../../../../../../../models/mobile_app_content_file_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../device_app_management' +require_relative '../../../../../mobile_apps' +require_relative '../../../../item' +require_relative '../../../graph_managed_i_o_s_lob_app' +require_relative '../../content_versions' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './files' +require_relative './item/mobile_app_content_file_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedIOSLobApp + module ContentVersions + module Item + module Files + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + class FilesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedIOSLobApp::ContentVersions::Item::Files::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + ## @param mobile_app_content_file_id The unique identifier of mobileAppContentFile + ## @return a mobile_app_content_file_item_request_builder + ## + def by_mobile_app_content_file_id(mobile_app_content_file_id) + raise StandardError, 'mobile_app_content_file_id cannot be null' if mobile_app_content_file_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppContentFile%2Did"] = mobile_app_content_file_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedIOSLobApp::ContentVersions::Item::Files::Item::MobileAppContentFileItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new FilesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFileCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to files for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to files for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a files_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of files for this app content version. + class FilesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/item/commit/commit.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/item/commit/commit.rb new file mode 100644 index 0000000000..b61410499d --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/item/commit/commit.rb @@ -0,0 +1 @@ +require_relative 'commit_post_request_body' diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/item/commit/commit_post_request_body.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/item/commit/commit_post_request_body.rb new file mode 100644 index 0000000000..c8af65fbae --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/item/commit/commit_post_request_body.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/file_encryption_info' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_managed_i_o_s_lob_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './commit' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedIOSLobApp + module ContentVersions + module Item + module Files + module Item + module Commit + class CommitPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The fileEncryptionInfo property + @file_encryption_info + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new CommitPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a commit_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CommitPostRequestBody.new + end + ## + ## Gets the fileEncryptionInfo property value. The fileEncryptionInfo property + ## @return a file_encryption_info + ## + def file_encryption_info + return @file_encryption_info + end + ## + ## Sets the fileEncryptionInfo property value. The fileEncryptionInfo property + ## @param value Value to set for the fileEncryptionInfo property. + ## @return a void + ## + def file_encryption_info=(value) + @file_encryption_info = value + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "fileEncryptionInfo" => lambda {|n| @file_encryption_info = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::FileEncryptionInfo.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_object_value("fileEncryptionInfo", @file_encryption_info) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/item/commit/commit_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/item/commit/commit_request_builder.rb new file mode 100644 index 0000000000..43d2b80566 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/item/commit/commit_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_managed_i_o_s_lob_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './commit' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedIOSLobApp + module ContentVersions + module Item + module Files + module Item + module Commit + ## + # Provides operations to call the commit method. + class CommitRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CommitRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit") + end + ## + ## Commits a file of a given app. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Commits a file of a given app. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a commit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CommitRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_view/item/instances/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/item/item.rb similarity index 100% rename from lib/me/calendar_view/item/instances/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb new file mode 100644 index 0000000000..d5529940b2 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb @@ -0,0 +1,190 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mobile_app_content_file' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_managed_i_o_s_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../files' +require_relative './commit/commit_request_builder' +require_relative './item' +require_relative './renew_upload/renew_upload_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedIOSLobApp + module ContentVersions + module Item + module Files + module Item + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + class MobileAppContentFileItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the commit method. + def commit() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedIOSLobApp::ContentVersions::Item::Files::Item::Commit::CommitRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the renewUpload method. + def renew_upload() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedIOSLobApp::ContentVersions::Item::Files::Item::RenewUpload::RenewUploadRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property files for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property files in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property files for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property files in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_content_file_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppContentFileItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of files for this app content version. + class MobileAppContentFileItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_view/calendar_view.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/item/renew_upload/renew_upload.rb similarity index 100% rename from lib/me/calendar_view/calendar_view.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/item/renew_upload/renew_upload.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb new file mode 100644 index 0000000000..5d70a1f911 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_managed_i_o_s_lob_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './renew_upload' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedIOSLobApp + module ContentVersions + module Item + module Files + module Item + module RenewUpload + ## + # Provides operations to call the renewUpload method. + class RenewUploadRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RenewUploadRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload") + end + ## + ## Renews the SAS URI for an application file upload. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Renews the SAS URI for an application file upload. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a renew_upload_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RenewUploadRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_view/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/item.rb similarity index 100% rename from lib/me/calendar_view/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/mobile_app_content_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/mobile_app_content_item_request_builder.rb new file mode 100644 index 0000000000..ff405a402d --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/content_versions/item/mobile_app_content_item_request_builder.rb @@ -0,0 +1,184 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_content' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_managed_i_o_s_lob_app' +require_relative '../content_versions' +require_relative './contained_apps/contained_apps_request_builder' +require_relative './files/files_request_builder' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedIOSLobApp + module ContentVersions + module Item + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + class MobileAppContentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + def contained_apps() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedIOSLobApp::ContentVersions::Item::ContainedApps::ContainedAppsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + def files() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedIOSLobApp::ContentVersions::Item::Files::FilesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property contentVersions for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property contentVersions in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property contentVersions for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property contentVersions in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_content_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppContentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of content versions for this app. + class MobileAppContentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_view/item/attachments/attachments.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/graph_managed_i_o_s_lob_app.rb similarity index 100% rename from lib/me/calendar_view/item/attachments/attachments.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/graph_managed_i_o_s_lob_app.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/graph_managed_i_o_s_lob_app_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/graph_managed_i_o_s_lob_app_request_builder.rb new file mode 100644 index 0000000000..832135de84 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_i_o_s_lob_app/graph_managed_i_o_s_lob_app_request_builder.rb @@ -0,0 +1,119 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/managed_i_o_s_lob_app' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../item' +require_relative './assignments/assignments_request_builder' +require_relative './categories/categories_request_builder' +require_relative './content_versions/content_versions_request_builder' +require_relative './graph_managed_i_o_s_lob_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedIOSLobApp + ## + # Casts the previous resource to managedIOSLobApp. + class GraphManagedIOSLobAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + def assignments() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedIOSLobApp::Assignments::AssignmentsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + def categories() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedIOSLobApp::Categories::CategoriesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + def content_versions() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedIOSLobApp::ContentVersions::ContentVersionsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphManagedIOSLobAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp{?%24expand,%24select}") + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.managedIOSLobApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of managed_i_o_s_lob_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedIOSLobApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.managedIOSLobApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_managed_i_o_s_lob_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphManagedIOSLobAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the item of type microsoft.graph.mobileApp as microsoft.graph.managedIOSLobApp + class GraphManagedIOSLobAppRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_view/item/calendar/calendar.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/assignments/assignments.rb similarity index 100% rename from lib/me/calendar_view/item/calendar/calendar.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/assignments/assignments.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/assignments/assignments_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/assignments/assignments_request_builder.rb new file mode 100644 index 0000000000..e9785aee06 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/assignments/assignments_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_assignment' +require_relative '../../../../../models/mobile_app_assignment_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_managed_mobile_lob_app' +require_relative './assignments' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_assignment_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedMobileLobApp + module Assignments + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class AssignmentsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedMobileLobApp::Assignments::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_assignment_id The unique identifier of mobileAppAssignment + ## @return a mobile_app_assignment_item_request_builder + ## + def by_mobile_app_assignment_id(mobile_app_assignment_id) + raise StandardError, 'mobile_app_assignment_id cannot be null' if mobile_app_assignment_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppAssignment%2Did"] = mobile_app_assignment_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedMobileLobApp::Assignments::Item::MobileAppAssignmentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AssignmentsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class AssignmentsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/events/item/attachments/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/assignments/count/count.rb similarity index 100% rename from lib/me/calendars/item/events/item/attachments/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/assignments/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/assignments/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/assignments/count/count_request_builder.rb new file mode 100644 index 0000000000..95564b4c2d --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/assignments/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_managed_mobile_lob_app' +require_relative '../assignments' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedMobileLobApp + module Assignments + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/assignments/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_permissions/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/assignments/item/item.rb similarity index 100% rename from lib/me/calendars/item/calendar_permissions/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/assignments/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/assignments/item/mobile_app_assignment_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/assignments/item/mobile_app_assignment_item_request_builder.rb new file mode 100644 index 0000000000..084c7d5678 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/assignments/item/mobile_app_assignment_item_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_assignment' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_managed_mobile_lob_app' +require_relative '../assignments' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedMobileLobApp + module Assignments + module Item + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class MobileAppAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class MobileAppAssignmentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_view/item/dismiss_reminder/dismiss_reminder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/categories/categories.rb similarity index 100% rename from lib/me/calendar_view/item/dismiss_reminder/dismiss_reminder.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/categories/categories.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/categories/categories_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/categories/categories_request_builder.rb new file mode 100644 index 0000000000..4181fca509 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/categories/categories_request_builder.rb @@ -0,0 +1,152 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_category_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_managed_mobile_lob_app' +require_relative './categories' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_category_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedMobileLobApp + module Categories + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class CategoriesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedMobileLobApp::Categories::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_category_id The unique identifier of mobileAppCategory + ## @return a mobile_app_category_item_request_builder + ## + def by_mobile_app_category_id(mobile_app_category_id) + raise StandardError, 'mobile_app_category_id cannot be null' if mobile_app_category_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppCategory%2Did"] = mobile_app_category_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedMobileLobApp::Categories::Item::MobileAppCategoryItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new CategoriesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CategoriesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class CategoriesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/events/item/extensions/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/categories/count/count.rb similarity index 100% rename from lib/me/calendars/item/events/item/extensions/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/categories/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/categories/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/categories/count/count_request_builder.rb new file mode 100644 index 0000000000..ea740bc903 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/categories/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_managed_mobile_lob_app' +require_relative '../categories' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedMobileLobApp + module Categories + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/categories/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_view/item/attachments/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/categories/item/item.rb similarity index 100% rename from lib/me/calendars/item/calendar_view/item/attachments/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/categories/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/categories/item/mobile_app_category_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/categories/item/mobile_app_category_item_request_builder.rb new file mode 100644 index 0000000000..1f72afd9e4 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/categories/item/mobile_app_category_item_request_builder.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_category' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_managed_mobile_lob_app' +require_relative '../categories' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedMobileLobApp + module Categories + module Item + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class MobileAppCategoryItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategory.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_category_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppCategoryItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class MobileAppCategoryItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_view/item/extensions/extensions.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/content_versions.rb similarity index 100% rename from lib/me/calendar_view/item/extensions/extensions.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/content_versions.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/content_versions_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/content_versions_request_builder.rb new file mode 100644 index 0000000000..1b1d10de00 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/content_versions_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_content' +require_relative '../../../../../models/mobile_app_content_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_managed_mobile_lob_app' +require_relative './content_versions' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_content_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedMobileLobApp + module ContentVersions + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + class ContentVersionsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedMobileLobApp::ContentVersions::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + ## @param mobile_app_content_id The unique identifier of mobileAppContent + ## @return a mobile_app_content_item_request_builder + ## + def by_mobile_app_content_id(mobile_app_content_id) + raise StandardError, 'mobile_app_content_id cannot be null' if mobile_app_content_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppContent%2Did"] = mobile_app_content_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedMobileLobApp::ContentVersions::Item::MobileAppContentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ContentVersionsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to contentVersions for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to contentVersions for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_versions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentVersionsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of content versions for this app. + class ContentVersionsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/events/item/instances/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/count/count.rb similarity index 100% rename from lib/me/calendars/item/events/item/instances/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/count/count_request_builder.rb new file mode 100644 index 0000000000..f519a2d071 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_managed_mobile_lob_app' +require_relative '../content_versions' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedMobileLobApp + module ContentVersions + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_view/item/instances/instances.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/contained_apps/contained_apps.rb similarity index 100% rename from lib/me/calendar_view/item/instances/instances.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/contained_apps/contained_apps.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/contained_apps/contained_apps_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/contained_apps/contained_apps_request_builder.rb new file mode 100644 index 0000000000..483e1a38f7 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/contained_apps/contained_apps_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/mobile_contained_app' +require_relative '../../../../../../../models/mobile_contained_app_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../device_app_management' +require_relative '../../../../../mobile_apps' +require_relative '../../../../item' +require_relative '../../../graph_managed_mobile_lob_app' +require_relative '../../content_versions' +require_relative '../item' +require_relative './contained_apps' +require_relative './count/count_request_builder' +require_relative './item/mobile_contained_app_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedMobileLobApp + module ContentVersions + module Item + module ContainedApps + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + class ContainedAppsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedMobileLobApp::ContentVersions::Item::ContainedApps::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + ## @param mobile_contained_app_id The unique identifier of mobileContainedApp + ## @return a mobile_contained_app_item_request_builder + ## + def by_mobile_contained_app_id(mobile_contained_app_id) + raise StandardError, 'mobile_contained_app_id cannot be null' if mobile_contained_app_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileContainedApp%2Did"] = mobile_contained_app_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedMobileLobApp::ContentVersions::Item::ContainedApps::Item::MobileContainedAppItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ContainedAppsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to containedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to containedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a contained_apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContainedAppsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in a MobileLobApp acting as a package. + class ContainedAppsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/events/item/instances/item/attachments/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/contained_apps/count/count.rb similarity index 100% rename from lib/me/calendars/item/events/item/instances/item/attachments/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/contained_apps/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/contained_apps/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/contained_apps/count/count_request_builder.rb new file mode 100644 index 0000000000..532299d1de --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/contained_apps/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_managed_mobile_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../contained_apps' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedMobileLobApp + module ContentVersions + module Item + module ContainedApps + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_view/item/extensions/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/contained_apps/item/item.rb similarity index 100% rename from lib/me/calendars/item/calendar_view/item/extensions/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/contained_apps/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb new file mode 100644 index 0000000000..a61388fc09 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb @@ -0,0 +1,178 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mobile_contained_app' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_managed_mobile_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../contained_apps' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedMobileLobApp + module ContentVersions + module Item + module ContainedApps + module Item + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + class MobileContainedAppItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property containedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property containedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property containedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property containedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_contained_app_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileContainedAppItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in a MobileLobApp acting as a package. + class MobileContainedAppItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/events/item/instances/item/extensions/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/count/count.rb similarity index 100% rename from lib/me/calendars/item/events/item/instances/item/extensions/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/count/count_request_builder.rb new file mode 100644 index 0000000000..f422aea678 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_managed_mobile_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../files' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedMobileLobApp + module ContentVersions + module Item + module Files + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_view/item/instances/item/attachments/attachments.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/files.rb similarity index 100% rename from lib/me/calendar_view/item/instances/item/attachments/attachments.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/files.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/files_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/files_request_builder.rb new file mode 100644 index 0000000000..8524dcd3c1 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/files_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/mobile_app_content_file' +require_relative '../../../../../../../models/mobile_app_content_file_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../device_app_management' +require_relative '../../../../../mobile_apps' +require_relative '../../../../item' +require_relative '../../../graph_managed_mobile_lob_app' +require_relative '../../content_versions' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './files' +require_relative './item/mobile_app_content_file_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedMobileLobApp + module ContentVersions + module Item + module Files + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + class FilesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedMobileLobApp::ContentVersions::Item::Files::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + ## @param mobile_app_content_file_id The unique identifier of mobileAppContentFile + ## @return a mobile_app_content_file_item_request_builder + ## + def by_mobile_app_content_file_id(mobile_app_content_file_id) + raise StandardError, 'mobile_app_content_file_id cannot be null' if mobile_app_content_file_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppContentFile%2Did"] = mobile_app_content_file_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedMobileLobApp::ContentVersions::Item::Files::Item::MobileAppContentFileItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new FilesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFileCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to files for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to files for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a files_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of files for this app content version. + class FilesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/item/commit/commit.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/item/commit/commit.rb new file mode 100644 index 0000000000..b61410499d --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/item/commit/commit.rb @@ -0,0 +1 @@ +require_relative 'commit_post_request_body' diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/item/commit/commit_post_request_body.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/item/commit/commit_post_request_body.rb new file mode 100644 index 0000000000..f0f3dd6fa0 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/item/commit/commit_post_request_body.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/file_encryption_info' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_managed_mobile_lob_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './commit' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedMobileLobApp + module ContentVersions + module Item + module Files + module Item + module Commit + class CommitPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The fileEncryptionInfo property + @file_encryption_info + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new CommitPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a commit_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CommitPostRequestBody.new + end + ## + ## Gets the fileEncryptionInfo property value. The fileEncryptionInfo property + ## @return a file_encryption_info + ## + def file_encryption_info + return @file_encryption_info + end + ## + ## Sets the fileEncryptionInfo property value. The fileEncryptionInfo property + ## @param value Value to set for the fileEncryptionInfo property. + ## @return a void + ## + def file_encryption_info=(value) + @file_encryption_info = value + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "fileEncryptionInfo" => lambda {|n| @file_encryption_info = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::FileEncryptionInfo.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_object_value("fileEncryptionInfo", @file_encryption_info) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/item/commit/commit_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/item/commit/commit_request_builder.rb new file mode 100644 index 0000000000..7bbd2ed85d --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/item/commit/commit_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_managed_mobile_lob_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './commit' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedMobileLobApp + module ContentVersions + module Item + module Files + module Item + module Commit + ## + # Provides operations to call the commit method. + class CommitRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CommitRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit") + end + ## + ## Commits a file of a given app. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Commits a file of a given app. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a commit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CommitRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_view/item/instances/item/attachments/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/item/item.rb similarity index 100% rename from lib/me/calendars/item/calendar_view/item/instances/item/attachments/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb new file mode 100644 index 0000000000..ba2fd101f4 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb @@ -0,0 +1,190 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mobile_app_content_file' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_managed_mobile_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../files' +require_relative './commit/commit_request_builder' +require_relative './item' +require_relative './renew_upload/renew_upload_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedMobileLobApp + module ContentVersions + module Item + module Files + module Item + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + class MobileAppContentFileItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the commit method. + def commit() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedMobileLobApp::ContentVersions::Item::Files::Item::Commit::CommitRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the renewUpload method. + def renew_upload() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedMobileLobApp::ContentVersions::Item::Files::Item::RenewUpload::RenewUploadRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property files for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property files in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property files for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property files in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_content_file_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppContentFileItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of files for this app content version. + class MobileAppContentFileItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_view/item/instances/item/calendar/calendar.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/item/renew_upload/renew_upload.rb similarity index 100% rename from lib/me/calendar_view/item/instances/item/calendar/calendar.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/item/renew_upload/renew_upload.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb new file mode 100644 index 0000000000..57bc391009 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_managed_mobile_lob_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './renew_upload' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedMobileLobApp + module ContentVersions + module Item + module Files + module Item + module RenewUpload + ## + # Provides operations to call the renewUpload method. + class RenewUploadRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RenewUploadRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload") + end + ## + ## Renews the SAS URI for an application file upload. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Renews the SAS URI for an application file upload. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a renew_upload_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RenewUploadRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_view/item/instances/item/extensions/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/item.rb similarity index 100% rename from lib/me/calendars/item/calendar_view/item/instances/item/extensions/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/mobile_app_content_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/mobile_app_content_item_request_builder.rb new file mode 100644 index 0000000000..00c3da5d0a --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/content_versions/item/mobile_app_content_item_request_builder.rb @@ -0,0 +1,184 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_content' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_managed_mobile_lob_app' +require_relative '../content_versions' +require_relative './contained_apps/contained_apps_request_builder' +require_relative './files/files_request_builder' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphManagedMobileLobApp + module ContentVersions + module Item + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + class MobileAppContentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + def contained_apps() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedMobileLobApp::ContentVersions::Item::ContainedApps::ContainedAppsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + def files() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedMobileLobApp::ContentVersions::Item::Files::FilesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property contentVersions for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property contentVersions in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property contentVersions for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property contentVersions in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_content_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppContentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of content versions for this app. + class MobileAppContentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/graph_managed_mobile_lob_app_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/graph_managed_mobile_lob_app_request_builder.rb index 35cd13fce5..50df80f66d 100644 --- a/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/graph_managed_mobile_lob_app_request_builder.rb +++ b/lib/device_app_management/mobile_apps/item/graph_managed_mobile_lob_app/graph_managed_mobile_lob_app_request_builder.rb @@ -5,6 +5,9 @@ require_relative '../../../device_app_management' require_relative '../../mobile_apps' require_relative '../item' +require_relative './assignments/assignments_request_builder' +require_relative './categories/categories_request_builder' +require_relative './content_versions/content_versions_request_builder' require_relative './graph_managed_mobile_lob_app' module MicrosoftGraph @@ -16,6 +19,21 @@ module GraphManagedMobileLobApp # Casts the previous resource to managedMobileLobApp. class GraphManagedMobileLobAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + def assignments() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedMobileLobApp::Assignments::AssignmentsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + def categories() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedMobileLobApp::Categories::CategoriesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + def content_versions() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedMobileLobApp::ContentVersions::ContentVersionsRequestBuilder.new(@path_parameters, @request_adapter) + end ## ## Instantiates a new GraphManagedMobileLobAppRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -23,7 +41,7 @@ class GraphManagedMobileLobAppRequestBuilder < MicrosoftKiotaAbstractions::BaseR ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.managedMobileLobApp @@ -35,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedMobileLobApp.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_managed_mobile_lob_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphManagedMobileLobAppRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.mobileApp as microsoft.graph.managedMobileLobApp diff --git a/lib/me/calendar_view/item/instances/item/dismiss_reminder/dismiss_reminder.rb b/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/assignments/assignments.rb similarity index 100% rename from lib/me/calendar_view/item/instances/item/dismiss_reminder/dismiss_reminder.rb rename to lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/assignments/assignments.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/assignments/assignments_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/assignments/assignments_request_builder.rb new file mode 100644 index 0000000000..bc811ddc77 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/assignments/assignments_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_assignment' +require_relative '../../../../../models/mobile_app_assignment_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_microsoft_store_for_business_app' +require_relative './assignments' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_assignment_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMicrosoftStoreForBusinessApp + module Assignments + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class AssignmentsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMicrosoftStoreForBusinessApp::Assignments::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_assignment_id The unique identifier of mobileAppAssignment + ## @return a mobile_app_assignment_item_request_builder + ## + def by_mobile_app_assignment_id(mobile_app_assignment_id) + raise StandardError, 'mobile_app_assignment_id cannot be null' if mobile_app_assignment_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppAssignment%2Did"] = mobile_app_assignment_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMicrosoftStoreForBusinessApp::Assignments::Item::MobileAppAssignmentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AssignmentsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class AssignmentsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/assignments/count/count.rb similarity index 100% rename from lib/me/chats/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/assignments/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/assignments/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/assignments/count/count_request_builder.rb new file mode 100644 index 0000000000..5b646b4277 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/assignments/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_microsoft_store_for_business_app' +require_relative '../assignments' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMicrosoftStoreForBusinessApp + module Assignments + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/assignments/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_view/item/instances/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/assignments/item/item.rb similarity index 100% rename from lib/me/calendars/item/calendar_view/item/instances/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/assignments/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/assignments/item/mobile_app_assignment_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/assignments/item/mobile_app_assignment_item_request_builder.rb new file mode 100644 index 0000000000..b566ef00b3 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/assignments/item/mobile_app_assignment_item_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_assignment' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_microsoft_store_for_business_app' +require_relative '../assignments' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMicrosoftStoreForBusinessApp + module Assignments + module Item + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class MobileAppAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class MobileAppAssignmentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendar_view/item/instances/item/extensions/extensions.rb b/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/categories/categories.rb similarity index 100% rename from lib/me/calendar_view/item/instances/item/extensions/extensions.rb rename to lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/categories/categories.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/categories/categories_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/categories/categories_request_builder.rb new file mode 100644 index 0000000000..aa6ed794c8 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/categories/categories_request_builder.rb @@ -0,0 +1,152 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_category_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_microsoft_store_for_business_app' +require_relative './categories' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_category_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMicrosoftStoreForBusinessApp + module Categories + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class CategoriesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMicrosoftStoreForBusinessApp::Categories::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_category_id The unique identifier of mobileAppCategory + ## @return a mobile_app_category_item_request_builder + ## + def by_mobile_app_category_id(mobile_app_category_id) + raise StandardError, 'mobile_app_category_id cannot be null' if mobile_app_category_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppCategory%2Did"] = mobile_app_category_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMicrosoftStoreForBusinessApp::Categories::Item::MobileAppCategoryItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new CategoriesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CategoriesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class CategoriesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/installed_apps/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/categories/count/count.rb similarity index 100% rename from lib/me/chats/item/installed_apps/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/categories/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/categories/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/categories/count/count_request_builder.rb new file mode 100644 index 0000000000..7880b69db5 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/categories/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_microsoft_store_for_business_app' +require_relative '../categories' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMicrosoftStoreForBusinessApp + module Categories + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/categories/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_view/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/categories/item/item.rb similarity index 100% rename from lib/me/calendars/item/calendar_view/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/categories/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/categories/item/mobile_app_category_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/categories/item/mobile_app_category_item_request_builder.rb new file mode 100644 index 0000000000..a27ef23753 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/categories/item/mobile_app_category_item_request_builder.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_category' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_microsoft_store_for_business_app' +require_relative '../categories' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMicrosoftStoreForBusinessApp + module Categories + module Item + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class MobileAppCategoryItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategory.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_category_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppCategoryItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class MobileAppCategoryItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/calendars.rb b/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/graph_microsoft_store_for_business_app.rb similarity index 100% rename from lib/me/calendars/calendars.rb rename to lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/graph_microsoft_store_for_business_app.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/graph_microsoft_store_for_business_app_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/graph_microsoft_store_for_business_app_request_builder.rb new file mode 100644 index 0000000000..882a65e666 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_microsoft_store_for_business_app/graph_microsoft_store_for_business_app_request_builder.rb @@ -0,0 +1,113 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/microsoft_store_for_business_app' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../item' +require_relative './assignments/assignments_request_builder' +require_relative './categories/categories_request_builder' +require_relative './graph_microsoft_store_for_business_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphMicrosoftStoreForBusinessApp + ## + # Casts the previous resource to microsoftStoreForBusinessApp. + class GraphMicrosoftStoreForBusinessAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + def assignments() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMicrosoftStoreForBusinessApp::Assignments::AssignmentsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + def categories() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMicrosoftStoreForBusinessApp::Categories::CategoriesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphMicrosoftStoreForBusinessAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp{?%24expand,%24select}") + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.microsoftStoreForBusinessApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of microsoft_store_for_business_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MicrosoftStoreForBusinessApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.microsoftStoreForBusinessApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_microsoft_store_for_business_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphMicrosoftStoreForBusinessAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the item of type microsoft.graph.mobileApp as microsoft.graph.microsoftStoreForBusinessApp + class GraphMicrosoftStoreForBusinessAppRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_mobile_lob_app/graph_mobile_lob_app_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_mobile_lob_app/graph_mobile_lob_app_request_builder.rb deleted file mode 100644 index 17271020fb..0000000000 --- a/lib/device_app_management/mobile_apps/item/graph_mobile_lob_app/graph_mobile_lob_app_request_builder.rb +++ /dev/null @@ -1,93 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/mobile_lob_app' -require_relative '../../../../models/o_data_errors_o_data_error' -require_relative '../../../device_app_management' -require_relative '../../mobile_apps' -require_relative '../item' -require_relative './graph_mobile_lob_app' - -module MicrosoftGraph - module DeviceAppManagement - module MobileApps - module Item - module GraphMobileLobApp - ## - # Casts the previous resource to mobileLobApp. - class GraphMobileLobAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new GraphMobileLobAppRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.mobileLobApp{?%24select,%24expand}") - end - ## - ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.mobileLobApp - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of mobile_lob_app - ## - def get(request_configuration=nil) - request_info = self.to_get_request_information( - request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileLobApp.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.mobileLobApp - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_get_request_information(request_configuration=nil) - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) - request_info.add_request_options(request_configuration.options) - end - return request_info - end - - ## - # Get the item of type microsoft.graph.mobileApp as microsoft.graph.mobileLobApp - class GraphMobileLobAppRequestBuilderGetQueryParameters - - ## - # Expand related entities - attr_accessor :expand - ## - # Select properties to be returned - attr_accessor :select - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "expand" - return "%24expand" - when "select" - return "%24select" - else - return original_name - end - end - end - end - end - end - end - end -end diff --git a/lib/me/calendars/item/calendar_permissions/calendar_permissions.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/assignments/assignments.rb similarity index 100% rename from lib/me/calendars/item/calendar_permissions/calendar_permissions.rb rename to lib/device_app_management/mobile_apps/item/graph_win32_lob_app/assignments/assignments.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/assignments/assignments_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/assignments/assignments_request_builder.rb new file mode 100644 index 0000000000..1ad0f563ba --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/assignments/assignments_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_assignment' +require_relative '../../../../../models/mobile_app_assignment_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_win32_lob_app' +require_relative './assignments' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_assignment_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWin32LobApp + module Assignments + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class AssignmentsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWin32LobApp::Assignments::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_assignment_id The unique identifier of mobileAppAssignment + ## @return a mobile_app_assignment_item_request_builder + ## + def by_mobile_app_assignment_id(mobile_app_assignment_id) + raise StandardError, 'mobile_app_assignment_id cannot be null' if mobile_app_assignment_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppAssignment%2Did"] = mobile_app_assignment_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWin32LobApp::Assignments::Item::MobileAppAssignmentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AssignmentsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class AssignmentsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/members/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/assignments/count/count.rb similarity index 100% rename from lib/me/chats/item/members/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_win32_lob_app/assignments/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/assignments/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/assignments/count/count_request_builder.rb new file mode 100644 index 0000000000..17a318ca41 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/assignments/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_win32_lob_app' +require_relative '../assignments' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWin32LobApp + module Assignments + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/assignments/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/events/item/attachments/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/assignments/item/item.rb similarity index 100% rename from lib/me/calendars/item/events/item/attachments/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_win32_lob_app/assignments/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/assignments/item/mobile_app_assignment_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/assignments/item/mobile_app_assignment_item_request_builder.rb new file mode 100644 index 0000000000..a3c88419b7 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/assignments/item/mobile_app_assignment_item_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_assignment' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_win32_lob_app' +require_relative '../assignments' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWin32LobApp + module Assignments + module Item + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class MobileAppAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class MobileAppAssignmentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_view/calendar_view.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/categories/categories.rb similarity index 100% rename from lib/me/calendars/item/calendar_view/calendar_view.rb rename to lib/device_app_management/mobile_apps/item/graph_win32_lob_app/categories/categories.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/categories/categories_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/categories/categories_request_builder.rb new file mode 100644 index 0000000000..90339948c3 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/categories/categories_request_builder.rb @@ -0,0 +1,152 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_category_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_win32_lob_app' +require_relative './categories' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_category_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWin32LobApp + module Categories + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class CategoriesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWin32LobApp::Categories::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_category_id The unique identifier of mobileAppCategory + ## @return a mobile_app_category_item_request_builder + ## + def by_mobile_app_category_id(mobile_app_category_id) + raise StandardError, 'mobile_app_category_id cannot be null' if mobile_app_category_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppCategory%2Did"] = mobile_app_category_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWin32LobApp::Categories::Item::MobileAppCategoryItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new CategoriesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CategoriesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class CategoriesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/messages/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/categories/count/count.rb similarity index 100% rename from lib/me/chats/item/messages/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_win32_lob_app/categories/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/categories/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/categories/count/count_request_builder.rb new file mode 100644 index 0000000000..13aea5460a --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/categories/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_win32_lob_app' +require_relative '../categories' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWin32LobApp + module Categories + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/categories/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/events/item/extensions/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/categories/item/item.rb similarity index 100% rename from lib/me/calendars/item/events/item/extensions/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_win32_lob_app/categories/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/categories/item/mobile_app_category_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/categories/item/mobile_app_category_item_request_builder.rb new file mode 100644 index 0000000000..6ed88d37a6 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/categories/item/mobile_app_category_item_request_builder.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_category' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_win32_lob_app' +require_relative '../categories' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWin32LobApp + module Categories + module Item + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class MobileAppCategoryItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategory.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_category_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppCategoryItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class MobileAppCategoryItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_view/item/attachments/attachments.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/content_versions.rb similarity index 100% rename from lib/me/calendars/item/calendar_view/item/attachments/attachments.rb rename to lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/content_versions.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/content_versions_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/content_versions_request_builder.rb new file mode 100644 index 0000000000..17be277ab1 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/content_versions_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_content' +require_relative '../../../../../models/mobile_app_content_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_win32_lob_app' +require_relative './content_versions' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_content_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWin32LobApp + module ContentVersions + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + class ContentVersionsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWin32LobApp::ContentVersions::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + ## @param mobile_app_content_id The unique identifier of mobileAppContent + ## @return a mobile_app_content_item_request_builder + ## + def by_mobile_app_content_id(mobile_app_content_id) + raise StandardError, 'mobile_app_content_id cannot be null' if mobile_app_content_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppContent%2Did"] = mobile_app_content_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWin32LobApp::ContentVersions::Item::MobileAppContentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ContentVersionsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to contentVersions for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to contentVersions for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_versions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentVersionsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of content versions for this app. + class ContentVersionsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/messages/item/hosted_contents/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/count/count.rb similarity index 100% rename from lib/me/chats/item/messages/item/hosted_contents/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/count/count_request_builder.rb new file mode 100644 index 0000000000..f15faca29d --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_win32_lob_app' +require_relative '../content_versions' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWin32LobApp + module ContentVersions + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_view/item/calendar/calendar.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/contained_apps/contained_apps.rb similarity index 100% rename from lib/me/calendars/item/calendar_view/item/calendar/calendar.rb rename to lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/contained_apps/contained_apps.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/contained_apps/contained_apps_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/contained_apps/contained_apps_request_builder.rb new file mode 100644 index 0000000000..2fce5e043c --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/contained_apps/contained_apps_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/mobile_contained_app' +require_relative '../../../../../../../models/mobile_contained_app_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../device_app_management' +require_relative '../../../../../mobile_apps' +require_relative '../../../../item' +require_relative '../../../graph_win32_lob_app' +require_relative '../../content_versions' +require_relative '../item' +require_relative './contained_apps' +require_relative './count/count_request_builder' +require_relative './item/mobile_contained_app_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWin32LobApp + module ContentVersions + module Item + module ContainedApps + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + class ContainedAppsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWin32LobApp::ContentVersions::Item::ContainedApps::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + ## @param mobile_contained_app_id The unique identifier of mobileContainedApp + ## @return a mobile_contained_app_item_request_builder + ## + def by_mobile_contained_app_id(mobile_contained_app_id) + raise StandardError, 'mobile_contained_app_id cannot be null' if mobile_contained_app_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileContainedApp%2Did"] = mobile_contained_app_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWin32LobApp::ContentVersions::Item::ContainedApps::Item::MobileContainedAppItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ContainedAppsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to containedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to containedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a contained_apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContainedAppsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in a MobileLobApp acting as a package. + class ContainedAppsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/messages/item/replies/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/contained_apps/count/count.rb similarity index 100% rename from lib/me/chats/item/messages/item/replies/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/contained_apps/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/contained_apps/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/contained_apps/count/count_request_builder.rb new file mode 100644 index 0000000000..abed1efb60 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/contained_apps/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_win32_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../contained_apps' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWin32LobApp + module ContentVersions + module Item + module ContainedApps + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/events/item/instances/item/attachments/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/contained_apps/item/item.rb similarity index 100% rename from lib/me/calendars/item/events/item/instances/item/attachments/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/contained_apps/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb new file mode 100644 index 0000000000..c766b026b0 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb @@ -0,0 +1,178 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mobile_contained_app' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_win32_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../contained_apps' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWin32LobApp + module ContentVersions + module Item + module ContainedApps + module Item + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + class MobileContainedAppItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property containedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property containedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property containedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property containedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_contained_app_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileContainedAppItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in a MobileLobApp acting as a package. + class MobileContainedAppItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/messages/item/replies/item/hosted_contents/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/count/count.rb similarity index 100% rename from lib/me/chats/item/messages/item/replies/item/hosted_contents/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/count/count_request_builder.rb new file mode 100644 index 0000000000..c2fe01ec81 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_win32_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../files' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWin32LobApp + module ContentVersions + module Item + module Files + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_view/item/dismiss_reminder/dismiss_reminder.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/files.rb similarity index 100% rename from lib/me/calendars/item/calendar_view/item/dismiss_reminder/dismiss_reminder.rb rename to lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/files.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/files_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/files_request_builder.rb new file mode 100644 index 0000000000..8067eb98ed --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/files_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/mobile_app_content_file' +require_relative '../../../../../../../models/mobile_app_content_file_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../device_app_management' +require_relative '../../../../../mobile_apps' +require_relative '../../../../item' +require_relative '../../../graph_win32_lob_app' +require_relative '../../content_versions' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './files' +require_relative './item/mobile_app_content_file_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWin32LobApp + module ContentVersions + module Item + module Files + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + class FilesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWin32LobApp::ContentVersions::Item::Files::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + ## @param mobile_app_content_file_id The unique identifier of mobileAppContentFile + ## @return a mobile_app_content_file_item_request_builder + ## + def by_mobile_app_content_file_id(mobile_app_content_file_id) + raise StandardError, 'mobile_app_content_file_id cannot be null' if mobile_app_content_file_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppContentFile%2Did"] = mobile_app_content_file_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWin32LobApp::ContentVersions::Item::Files::Item::MobileAppContentFileItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new FilesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFileCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to files for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to files for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a files_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of files for this app content version. + class FilesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/item/commit/commit.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/item/commit/commit.rb new file mode 100644 index 0000000000..b61410499d --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/item/commit/commit.rb @@ -0,0 +1 @@ +require_relative 'commit_post_request_body' diff --git a/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/item/commit/commit_post_request_body.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/item/commit/commit_post_request_body.rb new file mode 100644 index 0000000000..1b630a4058 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/item/commit/commit_post_request_body.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/file_encryption_info' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_win32_lob_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './commit' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWin32LobApp + module ContentVersions + module Item + module Files + module Item + module Commit + class CommitPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The fileEncryptionInfo property + @file_encryption_info + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new CommitPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a commit_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CommitPostRequestBody.new + end + ## + ## Gets the fileEncryptionInfo property value. The fileEncryptionInfo property + ## @return a file_encryption_info + ## + def file_encryption_info + return @file_encryption_info + end + ## + ## Sets the fileEncryptionInfo property value. The fileEncryptionInfo property + ## @param value Value to set for the fileEncryptionInfo property. + ## @return a void + ## + def file_encryption_info=(value) + @file_encryption_info = value + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "fileEncryptionInfo" => lambda {|n| @file_encryption_info = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::FileEncryptionInfo.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_object_value("fileEncryptionInfo", @file_encryption_info) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/item/commit/commit_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/item/commit/commit_request_builder.rb new file mode 100644 index 0000000000..da4cf948c1 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/item/commit/commit_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_win32_lob_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './commit' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWin32LobApp + module ContentVersions + module Item + module Files + module Item + module Commit + ## + # Provides operations to call the commit method. + class CommitRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CommitRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit") + end + ## + ## Commits a file of a given app. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Commits a file of a given app. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a commit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CommitRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/events/item/instances/item/extensions/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/item/item.rb similarity index 100% rename from lib/me/calendars/item/events/item/instances/item/extensions/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb new file mode 100644 index 0000000000..3cf6d41e2b --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb @@ -0,0 +1,190 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mobile_app_content_file' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_win32_lob_app' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../files' +require_relative './commit/commit_request_builder' +require_relative './item' +require_relative './renew_upload/renew_upload_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWin32LobApp + module ContentVersions + module Item + module Files + module Item + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + class MobileAppContentFileItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the commit method. + def commit() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWin32LobApp::ContentVersions::Item::Files::Item::Commit::CommitRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the renewUpload method. + def renew_upload() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWin32LobApp::ContentVersions::Item::Files::Item::RenewUpload::RenewUploadRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property files for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property files in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property files for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property files in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_content_file_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppContentFileItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of files for this app content version. + class MobileAppContentFileItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_view/item/extensions/extensions.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/item/renew_upload/renew_upload.rb similarity index 100% rename from lib/me/calendars/item/calendar_view/item/extensions/extensions.rb rename to lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/item/renew_upload/renew_upload.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb new file mode 100644 index 0000000000..447571251b --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_win32_lob_app' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './renew_upload' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWin32LobApp + module ContentVersions + module Item + module Files + module Item + module RenewUpload + ## + # Provides operations to call the renewUpload method. + class RenewUploadRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RenewUploadRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload") + end + ## + ## Renews the SAS URI for an application file upload. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Renews the SAS URI for an application file upload. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a renew_upload_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RenewUploadRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/events/item/instances/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/item.rb similarity index 100% rename from lib/me/calendars/item/events/item/instances/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/mobile_app_content_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/mobile_app_content_item_request_builder.rb new file mode 100644 index 0000000000..3550c67827 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/content_versions/item/mobile_app_content_item_request_builder.rb @@ -0,0 +1,184 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_content' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_win32_lob_app' +require_relative '../content_versions' +require_relative './contained_apps/contained_apps_request_builder' +require_relative './files/files_request_builder' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWin32LobApp + module ContentVersions + module Item + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + class MobileAppContentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + def contained_apps() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWin32LobApp::ContentVersions::Item::ContainedApps::ContainedAppsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + def files() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWin32LobApp::ContentVersions::Item::Files::FilesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property contentVersions for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property contentVersions in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property contentVersions for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property contentVersions in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_content_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppContentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of content versions for this app. + class MobileAppContentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_view/item/instances/instances.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/graph_win32_lob_app.rb similarity index 100% rename from lib/me/calendars/item/calendar_view/item/instances/instances.rb rename to lib/device_app_management/mobile_apps/item/graph_win32_lob_app/graph_win32_lob_app.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/graph_win32_lob_app_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/graph_win32_lob_app_request_builder.rb new file mode 100644 index 0000000000..3572043357 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_win32_lob_app/graph_win32_lob_app_request_builder.rb @@ -0,0 +1,119 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../../models/win32_lob_app' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../item' +require_relative './assignments/assignments_request_builder' +require_relative './categories/categories_request_builder' +require_relative './content_versions/content_versions_request_builder' +require_relative './graph_win32_lob_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWin32LobApp + ## + # Casts the previous resource to win32LobApp. + class GraphWin32LobAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + def assignments() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWin32LobApp::Assignments::AssignmentsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + def categories() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWin32LobApp::Categories::CategoriesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + def content_versions() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWin32LobApp::ContentVersions::ContentVersionsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphWin32LobAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp{?%24expand,%24select}") + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.win32LobApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of win32_lob_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Win32LobApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.win32LobApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_win32_lob_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphWin32LobAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the item of type microsoft.graph.mobileApp as microsoft.graph.win32LobApp + class GraphWin32LobAppRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_view/item/instances/item/attachments/attachments.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/assignments/assignments.rb similarity index 100% rename from lib/me/calendars/item/calendar_view/item/instances/item/attachments/attachments.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_app_x/assignments/assignments.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_app_x/assignments/assignments_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/assignments/assignments_request_builder.rb new file mode 100644 index 0000000000..7825c1c5e2 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/assignments/assignments_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_assignment' +require_relative '../../../../../models/mobile_app_assignment_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_windows_app_x' +require_relative './assignments' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_assignment_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsAppX + module Assignments + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class AssignmentsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsAppX::Assignments::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_assignment_id The unique identifier of mobileAppAssignment + ## @return a mobile_app_assignment_item_request_builder + ## + def by_mobile_app_assignment_id(mobile_app_assignment_id) + raise StandardError, 'mobile_app_assignment_id cannot be null' if mobile_app_assignment_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppAssignment%2Did"] = mobile_app_assignment_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsAppX::Assignments::Item::MobileAppAssignmentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AssignmentsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class AssignmentsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/permission_grants/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/assignments/count/count.rb similarity index 100% rename from lib/me/chats/item/permission_grants/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_app_x/assignments/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_app_x/assignments/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/assignments/count/count_request_builder.rb new file mode 100644 index 0000000000..2856e19528 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/assignments/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_app_x' +require_relative '../assignments' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsAppX + module Assignments + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/assignments/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/events/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/assignments/item/item.rb similarity index 100% rename from lib/me/calendars/item/events/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_app_x/assignments/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_app_x/assignments/item/mobile_app_assignment_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/assignments/item/mobile_app_assignment_item_request_builder.rb new file mode 100644 index 0000000000..99e3cfd348 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/assignments/item/mobile_app_assignment_item_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_assignment' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_app_x' +require_relative '../assignments' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsAppX + module Assignments + module Item + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class MobileAppAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class MobileAppAssignmentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_view/item/instances/item/calendar/calendar.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/categories/categories.rb similarity index 100% rename from lib/me/calendars/item/calendar_view/item/instances/item/calendar/calendar.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_app_x/categories/categories.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_app_x/categories/categories_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/categories/categories_request_builder.rb new file mode 100644 index 0000000000..5f06611fbc --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/categories/categories_request_builder.rb @@ -0,0 +1,152 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_category_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_windows_app_x' +require_relative './categories' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_category_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsAppX + module Categories + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class CategoriesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsAppX::Categories::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_category_id The unique identifier of mobileAppCategory + ## @return a mobile_app_category_item_request_builder + ## + def by_mobile_app_category_id(mobile_app_category_id) + raise StandardError, 'mobile_app_category_id cannot be null' if mobile_app_category_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppCategory%2Did"] = mobile_app_category_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsAppX::Categories::Item::MobileAppCategoryItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new CategoriesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CategoriesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class CategoriesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/pinned_messages/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/categories/count/count.rb similarity index 100% rename from lib/me/chats/item/pinned_messages/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_app_x/categories/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_app_x/categories/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/categories/count/count_request_builder.rb new file mode 100644 index 0000000000..9f0b74f01a --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/categories/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_app_x' +require_relative '../categories' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsAppX + module Categories + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/categories/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/categories/item/item.rb similarity index 100% rename from lib/me/calendars/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_app_x/categories/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_app_x/categories/item/mobile_app_category_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/categories/item/mobile_app_category_item_request_builder.rb new file mode 100644 index 0000000000..0cb47f7c54 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/categories/item/mobile_app_category_item_request_builder.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_category' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_app_x' +require_relative '../categories' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsAppX + module Categories + module Item + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class MobileAppCategoryItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/categories/{mobileAppCategory%2Did}{?%24expand,%24select}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategory.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_category_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppCategoryItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class MobileAppCategoryItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_view/item/instances/item/dismiss_reminder/dismiss_reminder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/content_versions.rb similarity index 100% rename from lib/me/calendars/item/calendar_view/item/instances/item/dismiss_reminder/dismiss_reminder.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/content_versions.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/content_versions_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/content_versions_request_builder.rb new file mode 100644 index 0000000000..3fb62852d0 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/content_versions_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_content' +require_relative '../../../../../models/mobile_app_content_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_windows_app_x' +require_relative './content_versions' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_content_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsAppX + module ContentVersions + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + class ContentVersionsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsAppX::ContentVersions::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + ## @param mobile_app_content_id The unique identifier of mobileAppContent + ## @return a mobile_app_content_item_request_builder + ## + def by_mobile_app_content_id(mobile_app_content_id) + raise StandardError, 'mobile_app_content_id cannot be null' if mobile_app_content_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppContent%2Did"] = mobile_app_content_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsAppX::ContentVersions::Item::MobileAppContentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ContentVersionsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to contentVersions for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to contentVersions for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_versions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentVersionsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of content versions for this app. + class ContentVersionsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/tabs/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/count/count.rb similarity index 100% rename from lib/me/chats/item/tabs/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/count/count_request_builder.rb new file mode 100644 index 0000000000..9b3b755729 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_app_x' +require_relative '../content_versions' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsAppX + module ContentVersions + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/calendar_view/item/instances/item/extensions/extensions.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/contained_apps/contained_apps.rb similarity index 100% rename from lib/me/calendars/item/calendar_view/item/instances/item/extensions/extensions.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/contained_apps/contained_apps.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/contained_apps/contained_apps_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/contained_apps/contained_apps_request_builder.rb new file mode 100644 index 0000000000..cb1f4db929 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/contained_apps/contained_apps_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/mobile_contained_app' +require_relative '../../../../../../../models/mobile_contained_app_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../device_app_management' +require_relative '../../../../../mobile_apps' +require_relative '../../../../item' +require_relative '../../../graph_windows_app_x' +require_relative '../../content_versions' +require_relative '../item' +require_relative './contained_apps' +require_relative './count/count_request_builder' +require_relative './item/mobile_contained_app_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsAppX + module ContentVersions + module Item + module ContainedApps + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + class ContainedAppsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsAppX::ContentVersions::Item::ContainedApps::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + ## @param mobile_contained_app_id The unique identifier of mobileContainedApp + ## @return a mobile_contained_app_item_request_builder + ## + def by_mobile_contained_app_id(mobile_contained_app_id) + raise StandardError, 'mobile_contained_app_id cannot be null' if mobile_contained_app_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileContainedApp%2Did"] = mobile_contained_app_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsAppX::ContentVersions::Item::ContainedApps::Item::MobileContainedAppItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ContainedAppsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/containedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to containedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to containedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a contained_apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContainedAppsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in a MobileLobApp acting as a package. + class ContainedAppsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/contact_folders/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/contained_apps/count/count.rb similarity index 100% rename from lib/me/contact_folders/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/contained_apps/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/contained_apps/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/contained_apps/count/count_request_builder.rb new file mode 100644 index 0000000000..c115c00402 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/contained_apps/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_windows_app_x' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../contained_apps' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsAppX + module ContentVersions + module Item + module ContainedApps + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/installed_apps/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/contained_apps/item/item.rb similarity index 100% rename from lib/me/chats/item/installed_apps/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/contained_apps/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb new file mode 100644 index 0000000000..4f76e54a5f --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb @@ -0,0 +1,178 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mobile_contained_app' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_windows_app_x' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../contained_apps' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsAppX + module ContentVersions + module Item + module ContainedApps + module Item + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + class MobileContainedAppItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property containedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property containedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property containedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property containedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_contained_app_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileContainedAppItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in a MobileLobApp acting as a package. + class MobileContainedAppItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/contact_folders/item/child_folders/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/count/count.rb similarity index 100% rename from lib/me/contact_folders/item/child_folders/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/count/count_request_builder.rb new file mode 100644 index 0000000000..99d81a242a --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_windows_app_x' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../files' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsAppX + module ContentVersions + module Item + module Files + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/events/events.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/files.rb similarity index 100% rename from lib/me/calendars/item/events/events.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/files.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/files_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/files_request_builder.rb new file mode 100644 index 0000000000..e24a2d1220 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/files_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/mobile_app_content_file' +require_relative '../../../../../../../models/mobile_app_content_file_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../device_app_management' +require_relative '../../../../../mobile_apps' +require_relative '../../../../item' +require_relative '../../../graph_windows_app_x' +require_relative '../../content_versions' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './files' +require_relative './item/mobile_app_content_file_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsAppX + module ContentVersions + module Item + module Files + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + class FilesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsAppX::ContentVersions::Item::Files::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + ## @param mobile_app_content_file_id The unique identifier of mobileAppContentFile + ## @return a mobile_app_content_file_item_request_builder + ## + def by_mobile_app_content_file_id(mobile_app_content_file_id) + raise StandardError, 'mobile_app_content_file_id cannot be null' if mobile_app_content_file_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppContentFile%2Did"] = mobile_app_content_file_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsAppX::ContentVersions::Item::Files::Item::MobileAppContentFileItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new FilesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFileCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to files for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to files for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a files_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of files for this app content version. + class FilesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/item/commit/commit.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/item/commit/commit.rb new file mode 100644 index 0000000000..b61410499d --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/item/commit/commit.rb @@ -0,0 +1 @@ +require_relative 'commit_post_request_body' diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/item/commit/commit_post_request_body.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/item/commit/commit_post_request_body.rb new file mode 100644 index 0000000000..8c48dd4c72 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/item/commit/commit_post_request_body.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/file_encryption_info' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_windows_app_x' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './commit' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsAppX + module ContentVersions + module Item + module Files + module Item + module Commit + class CommitPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The fileEncryptionInfo property + @file_encryption_info + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new CommitPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a commit_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CommitPostRequestBody.new + end + ## + ## Gets the fileEncryptionInfo property value. The fileEncryptionInfo property + ## @return a file_encryption_info + ## + def file_encryption_info + return @file_encryption_info + end + ## + ## Sets the fileEncryptionInfo property value. The fileEncryptionInfo property + ## @param value Value to set for the fileEncryptionInfo property. + ## @return a void + ## + def file_encryption_info=(value) + @file_encryption_info = value + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "fileEncryptionInfo" => lambda {|n| @file_encryption_info = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::FileEncryptionInfo.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_object_value("fileEncryptionInfo", @file_encryption_info) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/item/commit/commit_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/item/commit/commit_request_builder.rb new file mode 100644 index 0000000000..bbab7b0c16 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/item/commit/commit_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_windows_app_x' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './commit' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsAppX + module ContentVersions + module Item + module Files + module Item + module Commit + ## + # Provides operations to call the commit method. + class CommitRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CommitRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit") + end + ## + ## Commits a file of a given app. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Commits a file of a given app. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a commit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CommitRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/item/item.rb similarity index 100% rename from lib/me/chats/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb new file mode 100644 index 0000000000..97739abde2 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb @@ -0,0 +1,190 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mobile_app_content_file' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_windows_app_x' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../files' +require_relative './commit/commit_request_builder' +require_relative './item' +require_relative './renew_upload/renew_upload_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsAppX + module ContentVersions + module Item + module Files + module Item + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + class MobileAppContentFileItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the commit method. + def commit() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsAppX::ContentVersions::Item::Files::Item::Commit::CommitRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the renewUpload method. + def renew_upload() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsAppX::ContentVersions::Item::Files::Item::RenewUpload::RenewUploadRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property files for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property files in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property files for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property files in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_content_file_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppContentFileItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of files for this app content version. + class MobileAppContentFileItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/events/item/attachments/attachments.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/item/renew_upload/renew_upload.rb similarity index 100% rename from lib/me/calendars/item/events/item/attachments/attachments.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/item/renew_upload/renew_upload.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb new file mode 100644 index 0000000000..c21a7c90c5 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_windows_app_x' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './renew_upload' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsAppX + module ContentVersions + module Item + module Files + module Item + module RenewUpload + ## + # Provides operations to call the renewUpload method. + class RenewUploadRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RenewUploadRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload") + end + ## + ## Renews the SAS URI for an application file upload. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Renews the SAS URI for an application file upload. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a renew_upload_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RenewUploadRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/members/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/item.rb similarity index 100% rename from lib/me/chats/item/members/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/mobile_app_content_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/mobile_app_content_item_request_builder.rb new file mode 100644 index 0000000000..fa9e148903 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/content_versions/item/mobile_app_content_item_request_builder.rb @@ -0,0 +1,184 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_content' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_app_x' +require_relative '../content_versions' +require_relative './contained_apps/contained_apps_request_builder' +require_relative './files/files_request_builder' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsAppX + module ContentVersions + module Item + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + class MobileAppContentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + def contained_apps() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsAppX::ContentVersions::Item::ContainedApps::ContainedAppsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + def files() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsAppX::ContentVersions::Item::Files::FilesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property contentVersions for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property contentVersions in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property contentVersions for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property contentVersions in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_content_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppContentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of content versions for this app. + class MobileAppContentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/events/item/calendar/calendar.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/graph_windows_app_x.rb similarity index 100% rename from lib/me/calendars/item/events/item/calendar/calendar.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_app_x/graph_windows_app_x.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_app_x/graph_windows_app_x_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/graph_windows_app_x_request_builder.rb new file mode 100644 index 0000000000..a3bbbc68c3 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_app_x/graph_windows_app_x_request_builder.rb @@ -0,0 +1,119 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../../models/windows_app_x' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../item' +require_relative './assignments/assignments_request_builder' +require_relative './categories/categories_request_builder' +require_relative './content_versions/content_versions_request_builder' +require_relative './graph_windows_app_x' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsAppX + ## + # Casts the previous resource to windowsAppX. + class GraphWindowsAppXRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + def assignments() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsAppX::Assignments::AssignmentsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + def categories() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsAppX::Categories::CategoriesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + def content_versions() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsAppX::ContentVersions::ContentVersionsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphWindowsAppXRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX{?%24expand,%24select}") + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsAppX + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of windows_app_x + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsAppX.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsAppX + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_windows_app_x_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphWindowsAppXRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsAppX + class GraphWindowsAppXRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/events/item/dismiss_reminder/dismiss_reminder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/assignments/assignments.rb similarity index 100% rename from lib/me/calendars/item/events/item/dismiss_reminder/dismiss_reminder.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/assignments/assignments.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/assignments/assignments_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/assignments/assignments_request_builder.rb new file mode 100644 index 0000000000..a99761c6d7 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/assignments/assignments_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_assignment' +require_relative '../../../../../models/mobile_app_assignment_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_windows_mobile_m_s_i' +require_relative './assignments' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_assignment_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsMobileMSI + module Assignments + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class AssignmentsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsMobileMSI::Assignments::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_assignment_id The unique identifier of mobileAppAssignment + ## @return a mobile_app_assignment_item_request_builder + ## + def by_mobile_app_assignment_id(mobile_app_assignment_id) + raise StandardError, 'mobile_app_assignment_id cannot be null' if mobile_app_assignment_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppAssignment%2Did"] = mobile_app_assignment_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsMobileMSI::Assignments::Item::MobileAppAssignmentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AssignmentsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class AssignmentsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/contact_folders/item/child_folders/item/contacts/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/assignments/count/count.rb similarity index 100% rename from lib/me/contact_folders/item/child_folders/item/contacts/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/assignments/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/assignments/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/assignments/count/count_request_builder.rb new file mode 100644 index 0000000000..5a26ab8ac0 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/assignments/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_mobile_m_s_i' +require_relative '../assignments' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsMobileMSI + module Assignments + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/assignments/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/messages/item/hosted_contents/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/assignments/item/item.rb similarity index 100% rename from lib/me/chats/item/messages/item/hosted_contents/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/assignments/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/assignments/item/mobile_app_assignment_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/assignments/item/mobile_app_assignment_item_request_builder.rb new file mode 100644 index 0000000000..daa52b777f --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/assignments/item/mobile_app_assignment_item_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_assignment' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_mobile_m_s_i' +require_relative '../assignments' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsMobileMSI + module Assignments + module Item + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class MobileAppAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class MobileAppAssignmentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/events/item/extensions/extensions.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/categories/categories.rb similarity index 100% rename from lib/me/calendars/item/events/item/extensions/extensions.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/categories/categories.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/categories/categories_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/categories/categories_request_builder.rb new file mode 100644 index 0000000000..fe7e05da24 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/categories/categories_request_builder.rb @@ -0,0 +1,152 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_category_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_windows_mobile_m_s_i' +require_relative './categories' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_category_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsMobileMSI + module Categories + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class CategoriesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsMobileMSI::Categories::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_category_id The unique identifier of mobileAppCategory + ## @return a mobile_app_category_item_request_builder + ## + def by_mobile_app_category_id(mobile_app_category_id) + raise StandardError, 'mobile_app_category_id cannot be null' if mobile_app_category_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppCategory%2Did"] = mobile_app_category_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsMobileMSI::Categories::Item::MobileAppCategoryItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new CategoriesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CategoriesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class CategoriesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/contact_folders/item/child_folders/item/contacts/item/extensions/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/categories/count/count.rb similarity index 100% rename from lib/me/contact_folders/item/child_folders/item/contacts/item/extensions/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/categories/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/categories/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/categories/count/count_request_builder.rb new file mode 100644 index 0000000000..aa7cf1ea14 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/categories/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_mobile_m_s_i' +require_relative '../categories' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsMobileMSI + module Categories + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/categories/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/messages/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/categories/item/item.rb similarity index 100% rename from lib/me/chats/item/messages/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/categories/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/categories/item/mobile_app_category_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/categories/item/mobile_app_category_item_request_builder.rb new file mode 100644 index 0000000000..0578b2a280 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/categories/item/mobile_app_category_item_request_builder.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_category' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_mobile_m_s_i' +require_relative '../categories' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsMobileMSI + module Categories + module Item + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class MobileAppCategoryItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/categories/{mobileAppCategory%2Did}{?%24expand,%24select}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategory.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_category_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppCategoryItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class MobileAppCategoryItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/events/item/instances/instances.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/content_versions.rb similarity index 100% rename from lib/me/calendars/item/events/item/instances/instances.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/content_versions.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/content_versions_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/content_versions_request_builder.rb new file mode 100644 index 0000000000..db7625def9 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/content_versions_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_content' +require_relative '../../../../../models/mobile_app_content_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_windows_mobile_m_s_i' +require_relative './content_versions' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_content_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsMobileMSI + module ContentVersions + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + class ContentVersionsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsMobileMSI::ContentVersions::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + ## @param mobile_app_content_id The unique identifier of mobileAppContent + ## @return a mobile_app_content_item_request_builder + ## + def by_mobile_app_content_id(mobile_app_content_id) + raise StandardError, 'mobile_app_content_id cannot be null' if mobile_app_content_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppContent%2Did"] = mobile_app_content_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsMobileMSI::ContentVersions::Item::MobileAppContentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ContentVersionsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to contentVersions for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to contentVersions for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_versions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentVersionsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of content versions for this app. + class ContentVersionsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/contact_folders/item/contacts/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/count/count.rb similarity index 100% rename from lib/me/contact_folders/item/contacts/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/count/count_request_builder.rb new file mode 100644 index 0000000000..330d5b92f5 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_mobile_m_s_i' +require_relative '../content_versions' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsMobileMSI + module ContentVersions + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/events/item/instances/item/attachments/attachments.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/contained_apps/contained_apps.rb similarity index 100% rename from lib/me/calendars/item/events/item/instances/item/attachments/attachments.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/contained_apps/contained_apps.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/contained_apps/contained_apps_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/contained_apps/contained_apps_request_builder.rb new file mode 100644 index 0000000000..5750a18dac --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/contained_apps/contained_apps_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/mobile_contained_app' +require_relative '../../../../../../../models/mobile_contained_app_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../device_app_management' +require_relative '../../../../../mobile_apps' +require_relative '../../../../item' +require_relative '../../../graph_windows_mobile_m_s_i' +require_relative '../../content_versions' +require_relative '../item' +require_relative './contained_apps' +require_relative './count/count_request_builder' +require_relative './item/mobile_contained_app_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsMobileMSI + module ContentVersions + module Item + module ContainedApps + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + class ContainedAppsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsMobileMSI::ContentVersions::Item::ContainedApps::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + ## @param mobile_contained_app_id The unique identifier of mobileContainedApp + ## @return a mobile_contained_app_item_request_builder + ## + def by_mobile_contained_app_id(mobile_contained_app_id) + raise StandardError, 'mobile_contained_app_id cannot be null' if mobile_contained_app_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileContainedApp%2Did"] = mobile_contained_app_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsMobileMSI::ContentVersions::Item::ContainedApps::Item::MobileContainedAppItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ContainedAppsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/containedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to containedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to containedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a contained_apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContainedAppsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in a MobileLobApp acting as a package. + class ContainedAppsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/contact_folders/item/contacts/item/extensions/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/contained_apps/count/count.rb similarity index 100% rename from lib/me/contact_folders/item/contacts/item/extensions/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/contained_apps/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/contained_apps/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/contained_apps/count/count_request_builder.rb new file mode 100644 index 0000000000..505ca7f044 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/contained_apps/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_windows_mobile_m_s_i' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../contained_apps' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsMobileMSI + module ContentVersions + module Item + module ContainedApps + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/messages/item/replies/item/hosted_contents/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/contained_apps/item/item.rb similarity index 100% rename from lib/me/chats/item/messages/item/replies/item/hosted_contents/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/contained_apps/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb new file mode 100644 index 0000000000..e6824c6102 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb @@ -0,0 +1,178 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mobile_contained_app' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_windows_mobile_m_s_i' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../contained_apps' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsMobileMSI + module ContentVersions + module Item + module ContainedApps + module Item + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + class MobileContainedAppItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property containedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property containedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property containedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property containedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_contained_app_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileContainedAppItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in a MobileLobApp acting as a package. + class MobileContainedAppItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/contacts/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/count/count.rb similarity index 100% rename from lib/me/contacts/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/count/count_request_builder.rb new file mode 100644 index 0000000000..dc5d3f2149 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_windows_mobile_m_s_i' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../files' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsMobileMSI + module ContentVersions + module Item + module Files + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/events/item/instances/item/calendar/calendar.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/files.rb similarity index 100% rename from lib/me/calendars/item/events/item/instances/item/calendar/calendar.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/files.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/files_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/files_request_builder.rb new file mode 100644 index 0000000000..587868828d --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/files_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/mobile_app_content_file' +require_relative '../../../../../../../models/mobile_app_content_file_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../device_app_management' +require_relative '../../../../../mobile_apps' +require_relative '../../../../item' +require_relative '../../../graph_windows_mobile_m_s_i' +require_relative '../../content_versions' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './files' +require_relative './item/mobile_app_content_file_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsMobileMSI + module ContentVersions + module Item + module Files + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + class FilesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsMobileMSI::ContentVersions::Item::Files::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + ## @param mobile_app_content_file_id The unique identifier of mobileAppContentFile + ## @return a mobile_app_content_file_item_request_builder + ## + def by_mobile_app_content_file_id(mobile_app_content_file_id) + raise StandardError, 'mobile_app_content_file_id cannot be null' if mobile_app_content_file_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppContentFile%2Did"] = mobile_app_content_file_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsMobileMSI::ContentVersions::Item::Files::Item::MobileAppContentFileItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new FilesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFileCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to files for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to files for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a files_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of files for this app content version. + class FilesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/item/commit/commit.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/item/commit/commit.rb new file mode 100644 index 0000000000..b61410499d --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/item/commit/commit.rb @@ -0,0 +1 @@ +require_relative 'commit_post_request_body' diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/item/commit/commit_post_request_body.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/item/commit/commit_post_request_body.rb new file mode 100644 index 0000000000..eeb8c06681 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/item/commit/commit_post_request_body.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/file_encryption_info' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_windows_mobile_m_s_i' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './commit' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsMobileMSI + module ContentVersions + module Item + module Files + module Item + module Commit + class CommitPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The fileEncryptionInfo property + @file_encryption_info + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new CommitPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a commit_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CommitPostRequestBody.new + end + ## + ## Gets the fileEncryptionInfo property value. The fileEncryptionInfo property + ## @return a file_encryption_info + ## + def file_encryption_info + return @file_encryption_info + end + ## + ## Sets the fileEncryptionInfo property value. The fileEncryptionInfo property + ## @param value Value to set for the fileEncryptionInfo property. + ## @return a void + ## + def file_encryption_info=(value) + @file_encryption_info = value + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "fileEncryptionInfo" => lambda {|n| @file_encryption_info = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::FileEncryptionInfo.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_object_value("fileEncryptionInfo", @file_encryption_info) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/item/commit/commit_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/item/commit/commit_request_builder.rb new file mode 100644 index 0000000000..3d9a8f4f7f --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/item/commit/commit_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_windows_mobile_m_s_i' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './commit' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsMobileMSI + module ContentVersions + module Item + module Files + module Item + module Commit + ## + # Provides operations to call the commit method. + class CommitRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CommitRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit") + end + ## + ## Commits a file of a given app. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Commits a file of a given app. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a commit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CommitRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/messages/item/replies/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/item/item.rb similarity index 100% rename from lib/me/chats/item/messages/item/replies/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb new file mode 100644 index 0000000000..cd7f931e7f --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb @@ -0,0 +1,190 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mobile_app_content_file' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_windows_mobile_m_s_i' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../files' +require_relative './commit/commit_request_builder' +require_relative './item' +require_relative './renew_upload/renew_upload_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsMobileMSI + module ContentVersions + module Item + module Files + module Item + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + class MobileAppContentFileItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the commit method. + def commit() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsMobileMSI::ContentVersions::Item::Files::Item::Commit::CommitRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the renewUpload method. + def renew_upload() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsMobileMSI::ContentVersions::Item::Files::Item::RenewUpload::RenewUploadRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property files for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property files in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property files for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property files in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_content_file_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppContentFileItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of files for this app content version. + class MobileAppContentFileItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/events/item/instances/item/dismiss_reminder/dismiss_reminder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/item/renew_upload/renew_upload.rb similarity index 100% rename from lib/me/calendars/item/events/item/instances/item/dismiss_reminder/dismiss_reminder.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/item/renew_upload/renew_upload.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb new file mode 100644 index 0000000000..4cd3cc09e7 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_windows_mobile_m_s_i' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './renew_upload' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsMobileMSI + module ContentVersions + module Item + module Files + module Item + module RenewUpload + ## + # Provides operations to call the renewUpload method. + class RenewUploadRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RenewUploadRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload") + end + ## + ## Renews the SAS URI for an application file upload. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Renews the SAS URI for an application file upload. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a renew_upload_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RenewUploadRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/permission_grants/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/item.rb similarity index 100% rename from lib/me/chats/item/permission_grants/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/mobile_app_content_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/mobile_app_content_item_request_builder.rb new file mode 100644 index 0000000000..f99dd4e309 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/content_versions/item/mobile_app_content_item_request_builder.rb @@ -0,0 +1,184 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_content' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_mobile_m_s_i' +require_relative '../content_versions' +require_relative './contained_apps/contained_apps_request_builder' +require_relative './files/files_request_builder' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsMobileMSI + module ContentVersions + module Item + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + class MobileAppContentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + def contained_apps() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsMobileMSI::ContentVersions::Item::ContainedApps::ContainedAppsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + def files() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsMobileMSI::ContentVersions::Item::Files::FilesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property contentVersions for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property contentVersions in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property contentVersions for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property contentVersions in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_content_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppContentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of content versions for this app. + class MobileAppContentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/calendars/item/events/item/instances/item/extensions/extensions.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/graph_windows_mobile_m_s_i.rb similarity index 100% rename from lib/me/calendars/item/events/item/instances/item/extensions/extensions.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/graph_windows_mobile_m_s_i.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/graph_windows_mobile_m_s_i_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/graph_windows_mobile_m_s_i_request_builder.rb new file mode 100644 index 0000000000..610f2b6742 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_mobile_m_s_i/graph_windows_mobile_m_s_i_request_builder.rb @@ -0,0 +1,119 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../../models/windows_mobile_m_s_i' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../item' +require_relative './assignments/assignments_request_builder' +require_relative './categories/categories_request_builder' +require_relative './content_versions/content_versions_request_builder' +require_relative './graph_windows_mobile_m_s_i' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsMobileMSI + ## + # Casts the previous resource to windowsMobileMSI. + class GraphWindowsMobileMSIRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + def assignments() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsMobileMSI::Assignments::AssignmentsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + def categories() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsMobileMSI::Categories::CategoriesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + def content_versions() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsMobileMSI::ContentVersions::ContentVersionsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphWindowsMobileMSIRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI{?%24expand,%24select}") + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsMobileMSI + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of windows_mobile_m_s_i + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsMobileMSI.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsMobileMSI + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_windows_mobile_m_s_i_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphWindowsMobileMSIRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsMobileMSI + class GraphWindowsMobileMSIRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/chats.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/assignments/assignments.rb similarity index 100% rename from lib/me/chats/chats.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/assignments/assignments.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/assignments/assignments_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/assignments/assignments_request_builder.rb new file mode 100644 index 0000000000..b714ecff0f --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/assignments/assignments_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_assignment' +require_relative '../../../../../models/mobile_app_assignment_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_windows_universal_app_x' +require_relative './assignments' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_assignment_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsUniversalAppX + module Assignments + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class AssignmentsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsUniversalAppX::Assignments::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_assignment_id The unique identifier of mobileAppAssignment + ## @return a mobile_app_assignment_item_request_builder + ## + def by_mobile_app_assignment_id(mobile_app_assignment_id) + raise StandardError, 'mobile_app_assignment_id cannot be null' if mobile_app_assignment_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppAssignment%2Did"] = mobile_app_assignment_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsUniversalAppX::Assignments::Item::MobileAppAssignmentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AssignmentsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class AssignmentsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/contacts/item/extensions/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/assignments/count/count.rb similarity index 100% rename from lib/me/contacts/item/extensions/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/assignments/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/assignments/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/assignments/count/count_request_builder.rb new file mode 100644 index 0000000000..f69d4eb311 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/assignments/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_universal_app_x' +require_relative '../assignments' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsUniversalAppX + module Assignments + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/assignments/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/pinned_messages/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/assignments/item/item.rb similarity index 100% rename from lib/me/chats/item/pinned_messages/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/assignments/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/assignments/item/mobile_app_assignment_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/assignments/item/mobile_app_assignment_item_request_builder.rb new file mode 100644 index 0000000000..6fac7ce14f --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/assignments/item/mobile_app_assignment_item_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_assignment' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_universal_app_x' +require_relative '../assignments' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsUniversalAppX + module Assignments + module Item + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class MobileAppAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class MobileAppAssignmentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/installed_apps/installed_apps.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/categories/categories.rb similarity index 100% rename from lib/me/chats/item/installed_apps/installed_apps.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/categories/categories.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/categories/categories_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/categories/categories_request_builder.rb new file mode 100644 index 0000000000..e1b20fa6da --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/categories/categories_request_builder.rb @@ -0,0 +1,152 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_category_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_windows_universal_app_x' +require_relative './categories' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_category_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsUniversalAppX + module Categories + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class CategoriesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsUniversalAppX::Categories::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_category_id The unique identifier of mobileAppCategory + ## @return a mobile_app_category_item_request_builder + ## + def by_mobile_app_category_id(mobile_app_category_id) + raise StandardError, 'mobile_app_category_id cannot be null' if mobile_app_category_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppCategory%2Did"] = mobile_app_category_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsUniversalAppX::Categories::Item::MobileAppCategoryItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new CategoriesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CategoriesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class CategoriesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/created_objects/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/categories/count/count.rb similarity index 100% rename from lib/me/created_objects/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/categories/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/categories/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/categories/count/count_request_builder.rb new file mode 100644 index 0000000000..605f993d3b --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/categories/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_universal_app_x' +require_relative '../categories' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsUniversalAppX + module Categories + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/categories/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/tabs/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/categories/item/item.rb similarity index 100% rename from lib/me/chats/item/tabs/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/categories/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/categories/item/mobile_app_category_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/categories/item/mobile_app_category_item_request_builder.rb new file mode 100644 index 0000000000..07b8f58083 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/categories/item/mobile_app_category_item_request_builder.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_category' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_universal_app_x' +require_relative '../categories' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsUniversalAppX + module Categories + module Item + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class MobileAppCategoryItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/categories/{mobileAppCategory%2Did}{?%24expand,%24select}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategory.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_category_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppCategoryItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class MobileAppCategoryItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/installed_apps/item/teams_app/teams_app.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/committed_contained_apps/committed_contained_apps.rb similarity index 100% rename from lib/me/chats/item/installed_apps/item/teams_app/teams_app.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/committed_contained_apps/committed_contained_apps.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/committed_contained_apps/committed_contained_apps_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/committed_contained_apps/committed_contained_apps_request_builder.rb new file mode 100644 index 0000000000..f4be70057d --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/committed_contained_apps/committed_contained_apps_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_contained_app' +require_relative '../../../../../models/mobile_contained_app_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_windows_universal_app_x' +require_relative './committed_contained_apps' +require_relative './count/count_request_builder' +require_relative './item/mobile_contained_app_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsUniversalAppX + module CommittedContainedApps + ## + # Provides operations to manage the committedContainedApps property of the microsoft.graph.windowsUniversalAppX entity. + class CommittedContainedAppsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsUniversalAppX::CommittedContainedApps::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the committedContainedApps property of the microsoft.graph.windowsUniversalAppX entity. + ## @param mobile_contained_app_id The unique identifier of mobileContainedApp + ## @return a mobile_contained_app_item_request_builder + ## + def by_mobile_contained_app_id(mobile_contained_app_id) + raise StandardError, 'mobile_contained_app_id cannot be null' if mobile_contained_app_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileContainedApp%2Did"] = mobile_contained_app_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsUniversalAppX::CommittedContainedApps::Item::MobileContainedAppItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new CommittedContainedAppsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/committedContainedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to committedContainedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to committedContainedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a committed_contained_apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CommittedContainedAppsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. + class CommittedContainedAppsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/created_objects/graph_service_principal/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/committed_contained_apps/count/count.rb similarity index 100% rename from lib/me/created_objects/graph_service_principal/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/committed_contained_apps/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/committed_contained_apps/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/committed_contained_apps/count/count_request_builder.rb new file mode 100644 index 0000000000..45cc82cf62 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/committed_contained_apps/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_universal_app_x' +require_relative '../committed_contained_apps' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsUniversalAppX + module CommittedContainedApps + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/committedContainedApps/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/contact_folders/item/child_folders/item/contacts/item/extensions/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/committed_contained_apps/item/item.rb similarity index 100% rename from lib/me/contact_folders/item/child_folders/item/contacts/item/extensions/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/committed_contained_apps/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/committed_contained_apps/item/mobile_contained_app_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/committed_contained_apps/item/mobile_contained_app_item_request_builder.rb new file mode 100644 index 0000000000..57c512bc18 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/committed_contained_apps/item/mobile_contained_app_item_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_contained_app' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_universal_app_x' +require_relative '../committed_contained_apps' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsUniversalAppX + module CommittedContainedApps + module Item + ## + # Provides operations to manage the committedContainedApps property of the microsoft.graph.windowsUniversalAppX entity. + class MobileContainedAppItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/committedContainedApps/{mobileContainedApp%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property committedContainedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property committedContainedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property committedContainedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property committedContainedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_contained_app_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileContainedAppItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. + class MobileContainedAppItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/installed_apps/item/teams_app_definition/teams_app_definition.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/content_versions.rb similarity index 100% rename from lib/me/chats/item/installed_apps/item/teams_app_definition/teams_app_definition.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/content_versions.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/content_versions_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/content_versions_request_builder.rb new file mode 100644 index 0000000000..ce31e27c3e --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/content_versions_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_content' +require_relative '../../../../../models/mobile_app_content_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_windows_universal_app_x' +require_relative './content_versions' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_content_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsUniversalAppX + module ContentVersions + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + class ContentVersionsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsUniversalAppX::ContentVersions::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + ## @param mobile_app_content_id The unique identifier of mobileAppContent + ## @return a mobile_app_content_item_request_builder + ## + def by_mobile_app_content_id(mobile_app_content_id) + raise StandardError, 'mobile_app_content_id cannot be null' if mobile_app_content_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppContent%2Did"] = mobile_app_content_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsUniversalAppX::ContentVersions::Item::MobileAppContentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ContentVersionsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to contentVersions for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to contentVersions for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_versions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentVersionsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of content versions for this app. + class ContentVersionsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/device_management_troubleshooting_events/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/count/count.rb similarity index 100% rename from lib/me/device_management_troubleshooting_events/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/count/count_request_builder.rb new file mode 100644 index 0000000000..7761d14895 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_universal_app_x' +require_relative '../content_versions' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsUniversalAppX + module ContentVersions + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/last_message_preview/last_message_preview.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/contained_apps/contained_apps.rb similarity index 100% rename from lib/me/chats/item/last_message_preview/last_message_preview.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/contained_apps/contained_apps.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/contained_apps/contained_apps_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/contained_apps/contained_apps_request_builder.rb new file mode 100644 index 0000000000..feef831c50 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/contained_apps/contained_apps_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/mobile_contained_app' +require_relative '../../../../../../../models/mobile_contained_app_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../device_app_management' +require_relative '../../../../../mobile_apps' +require_relative '../../../../item' +require_relative '../../../graph_windows_universal_app_x' +require_relative '../../content_versions' +require_relative '../item' +require_relative './contained_apps' +require_relative './count/count_request_builder' +require_relative './item/mobile_contained_app_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsUniversalAppX + module ContentVersions + module Item + module ContainedApps + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + class ContainedAppsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsUniversalAppX::ContentVersions::Item::ContainedApps::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + ## @param mobile_contained_app_id The unique identifier of mobileContainedApp + ## @return a mobile_contained_app_item_request_builder + ## + def by_mobile_contained_app_id(mobile_contained_app_id) + raise StandardError, 'mobile_contained_app_id cannot be null' if mobile_contained_app_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileContainedApp%2Did"] = mobile_contained_app_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsUniversalAppX::ContentVersions::Item::ContainedApps::Item::MobileContainedAppItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ContainedAppsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/containedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to containedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to containedApps for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a contained_apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContainedAppsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in a MobileLobApp acting as a package. + class ContainedAppsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/direct_reports/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/contained_apps/count/count.rb similarity index 100% rename from lib/me/direct_reports/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/contained_apps/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/contained_apps/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/contained_apps/count/count_request_builder.rb new file mode 100644 index 0000000000..be939ce037 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/contained_apps/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_windows_universal_app_x' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../contained_apps' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsUniversalAppX + module ContentVersions + module Item + module ContainedApps + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/contact_folders/item/child_folders/item/contacts/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/contained_apps/item/item.rb similarity index 100% rename from lib/me/contact_folders/item/child_folders/item/contacts/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/contained_apps/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb new file mode 100644 index 0000000000..97c5488536 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/contained_apps/item/mobile_contained_app_item_request_builder.rb @@ -0,0 +1,178 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mobile_contained_app' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_windows_universal_app_x' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../contained_apps' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsUniversalAppX + module ContentVersions + module Item + module ContainedApps + module Item + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + class MobileContainedAppItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property containedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property containedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_contained_app + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property containedApps for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The collection of contained apps in a MobileLobApp acting as a package. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property containedApps in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_contained_app_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileContainedAppItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of contained apps in a MobileLobApp acting as a package. + class MobileContainedAppItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/direct_reports/graph_org_contact/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/count/count.rb similarity index 100% rename from lib/me/direct_reports/graph_org_contact/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/count/count_request_builder.rb new file mode 100644 index 0000000000..e43c235ad9 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_windows_universal_app_x' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../files' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsUniversalAppX + module ContentVersions + module Item + module Files + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/members/members.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/files.rb similarity index 100% rename from lib/me/chats/item/members/members.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/files.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/files_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/files_request_builder.rb new file mode 100644 index 0000000000..2c1826c046 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/files_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/mobile_app_content_file' +require_relative '../../../../../../../models/mobile_app_content_file_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../device_app_management' +require_relative '../../../../../mobile_apps' +require_relative '../../../../item' +require_relative '../../../graph_windows_universal_app_x' +require_relative '../../content_versions' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './files' +require_relative './item/mobile_app_content_file_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsUniversalAppX + module ContentVersions + module Item + module Files + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + class FilesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsUniversalAppX::ContentVersions::Item::Files::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + ## @param mobile_app_content_file_id The unique identifier of mobileAppContentFile + ## @return a mobile_app_content_file_item_request_builder + ## + def by_mobile_app_content_file_id(mobile_app_content_file_id) + raise StandardError, 'mobile_app_content_file_id cannot be null' if mobile_app_content_file_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppContentFile%2Did"] = mobile_app_content_file_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsUniversalAppX::ContentVersions::Item::Files::Item::MobileAppContentFileItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new FilesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFileCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to files for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to files for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a files_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of files for this app content version. + class FilesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/item/commit/commit.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/item/commit/commit.rb new file mode 100644 index 0000000000..b61410499d --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/item/commit/commit.rb @@ -0,0 +1 @@ +require_relative 'commit_post_request_body' diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/item/commit/commit_post_request_body.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/item/commit/commit_post_request_body.rb new file mode 100644 index 0000000000..162f94b5fd --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/item/commit/commit_post_request_body.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/file_encryption_info' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_windows_universal_app_x' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './commit' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsUniversalAppX + module ContentVersions + module Item + module Files + module Item + module Commit + class CommitPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The fileEncryptionInfo property + @file_encryption_info + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new CommitPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a commit_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CommitPostRequestBody.new + end + ## + ## Gets the fileEncryptionInfo property value. The fileEncryptionInfo property + ## @return a file_encryption_info + ## + def file_encryption_info + return @file_encryption_info + end + ## + ## Sets the fileEncryptionInfo property value. The fileEncryptionInfo property + ## @param value Value to set for the fileEncryptionInfo property. + ## @return a void + ## + def file_encryption_info=(value) + @file_encryption_info = value + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "fileEncryptionInfo" => lambda {|n| @file_encryption_info = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::FileEncryptionInfo.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_object_value("fileEncryptionInfo", @file_encryption_info) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/item/commit/commit_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/item/commit/commit_request_builder.rb new file mode 100644 index 0000000000..d179e340f8 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/item/commit/commit_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_windows_universal_app_x' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './commit' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsUniversalAppX + module ContentVersions + module Item + module Files + module Item + module Commit + ## + # Provides operations to call the commit method. + class CommitRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CommitRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit") + end + ## + ## Commits a file of a given app. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Commits a file of a given app. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a commit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CommitRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/contact_folders/item/child_folders/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/item/item.rb similarity index 100% rename from lib/me/contact_folders/item/child_folders/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb new file mode 100644 index 0000000000..3a21aabc47 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/item/mobile_app_content_file_item_request_builder.rb @@ -0,0 +1,190 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mobile_app_content_file' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_app_management' +require_relative '../../../../../../mobile_apps' +require_relative '../../../../../item' +require_relative '../../../../graph_windows_universal_app_x' +require_relative '../../../content_versions' +require_relative '../../item' +require_relative '../files' +require_relative './commit/commit_request_builder' +require_relative './item' +require_relative './renew_upload/renew_upload_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsUniversalAppX + module ContentVersions + module Item + module Files + module Item + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + class MobileAppContentFileItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the commit method. + def commit() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsUniversalAppX::ContentVersions::Item::Files::Item::Commit::CommitRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the renewUpload method. + def renew_upload() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsUniversalAppX::ContentVersions::Item::Files::Item::RenewUpload::RenewUploadRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property files for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property files in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content_file + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property files for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of files for this app content version. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property files in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_content_file_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppContentFileItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of files for this app content version. + class MobileAppContentFileItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/messages/item/hosted_contents/hosted_contents.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/item/renew_upload/renew_upload.rb similarity index 100% rename from lib/me/chats/item/messages/item/hosted_contents/hosted_contents.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/item/renew_upload/renew_upload.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb new file mode 100644 index 0000000000..59ed6d1001 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/files/item/renew_upload/renew_upload_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../device_app_management' +require_relative '../../../../../../../mobile_apps' +require_relative '../../../../../../item' +require_relative '../../../../../graph_windows_universal_app_x' +require_relative '../../../../content_versions' +require_relative '../../../item' +require_relative '../../files' +require_relative '../item' +require_relative './renew_upload' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsUniversalAppX + module ContentVersions + module Item + module Files + module Item + module RenewUpload + ## + # Provides operations to call the renewUpload method. + class RenewUploadRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RenewUploadRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload") + end + ## + ## Renews the SAS URI for an application file upload. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Renews the SAS URI for an application file upload. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a renew_upload_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RenewUploadRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/contact_folders/item/contacts/item/extensions/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/item.rb similarity index 100% rename from lib/me/contact_folders/item/contacts/item/extensions/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/mobile_app_content_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/mobile_app_content_item_request_builder.rb new file mode 100644 index 0000000000..566b8a5593 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/content_versions/item/mobile_app_content_item_request_builder.rb @@ -0,0 +1,184 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_content' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_universal_app_x' +require_relative '../content_versions' +require_relative './contained_apps/contained_apps_request_builder' +require_relative './files/files_request_builder' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsUniversalAppX + module ContentVersions + module Item + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + class MobileAppContentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + def contained_apps() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsUniversalAppX::ContentVersions::Item::ContainedApps::ContainedAppsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + def files() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsUniversalAppX::ContentVersions::Item::Files::FilesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property contentVersions for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property contentVersions in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_content + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property contentVersions for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of content versions for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property contentVersions in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_content_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppContentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of content versions for this app. + class MobileAppContentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/messages/item/hosted_contents/item/value/value.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/graph_windows_universal_app_x.rb similarity index 100% rename from lib/me/chats/item/messages/item/hosted_contents/item/value/value.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/graph_windows_universal_app_x.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/graph_windows_universal_app_x_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/graph_windows_universal_app_x_request_builder.rb new file mode 100644 index 0000000000..478a519d8b --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_universal_app_x/graph_windows_universal_app_x_request_builder.rb @@ -0,0 +1,125 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../../models/windows_universal_app_x' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../item' +require_relative './assignments/assignments_request_builder' +require_relative './categories/categories_request_builder' +require_relative './committed_contained_apps/committed_contained_apps_request_builder' +require_relative './content_versions/content_versions_request_builder' +require_relative './graph_windows_universal_app_x' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsUniversalAppX + ## + # Casts the previous resource to windowsUniversalAppX. + class GraphWindowsUniversalAppXRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + def assignments() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsUniversalAppX::Assignments::AssignmentsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + def categories() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsUniversalAppX::Categories::CategoriesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the committedContainedApps property of the microsoft.graph.windowsUniversalAppX entity. + def committed_contained_apps() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsUniversalAppX::CommittedContainedApps::CommittedContainedAppsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + def content_versions() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsUniversalAppX::ContentVersions::ContentVersionsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphWindowsUniversalAppXRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX{?%24expand,%24select}") + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsUniversalAppX + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of windows_universal_app_x + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsUniversalAppX.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsUniversalAppX + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_windows_universal_app_x_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphWindowsUniversalAppXRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsUniversalAppX + class GraphWindowsUniversalAppXRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/messages/item/replies/item/hosted_contents/hosted_contents.rb b/lib/device_app_management/mobile_apps/item/graph_windows_web_app/assignments/assignments.rb similarity index 100% rename from lib/me/chats/item/messages/item/replies/item/hosted_contents/hosted_contents.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_web_app/assignments/assignments.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_web_app/assignments/assignments_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_web_app/assignments/assignments_request_builder.rb new file mode 100644 index 0000000000..ba4f08be20 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_web_app/assignments/assignments_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_assignment' +require_relative '../../../../../models/mobile_app_assignment_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_windows_web_app' +require_relative './assignments' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_assignment_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsWebApp + module Assignments + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class AssignmentsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsWebApp::Assignments::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_assignment_id The unique identifier of mobileAppAssignment + ## @return a mobile_app_assignment_item_request_builder + ## + def by_mobile_app_assignment_id(mobile_app_assignment_id) + raise StandardError, 'mobile_app_assignment_id cannot be null' if mobile_app_assignment_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppAssignment%2Did"] = mobile_app_assignment_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsWebApp::Assignments::Item::MobileAppAssignmentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AssignmentsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to assignments for deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class AssignmentsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/direct_reports/graph_user/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_windows_web_app/assignments/count/count.rb similarity index 100% rename from lib/me/direct_reports/graph_user/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_web_app/assignments/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_web_app/assignments/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_web_app/assignments/count/count_request_builder.rb new file mode 100644 index 0000000000..85c4279531 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_web_app/assignments/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_web_app' +require_relative '../assignments' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsWebApp + module Assignments + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/assignments/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/contact_folders/item/contacts/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_windows_web_app/assignments/item/item.rb similarity index 100% rename from lib/me/contact_folders/item/contacts/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_web_app/assignments/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_web_app/assignments/item/mobile_app_assignment_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_web_app/assignments/item/mobile_app_assignment_item_request_builder.rb new file mode 100644 index 0000000000..7a37ef434e --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_web_app/assignments/item/mobile_app_assignment_item_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_assignment' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_web_app' +require_relative '../assignments' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsWebApp + module Assignments + module Item + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + class MobileAppAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_assignment + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property assignments for deviceAppManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The list of group assignments for this mobile app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property assignments in deviceAppManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of group assignments for this mobile app. + class MobileAppAssignmentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/messages/item/replies/item/hosted_contents/item/value/value.rb b/lib/device_app_management/mobile_apps/item/graph_windows_web_app/categories/categories.rb similarity index 100% rename from lib/me/chats/item/messages/item/replies/item/hosted_contents/item/value/value.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_web_app/categories/categories.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_web_app/categories/categories_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_web_app/categories/categories_request_builder.rb new file mode 100644 index 0000000000..83688784a4 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_web_app/categories/categories_request_builder.rb @@ -0,0 +1,152 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/mobile_app_category_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_app_management' +require_relative '../../../mobile_apps' +require_relative '../../item' +require_relative '../graph_windows_web_app' +require_relative './categories' +require_relative './count/count_request_builder' +require_relative './item/mobile_app_category_item_request_builder' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsWebApp + module Categories + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class CategoriesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsWebApp::Categories::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + ## @param mobile_app_category_id The unique identifier of mobileAppCategory + ## @return a mobile_app_category_item_request_builder + ## + def by_mobile_app_category_id(mobile_app_category_id) + raise StandardError, 'mobile_app_category_id cannot be null' if mobile_app_category_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["mobileAppCategory%2Did"] = mobile_app_category_id + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsWebApp::Categories::Item::MobileAppCategoryItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new CategoriesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CategoriesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class CategoriesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/drives/count/count.rb b/lib/device_app_management/mobile_apps/item/graph_windows_web_app/categories/count/count.rb similarity index 100% rename from lib/me/drives/count/count.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_web_app/categories/count/count.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_web_app/categories/count/count_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_web_app/categories/count/count_request_builder.rb new file mode 100644 index 0000000000..e483dfde4c --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_web_app/categories/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_web_app' +require_relative '../categories' +require_relative './count' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsWebApp + module Categories + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/categories/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/contact_folders/item/item.rb b/lib/device_app_management/mobile_apps/item/graph_windows_web_app/categories/item/item.rb similarity index 100% rename from lib/me/contact_folders/item/item.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_web_app/categories/item/item.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_web_app/categories/item/mobile_app_category_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_web_app/categories/item/mobile_app_category_item_request_builder.rb new file mode 100644 index 0000000000..f0c6986727 --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_web_app/categories/item/mobile_app_category_item_request_builder.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mobile_app_category' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_app_management' +require_relative '../../../../mobile_apps' +require_relative '../../../item' +require_relative '../../graph_windows_web_app' +require_relative '../categories' +require_relative './item' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsWebApp + module Categories + module Item + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + class MobileAppCategoryItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}") + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mobile_app_category + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCategory.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of categories for this app. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_category_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppCategoryItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of categories for this app. + class MobileAppCategoryItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/messages/item/replies/item/soft_delete/soft_delete.rb b/lib/device_app_management/mobile_apps/item/graph_windows_web_app/graph_windows_web_app.rb similarity index 100% rename from lib/me/chats/item/messages/item/replies/item/soft_delete/soft_delete.rb rename to lib/device_app_management/mobile_apps/item/graph_windows_web_app/graph_windows_web_app.rb diff --git a/lib/device_app_management/mobile_apps/item/graph_windows_web_app/graph_windows_web_app_request_builder.rb b/lib/device_app_management/mobile_apps/item/graph_windows_web_app/graph_windows_web_app_request_builder.rb new file mode 100644 index 0000000000..4e0b99b50a --- /dev/null +++ b/lib/device_app_management/mobile_apps/item/graph_windows_web_app/graph_windows_web_app_request_builder.rb @@ -0,0 +1,113 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../../models/windows_web_app' +require_relative '../../../device_app_management' +require_relative '../../mobile_apps' +require_relative '../item' +require_relative './assignments/assignments_request_builder' +require_relative './categories/categories_request_builder' +require_relative './graph_windows_web_app' + +module MicrosoftGraph + module DeviceAppManagement + module MobileApps + module Item + module GraphWindowsWebApp + ## + # Casts the previous resource to windowsWebApp. + class GraphWindowsWebAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + def assignments() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsWebApp::Assignments::AssignmentsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + def categories() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsWebApp::Categories::CategoriesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphWindowsWebAppRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp{?%24expand,%24select}") + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsWebApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of windows_web_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsWebApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsWebApp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_windows_web_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphWindowsWebAppRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsWebApp + class GraphWindowsWebAppRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/device_app_management/mobile_apps/item/mobile_app_item_request_builder.rb b/lib/device_app_management/mobile_apps/item/mobile_app_item_request_builder.rb index 3532632387..de44f90f92 100644 --- a/lib/device_app_management/mobile_apps/item/mobile_app_item_request_builder.rb +++ b/lib/device_app_management/mobile_apps/item/mobile_app_item_request_builder.rb @@ -7,8 +7,22 @@ require_relative './assign/assign_request_builder' require_relative './assignments/assignments_request_builder' require_relative './categories/categories_request_builder' +require_relative './graph_android_lob_app/graph_android_lob_app_request_builder' +require_relative './graph_android_store_app/graph_android_store_app_request_builder' +require_relative './graph_ios_lob_app/graph_ios_lob_app_request_builder' +require_relative './graph_ios_store_app/graph_ios_store_app_request_builder' +require_relative './graph_ios_vpp_app/graph_ios_vpp_app_request_builder' +require_relative './graph_mac_o_s_dmg_app/graph_mac_o_s_dmg_app_request_builder' +require_relative './graph_mac_o_s_lob_app/graph_mac_o_s_lob_app_request_builder' +require_relative './graph_managed_android_lob_app/graph_managed_android_lob_app_request_builder' +require_relative './graph_managed_i_o_s_lob_app/graph_managed_i_o_s_lob_app_request_builder' require_relative './graph_managed_mobile_lob_app/graph_managed_mobile_lob_app_request_builder' -require_relative './graph_mobile_lob_app/graph_mobile_lob_app_request_builder' +require_relative './graph_microsoft_store_for_business_app/graph_microsoft_store_for_business_app_request_builder' +require_relative './graph_win32_lob_app/graph_win32_lob_app_request_builder' +require_relative './graph_windows_app_x/graph_windows_app_x_request_builder' +require_relative './graph_windows_mobile_m_s_i/graph_windows_mobile_m_s_i_request_builder' +require_relative './graph_windows_universal_app_x/graph_windows_universal_app_x_request_builder' +require_relative './graph_windows_web_app/graph_windows_web_app_request_builder' require_relative './item' module MicrosoftGraph @@ -35,14 +49,84 @@ def categories() return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::Categories::CategoriesRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Casts the previous resource to androidLobApp. + def graph_android_lob_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidLobApp::GraphAndroidLobAppRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to androidStoreApp. + def graph_android_store_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphAndroidStoreApp::GraphAndroidStoreAppRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to iosLobApp. + def graph_ios_lob_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosLobApp::GraphIosLobAppRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to iosStoreApp. + def graph_ios_store_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosStoreApp::GraphIosStoreAppRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to iosVppApp. + def graph_ios_vpp_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphIosVppApp::GraphIosVppAppRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to macOSDmgApp. + def graph_mac_o_s_dmg_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSDmgApp::GraphMacOSDmgAppRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to macOSLobApp. + def graph_mac_o_s_lob_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMacOSLobApp::GraphMacOSLobAppRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to managedAndroidLobApp. + def graph_managed_android_lob_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedAndroidLobApp::GraphManagedAndroidLobAppRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to managedIOSLobApp. + def graph_managed_i_o_s_lob_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedIOSLobApp::GraphManagedIOSLobAppRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Casts the previous resource to managedMobileLobApp. def graph_managed_mobile_lob_app() return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphManagedMobileLobApp::GraphManagedMobileLobAppRequestBuilder.new(@path_parameters, @request_adapter) end ## - # Casts the previous resource to mobileLobApp. - def graph_mobile_lob_app() - return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMobileLobApp::GraphMobileLobAppRequestBuilder.new(@path_parameters, @request_adapter) + # Casts the previous resource to microsoftStoreForBusinessApp. + def graph_microsoft_store_for_business_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphMicrosoftStoreForBusinessApp::GraphMicrosoftStoreForBusinessAppRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to win32LobApp. + def graph_win32_lob_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWin32LobApp::GraphWin32LobAppRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to windowsAppX. + def graph_windows_app_x() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsAppX::GraphWindowsAppXRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to windowsMobileMSI. + def graph_windows_mobile_m_s_i() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsMobileMSI::GraphWindowsMobileMSIRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to windowsUniversalAppX. + def graph_windows_universal_app_x() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsUniversalAppX::GraphWindowsUniversalAppXRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to windowsWebApp. + def graph_windows_web_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::Item::GraphWindowsWebApp::GraphWindowsWebAppRequestBuilder.new(@path_parameters, @request_adapter) end ## ## Instantiates a new MobileAppItemRequestBuilder and sets the default values. @@ -51,10 +135,10 @@ def graph_mobile_lob_app() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}{?%24expand,%24select}") end ## - ## Deletes a iosLobApp. + ## Deletes a windowsMicrosoftEdgeApp. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -63,12 +147,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read properties and relationships of the windowsMicrosoftEdgeApp object. + ## Read properties and relationships of the androidLobApp object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of mobile_app ## @@ -77,12 +160,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileApp.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of a macOSLobApp object. + ## Update the properties of a iosLobApp object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of mobile_app @@ -93,46 +175,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileApp.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Deletes a iosLobApp. + ## Deletes a windowsMicrosoftEdgeApp. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read properties and relationships of the windowsMicrosoftEdgeApp object. + ## Read properties and relationships of the androidLobApp object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of a macOSLobApp object. + ## Update the properties of a iosLobApp object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -140,20 +222,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read properties and relationships of the windowsMicrosoftEdgeApp object. + # Read properties and relationships of the androidLobApp object. class MobileAppItemRequestBuilderGetQueryParameters ## diff --git a/lib/device_app_management/mobile_apps/mobile_apps_request_builder.rb b/lib/device_app_management/mobile_apps/mobile_apps_request_builder.rb index aa7bf6f5f5..f0f1b84a81 100644 --- a/lib/device_app_management/mobile_apps/mobile_apps_request_builder.rb +++ b/lib/device_app_management/mobile_apps/mobile_apps_request_builder.rb @@ -5,8 +5,22 @@ require_relative '../../models/o_data_errors_o_data_error' require_relative '../device_app_management' require_relative './count/count_request_builder' +require_relative './graph_android_lob_app/graph_android_lob_app_request_builder' +require_relative './graph_android_store_app/graph_android_store_app_request_builder' +require_relative './graph_ios_lob_app/graph_ios_lob_app_request_builder' +require_relative './graph_ios_store_app/graph_ios_store_app_request_builder' +require_relative './graph_ios_vpp_app/graph_ios_vpp_app_request_builder' +require_relative './graph_mac_o_s_dmg_app/graph_mac_o_s_dmg_app_request_builder' +require_relative './graph_mac_o_s_lob_app/graph_mac_o_s_lob_app_request_builder' +require_relative './graph_managed_android_lob_app/graph_managed_android_lob_app_request_builder' +require_relative './graph_managed_i_o_s_lob_app/graph_managed_i_o_s_lob_app_request_builder' require_relative './graph_managed_mobile_lob_app/graph_managed_mobile_lob_app_request_builder' -require_relative './graph_mobile_lob_app/graph_mobile_lob_app_request_builder' +require_relative './graph_microsoft_store_for_business_app/graph_microsoft_store_for_business_app_request_builder' +require_relative './graph_win32_lob_app/graph_win32_lob_app_request_builder' +require_relative './graph_windows_app_x/graph_windows_app_x_request_builder' +require_relative './graph_windows_mobile_m_s_i/graph_windows_mobile_m_s_i_request_builder' +require_relative './graph_windows_universal_app_x/graph_windows_universal_app_x_request_builder' +require_relative './graph_windows_web_app/graph_windows_web_app_request_builder' require_relative './item/mobile_app_item_request_builder' require_relative './mobile_apps' @@ -23,14 +37,84 @@ def count() return MicrosoftGraph::DeviceAppManagement::MobileApps::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Casts the previous resource to androidLobApp. + def graph_android_lob_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphAndroidLobApp::GraphAndroidLobAppRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to androidStoreApp. + def graph_android_store_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphAndroidStoreApp::GraphAndroidStoreAppRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to iosLobApp. + def graph_ios_lob_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphIosLobApp::GraphIosLobAppRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to iosStoreApp. + def graph_ios_store_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphIosStoreApp::GraphIosStoreAppRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to iosVppApp. + def graph_ios_vpp_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphIosVppApp::GraphIosVppAppRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to macOSDmgApp. + def graph_mac_o_s_dmg_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphMacOSDmgApp::GraphMacOSDmgAppRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to macOSLobApp. + def graph_mac_o_s_lob_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphMacOSLobApp::GraphMacOSLobAppRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to managedAndroidLobApp. + def graph_managed_android_lob_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphManagedAndroidLobApp::GraphManagedAndroidLobAppRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to managedIOSLobApp. + def graph_managed_i_o_s_lob_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphManagedIOSLobApp::GraphManagedIOSLobAppRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Casts the previous resource to managedMobileLobApp. def graph_managed_mobile_lob_app() return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphManagedMobileLobApp::GraphManagedMobileLobAppRequestBuilder.new(@path_parameters, @request_adapter) end ## - # Casts the previous resource to mobileLobApp. - def graph_mobile_lob_app() - return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphMobileLobApp::GraphMobileLobAppRequestBuilder.new(@path_parameters, @request_adapter) + # Casts the previous resource to microsoftStoreForBusinessApp. + def graph_microsoft_store_for_business_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphMicrosoftStoreForBusinessApp::GraphMicrosoftStoreForBusinessAppRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to win32LobApp. + def graph_win32_lob_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphWin32LobApp::GraphWin32LobAppRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to windowsAppX. + def graph_windows_app_x() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphWindowsAppX::GraphWindowsAppXRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to windowsMobileMSI. + def graph_windows_mobile_m_s_i() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphWindowsMobileMSI::GraphWindowsMobileMSIRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to windowsUniversalAppX. + def graph_windows_universal_app_x() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphWindowsUniversalAppX::GraphWindowsUniversalAppXRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to windowsWebApp. + def graph_windows_web_app() + return MicrosoftGraph::DeviceAppManagement::MobileApps::GraphWindowsWebApp::GraphWindowsWebAppRequestBuilder.new(@path_parameters, @request_adapter) end ## ## Provides operations to manage the mobileApps property of the microsoft.graph.deviceAppManagement entity. @@ -50,7 +134,7 @@ def by_mobile_app_id(mobile_app_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/mobileApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the androidLobApp objects. @@ -62,8 +146,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,8 +161,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileApp.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,15 +171,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -109,17 +191,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the androidLobApp objects. diff --git a/lib/device_app_management/sync_microsoft_store_for_business_apps/sync_microsoft_store_for_business_apps_request_builder.rb b/lib/device_app_management/sync_microsoft_store_for_business_apps/sync_microsoft_store_for_business_apps_request_builder.rb index 60ef801345..d427c62c7e 100644 --- a/lib/device_app_management/sync_microsoft_store_for_business_apps/sync_microsoft_store_for_business_apps_request_builder.rb +++ b/lib/device_app_management/sync_microsoft_store_for_business_apps/sync_microsoft_store_for_business_apps_request_builder.rb @@ -30,8 +30,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -41,15 +40,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sync_microsoft_store_for_business_apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SyncMicrosoftStoreForBusinessAppsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_app_management/targeted_managed_app_configurations/count/count_request_builder.rb b/lib/device_app_management/targeted_managed_app_configurations/count/count_request_builder.rb index a4c8d9a234..b9dcee8522 100644 --- a/lib/device_app_management/targeted_managed_app_configurations/count/count_request_builder.rb +++ b/lib/device_app_management/targeted_managed_app_configurations/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/targeted_managed_app_configurations/item/apps/apps_request_builder.rb b/lib/device_app_management/targeted_managed_app_configurations/item/apps/apps_request_builder.rb index faf06678ee..d14371db10 100644 --- a/lib/device_app_management/targeted_managed_app_configurations/item/apps/apps_request_builder.rb +++ b/lib/device_app_management/targeted_managed_app_configurations/item/apps/apps_request_builder.rb @@ -42,7 +42,7 @@ def by_managed_mobile_app_id(managed_mobile_app_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/apps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/apps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List of apps to which the policy is deployed. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedMobileAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedMobileApp.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AppsRequestBuilder.new(raw_url, @request_adapter) + end ## # List of apps to which the policy is deployed. diff --git a/lib/device_app_management/targeted_managed_app_configurations/item/apps/count/count_request_builder.rb b/lib/device_app_management/targeted_managed_app_configurations/item/apps/count/count_request_builder.rb index 7c956bb2dc..71adcabf62 100644 --- a/lib/device_app_management/targeted_managed_app_configurations/item/apps/count/count_request_builder.rb +++ b/lib/device_app_management/targeted_managed_app_configurations/item/apps/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/apps/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/apps/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/targeted_managed_app_configurations/item/apps/item/managed_mobile_app_item_request_builder.rb b/lib/device_app_management/targeted_managed_app_configurations/item/apps/item/managed_mobile_app_item_request_builder.rb index ded6730643..c52420c692 100644 --- a/lib/device_app_management/targeted_managed_app_configurations/item/apps/item/managed_mobile_app_item_request_builder.rb +++ b/lib/device_app_management/targeted_managed_app_configurations/item/apps/item/managed_mobile_app_item_request_builder.rb @@ -25,7 +25,7 @@ class ManagedMobileAppItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReque ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/apps/{managedMobileApp%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/apps/{managedMobileApp%2Did}{?%24expand,%24select}") end ## ## Delete navigation property apps for deviceAppManagement @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedMobileApp.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedMobileApp.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_mobile_app_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedMobileAppItemRequestBuilder.new(raw_url, @request_adapter) + end ## # List of apps to which the policy is deployed. diff --git a/lib/device_app_management/targeted_managed_app_configurations/item/assign/assign_post_request_body.rb b/lib/device_app_management/targeted_managed_app_configurations/item/assign/assign_post_request_body.rb index 08ff75920f..b6b0238c63 100644 --- a/lib/device_app_management/targeted_managed_app_configurations/item/assign/assign_post_request_body.rb +++ b/lib/device_app_management/targeted_managed_app_configurations/item/assign/assign_post_request_body.rb @@ -20,15 +20,15 @@ class AssignPostRequestBody # The assignments property @assignments ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -50,7 +50,7 @@ def assignments=(value) @assignments = value end ## - ## Instantiates a new assignPostRequestBody and sets the default values. + ## Instantiates a new AssignPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_app_management/targeted_managed_app_configurations/item/assign/assign_request_builder.rb b/lib/device_app_management/targeted_managed_app_configurations/item/assign/assign_request_builder.rb index 807ff5fd22..94cf105741 100644 --- a/lib/device_app_management/targeted_managed_app_configurations/item/assign/assign_request_builder.rb +++ b/lib/device_app_management/targeted_managed_app_configurations/item/assign/assign_request_builder.rb @@ -36,8 +36,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assign_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_app_management/targeted_managed_app_configurations/item/assignments/assignments_request_builder.rb b/lib/device_app_management/targeted_managed_app_configurations/item/assignments/assignments_request_builder.rb index 4f0ff60246..8e376015c6 100644 --- a/lib/device_app_management/targeted_managed_app_configurations/item/assignments/assignments_request_builder.rb +++ b/lib/device_app_management/targeted_managed_app_configurations/item/assignments/assignments_request_builder.rb @@ -42,7 +42,7 @@ def by_targeted_managed_app_policy_assignment_id(targeted_managed_app_policy_ass ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Navigation property to list of inclusion and exclusion groups to which the policy is deployed. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppPolicyAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppPolicyAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end ## # Navigation property to list of inclusion and exclusion groups to which the policy is deployed. diff --git a/lib/device_app_management/targeted_managed_app_configurations/item/assignments/count/count_request_builder.rb b/lib/device_app_management/targeted_managed_app_configurations/item/assignments/count/count_request_builder.rb index 44387851d0..6a49516911 100644 --- a/lib/device_app_management/targeted_managed_app_configurations/item/assignments/count/count_request_builder.rb +++ b/lib/device_app_management/targeted_managed_app_configurations/item/assignments/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/assignments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/assignments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/targeted_managed_app_configurations/item/assignments/item/targeted_managed_app_policy_assignment_item_request_builder.rb b/lib/device_app_management/targeted_managed_app_configurations/item/assignments/item/targeted_managed_app_policy_assignment_item_request_builder.rb index 01d4a42b76..badc874529 100644 --- a/lib/device_app_management/targeted_managed_app_configurations/item/assignments/item/targeted_managed_app_policy_assignment_item_request_builder.rb +++ b/lib/device_app_management/targeted_managed_app_configurations/item/assignments/item/targeted_managed_app_policy_assignment_item_request_builder.rb @@ -25,7 +25,7 @@ class TargetedManagedAppPolicyAssignmentItemRequestBuilder < MicrosoftKiotaAbstr ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/assignments/{targetedManagedAppPolicyAssignment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/assignments/{targetedManagedAppPolicyAssignment%2Did}{?%24expand,%24select}") end ## ## Delete navigation property assignments for deviceAppManagement @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppPolicyAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppPolicyAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a targeted_managed_app_policy_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TargetedManagedAppPolicyAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Navigation property to list of inclusion and exclusion groups to which the policy is deployed. diff --git a/lib/device_app_management/targeted_managed_app_configurations/item/deployment_summary/deployment_summary_request_builder.rb b/lib/device_app_management/targeted_managed_app_configurations/item/deployment_summary/deployment_summary_request_builder.rb index 19eb53007e..dc48057d17 100644 --- a/lib/device_app_management/targeted_managed_app_configurations/item/deployment_summary/deployment_summary_request_builder.rb +++ b/lib/device_app_management/targeted_managed_app_configurations/item/deployment_summary/deployment_summary_request_builder.rb @@ -23,7 +23,7 @@ class DeploymentSummaryRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestB ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/deploymentSummary{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/deploymentSummary{?%24expand,%24select}") end ## ## Delete navigation property deploymentSummary for deviceAppManagement @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicyDeploymentSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicyDeploymentSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a deployment_summary_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeploymentSummaryRequestBuilder.new(raw_url, @request_adapter) + end ## # Navigation property to deployment summary of the configuration. diff --git a/lib/device_app_management/targeted_managed_app_configurations/item/target_apps/target_apps_post_request_body.rb b/lib/device_app_management/targeted_managed_app_configurations/item/target_apps/target_apps_post_request_body.rb index a212b85a27..27f25491c6 100644 --- a/lib/device_app_management/targeted_managed_app_configurations/item/target_apps/target_apps_post_request_body.rb +++ b/lib/device_app_management/targeted_managed_app_configurations/item/target_apps/target_apps_post_request_body.rb @@ -24,15 +24,15 @@ class TargetAppsPostRequestBody # The apps property @apps ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -69,7 +69,7 @@ def apps=(value) @apps = value end ## - ## Instantiates a new targetAppsPostRequestBody and sets the default values. + ## Instantiates a new TargetAppsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_app_management/targeted_managed_app_configurations/item/target_apps/target_apps_request_builder.rb b/lib/device_app_management/targeted_managed_app_configurations/item/target_apps/target_apps_request_builder.rb index 3d95d4f7c3..53bd787567 100644 --- a/lib/device_app_management/targeted_managed_app_configurations/item/target_apps/target_apps_request_builder.rb +++ b/lib/device_app_management/targeted_managed_app_configurations/item/target_apps/target_apps_request_builder.rb @@ -36,8 +36,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a target_apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TargetAppsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_app_management/targeted_managed_app_configurations/item/targeted_managed_app_configuration_item_request_builder.rb b/lib/device_app_management/targeted_managed_app_configurations/item/targeted_managed_app_configuration_item_request_builder.rb index 28b73b689d..a1505d9100 100644 --- a/lib/device_app_management/targeted_managed_app_configurations/item/targeted_managed_app_configuration_item_request_builder.rb +++ b/lib/device_app_management/targeted_managed_app_configurations/item/targeted_managed_app_configuration_item_request_builder.rb @@ -51,7 +51,7 @@ def target_apps() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}{?%24expand,%24select}") end ## ## Deletes a targetedManagedAppConfiguration. @@ -63,8 +63,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -77,8 +76,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,8 +91,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -104,13 +101,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,15 +118,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -140,17 +138,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a targeted_managed_app_configuration_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TargetedManagedAppConfigurationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the targetedManagedAppConfiguration object. diff --git a/lib/device_app_management/targeted_managed_app_configurations/targeted_managed_app_configurations_request_builder.rb b/lib/device_app_management/targeted_managed_app_configurations/targeted_managed_app_configurations_request_builder.rb index 551c485432..23c2a687eb 100644 --- a/lib/device_app_management/targeted_managed_app_configurations/targeted_managed_app_configurations_request_builder.rb +++ b/lib/device_app_management/targeted_managed_app_configurations/targeted_managed_app_configurations_request_builder.rb @@ -38,7 +38,7 @@ def by_targeted_managed_app_configuration_id(targeted_managed_app_configuration_ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the targetedManagedAppConfiguration objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppConfigurationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a targeted_managed_app_configurations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TargetedManagedAppConfigurationsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the targetedManagedAppConfiguration objects. diff --git a/lib/device_app_management/vpp_tokens/count/count_request_builder.rb b/lib/device_app_management/vpp_tokens/count/count_request_builder.rb index ccffc68539..3ccf340c88 100644 --- a/lib/device_app_management/vpp_tokens/count/count_request_builder.rb +++ b/lib/device_app_management/vpp_tokens/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/vppTokens/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/vppTokens/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/vpp_tokens/item/sync_licenses/sync_licenses_request_builder.rb b/lib/device_app_management/vpp_tokens/item/sync_licenses/sync_licenses_request_builder.rb index 26fa6f40f6..8faf79abd7 100644 --- a/lib/device_app_management/vpp_tokens/item/sync_licenses/sync_licenses_request_builder.rb +++ b/lib/device_app_management/vpp_tokens/item/sync_licenses/sync_licenses_request_builder.rb @@ -35,8 +35,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::VppToken.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,16 +45,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sync_licenses_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SyncLicensesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_app_management/vpp_tokens/item/vpp_token_item_request_builder.rb b/lib/device_app_management/vpp_tokens/item/vpp_token_item_request_builder.rb index 234f91d12a..1a948b6e6c 100644 --- a/lib/device_app_management/vpp_tokens/item/vpp_token_item_request_builder.rb +++ b/lib/device_app_management/vpp_tokens/item/vpp_token_item_request_builder.rb @@ -27,7 +27,7 @@ def sync_licenses() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/vppTokens/{vppToken%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/vppTokens/{vppToken%2Did}{?%24expand,%24select}") end ## ## Deletes a vppToken. @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::VppToken.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::VppToken.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,13 +77,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,15 +94,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,17 +114,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a vpp_token_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VppTokenItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the vppToken object. diff --git a/lib/device_app_management/vpp_tokens/vpp_tokens_request_builder.rb b/lib/device_app_management/vpp_tokens/vpp_tokens_request_builder.rb index 93038cd0cf..fd258281ab 100644 --- a/lib/device_app_management/vpp_tokens/vpp_tokens_request_builder.rb +++ b/lib/device_app_management/vpp_tokens/vpp_tokens_request_builder.rb @@ -38,7 +38,7 @@ def by_vpp_token_id(vpp_token_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/vppTokens{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/vppTokens{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the vppToken objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::VppTokenCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::VppToken.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a vpp_tokens_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VppTokensRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the vppToken objects. diff --git a/lib/device_app_management/windows_information_protection_policies/count/count_request_builder.rb b/lib/device_app_management/windows_information_protection_policies/count/count_request_builder.rb index 03ec6b74a8..9df084f754 100644 --- a/lib/device_app_management/windows_information_protection_policies/count/count_request_builder.rb +++ b/lib/device_app_management/windows_information_protection_policies/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/windows_information_protection_policies/item/assignments/assignments_request_builder.rb b/lib/device_app_management/windows_information_protection_policies/item/assignments/assignments_request_builder.rb index afb5020786..4b98053163 100644 --- a/lib/device_app_management/windows_information_protection_policies/item/assignments/assignments_request_builder.rb +++ b/lib/device_app_management/windows_information_protection_policies/item/assignments/assignments_request_builder.rb @@ -42,7 +42,7 @@ def by_targeted_managed_app_policy_assignment_id(targeted_managed_app_policy_ass ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Navigation property to list of security groups targeted for policy. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppPolicyAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppPolicyAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end ## # Navigation property to list of security groups targeted for policy. diff --git a/lib/device_app_management/windows_information_protection_policies/item/assignments/count/count_request_builder.rb b/lib/device_app_management/windows_information_protection_policies/item/assignments/count/count_request_builder.rb index 8a3d872adc..c3a15e02f3 100644 --- a/lib/device_app_management/windows_information_protection_policies/item/assignments/count/count_request_builder.rb +++ b/lib/device_app_management/windows_information_protection_policies/item/assignments/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/assignments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/assignments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/windows_information_protection_policies/item/assignments/item/targeted_managed_app_policy_assignment_item_request_builder.rb b/lib/device_app_management/windows_information_protection_policies/item/assignments/item/targeted_managed_app_policy_assignment_item_request_builder.rb index aebb171966..7bde7aed6f 100644 --- a/lib/device_app_management/windows_information_protection_policies/item/assignments/item/targeted_managed_app_policy_assignment_item_request_builder.rb +++ b/lib/device_app_management/windows_information_protection_policies/item/assignments/item/targeted_managed_app_policy_assignment_item_request_builder.rb @@ -25,7 +25,7 @@ class TargetedManagedAppPolicyAssignmentItemRequestBuilder < MicrosoftKiotaAbstr ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/assignments/{targetedManagedAppPolicyAssignment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/assignments/{targetedManagedAppPolicyAssignment%2Did}{?%24expand,%24select}") end ## ## Delete navigation property assignments for deviceAppManagement @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppPolicyAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppPolicyAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a targeted_managed_app_policy_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TargetedManagedAppPolicyAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Navigation property to list of security groups targeted for policy. diff --git a/lib/device_app_management/windows_information_protection_policies/item/exempt_app_locker_files/count/count_request_builder.rb b/lib/device_app_management/windows_information_protection_policies/item/exempt_app_locker_files/count/count_request_builder.rb index 71b8190af9..8760bc8317 100644 --- a/lib/device_app_management/windows_information_protection_policies/item/exempt_app_locker_files/count/count_request_builder.rb +++ b/lib/device_app_management/windows_information_protection_policies/item/exempt_app_locker_files/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/windows_information_protection_policies/item/exempt_app_locker_files/exempt_app_locker_files_request_builder.rb b/lib/device_app_management/windows_information_protection_policies/item/exempt_app_locker_files/exempt_app_locker_files_request_builder.rb index 1f09e3d2ae..ded03a4863 100644 --- a/lib/device_app_management/windows_information_protection_policies/item/exempt_app_locker_files/exempt_app_locker_files_request_builder.rb +++ b/lib/device_app_management/windows_information_protection_policies/item/exempt_app_locker_files/exempt_app_locker_files_request_builder.rb @@ -42,10 +42,10 @@ def by_windows_information_protection_app_locker_file_id(windows_information_pro ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Another way to input exempt apps through xml files + ## List properties and relationships of the windowsInformationProtectionAppLockerFile objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of windows_information_protection_app_locker_file_collection_response ## @@ -54,12 +54,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionAppLockerFileCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create new navigation property to exemptAppLockerFiles for deviceAppManagement + ## Create a new windowsInformationProtectionAppLockerFile object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of windows_information_protection_app_locker_file @@ -70,30 +69,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionAppLockerFile.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Another way to input exempt apps through xml files + ## List properties and relationships of the windowsInformationProtectionAppLockerFile objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create new navigation property to exemptAppLockerFiles for deviceAppManagement + ## Create a new windowsInformationProtectionAppLockerFile object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -101,20 +99,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a exempt_app_locker_files_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExemptAppLockerFilesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Another way to input exempt apps through xml files + # List properties and relationships of the windowsInformationProtectionAppLockerFile objects. class ExemptAppLockerFilesRequestBuilderGetQueryParameters ## diff --git a/lib/device_app_management/windows_information_protection_policies/item/exempt_app_locker_files/item/windows_information_protection_app_locker_file_item_request_builder.rb b/lib/device_app_management/windows_information_protection_policies/item/exempt_app_locker_files/item/windows_information_protection_app_locker_file_item_request_builder.rb index a111f1cc1a..f55fd36fab 100644 --- a/lib/device_app_management/windows_information_protection_policies/item/exempt_app_locker_files/item/windows_information_protection_app_locker_file_item_request_builder.rb +++ b/lib/device_app_management/windows_information_protection_policies/item/exempt_app_locker_files/item/windows_information_protection_app_locker_file_item_request_builder.rb @@ -25,10 +25,10 @@ class WindowsInformationProtectionAppLockerFileItemRequestBuilder < MicrosoftKio ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles/{windowsInformationProtectionAppLockerFile%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles/{windowsInformationProtectionAppLockerFile%2Did}{?%24expand,%24select}") end ## - ## Delete navigation property exemptAppLockerFiles for deviceAppManagement + ## Deletes a windowsInformationProtectionAppLockerFile. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -37,12 +37,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Another way to input exempt apps through xml files + ## Read properties and relationships of the windowsInformationProtectionAppLockerFile object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of windows_information_protection_app_locker_file ## @@ -51,12 +50,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionAppLockerFile.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the navigation property exemptAppLockerFiles in deviceAppManagement + ## Update the properties of a windowsInformationProtectionAppLockerFile object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of windows_information_protection_app_locker_file @@ -67,46 +65,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionAppLockerFile.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete navigation property exemptAppLockerFiles for deviceAppManagement + ## Deletes a windowsInformationProtectionAppLockerFile. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Another way to input exempt apps through xml files + ## Read properties and relationships of the windowsInformationProtectionAppLockerFile object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the navigation property exemptAppLockerFiles in deviceAppManagement + ## Update the properties of a windowsInformationProtectionAppLockerFile object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -114,20 +112,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a windows_information_protection_app_locker_file_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WindowsInformationProtectionAppLockerFileItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Another way to input exempt apps through xml files + # Read properties and relationships of the windowsInformationProtectionAppLockerFile object. class WindowsInformationProtectionAppLockerFileItemRequestBuilderGetQueryParameters ## diff --git a/lib/device_app_management/windows_information_protection_policies/item/protected_app_locker_files/count/count_request_builder.rb b/lib/device_app_management/windows_information_protection_policies/item/protected_app_locker_files/count/count_request_builder.rb index 97c889ae1e..5a8c383ade 100644 --- a/lib/device_app_management/windows_information_protection_policies/item/protected_app_locker_files/count/count_request_builder.rb +++ b/lib/device_app_management/windows_information_protection_policies/item/protected_app_locker_files/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_app_management/windows_information_protection_policies/item/protected_app_locker_files/item/windows_information_protection_app_locker_file_item_request_builder.rb b/lib/device_app_management/windows_information_protection_policies/item/protected_app_locker_files/item/windows_information_protection_app_locker_file_item_request_builder.rb index e9cda569f1..8a4dc3ea11 100644 --- a/lib/device_app_management/windows_information_protection_policies/item/protected_app_locker_files/item/windows_information_protection_app_locker_file_item_request_builder.rb +++ b/lib/device_app_management/windows_information_protection_policies/item/protected_app_locker_files/item/windows_information_protection_app_locker_file_item_request_builder.rb @@ -25,7 +25,7 @@ class WindowsInformationProtectionAppLockerFileItemRequestBuilder < MicrosoftKio ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles/{windowsInformationProtectionAppLockerFile%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles/{windowsInformationProtectionAppLockerFile%2Did}{?%24expand,%24select}") end ## ## Delete navigation property protectedAppLockerFiles for deviceAppManagement @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionAppLockerFile.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionAppLockerFile.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a windows_information_protection_app_locker_file_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WindowsInformationProtectionAppLockerFileItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Another way to input protected apps through xml files diff --git a/lib/device_app_management/windows_information_protection_policies/item/protected_app_locker_files/protected_app_locker_files_request_builder.rb b/lib/device_app_management/windows_information_protection_policies/item/protected_app_locker_files/protected_app_locker_files_request_builder.rb index 8e6191c150..f1c3b7c85f 100644 --- a/lib/device_app_management/windows_information_protection_policies/item/protected_app_locker_files/protected_app_locker_files_request_builder.rb +++ b/lib/device_app_management/windows_information_protection_policies/item/protected_app_locker_files/protected_app_locker_files_request_builder.rb @@ -42,7 +42,7 @@ def by_windows_information_protection_app_locker_file_id(windows_information_pro ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Another way to input protected apps through xml files @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionAppLockerFileCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionAppLockerFile.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a protected_app_locker_files_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ProtectedAppLockerFilesRequestBuilder.new(raw_url, @request_adapter) + end ## # Another way to input protected apps through xml files diff --git a/lib/device_app_management/windows_information_protection_policies/item/windows_information_protection_policy_item_request_builder.rb b/lib/device_app_management/windows_information_protection_policies/item/windows_information_protection_policy_item_request_builder.rb index 5057caf48b..059b7b0713 100644 --- a/lib/device_app_management/windows_information_protection_policies/item/windows_information_protection_policy_item_request_builder.rb +++ b/lib/device_app_management/windows_information_protection_policies/item/windows_information_protection_policy_item_request_builder.rb @@ -39,7 +39,7 @@ def protected_app_locker_files() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}{?%24expand,%24select}") end ## ## Deletes a windowsInformationProtectionPolicy. @@ -51,8 +51,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,13 +89,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,15 +106,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,17 +126,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a windows_information_protection_policy_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WindowsInformationProtectionPolicyItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the windowsInformationProtectionPolicy object. diff --git a/lib/device_app_management/windows_information_protection_policies/windows_information_protection_policies_request_builder.rb b/lib/device_app_management/windows_information_protection_policies/windows_information_protection_policies_request_builder.rb index 6585c9b65f..ea0fac44a1 100644 --- a/lib/device_app_management/windows_information_protection_policies/windows_information_protection_policies_request_builder.rb +++ b/lib/device_app_management/windows_information_protection_policies/windows_information_protection_policies_request_builder.rb @@ -38,7 +38,7 @@ def by_windows_information_protection_policy_id(windows_information_protection_p ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the windowsInformationProtectionPolicy objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionPolicyCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a windows_information_protection_policies_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WindowsInformationProtectionPoliciesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the windowsInformationProtectionPolicy objects. diff --git a/lib/device_management/apple_push_notification_certificate/apple_push_notification_certificate_request_builder.rb b/lib/device_management/apple_push_notification_certificate/apple_push_notification_certificate_request_builder.rb index 96567b4459..61881e4c31 100644 --- a/lib/device_management/apple_push_notification_certificate/apple_push_notification_certificate_request_builder.rb +++ b/lib/device_management/apple_push_notification_certificate/apple_push_notification_certificate_request_builder.rb @@ -25,7 +25,7 @@ def download_apple_push_notification_certificate_signing_request() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/applePushNotificationCertificate{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/applePushNotificationCertificate{?%24expand,%24select}") end ## ## Delete navigation property applePushNotificationCertificate for deviceManagement @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ApplePushNotificationCertificate.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ApplePushNotificationCertificate.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apple_push_notification_certificate_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplePushNotificationCertificateRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the applePushNotificationCertificate object. diff --git a/lib/device_management/apple_push_notification_certificate/download_apple_push_notification_certificate_signing_request/download_apple_push_notification_certificate_signing_request.rb b/lib/device_management/apple_push_notification_certificate/download_apple_push_notification_certificate_signing_request/download_apple_push_notification_certificate_signing_request.rb index f52678333c..4c732f2c3d 100644 --- a/lib/device_management/apple_push_notification_certificate/download_apple_push_notification_certificate_signing_request/download_apple_push_notification_certificate_signing_request.rb +++ b/lib/device_management/apple_push_notification_certificate/download_apple_push_notification_certificate_signing_request/download_apple_push_notification_certificate_signing_request.rb @@ -1 +1 @@ -require_relative 'download_apple_push_notification_certificate_signing_request_response' +require_relative 'download_apple_push_notification_certificate_signing_request_get_response' diff --git a/lib/device_management/apple_push_notification_certificate/download_apple_push_notification_certificate_signing_request/download_apple_push_notification_certificate_signing_request_get_response.rb b/lib/device_management/apple_push_notification_certificate/download_apple_push_notification_certificate_signing_request/download_apple_push_notification_certificate_signing_request_get_response.rb new file mode 100644 index 0000000000..2574995bbb --- /dev/null +++ b/lib/device_management/apple_push_notification_certificate/download_apple_push_notification_certificate_signing_request/download_apple_push_notification_certificate_signing_request_get_response.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../device_management' +require_relative '../apple_push_notification_certificate' +require_relative './download_apple_push_notification_certificate_signing_request' + +module MicrosoftGraph + module DeviceManagement + module ApplePushNotificationCertificate + module DownloadApplePushNotificationCertificateSigningRequest + class DownloadApplePushNotificationCertificateSigningRequestGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DownloadApplePushNotificationCertificateSigningRequestGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a download_apple_push_notification_certificate_signing_request_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DownloadApplePushNotificationCertificateSigningRequestGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/device_management/apple_push_notification_certificate/download_apple_push_notification_certificate_signing_request/download_apple_push_notification_certificate_signing_request_request_builder.rb b/lib/device_management/apple_push_notification_certificate/download_apple_push_notification_certificate_signing_request/download_apple_push_notification_certificate_signing_request_request_builder.rb index 576c1af66c..8e6655a55e 100644 --- a/lib/device_management/apple_push_notification_certificate/download_apple_push_notification_certificate_signing_request/download_apple_push_notification_certificate_signing_request_request_builder.rb +++ b/lib/device_management/apple_push_notification_certificate/download_apple_push_notification_certificate_signing_request/download_apple_push_notification_certificate_signing_request_request_builder.rb @@ -25,16 +25,15 @@ def initialize(path_parameters, request_adapter) ## ## Download Apple push notification certificate signing request ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of download_apple_push_notification_certificate_signing_request_response + ## @return a Fiber of download_apple_push_notification_certificate_signing_request_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::ApplePushNotificationCertificate::DownloadApplePushNotificationCertificateSigningRequest::DownloadApplePushNotificationCertificateSigningRequestResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::ApplePushNotificationCertificate::DownloadApplePushNotificationCertificateSigningRequest::DownloadApplePushNotificationCertificateSigningRequestGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Download Apple push notification certificate signing request @@ -43,16 +42,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a download_apple_push_notification_certificate_signing_request_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DownloadApplePushNotificationCertificateSigningRequestRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/apple_push_notification_certificate/download_apple_push_notification_certificate_signing_request/download_apple_push_notification_certificate_signing_request_response.rb b/lib/device_management/apple_push_notification_certificate/download_apple_push_notification_certificate_signing_request/download_apple_push_notification_certificate_signing_request_response.rb deleted file mode 100644 index 99b751f1e0..0000000000 --- a/lib/device_management/apple_push_notification_certificate/download_apple_push_notification_certificate_signing_request/download_apple_push_notification_certificate_signing_request_response.rb +++ /dev/null @@ -1,88 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../device_management' -require_relative '../apple_push_notification_certificate' -require_relative './download_apple_push_notification_certificate_signing_request' - -module MicrosoftGraph - module DeviceManagement - module ApplePushNotificationCertificate - module DownloadApplePushNotificationCertificateSigningRequest - class DownloadApplePushNotificationCertificateSigningRequestResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new downloadApplePushNotificationCertificateSigningRequestResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a download_apple_push_notification_certificate_signing_request_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DownloadApplePushNotificationCertificateSigningRequestResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_string_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_string_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/device_management/audit_events/audit_events_request_builder.rb b/lib/device_management/audit_events/audit_events_request_builder.rb index 6a8ce05a03..3c32e5bb77 100644 --- a/lib/device_management/audit_events/audit_events_request_builder.rb +++ b/lib/device_management/audit_events/audit_events_request_builder.rb @@ -45,7 +45,7 @@ def by_audit_event_id(audit_event_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/auditEvents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/auditEvents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the auditEvent objects. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuditEventCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,8 +81,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuditEvent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,15 +91,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -113,17 +111,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a audit_events_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AuditEventsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the auditEvent objects. diff --git a/lib/device_management/audit_events/count/count_request_builder.rb b/lib/device_management/audit_events/count/count_request_builder.rb index 09501c49f2..e41543003d 100644 --- a/lib/device_management/audit_events/count/count_request_builder.rb +++ b/lib/device_management/audit_events/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/auditEvents/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/auditEvents/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/audit_events/get_audit_activity_types_with_category/get_audit_activity_types_with_category.rb b/lib/device_management/audit_events/get_audit_activity_types_with_category/get_audit_activity_types_with_category.rb index 577306ad27..55b46640ab 100644 --- a/lib/device_management/audit_events/get_audit_activity_types_with_category/get_audit_activity_types_with_category.rb +++ b/lib/device_management/audit_events/get_audit_activity_types_with_category/get_audit_activity_types_with_category.rb @@ -1 +1 @@ -require_relative 'get_audit_activity_types_with_category_response' +require_relative 'get_audit_activity_types_with_category_get_response' diff --git a/lib/device_management/audit_events/get_audit_activity_types_with_category/get_audit_activity_types_with_category_get_response.rb b/lib/device_management/audit_events/get_audit_activity_types_with_category/get_audit_activity_types_with_category_get_response.rb new file mode 100644 index 0000000000..73363cc5dc --- /dev/null +++ b/lib/device_management/audit_events/get_audit_activity_types_with_category/get_audit_activity_types_with_category_get_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../device_management' +require_relative '../audit_events' +require_relative './get_audit_activity_types_with_category' + +module MicrosoftGraph + module DeviceManagement + module AuditEvents + module GetAuditActivityTypesWithCategory + class GetAuditActivityTypesWithCategoryGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetAuditActivityTypesWithCategoryGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_audit_activity_types_with_category_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetAuditActivityTypesWithCategoryGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/device_management/audit_events/get_audit_activity_types_with_category/get_audit_activity_types_with_category_request_builder.rb b/lib/device_management/audit_events/get_audit_activity_types_with_category/get_audit_activity_types_with_category_request_builder.rb index aaa0cda9b1..4bd849fcfa 100644 --- a/lib/device_management/audit_events/get_audit_activity_types_with_category/get_audit_activity_types_with_category_request_builder.rb +++ b/lib/device_management/audit_events/get_audit_activity_types_with_category/get_audit_activity_types_with_category_request_builder.rb @@ -21,21 +21,20 @@ class GetAuditActivityTypesWithCategoryRequestBuilder < MicrosoftKiotaAbstractio ## @return a void ## def initialize(path_parameters, request_adapter, category=nil) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/auditEvents/getAuditActivityTypes(category='{category}'){?%24top,%24skip,%24search,%24filter,%24count}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/auditEvents/getAuditActivityTypes(category='{category}'){?%24count,%24filter,%24search,%24skip,%24top}") end ## ## Invoke function getAuditActivityTypes ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_audit_activity_types_with_category_response + ## @return a Fiber of get_audit_activity_types_with_category_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::AuditEvents::GetAuditActivityTypesWithCategory::GetAuditActivityTypesWithCategoryResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::AuditEvents::GetAuditActivityTypesWithCategory::GetAuditActivityTypesWithCategoryGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function getAuditActivityTypes @@ -44,17 +43,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_audit_activity_types_with_category_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetAuditActivityTypesWithCategoryRequestBuilder.new(raw_url, @request_adapter) + end ## # Invoke function getAuditActivityTypes diff --git a/lib/device_management/audit_events/get_audit_activity_types_with_category/get_audit_activity_types_with_category_response.rb b/lib/device_management/audit_events/get_audit_activity_types_with_category/get_audit_activity_types_with_category_response.rb deleted file mode 100644 index ed291bade9..0000000000 --- a/lib/device_management/audit_events/get_audit_activity_types_with_category/get_audit_activity_types_with_category_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../device_management' -require_relative '../audit_events' -require_relative './get_audit_activity_types_with_category' - -module MicrosoftGraph - module DeviceManagement - module AuditEvents - module GetAuditActivityTypesWithCategory - class GetAuditActivityTypesWithCategoryResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getAuditActivityTypesWithCategoryResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_audit_activity_types_with_category_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAuditActivityTypesWithCategoryResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/device_management/audit_events/get_audit_categories/get_audit_categories.rb b/lib/device_management/audit_events/get_audit_categories/get_audit_categories.rb index 61c8733215..5b49d7efb7 100644 --- a/lib/device_management/audit_events/get_audit_categories/get_audit_categories.rb +++ b/lib/device_management/audit_events/get_audit_categories/get_audit_categories.rb @@ -1 +1 @@ -require_relative 'get_audit_categories_response' +require_relative 'get_audit_categories_get_response' diff --git a/lib/device_management/audit_events/get_audit_categories/get_audit_categories_get_response.rb b/lib/device_management/audit_events/get_audit_categories/get_audit_categories_get_response.rb new file mode 100644 index 0000000000..7d78f7deb8 --- /dev/null +++ b/lib/device_management/audit_events/get_audit_categories/get_audit_categories_get_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../device_management' +require_relative '../audit_events' +require_relative './get_audit_categories' + +module MicrosoftGraph + module DeviceManagement + module AuditEvents + module GetAuditCategories + class GetAuditCategoriesGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetAuditCategoriesGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_audit_categories_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetAuditCategoriesGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/device_management/audit_events/get_audit_categories/get_audit_categories_request_builder.rb b/lib/device_management/audit_events/get_audit_categories/get_audit_categories_request_builder.rb index 5ac773c7c9..0751bf2574 100644 --- a/lib/device_management/audit_events/get_audit_categories/get_audit_categories_request_builder.rb +++ b/lib/device_management/audit_events/get_audit_categories/get_audit_categories_request_builder.rb @@ -20,43 +20,51 @@ class GetAuditCategoriesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/auditEvents/getAuditCategories(){?%24top,%24skip,%24search,%24filter,%24count}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/auditEvents/getAuditCategories(){?%24count,%24filter,%24search,%24skip,%24top}") end ## - ## Invoke function getAuditCategories + ## Not yet documented ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_audit_categories_response + ## @return a Fiber of get_audit_categories_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::AuditEvents::GetAuditCategories::GetAuditCategoriesResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::AuditEvents::GetAuditCategories::GetAuditCategoriesGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function getAuditCategories + ## Not yet documented ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_audit_categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetAuditCategoriesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function getAuditCategories + # Not yet documented class GetAuditCategoriesRequestBuilderGetQueryParameters ## diff --git a/lib/device_management/audit_events/get_audit_categories/get_audit_categories_response.rb b/lib/device_management/audit_events/get_audit_categories/get_audit_categories_response.rb deleted file mode 100644 index 660382f62d..0000000000 --- a/lib/device_management/audit_events/get_audit_categories/get_audit_categories_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../device_management' -require_relative '../audit_events' -require_relative './get_audit_categories' - -module MicrosoftGraph - module DeviceManagement - module AuditEvents - module GetAuditCategories - class GetAuditCategoriesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getAuditCategoriesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_audit_categories_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAuditCategoriesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/device_management/audit_events/item/audit_event_item_request_builder.rb b/lib/device_management/audit_events/item/audit_event_item_request_builder.rb index af5e6255a4..4112b40fe6 100644 --- a/lib/device_management/audit_events/item/audit_event_item_request_builder.rb +++ b/lib/device_management/audit_events/item/audit_event_item_request_builder.rb @@ -21,7 +21,7 @@ class AuditEventItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/auditEvents/{auditEvent%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/auditEvents/{auditEvent%2Did}{?%24expand,%24select}") end ## ## Deletes a auditEvent. @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuditEvent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuditEvent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a audit_event_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AuditEventItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the auditEvent object. diff --git a/lib/device_management/compliance_management_partners/compliance_management_partners_request_builder.rb b/lib/device_management/compliance_management_partners/compliance_management_partners_request_builder.rb index 08ae776e70..d355088a42 100644 --- a/lib/device_management/compliance_management_partners/compliance_management_partners_request_builder.rb +++ b/lib/device_management/compliance_management_partners/compliance_management_partners_request_builder.rb @@ -38,7 +38,7 @@ def by_compliance_management_partner_id(compliance_management_partner_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/complianceManagementPartners{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/complianceManagementPartners{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the complianceManagementPartner objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ComplianceManagementPartnerCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ComplianceManagementPartner.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a compliance_management_partners_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ComplianceManagementPartnersRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the complianceManagementPartner objects. diff --git a/lib/device_management/compliance_management_partners/count/count_request_builder.rb b/lib/device_management/compliance_management_partners/count/count_request_builder.rb index 17c3b0f4f3..6ed36ad02a 100644 --- a/lib/device_management/compliance_management_partners/count/count_request_builder.rb +++ b/lib/device_management/compliance_management_partners/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/complianceManagementPartners/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/complianceManagementPartners/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/compliance_management_partners/item/compliance_management_partner_item_request_builder.rb b/lib/device_management/compliance_management_partners/item/compliance_management_partner_item_request_builder.rb index 261c4f08a4..c0ac024868 100644 --- a/lib/device_management/compliance_management_partners/item/compliance_management_partner_item_request_builder.rb +++ b/lib/device_management/compliance_management_partners/item/compliance_management_partner_item_request_builder.rb @@ -21,7 +21,7 @@ class ComplianceManagementPartnerItemRequestBuilder < MicrosoftKiotaAbstractions ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/complianceManagementPartners/{complianceManagementPartner%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/complianceManagementPartners/{complianceManagementPartner%2Did}{?%24expand,%24select}") end ## ## Deletes a complianceManagementPartner. @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ComplianceManagementPartner.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ComplianceManagementPartner.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a compliance_management_partner_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ComplianceManagementPartnerItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the complianceManagementPartner object. diff --git a/lib/device_management/conditional_access_settings/conditional_access_settings_request_builder.rb b/lib/device_management/conditional_access_settings/conditional_access_settings_request_builder.rb index 66d63f4815..5280a75964 100644 --- a/lib/device_management/conditional_access_settings/conditional_access_settings_request_builder.rb +++ b/lib/device_management/conditional_access_settings/conditional_access_settings_request_builder.rb @@ -19,7 +19,7 @@ class ConditionalAccessSettingsRequestBuilder < MicrosoftKiotaAbstractions::Base ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/conditionalAccessSettings{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/conditionalAccessSettings{?%24expand,%24select}") end ## ## Delete navigation property conditionalAccessSettings for deviceManagement @@ -31,8 +31,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnPremisesConditionalAccessSettings.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -61,8 +59,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnPremisesConditionalAccessSettings.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,13 +69,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -88,15 +86,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,17 +106,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a conditional_access_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConditionalAccessSettingsRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the onPremisesConditionalAccessSettings object. diff --git a/lib/device_management/detected_apps/count/count_request_builder.rb b/lib/device_management/detected_apps/count/count_request_builder.rb index ab09e49c42..3e4b962197 100644 --- a/lib/device_management/detected_apps/count/count_request_builder.rb +++ b/lib/device_management/detected_apps/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/detectedApps/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/detectedApps/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/detected_apps/detected_apps_request_builder.rb b/lib/device_management/detected_apps/detected_apps_request_builder.rb index 4f2bb3705c..4f28d92428 100644 --- a/lib/device_management/detected_apps/detected_apps_request_builder.rb +++ b/lib/device_management/detected_apps/detected_apps_request_builder.rb @@ -38,7 +38,7 @@ def by_detected_app_id(detected_app_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/detectedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/detectedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the detectedApp objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DetectedAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DetectedApp.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a detected_apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DetectedAppsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the detectedApp objects. diff --git a/lib/device_management/detected_apps/item/detected_app_item_request_builder.rb b/lib/device_management/detected_apps/item/detected_app_item_request_builder.rb index 0d27526423..b9794d14ab 100644 --- a/lib/device_management/detected_apps/item/detected_app_item_request_builder.rb +++ b/lib/device_management/detected_apps/item/detected_app_item_request_builder.rb @@ -27,7 +27,7 @@ def managed_devices() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/detectedApps/{detectedApp%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/detectedApps/{detectedApp%2Did}{?%24expand,%24select}") end ## ## Deletes a detectedApp. @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DetectedApp.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DetectedApp.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,13 +77,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,15 +94,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,17 +114,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a detected_app_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DetectedAppItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the detectedApp object. diff --git a/lib/device_management/detected_apps/item/managed_devices/count/count_request_builder.rb b/lib/device_management/detected_apps/item/managed_devices/count/count_request_builder.rb index f60a072953..2d92166d04 100644 --- a/lib/device_management/detected_apps/item/managed_devices/count/count_request_builder.rb +++ b/lib/device_management/detected_apps/item/managed_devices/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/detectedApps/{detectedApp%2Did}/managedDevices/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/detectedApps/{detectedApp%2Did}/managedDevices/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/detected_apps/item/managed_devices/item/managed_device_item_request_builder.rb b/lib/device_management/detected_apps/item/managed_devices/item/managed_device_item_request_builder.rb index 2e66120f34..b497678c37 100644 --- a/lib/device_management/detected_apps/item/managed_devices/item/managed_device_item_request_builder.rb +++ b/lib/device_management/detected_apps/item/managed_devices/item/managed_device_item_request_builder.rb @@ -25,7 +25,7 @@ class ManagedDeviceItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestB ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/detectedApps/{detectedApp%2Did}/managedDevices/{managedDevice%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/detectedApps/{detectedApp%2Did}/managedDevices/{managedDevice%2Did}{?%24expand,%24select}") end ## ## The devices that have the discovered application installed @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDevice.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_device_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedDeviceItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The devices that have the discovered application installed diff --git a/lib/device_management/detected_apps/item/managed_devices/managed_devices_request_builder.rb b/lib/device_management/detected_apps/item/managed_devices/managed_devices_request_builder.rb index ff38ed8c96..34fad2e081 100644 --- a/lib/device_management/detected_apps/item/managed_devices/managed_devices_request_builder.rb +++ b/lib/device_management/detected_apps/item/managed_devices/managed_devices_request_builder.rb @@ -41,7 +41,7 @@ def by_managed_device_id(managed_device_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/detectedApps/{detectedApp%2Did}/managedDevices{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/detectedApps/{detectedApp%2Did}/managedDevices{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The devices that have the discovered application installed @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDeviceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_devices_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedDevicesRequestBuilder.new(raw_url, @request_adapter) + end ## # The devices that have the discovered application installed diff --git a/lib/device_management/device_categories/count/count_request_builder.rb b/lib/device_management/device_categories/count/count_request_builder.rb index 412dde9839..a2fb6d747b 100644 --- a/lib/device_management/device_categories/count/count_request_builder.rb +++ b/lib/device_management/device_categories/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCategories/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCategories/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/device_categories/device_categories_request_builder.rb b/lib/device_management/device_categories/device_categories_request_builder.rb index 4d649e9c94..b80f8294ce 100644 --- a/lib/device_management/device_categories/device_categories_request_builder.rb +++ b/lib/device_management/device_categories/device_categories_request_builder.rb @@ -38,7 +38,7 @@ def by_device_category_id(device_category_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCategories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCategories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the deviceCategory objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceCategoriesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the deviceCategory objects. diff --git a/lib/device_management/device_categories/item/device_category_item_request_builder.rb b/lib/device_management/device_categories/item/device_category_item_request_builder.rb index 96215c09a2..70495a4f7f 100644 --- a/lib/device_management/device_categories/item/device_category_item_request_builder.rb +++ b/lib/device_management/device_categories/item/device_category_item_request_builder.rb @@ -21,7 +21,7 @@ class DeviceCategoryItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCategories/{deviceCategory%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCategories/{deviceCategory%2Did}{?%24expand,%24select}") end ## ## Deletes a deviceCategory. @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_category_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceCategoryItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceCategory object. diff --git a/lib/device_management/device_compliance_policies/count/count_request_builder.rb b/lib/device_management/device_compliance_policies/count/count_request_builder.rb index 5e3ed501c7..0f4efe491c 100644 --- a/lib/device_management/device_compliance_policies/count/count_request_builder.rb +++ b/lib/device_management/device_compliance_policies/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/device_compliance_policies/device_compliance_policies_request_builder.rb b/lib/device_management/device_compliance_policies/device_compliance_policies_request_builder.rb index 80cc0a4bb9..acec418b3f 100644 --- a/lib/device_management/device_compliance_policies/device_compliance_policies_request_builder.rb +++ b/lib/device_management/device_compliance_policies/device_compliance_policies_request_builder.rb @@ -38,10 +38,10 @@ def by_device_compliance_policy_id(device_compliance_policy_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List properties and relationships of the deviceCompliancePolicy objects. + ## List properties and relationships of the iosCompliancePolicy objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of device_compliance_policy_collection_response ## @@ -50,12 +50,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCompliancePolicyCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new iosCompliancePolicy object. + ## Create a new macOSCompliancePolicy object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of device_compliance_policy @@ -66,30 +65,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCompliancePolicy.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List properties and relationships of the deviceCompliancePolicy objects. + ## List properties and relationships of the iosCompliancePolicy objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new iosCompliancePolicy object. + ## Create a new macOSCompliancePolicy object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -97,20 +95,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_compliance_policies_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceCompliancePoliciesRequestBuilder.new(raw_url, @request_adapter) + end ## - # List properties and relationships of the deviceCompliancePolicy objects. + # List properties and relationships of the iosCompliancePolicy objects. class DeviceCompliancePoliciesRequestBuilderGetQueryParameters ## diff --git a/lib/device_management/device_compliance_policies/item/assign/assign.rb b/lib/device_management/device_compliance_policies/item/assign/assign.rb index 1f7834f80c..fbeecce252 100644 --- a/lib/device_management/device_compliance_policies/item/assign/assign.rb +++ b/lib/device_management/device_compliance_policies/item/assign/assign.rb @@ -1,2 +1,2 @@ require_relative 'assign_post_request_body' -require_relative 'assign_response' +require_relative 'assign_post_response' diff --git a/lib/device_management/device_compliance_policies/item/assign/assign_post_request_body.rb b/lib/device_management/device_compliance_policies/item/assign/assign_post_request_body.rb index 6969ff572a..36a0a09468 100644 --- a/lib/device_management/device_compliance_policies/item/assign/assign_post_request_body.rb +++ b/lib/device_management/device_compliance_policies/item/assign/assign_post_request_body.rb @@ -20,15 +20,15 @@ class AssignPostRequestBody # The assignments property @assignments ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -50,7 +50,7 @@ def assignments=(value) @assignments = value end ## - ## Instantiates a new assignPostRequestBody and sets the default values. + ## Instantiates a new AssignPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/device_compliance_policies/item/assign/assign_post_response.rb b/lib/device_management/device_compliance_policies/item/assign/assign_post_response.rb new file mode 100644 index 0000000000..e636b0139b --- /dev/null +++ b/lib/device_management/device_compliance_policies/item/assign/assign_post_response.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/base_collection_pagination_count_response' +require_relative '../../../../models/device_compliance_policy_assignment' +require_relative '../../../device_management' +require_relative '../../device_compliance_policies' +require_relative '../item' +require_relative './assign' + +module MicrosoftGraph + module DeviceManagement + module DeviceCompliancePolicies + module Item + module Assign + class AssignPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new AssignPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a assign_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AssignPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DeviceCompliancePolicyAssignment.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a device_compliance_policy_assignment + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/device_management/device_compliance_policies/item/assign/assign_request_builder.rb b/lib/device_management/device_compliance_policies/item/assign/assign_request_builder.rb index 3a8756a560..6ce7ed338e 100644 --- a/lib/device_management/device_compliance_policies/item/assign/assign_request_builder.rb +++ b/lib/device_management/device_compliance_policies/item/assign/assign_request_builder.rb @@ -28,7 +28,7 @@ def initialize(path_parameters, request_adapter) ## Not yet documented ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of assign_response + ## @return a Fiber of assign_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -36,9 +36,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::DeviceCompliancePolicies::Item::Assign::AssignResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::DeviceCompliancePolicies::Item::Assign::AssignPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Not yet documented @@ -49,17 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assign_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/device_compliance_policies/item/assign/assign_response.rb b/lib/device_management/device_compliance_policies/item/assign/assign_response.rb deleted file mode 100644 index 2995194ea9..0000000000 --- a/lib/device_management/device_compliance_policies/item/assign/assign_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../../models/device_compliance_policy_assignment' -require_relative '../../../device_management' -require_relative '../../device_compliance_policies' -require_relative '../item' -require_relative './assign' - -module MicrosoftGraph - module DeviceManagement - module DeviceCompliancePolicies - module Item - module Assign - class AssignResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new assignResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a assign_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return AssignResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DeviceCompliancePolicyAssignment.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a device_compliance_policy_assignment - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/device_management/device_compliance_policies/item/assignments/assignments_request_builder.rb b/lib/device_management/device_compliance_policies/item/assignments/assignments_request_builder.rb index 2f10cf6052..cea74d0c2a 100644 --- a/lib/device_management/device_compliance_policies/item/assignments/assignments_request_builder.rb +++ b/lib/device_management/device_compliance_policies/item/assignments/assignments_request_builder.rb @@ -42,7 +42,7 @@ def by_device_compliance_policy_assignment_id(device_compliance_policy_assignmen ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the deviceCompliancePolicyAssignment objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCompliancePolicyAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCompliancePolicyAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the deviceCompliancePolicyAssignment objects. diff --git a/lib/device_management/device_compliance_policies/item/assignments/count/count_request_builder.rb b/lib/device_management/device_compliance_policies/item/assignments/count/count_request_builder.rb index df4eb9cfb2..ea67d18bc3 100644 --- a/lib/device_management/device_compliance_policies/item/assignments/count/count_request_builder.rb +++ b/lib/device_management/device_compliance_policies/item/assignments/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/assignments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/assignments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/device_compliance_policies/item/assignments/item/device_compliance_policy_assignment_item_request_builder.rb b/lib/device_management/device_compliance_policies/item/assignments/item/device_compliance_policy_assignment_item_request_builder.rb index 52434a19ab..107872a477 100644 --- a/lib/device_management/device_compliance_policies/item/assignments/item/device_compliance_policy_assignment_item_request_builder.rb +++ b/lib/device_management/device_compliance_policies/item/assignments/item/device_compliance_policy_assignment_item_request_builder.rb @@ -25,7 +25,7 @@ class DeviceCompliancePolicyAssignmentItemRequestBuilder < MicrosoftKiotaAbstrac ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/assignments/{deviceCompliancePolicyAssignment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/assignments/{deviceCompliancePolicyAssignment%2Did}{?%24expand,%24select}") end ## ## Deletes a deviceCompliancePolicyAssignment. @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCompliancePolicyAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCompliancePolicyAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_compliance_policy_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceCompliancePolicyAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceCompliancePolicyAssignment object. diff --git a/lib/device_management/device_compliance_policies/item/device_compliance_policy_item_request_builder.rb b/lib/device_management/device_compliance_policies/item/device_compliance_policy_item_request_builder.rb index eed704a0a4..ab3e984373 100644 --- a/lib/device_management/device_compliance_policies/item/device_compliance_policy_item_request_builder.rb +++ b/lib/device_management/device_compliance_policies/item/device_compliance_policy_item_request_builder.rb @@ -75,10 +75,10 @@ def user_status_overview() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}{?%24expand,%24select}") end ## - ## Deletes a androidWorkProfileCompliancePolicy. + ## Deletes a windows10CompliancePolicy. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -87,12 +87,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read properties and relationships of the iosCompliancePolicy object. + ## Read properties and relationships of the windows10CompliancePolicy object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of device_compliance_policy ## @@ -101,12 +100,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCompliancePolicy.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of a androidWorkProfileCompliancePolicy object. + ## Update the properties of a windowsPhone81CompliancePolicy object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of device_compliance_policy @@ -117,46 +115,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCompliancePolicy.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Deletes a androidWorkProfileCompliancePolicy. + ## Deletes a windows10CompliancePolicy. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read properties and relationships of the iosCompliancePolicy object. + ## Read properties and relationships of the windows10CompliancePolicy object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of a androidWorkProfileCompliancePolicy object. + ## Update the properties of a windowsPhone81CompliancePolicy object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -164,20 +162,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_compliance_policy_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceCompliancePolicyItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read properties and relationships of the iosCompliancePolicy object. + # Read properties and relationships of the windows10CompliancePolicy object. class DeviceCompliancePolicyItemRequestBuilderGetQueryParameters ## diff --git a/lib/device_management/device_compliance_policies/item/device_setting_state_summaries/count/count_request_builder.rb b/lib/device_management/device_compliance_policies/item/device_setting_state_summaries/count/count_request_builder.rb index d7c1670c3d..ae7055fd6c 100644 --- a/lib/device_management/device_compliance_policies/item/device_setting_state_summaries/count/count_request_builder.rb +++ b/lib/device_management/device_compliance_policies/item/device_setting_state_summaries/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceSettingStateSummaries/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceSettingStateSummaries/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/device_compliance_policies/item/device_setting_state_summaries/device_setting_state_summaries_request_builder.rb b/lib/device_management/device_compliance_policies/item/device_setting_state_summaries/device_setting_state_summaries_request_builder.rb index 18df767eea..7e9745b21a 100644 --- a/lib/device_management/device_compliance_policies/item/device_setting_state_summaries/device_setting_state_summaries_request_builder.rb +++ b/lib/device_management/device_compliance_policies/item/device_setting_state_summaries/device_setting_state_summaries_request_builder.rb @@ -42,7 +42,7 @@ def by_setting_state_device_summary_id(setting_state_device_summary_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceSettingStateSummaries{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceSettingStateSummaries{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Compliance Setting State Device Summary @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SettingStateDeviceSummaryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SettingStateDeviceSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_setting_state_summaries_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceSettingStateSummariesRequestBuilder.new(raw_url, @request_adapter) + end ## # Compliance Setting State Device Summary diff --git a/lib/device_management/device_compliance_policies/item/device_setting_state_summaries/item/setting_state_device_summary_item_request_builder.rb b/lib/device_management/device_compliance_policies/item/device_setting_state_summaries/item/setting_state_device_summary_item_request_builder.rb index 63ea4db278..18ae4bacb4 100644 --- a/lib/device_management/device_compliance_policies/item/device_setting_state_summaries/item/setting_state_device_summary_item_request_builder.rb +++ b/lib/device_management/device_compliance_policies/item/device_setting_state_summaries/item/setting_state_device_summary_item_request_builder.rb @@ -25,7 +25,7 @@ class SettingStateDeviceSummaryItemRequestBuilder < MicrosoftKiotaAbstractions:: ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceSettingStateSummaries/{settingStateDeviceSummary%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceSettingStateSummaries/{settingStateDeviceSummary%2Did}{?%24expand,%24select}") end ## ## Delete navigation property deviceSettingStateSummaries for deviceManagement @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SettingStateDeviceSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SettingStateDeviceSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a setting_state_device_summary_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SettingStateDeviceSummaryItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Compliance Setting State Device Summary diff --git a/lib/device_management/device_compliance_policies/item/device_status_overview/device_status_overview_request_builder.rb b/lib/device_management/device_compliance_policies/item/device_status_overview/device_status_overview_request_builder.rb index c0315fd229..59428f7c12 100644 --- a/lib/device_management/device_compliance_policies/item/device_status_overview/device_status_overview_request_builder.rb +++ b/lib/device_management/device_compliance_policies/item/device_status_overview/device_status_overview_request_builder.rb @@ -23,7 +23,7 @@ class DeviceStatusOverviewRequestBuilder < MicrosoftKiotaAbstractions::BaseReque ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceStatusOverview{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceStatusOverview{?%24expand,%24select}") end ## ## Delete navigation property deviceStatusOverview for deviceManagement @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceDeviceOverview.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceDeviceOverview.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_status_overview_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceStatusOverviewRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceComplianceDeviceOverview object. diff --git a/lib/device_management/device_compliance_policies/item/device_statuses/count/count_request_builder.rb b/lib/device_management/device_compliance_policies/item/device_statuses/count/count_request_builder.rb index 7d9444ab72..2baddd4564 100644 --- a/lib/device_management/device_compliance_policies/item/device_statuses/count/count_request_builder.rb +++ b/lib/device_management/device_compliance_policies/item/device_statuses/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceStatuses/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceStatuses/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/device_compliance_policies/item/device_statuses/device_statuses_request_builder.rb b/lib/device_management/device_compliance_policies/item/device_statuses/device_statuses_request_builder.rb index 7687f607c7..2a2c434619 100644 --- a/lib/device_management/device_compliance_policies/item/device_statuses/device_statuses_request_builder.rb +++ b/lib/device_management/device_compliance_policies/item/device_statuses/device_statuses_request_builder.rb @@ -42,7 +42,7 @@ def by_device_compliance_device_status_id(device_compliance_device_status_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceStatuses{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceStatuses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the deviceComplianceDeviceStatus objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceDeviceStatusCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceDeviceStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_statuses_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceStatusesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the deviceComplianceDeviceStatus objects. diff --git a/lib/device_management/device_compliance_policies/item/device_statuses/item/device_compliance_device_status_item_request_builder.rb b/lib/device_management/device_compliance_policies/item/device_statuses/item/device_compliance_device_status_item_request_builder.rb index ba33a2c8eb..0211c3276f 100644 --- a/lib/device_management/device_compliance_policies/item/device_statuses/item/device_compliance_device_status_item_request_builder.rb +++ b/lib/device_management/device_compliance_policies/item/device_statuses/item/device_compliance_device_status_item_request_builder.rb @@ -25,7 +25,7 @@ class DeviceComplianceDeviceStatusItemRequestBuilder < MicrosoftKiotaAbstraction ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceStatuses/{deviceComplianceDeviceStatus%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceStatuses/{deviceComplianceDeviceStatus%2Did}{?%24expand,%24select}") end ## ## Deletes a deviceComplianceDeviceStatus. @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceDeviceStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceDeviceStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_compliance_device_status_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceComplianceDeviceStatusItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceComplianceDeviceStatus object. diff --git a/lib/device_management/device_compliance_policies/item/schedule_actions_for_rules/schedule_actions_for_rules_post_request_body.rb b/lib/device_management/device_compliance_policies/item/schedule_actions_for_rules/schedule_actions_for_rules_post_request_body.rb index 2b0c2c7dfa..51b25cf734 100644 --- a/lib/device_management/device_compliance_policies/item/schedule_actions_for_rules/schedule_actions_for_rules_post_request_body.rb +++ b/lib/device_management/device_compliance_policies/item/schedule_actions_for_rules/schedule_actions_for_rules_post_request_body.rb @@ -20,22 +20,22 @@ class ScheduleActionsForRulesPostRequestBody # The deviceComplianceScheduledActionForRules property @device_compliance_scheduled_action_for_rules ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new scheduleActionsForRulesPostRequestBody and sets the default values. + ## Instantiates a new ScheduleActionsForRulesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/device_compliance_policies/item/schedule_actions_for_rules/schedule_actions_for_rules_request_builder.rb b/lib/device_management/device_compliance_policies/item/schedule_actions_for_rules/schedule_actions_for_rules_request_builder.rb index 65a7ae1485..8bebc85c56 100644 --- a/lib/device_management/device_compliance_policies/item/schedule_actions_for_rules/schedule_actions_for_rules_request_builder.rb +++ b/lib/device_management/device_compliance_policies/item/schedule_actions_for_rules/schedule_actions_for_rules_request_builder.rb @@ -36,8 +36,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a schedule_actions_for_rules_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ScheduleActionsForRulesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/count/count_request_builder.rb b/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/count/count_request_builder.rb index a341d9be0b..eb51e498d0 100644 --- a/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/count/count_request_builder.rb +++ b/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/item/device_compliance_scheduled_action_for_rule_item_request_builder.rb b/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/item/device_compliance_scheduled_action_for_rule_item_request_builder.rb index 1872d1b829..d55951a441 100644 --- a/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/item/device_compliance_scheduled_action_for_rule_item_request_builder.rb +++ b/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/item/device_compliance_scheduled_action_for_rule_item_request_builder.rb @@ -31,7 +31,7 @@ def scheduled_action_configurations() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule/{deviceComplianceScheduledActionForRule%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule/{deviceComplianceScheduledActionForRule%2Did}{?%24expand,%24select}") end ## ## Deletes a deviceComplianceScheduledActionForRule. @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceScheduledActionForRule.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceScheduledActionForRule.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,15 +98,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_compliance_scheduled_action_for_rule_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceComplianceScheduledActionForRuleItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceComplianceScheduledActionForRule object. diff --git a/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/item/scheduled_action_configurations/count/count_request_builder.rb b/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/item/scheduled_action_configurations/count/count_request_builder.rb index 968546f3cf..7cf3ce5bb3 100644 --- a/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/item/scheduled_action_configurations/count/count_request_builder.rb +++ b/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/item/scheduled_action_configurations/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule/{deviceComplianceScheduledActionForRule%2Did}/scheduledActionConfigurations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule/{deviceComplianceScheduledActionForRule%2Did}/scheduledActionConfigurations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/item/scheduled_action_configurations/item/device_compliance_action_item_item_request_builder.rb b/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/item/scheduled_action_configurations/item/device_compliance_action_item_item_request_builder.rb index 900faae871..3d9beee1da 100644 --- a/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/item/scheduled_action_configurations/item/device_compliance_action_item_item_request_builder.rb +++ b/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/item/scheduled_action_configurations/item/device_compliance_action_item_item_request_builder.rb @@ -29,7 +29,7 @@ class DeviceComplianceActionItemItemRequestBuilder < MicrosoftKiotaAbstractions: ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule/{deviceComplianceScheduledActionForRule%2Did}/scheduledActionConfigurations/{deviceComplianceActionItem%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule/{deviceComplianceScheduledActionForRule%2Did}/scheduledActionConfigurations/{deviceComplianceActionItem%2Did}{?%24expand,%24select}") end ## ## Deletes a deviceComplianceActionItem. @@ -41,8 +41,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceActionItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceActionItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,13 +79,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -98,15 +96,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,17 +116,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_compliance_action_item_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceComplianceActionItemItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceComplianceActionItem object. diff --git a/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/item/scheduled_action_configurations/scheduled_action_configurations_request_builder.rb b/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/item/scheduled_action_configurations/scheduled_action_configurations_request_builder.rb index 9c7e8229f6..e36c5dace6 100644 --- a/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/item/scheduled_action_configurations/scheduled_action_configurations_request_builder.rb +++ b/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/item/scheduled_action_configurations/scheduled_action_configurations_request_builder.rb @@ -46,7 +46,7 @@ def by_device_compliance_action_item_id(device_compliance_action_item_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule/{deviceComplianceScheduledActionForRule%2Did}/scheduledActionConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule/{deviceComplianceScheduledActionForRule%2Did}/scheduledActionConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the deviceComplianceActionItem objects. @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceActionItemCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,8 +73,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceActionItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,15 +83,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,17 +103,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a scheduled_action_configurations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ScheduledActionConfigurationsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the deviceComplianceActionItem objects. diff --git a/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/scheduled_actions_for_rule_request_builder.rb b/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/scheduled_actions_for_rule_request_builder.rb index 079aca26d4..a042a3d588 100644 --- a/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/scheduled_actions_for_rule_request_builder.rb +++ b/lib/device_management/device_compliance_policies/item/scheduled_actions_for_rule/scheduled_actions_for_rule_request_builder.rb @@ -42,7 +42,7 @@ def by_device_compliance_scheduled_action_for_rule_id(device_compliance_schedule ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the deviceComplianceScheduledActionForRule objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceScheduledActionForRuleCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceScheduledActionForRule.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a scheduled_actions_for_rule_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ScheduledActionsForRuleRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the deviceComplianceScheduledActionForRule objects. diff --git a/lib/device_management/device_compliance_policies/item/user_status_overview/user_status_overview_request_builder.rb b/lib/device_management/device_compliance_policies/item/user_status_overview/user_status_overview_request_builder.rb index bba2a7c8c7..face1dd7af 100644 --- a/lib/device_management/device_compliance_policies/item/user_status_overview/user_status_overview_request_builder.rb +++ b/lib/device_management/device_compliance_policies/item/user_status_overview/user_status_overview_request_builder.rb @@ -23,7 +23,7 @@ class UserStatusOverviewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/userStatusOverview{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/userStatusOverview{?%24expand,%24select}") end ## ## Delete navigation property userStatusOverview for deviceManagement @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceUserOverview.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceUserOverview.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_status_overview_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserStatusOverviewRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceComplianceUserOverview object. diff --git a/lib/device_management/device_compliance_policies/item/user_statuses/count/count_request_builder.rb b/lib/device_management/device_compliance_policies/item/user_statuses/count/count_request_builder.rb index 06131d367c..9d1a3eb1fe 100644 --- a/lib/device_management/device_compliance_policies/item/user_statuses/count/count_request_builder.rb +++ b/lib/device_management/device_compliance_policies/item/user_statuses/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/userStatuses/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/userStatuses/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/device_compliance_policies/item/user_statuses/item/device_compliance_user_status_item_request_builder.rb b/lib/device_management/device_compliance_policies/item/user_statuses/item/device_compliance_user_status_item_request_builder.rb index 5fdf25eaad..3c69d167da 100644 --- a/lib/device_management/device_compliance_policies/item/user_statuses/item/device_compliance_user_status_item_request_builder.rb +++ b/lib/device_management/device_compliance_policies/item/user_statuses/item/device_compliance_user_status_item_request_builder.rb @@ -25,7 +25,7 @@ class DeviceComplianceUserStatusItemRequestBuilder < MicrosoftKiotaAbstractions: ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/userStatuses/{deviceComplianceUserStatus%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/userStatuses/{deviceComplianceUserStatus%2Did}{?%24expand,%24select}") end ## ## Deletes a deviceComplianceUserStatus. @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceUserStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceUserStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_compliance_user_status_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceComplianceUserStatusItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceComplianceUserStatus object. diff --git a/lib/device_management/device_compliance_policies/item/user_statuses/user_statuses_request_builder.rb b/lib/device_management/device_compliance_policies/item/user_statuses/user_statuses_request_builder.rb index b433acd6ea..fdd3b2ec0a 100644 --- a/lib/device_management/device_compliance_policies/item/user_statuses/user_statuses_request_builder.rb +++ b/lib/device_management/device_compliance_policies/item/user_statuses/user_statuses_request_builder.rb @@ -42,7 +42,7 @@ def by_device_compliance_user_status_id(device_compliance_user_status_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/userStatuses{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/userStatuses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the deviceComplianceUserStatus objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceUserStatusCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceUserStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_statuses_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserStatusesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the deviceComplianceUserStatus objects. diff --git a/lib/device_management/device_compliance_policy_device_state_summary/device_compliance_policy_device_state_summary_request_builder.rb b/lib/device_management/device_compliance_policy_device_state_summary/device_compliance_policy_device_state_summary_request_builder.rb index eafc50f80a..0de590a17e 100644 --- a/lib/device_management/device_compliance_policy_device_state_summary/device_compliance_policy_device_state_summary_request_builder.rb +++ b/lib/device_management/device_compliance_policy_device_state_summary/device_compliance_policy_device_state_summary_request_builder.rb @@ -19,7 +19,7 @@ class DeviceCompliancePolicyDeviceStateSummaryRequestBuilder < MicrosoftKiotaAbs ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicyDeviceStateSummary{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicyDeviceStateSummary{?%24expand,%24select}") end ## ## Delete navigation property deviceCompliancePolicyDeviceStateSummary for deviceManagement @@ -31,8 +31,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCompliancePolicyDeviceStateSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -61,8 +59,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCompliancePolicyDeviceStateSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,13 +69,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -88,15 +86,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,17 +106,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_compliance_policy_device_state_summary_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceCompliancePolicyDeviceStateSummaryRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceCompliancePolicyDeviceStateSummary object. diff --git a/lib/device_management/device_compliance_policy_setting_state_summaries/count/count_request_builder.rb b/lib/device_management/device_compliance_policy_setting_state_summaries/count/count_request_builder.rb index 78e5933bd9..f7d2b7c1de 100644 --- a/lib/device_management/device_compliance_policy_setting_state_summaries/count/count_request_builder.rb +++ b/lib/device_management/device_compliance_policy_setting_state_summaries/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicySettingStateSummaries/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicySettingStateSummaries/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/device_compliance_policy_setting_state_summaries/device_compliance_policy_setting_state_summaries_request_builder.rb b/lib/device_management/device_compliance_policy_setting_state_summaries/device_compliance_policy_setting_state_summaries_request_builder.rb index 7c9ff7bddd..f539a55aaf 100644 --- a/lib/device_management/device_compliance_policy_setting_state_summaries/device_compliance_policy_setting_state_summaries_request_builder.rb +++ b/lib/device_management/device_compliance_policy_setting_state_summaries/device_compliance_policy_setting_state_summaries_request_builder.rb @@ -38,7 +38,7 @@ def by_device_compliance_policy_setting_state_summary_id(device_compliance_polic ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicySettingStateSummaries{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicySettingStateSummaries{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the deviceCompliancePolicySettingStateSummary objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCompliancePolicySettingStateSummaryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCompliancePolicySettingStateSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_compliance_policy_setting_state_summaries_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceCompliancePolicySettingStateSummariesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the deviceCompliancePolicySettingStateSummary objects. diff --git a/lib/device_management/device_compliance_policy_setting_state_summaries/item/device_compliance_policy_setting_state_summary_item_request_builder.rb b/lib/device_management/device_compliance_policy_setting_state_summaries/item/device_compliance_policy_setting_state_summary_item_request_builder.rb index 7c1bdab7f8..646ae2119f 100644 --- a/lib/device_management/device_compliance_policy_setting_state_summaries/item/device_compliance_policy_setting_state_summary_item_request_builder.rb +++ b/lib/device_management/device_compliance_policy_setting_state_summaries/item/device_compliance_policy_setting_state_summary_item_request_builder.rb @@ -27,7 +27,7 @@ def device_compliance_setting_states() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicySettingStateSummaries/{deviceCompliancePolicySettingStateSummary%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicySettingStateSummaries/{deviceCompliancePolicySettingStateSummary%2Did}{?%24expand,%24select}") end ## ## Deletes a deviceCompliancePolicySettingStateSummary. @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCompliancePolicySettingStateSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCompliancePolicySettingStateSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,13 +77,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,15 +94,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,17 +114,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_compliance_policy_setting_state_summary_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceCompliancePolicySettingStateSummaryItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceCompliancePolicySettingStateSummary object. diff --git a/lib/device_management/device_compliance_policy_setting_state_summaries/item/device_compliance_setting_states/count/count_request_builder.rb b/lib/device_management/device_compliance_policy_setting_state_summaries/item/device_compliance_setting_states/count/count_request_builder.rb index 76a1d51ed9..a5ff7535a2 100644 --- a/lib/device_management/device_compliance_policy_setting_state_summaries/item/device_compliance_setting_states/count/count_request_builder.rb +++ b/lib/device_management/device_compliance_policy_setting_state_summaries/item/device_compliance_setting_states/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicySettingStateSummaries/{deviceCompliancePolicySettingStateSummary%2Did}/deviceComplianceSettingStates/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicySettingStateSummaries/{deviceCompliancePolicySettingStateSummary%2Did}/deviceComplianceSettingStates/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/device_compliance_policy_setting_state_summaries/item/device_compliance_setting_states/device_compliance_setting_states_request_builder.rb b/lib/device_management/device_compliance_policy_setting_state_summaries/item/device_compliance_setting_states/device_compliance_setting_states_request_builder.rb index 5da44f3777..3a431f2e0f 100644 --- a/lib/device_management/device_compliance_policy_setting_state_summaries/item/device_compliance_setting_states/device_compliance_setting_states_request_builder.rb +++ b/lib/device_management/device_compliance_policy_setting_state_summaries/item/device_compliance_setting_states/device_compliance_setting_states_request_builder.rb @@ -42,7 +42,7 @@ def by_device_compliance_setting_state_id(device_compliance_setting_state_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicySettingStateSummaries/{deviceCompliancePolicySettingStateSummary%2Did}/deviceComplianceSettingStates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicySettingStateSummaries/{deviceCompliancePolicySettingStateSummary%2Did}/deviceComplianceSettingStates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the deviceComplianceSettingState objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceSettingStateCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceSettingState.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_compliance_setting_states_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceComplianceSettingStatesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the deviceComplianceSettingState objects. diff --git a/lib/device_management/device_compliance_policy_setting_state_summaries/item/device_compliance_setting_states/item/device_compliance_setting_state_item_request_builder.rb b/lib/device_management/device_compliance_policy_setting_state_summaries/item/device_compliance_setting_states/item/device_compliance_setting_state_item_request_builder.rb index 46686c7d8c..0eef041564 100644 --- a/lib/device_management/device_compliance_policy_setting_state_summaries/item/device_compliance_setting_states/item/device_compliance_setting_state_item_request_builder.rb +++ b/lib/device_management/device_compliance_policy_setting_state_summaries/item/device_compliance_setting_states/item/device_compliance_setting_state_item_request_builder.rb @@ -25,7 +25,7 @@ class DeviceComplianceSettingStateItemRequestBuilder < MicrosoftKiotaAbstraction ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicySettingStateSummaries/{deviceCompliancePolicySettingStateSummary%2Did}/deviceComplianceSettingStates/{deviceComplianceSettingState%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceCompliancePolicySettingStateSummaries/{deviceCompliancePolicySettingStateSummary%2Did}/deviceComplianceSettingStates/{deviceComplianceSettingState%2Did}{?%24expand,%24select}") end ## ## Deletes a deviceComplianceSettingState. @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceSettingState.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceComplianceSettingState.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_compliance_setting_state_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceComplianceSettingStateItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceComplianceSettingState object. diff --git a/lib/device_management/device_configuration_device_state_summaries/device_configuration_device_state_summaries_request_builder.rb b/lib/device_management/device_configuration_device_state_summaries/device_configuration_device_state_summaries_request_builder.rb index 3b629423bd..975b9815e6 100644 --- a/lib/device_management/device_configuration_device_state_summaries/device_configuration_device_state_summaries_request_builder.rb +++ b/lib/device_management/device_configuration_device_state_summaries/device_configuration_device_state_summaries_request_builder.rb @@ -19,7 +19,7 @@ class DeviceConfigurationDeviceStateSummariesRequestBuilder < MicrosoftKiotaAbst ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurationDeviceStateSummaries{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurationDeviceStateSummaries{?%24expand,%24select}") end ## ## Delete navigation property deviceConfigurationDeviceStateSummaries for deviceManagement @@ -31,8 +31,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationDeviceStateSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -61,8 +59,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationDeviceStateSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,13 +69,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -88,15 +86,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,17 +106,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_configuration_device_state_summaries_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceConfigurationDeviceStateSummariesRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceConfigurationDeviceStateSummary object. diff --git a/lib/device_management/device_configurations/count/count_request_builder.rb b/lib/device_management/device_configurations/count/count_request_builder.rb index 07ab6cdb94..cdeb4eca80 100644 --- a/lib/device_management/device_configurations/count/count_request_builder.rb +++ b/lib/device_management/device_configurations/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/device_configurations/device_configurations_request_builder.rb b/lib/device_management/device_configurations/device_configurations_request_builder.rb index 760bc07797..30052ee2d6 100644 --- a/lib/device_management/device_configurations/device_configurations_request_builder.rb +++ b/lib/device_management/device_configurations/device_configurations_request_builder.rb @@ -38,10 +38,10 @@ def by_device_configuration_id(device_configuration_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List properties and relationships of the windows10SecureAssessmentConfiguration objects. + ## List properties and relationships of the windows10TeamGeneralConfiguration objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of device_configuration_collection_response ## @@ -50,12 +50,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new windows10SecureAssessmentConfiguration object. + ## Create a new androidWorkProfileCustomConfiguration object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of device_configuration @@ -66,30 +65,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List properties and relationships of the windows10SecureAssessmentConfiguration objects. + ## List properties and relationships of the windows10TeamGeneralConfiguration objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new windows10SecureAssessmentConfiguration object. + ## Create a new androidWorkProfileCustomConfiguration object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -97,20 +95,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_configurations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceConfigurationsRequestBuilder.new(raw_url, @request_adapter) + end ## - # List properties and relationships of the windows10SecureAssessmentConfiguration objects. + # List properties and relationships of the windows10TeamGeneralConfiguration objects. class DeviceConfigurationsRequestBuilderGetQueryParameters ## diff --git a/lib/device_management/device_configurations/item/assign/assign.rb b/lib/device_management/device_configurations/item/assign/assign.rb index 1f7834f80c..fbeecce252 100644 --- a/lib/device_management/device_configurations/item/assign/assign.rb +++ b/lib/device_management/device_configurations/item/assign/assign.rb @@ -1,2 +1,2 @@ require_relative 'assign_post_request_body' -require_relative 'assign_response' +require_relative 'assign_post_response' diff --git a/lib/device_management/device_configurations/item/assign/assign_post_request_body.rb b/lib/device_management/device_configurations/item/assign/assign_post_request_body.rb index c3c91f6c34..7c937a3075 100644 --- a/lib/device_management/device_configurations/item/assign/assign_post_request_body.rb +++ b/lib/device_management/device_configurations/item/assign/assign_post_request_body.rb @@ -20,15 +20,15 @@ class AssignPostRequestBody # The assignments property @assignments ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -50,7 +50,7 @@ def assignments=(value) @assignments = value end ## - ## Instantiates a new assignPostRequestBody and sets the default values. + ## Instantiates a new AssignPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/device_configurations/item/assign/assign_post_response.rb b/lib/device_management/device_configurations/item/assign/assign_post_response.rb new file mode 100644 index 0000000000..963ec8a885 --- /dev/null +++ b/lib/device_management/device_configurations/item/assign/assign_post_response.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/base_collection_pagination_count_response' +require_relative '../../../../models/device_configuration_assignment' +require_relative '../../../device_management' +require_relative '../../device_configurations' +require_relative '../item' +require_relative './assign' + +module MicrosoftGraph + module DeviceManagement + module DeviceConfigurations + module Item + module Assign + class AssignPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new AssignPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a assign_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AssignPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationAssignment.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a device_configuration_assignment + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/device_management/device_configurations/item/assign/assign_request_builder.rb b/lib/device_management/device_configurations/item/assign/assign_request_builder.rb index b22ef9fa4c..0130740c11 100644 --- a/lib/device_management/device_configurations/item/assign/assign_request_builder.rb +++ b/lib/device_management/device_configurations/item/assign/assign_request_builder.rb @@ -28,7 +28,7 @@ def initialize(path_parameters, request_adapter) ## Not yet documented ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of assign_response + ## @return a Fiber of assign_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -36,9 +36,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::DeviceConfigurations::Item::Assign::AssignResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::DeviceConfigurations::Item::Assign::AssignPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Not yet documented @@ -49,17 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assign_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/device_configurations/item/assign/assign_response.rb b/lib/device_management/device_configurations/item/assign/assign_response.rb deleted file mode 100644 index faed81c584..0000000000 --- a/lib/device_management/device_configurations/item/assign/assign_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../../models/device_configuration_assignment' -require_relative '../../../device_management' -require_relative '../../device_configurations' -require_relative '../item' -require_relative './assign' - -module MicrosoftGraph - module DeviceManagement - module DeviceConfigurations - module Item - module Assign - class AssignResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new assignResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a assign_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return AssignResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationAssignment.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a device_configuration_assignment - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/device_management/device_configurations/item/assignments/assignments_request_builder.rb b/lib/device_management/device_configurations/item/assignments/assignments_request_builder.rb index dc6b1e1e57..90c4fbc3d6 100644 --- a/lib/device_management/device_configurations/item/assignments/assignments_request_builder.rb +++ b/lib/device_management/device_configurations/item/assignments/assignments_request_builder.rb @@ -42,7 +42,7 @@ def by_device_configuration_assignment_id(device_configuration_assignment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the deviceConfigurationAssignment objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the deviceConfigurationAssignment objects. diff --git a/lib/device_management/device_configurations/item/assignments/count/count_request_builder.rb b/lib/device_management/device_configurations/item/assignments/count/count_request_builder.rb index f88df085bf..0313b310c2 100644 --- a/lib/device_management/device_configurations/item/assignments/count/count_request_builder.rb +++ b/lib/device_management/device_configurations/item/assignments/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/assignments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/assignments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/device_configurations/item/assignments/item/device_configuration_assignment_item_request_builder.rb b/lib/device_management/device_configurations/item/assignments/item/device_configuration_assignment_item_request_builder.rb index c148e5f1ec..fe1b3edfeb 100644 --- a/lib/device_management/device_configurations/item/assignments/item/device_configuration_assignment_item_request_builder.rb +++ b/lib/device_management/device_configurations/item/assignments/item/device_configuration_assignment_item_request_builder.rb @@ -25,7 +25,7 @@ class DeviceConfigurationAssignmentItemRequestBuilder < MicrosoftKiotaAbstractio ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/assignments/{deviceConfigurationAssignment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/assignments/{deviceConfigurationAssignment%2Did}{?%24expand,%24select}") end ## ## Deletes a deviceConfigurationAssignment. @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_configuration_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceConfigurationAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceConfigurationAssignment object. diff --git a/lib/device_management/device_configurations/item/device_configuration_item_request_builder.rb b/lib/device_management/device_configurations/item/device_configuration_item_request_builder.rb index 1109445ec9..dc56be520e 100644 --- a/lib/device_management/device_configurations/item/device_configuration_item_request_builder.rb +++ b/lib/device_management/device_configurations/item/device_configuration_item_request_builder.rb @@ -64,10 +64,10 @@ def user_status_overview() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}{?%24expand,%24select}") end ## - ## Deletes a sharedPCConfiguration. + ## Deletes a windows10TeamGeneralConfiguration. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -76,12 +76,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read properties and relationships of the iosGeneralDeviceConfiguration object. + ## Read properties and relationships of the windowsPhone81CustomConfiguration object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of device_configuration ## @@ -90,8 +89,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -104,7 +102,7 @@ def get_oma_setting_plain_text_value_with_secret_reference_value_id(secret_refer return GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder.new(@path_parameters, @request_adapter, secretReferenceValueId) end ## - ## Update the properties of a androidWorkProfileGeneralDeviceConfiguration object. + ## Update the properties of a androidGeneralDeviceConfiguration object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of device_configuration @@ -115,46 +113,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Deletes a sharedPCConfiguration. + ## Deletes a windows10TeamGeneralConfiguration. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read properties and relationships of the iosGeneralDeviceConfiguration object. + ## Read properties and relationships of the windowsPhone81CustomConfiguration object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of a androidWorkProfileGeneralDeviceConfiguration object. + ## Update the properties of a androidGeneralDeviceConfiguration object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -162,20 +160,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_configuration_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceConfigurationItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read properties and relationships of the iosGeneralDeviceConfiguration object. + # Read properties and relationships of the windowsPhone81CustomConfiguration object. class DeviceConfigurationItemRequestBuilderGetQueryParameters ## diff --git a/lib/device_management/device_configurations/item/device_setting_state_summaries/count/count_request_builder.rb b/lib/device_management/device_configurations/item/device_setting_state_summaries/count/count_request_builder.rb index f9cde7d67a..8730ae81ef 100644 --- a/lib/device_management/device_configurations/item/device_setting_state_summaries/count/count_request_builder.rb +++ b/lib/device_management/device_configurations/item/device_setting_state_summaries/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceSettingStateSummaries/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceSettingStateSummaries/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/device_configurations/item/device_setting_state_summaries/device_setting_state_summaries_request_builder.rb b/lib/device_management/device_configurations/item/device_setting_state_summaries/device_setting_state_summaries_request_builder.rb index 0b318da8a9..a12fa8764d 100644 --- a/lib/device_management/device_configurations/item/device_setting_state_summaries/device_setting_state_summaries_request_builder.rb +++ b/lib/device_management/device_configurations/item/device_setting_state_summaries/device_setting_state_summaries_request_builder.rb @@ -42,7 +42,7 @@ def by_setting_state_device_summary_id(setting_state_device_summary_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceSettingStateSummaries{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceSettingStateSummaries{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the settingStateDeviceSummary objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SettingStateDeviceSummaryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SettingStateDeviceSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_setting_state_summaries_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceSettingStateSummariesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the settingStateDeviceSummary objects. diff --git a/lib/device_management/device_configurations/item/device_setting_state_summaries/item/setting_state_device_summary_item_request_builder.rb b/lib/device_management/device_configurations/item/device_setting_state_summaries/item/setting_state_device_summary_item_request_builder.rb index ca3ffdaca2..60df55dcd8 100644 --- a/lib/device_management/device_configurations/item/device_setting_state_summaries/item/setting_state_device_summary_item_request_builder.rb +++ b/lib/device_management/device_configurations/item/device_setting_state_summaries/item/setting_state_device_summary_item_request_builder.rb @@ -25,7 +25,7 @@ class SettingStateDeviceSummaryItemRequestBuilder < MicrosoftKiotaAbstractions:: ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceSettingStateSummaries/{settingStateDeviceSummary%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceSettingStateSummaries/{settingStateDeviceSummary%2Did}{?%24expand,%24select}") end ## ## Deletes a settingStateDeviceSummary. @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SettingStateDeviceSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SettingStateDeviceSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a setting_state_device_summary_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SettingStateDeviceSummaryItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the settingStateDeviceSummary object. diff --git a/lib/device_management/device_configurations/item/device_status_overview/device_status_overview_request_builder.rb b/lib/device_management/device_configurations/item/device_status_overview/device_status_overview_request_builder.rb index dadb537baf..46d98ff577 100644 --- a/lib/device_management/device_configurations/item/device_status_overview/device_status_overview_request_builder.rb +++ b/lib/device_management/device_configurations/item/device_status_overview/device_status_overview_request_builder.rb @@ -23,7 +23,7 @@ class DeviceStatusOverviewRequestBuilder < MicrosoftKiotaAbstractions::BaseReque ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceStatusOverview{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceStatusOverview{?%24expand,%24select}") end ## ## Delete navigation property deviceStatusOverview for deviceManagement @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationDeviceOverview.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationDeviceOverview.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_status_overview_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceStatusOverviewRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceConfigurationDeviceOverview object. diff --git a/lib/device_management/device_configurations/item/device_statuses/count/count_request_builder.rb b/lib/device_management/device_configurations/item/device_statuses/count/count_request_builder.rb index 335348fffa..6b50bedc7a 100644 --- a/lib/device_management/device_configurations/item/device_statuses/count/count_request_builder.rb +++ b/lib/device_management/device_configurations/item/device_statuses/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceStatuses/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceStatuses/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/device_configurations/item/device_statuses/device_statuses_request_builder.rb b/lib/device_management/device_configurations/item/device_statuses/device_statuses_request_builder.rb index 41ce1b0c86..ae2e7950d6 100644 --- a/lib/device_management/device_configurations/item/device_statuses/device_statuses_request_builder.rb +++ b/lib/device_management/device_configurations/item/device_statuses/device_statuses_request_builder.rb @@ -42,7 +42,7 @@ def by_device_configuration_device_status_id(device_configuration_device_status_ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceStatuses{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceStatuses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the deviceConfigurationDeviceStatus objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationDeviceStatusCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationDeviceStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_statuses_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceStatusesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the deviceConfigurationDeviceStatus objects. diff --git a/lib/device_management/device_configurations/item/device_statuses/item/device_configuration_device_status_item_request_builder.rb b/lib/device_management/device_configurations/item/device_statuses/item/device_configuration_device_status_item_request_builder.rb index a9196bc9d3..fcd518121d 100644 --- a/lib/device_management/device_configurations/item/device_statuses/item/device_configuration_device_status_item_request_builder.rb +++ b/lib/device_management/device_configurations/item/device_statuses/item/device_configuration_device_status_item_request_builder.rb @@ -25,7 +25,7 @@ class DeviceConfigurationDeviceStatusItemRequestBuilder < MicrosoftKiotaAbstract ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceStatuses/{deviceConfigurationDeviceStatus%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceStatuses/{deviceConfigurationDeviceStatus%2Did}{?%24expand,%24select}") end ## ## Deletes a deviceConfigurationDeviceStatus. @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationDeviceStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationDeviceStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_configuration_device_status_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceConfigurationDeviceStatusItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceConfigurationDeviceStatus object. diff --git a/lib/device_management/device_configurations/item/get_oma_setting_plain_text_value_with_secret_reference_value_id/get_oma_setting_plain_text_value_with_secret_reference_value_id.rb b/lib/device_management/device_configurations/item/get_oma_setting_plain_text_value_with_secret_reference_value_id/get_oma_setting_plain_text_value_with_secret_reference_value_id.rb index 520b29d8a9..0211c5271c 100644 --- a/lib/device_management/device_configurations/item/get_oma_setting_plain_text_value_with_secret_reference_value_id/get_oma_setting_plain_text_value_with_secret_reference_value_id.rb +++ b/lib/device_management/device_configurations/item/get_oma_setting_plain_text_value_with_secret_reference_value_id/get_oma_setting_plain_text_value_with_secret_reference_value_id.rb @@ -1 +1 @@ -require_relative 'get_oma_setting_plain_text_value_with_secret_reference_value_id_response' +require_relative 'get_oma_setting_plain_text_value_with_secret_reference_value_id_get_response' diff --git a/lib/device_management/device_configurations/item/get_oma_setting_plain_text_value_with_secret_reference_value_id/get_oma_setting_plain_text_value_with_secret_reference_value_id_get_response.rb b/lib/device_management/device_configurations/item/get_oma_setting_plain_text_value_with_secret_reference_value_id/get_oma_setting_plain_text_value_with_secret_reference_value_id_get_response.rb new file mode 100644 index 0000000000..eb0dc008bc --- /dev/null +++ b/lib/device_management/device_configurations/item/get_oma_setting_plain_text_value_with_secret_reference_value_id/get_oma_setting_plain_text_value_with_secret_reference_value_id_get_response.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../device_management' +require_relative '../../device_configurations' +require_relative '../item' +require_relative './get_oma_setting_plain_text_value_with_secret_reference_value_id' + +module MicrosoftGraph + module DeviceManagement + module DeviceConfigurations + module Item + module GetOmaSettingPlainTextValueWithSecretReferenceValueId + class GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_oma_setting_plain_text_value_with_secret_reference_value_id_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/device_management/device_configurations/item/get_oma_setting_plain_text_value_with_secret_reference_value_id/get_oma_setting_plain_text_value_with_secret_reference_value_id_request_builder.rb b/lib/device_management/device_configurations/item/get_oma_setting_plain_text_value_with_secret_reference_value_id/get_oma_setting_plain_text_value_with_secret_reference_value_id_request_builder.rb index d543eb422c..374ecea7f8 100644 --- a/lib/device_management/device_configurations/item/get_oma_setting_plain_text_value_with_secret_reference_value_id/get_oma_setting_plain_text_value_with_secret_reference_value_id_request_builder.rb +++ b/lib/device_management/device_configurations/item/get_oma_setting_plain_text_value_with_secret_reference_value_id/get_oma_setting_plain_text_value_with_secret_reference_value_id_request_builder.rb @@ -28,16 +28,15 @@ def initialize(path_parameters, request_adapter, secret_reference_value_id=nil) ## ## Invoke function getOmaSettingPlainTextValue ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_oma_setting_plain_text_value_with_secret_reference_value_id_response + ## @return a Fiber of get_oma_setting_plain_text_value_with_secret_reference_value_id_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::DeviceConfigurations::Item::GetOmaSettingPlainTextValueWithSecretReferenceValueId::GetOmaSettingPlainTextValueWithSecretReferenceValueIdResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::DeviceConfigurations::Item::GetOmaSettingPlainTextValueWithSecretReferenceValueId::GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function getOmaSettingPlainTextValue @@ -46,16 +45,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_oma_setting_plain_text_value_with_secret_reference_value_id_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/device_configurations/item/get_oma_setting_plain_text_value_with_secret_reference_value_id/get_oma_setting_plain_text_value_with_secret_reference_value_id_response.rb b/lib/device_management/device_configurations/item/get_oma_setting_plain_text_value_with_secret_reference_value_id/get_oma_setting_plain_text_value_with_secret_reference_value_id_response.rb deleted file mode 100644 index a889c2b978..0000000000 --- a/lib/device_management/device_configurations/item/get_oma_setting_plain_text_value_with_secret_reference_value_id/get_oma_setting_plain_text_value_with_secret_reference_value_id_response.rb +++ /dev/null @@ -1,91 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../device_management' -require_relative '../../device_configurations' -require_relative '../item' -require_relative './get_oma_setting_plain_text_value_with_secret_reference_value_id' - -module MicrosoftGraph - module DeviceManagement - module DeviceConfigurations - module Item - module GetOmaSettingPlainTextValueWithSecretReferenceValueId - class GetOmaSettingPlainTextValueWithSecretReferenceValueIdResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new getOmaSettingPlainTextValueWithSecretReferenceValueIdResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_oma_setting_plain_text_value_with_secret_reference_value_id_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetOmaSettingPlainTextValueWithSecretReferenceValueIdResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_string_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_string_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/device_management/device_configurations/item/user_status_overview/user_status_overview_request_builder.rb b/lib/device_management/device_configurations/item/user_status_overview/user_status_overview_request_builder.rb index d0eb50d933..90ae59dfca 100644 --- a/lib/device_management/device_configurations/item/user_status_overview/user_status_overview_request_builder.rb +++ b/lib/device_management/device_configurations/item/user_status_overview/user_status_overview_request_builder.rb @@ -23,7 +23,7 @@ class UserStatusOverviewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/userStatusOverview{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/userStatusOverview{?%24expand,%24select}") end ## ## Delete navigation property userStatusOverview for deviceManagement @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationUserOverview.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationUserOverview.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_status_overview_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserStatusOverviewRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceConfigurationUserOverview object. diff --git a/lib/device_management/device_configurations/item/user_statuses/count/count_request_builder.rb b/lib/device_management/device_configurations/item/user_statuses/count/count_request_builder.rb index daad6302d0..9888477f2d 100644 --- a/lib/device_management/device_configurations/item/user_statuses/count/count_request_builder.rb +++ b/lib/device_management/device_configurations/item/user_statuses/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/userStatuses/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/userStatuses/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/device_configurations/item/user_statuses/item/device_configuration_user_status_item_request_builder.rb b/lib/device_management/device_configurations/item/user_statuses/item/device_configuration_user_status_item_request_builder.rb index 9bb760c926..b3076b7a2f 100644 --- a/lib/device_management/device_configurations/item/user_statuses/item/device_configuration_user_status_item_request_builder.rb +++ b/lib/device_management/device_configurations/item/user_statuses/item/device_configuration_user_status_item_request_builder.rb @@ -25,7 +25,7 @@ class DeviceConfigurationUserStatusItemRequestBuilder < MicrosoftKiotaAbstractio ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/userStatuses/{deviceConfigurationUserStatus%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/userStatuses/{deviceConfigurationUserStatus%2Did}{?%24expand,%24select}") end ## ## Deletes a deviceConfigurationUserStatus. @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationUserStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationUserStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_configuration_user_status_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceConfigurationUserStatusItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceConfigurationUserStatus object. diff --git a/lib/device_management/device_configurations/item/user_statuses/user_statuses_request_builder.rb b/lib/device_management/device_configurations/item/user_statuses/user_statuses_request_builder.rb index 30ae745a82..fa74ace1ec 100644 --- a/lib/device_management/device_configurations/item/user_statuses/user_statuses_request_builder.rb +++ b/lib/device_management/device_configurations/item/user_statuses/user_statuses_request_builder.rb @@ -42,7 +42,7 @@ def by_device_configuration_user_status_id(device_configuration_user_status_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/userStatuses{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/userStatuses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the deviceConfigurationUserStatus objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationUserStatusCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationUserStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_statuses_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserStatusesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the deviceConfigurationUserStatus objects. diff --git a/lib/device_management/device_enrollment_configurations/count/count_request_builder.rb b/lib/device_management/device_enrollment_configurations/count/count_request_builder.rb index 9b50f87733..cf3d743d64 100644 --- a/lib/device_management/device_enrollment_configurations/count/count_request_builder.rb +++ b/lib/device_management/device_enrollment_configurations/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/device_enrollment_configurations/device_enrollment_configurations_request_builder.rb b/lib/device_management/device_enrollment_configurations/device_enrollment_configurations_request_builder.rb index 7ad3e1dd56..1dee65462e 100644 --- a/lib/device_management/device_enrollment_configurations/device_enrollment_configurations_request_builder.rb +++ b/lib/device_management/device_enrollment_configurations/device_enrollment_configurations_request_builder.rb @@ -38,7 +38,7 @@ def by_device_enrollment_configuration_id(device_enrollment_configuration_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceEnrollmentConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceEnrollmentConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. @@ -50,12 +50,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceEnrollmentConfigurationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. + ## Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of device_enrollment_configuration @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceEnrollmentConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,19 +75,19 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. + ## Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_enrollment_configurations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceEnrollmentConfigurationsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. diff --git a/lib/device_management/device_enrollment_configurations/item/assign/assign_post_request_body.rb b/lib/device_management/device_enrollment_configurations/item/assign/assign_post_request_body.rb index b3a539e360..8ac2c8784a 100644 --- a/lib/device_management/device_enrollment_configurations/item/assign/assign_post_request_body.rb +++ b/lib/device_management/device_enrollment_configurations/item/assign/assign_post_request_body.rb @@ -20,22 +20,22 @@ class AssignPostRequestBody # The enrollmentConfigurationAssignments property @enrollment_configuration_assignments ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new assignPostRequestBody and sets the default values. + ## Instantiates a new AssignPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/device_enrollment_configurations/item/assign/assign_request_builder.rb b/lib/device_management/device_enrollment_configurations/item/assign/assign_request_builder.rb index a2908841e4..536e896e8e 100644 --- a/lib/device_management/device_enrollment_configurations/item/assign/assign_request_builder.rb +++ b/lib/device_management/device_enrollment_configurations/item/assign/assign_request_builder.rb @@ -36,8 +36,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assign_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/device_enrollment_configurations/item/assignments/assignments_request_builder.rb b/lib/device_management/device_enrollment_configurations/item/assignments/assignments_request_builder.rb index ef15b9ef9b..6da1564d03 100644 --- a/lib/device_management/device_enrollment_configurations/item/assignments/assignments_request_builder.rb +++ b/lib/device_management/device_enrollment_configurations/item/assignments/assignments_request_builder.rb @@ -42,7 +42,7 @@ def by_enrollment_configuration_assignment_id(enrollment_configuration_assignmen ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the enrollmentConfigurationAssignment objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EnrollmentConfigurationAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EnrollmentConfigurationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the enrollmentConfigurationAssignment objects. diff --git a/lib/device_management/device_enrollment_configurations/item/assignments/count/count_request_builder.rb b/lib/device_management/device_enrollment_configurations/item/assignments/count/count_request_builder.rb index 1019a92333..85d9984c44 100644 --- a/lib/device_management/device_enrollment_configurations/item/assignments/count/count_request_builder.rb +++ b/lib/device_management/device_enrollment_configurations/item/assignments/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}/assignments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}/assignments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/device_enrollment_configurations/item/assignments/item/enrollment_configuration_assignment_item_request_builder.rb b/lib/device_management/device_enrollment_configurations/item/assignments/item/enrollment_configuration_assignment_item_request_builder.rb index 747b03f7cf..2dca516b3a 100644 --- a/lib/device_management/device_enrollment_configurations/item/assignments/item/enrollment_configuration_assignment_item_request_builder.rb +++ b/lib/device_management/device_enrollment_configurations/item/assignments/item/enrollment_configuration_assignment_item_request_builder.rb @@ -25,7 +25,7 @@ class EnrollmentConfigurationAssignmentItemRequestBuilder < MicrosoftKiotaAbstra ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}/assignments/{enrollmentConfigurationAssignment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}/assignments/{enrollmentConfigurationAssignment%2Did}{?%24expand,%24select}") end ## ## Deletes a enrollmentConfigurationAssignment. @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EnrollmentConfigurationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EnrollmentConfigurationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a enrollment_configuration_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EnrollmentConfigurationAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the enrollmentConfigurationAssignment object. diff --git a/lib/device_management/device_enrollment_configurations/item/device_enrollment_configuration_item_request_builder.rb b/lib/device_management/device_enrollment_configurations/item/device_enrollment_configuration_item_request_builder.rb index 87a9555977..f325bdbcb6 100644 --- a/lib/device_management/device_enrollment_configurations/item/device_enrollment_configuration_item_request_builder.rb +++ b/lib/device_management/device_enrollment_configurations/item/device_enrollment_configuration_item_request_builder.rb @@ -39,10 +39,10 @@ def set_priority() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}{?%24expand,%24select}") end ## - ## Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. + ## Deletes a deviceEnrollmentPlatformRestrictionsConfiguration. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -51,8 +51,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceEnrollmentConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,24 +79,24 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceEnrollmentConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. + ## Deletes a deviceEnrollmentPlatformRestrictionsConfiguration. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,15 +106,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,17 +126,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_enrollment_configuration_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceEnrollmentConfigurationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceEnrollmentConfiguration object. diff --git a/lib/device_management/device_enrollment_configurations/item/set_priority/set_priority_post_request_body.rb b/lib/device_management/device_enrollment_configurations/item/set_priority/set_priority_post_request_body.rb index 957d0898ef..60935774f0 100644 --- a/lib/device_management/device_enrollment_configurations/item/set_priority/set_priority_post_request_body.rb +++ b/lib/device_management/device_enrollment_configurations/item/set_priority/set_priority_post_request_body.rb @@ -19,22 +19,22 @@ class SetPriorityPostRequestBody # The priority property @priority ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new setPriorityPostRequestBody and sets the default values. + ## Instantiates a new SetPriorityPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/device_enrollment_configurations/item/set_priority/set_priority_request_builder.rb b/lib/device_management/device_enrollment_configurations/item/set_priority/set_priority_request_builder.rb index 33786ff464..5152f9c512 100644 --- a/lib/device_management/device_enrollment_configurations/item/set_priority/set_priority_request_builder.rb +++ b/lib/device_management/device_enrollment_configurations/item/set_priority/set_priority_request_builder.rb @@ -36,8 +36,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_priority_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetPriorityRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/device_management_partners/count/count_request_builder.rb b/lib/device_management/device_management_partners/count/count_request_builder.rb index 600f61ef67..ec55adcac1 100644 --- a/lib/device_management/device_management_partners/count/count_request_builder.rb +++ b/lib/device_management/device_management_partners/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceManagementPartners/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceManagementPartners/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/device_management_partners/device_management_partners_request_builder.rb b/lib/device_management/device_management_partners/device_management_partners_request_builder.rb index 53c5c7e5fa..9f36d89036 100644 --- a/lib/device_management/device_management_partners/device_management_partners_request_builder.rb +++ b/lib/device_management/device_management_partners/device_management_partners_request_builder.rb @@ -38,7 +38,7 @@ def by_device_management_partner_id(device_management_partner_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceManagementPartners{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceManagementPartners{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the deviceManagementPartner objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceManagementPartnerCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceManagementPartner.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_management_partners_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceManagementPartnersRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the deviceManagementPartner objects. diff --git a/lib/device_management/device_management_partners/item/device_management_partner_item_request_builder.rb b/lib/device_management/device_management_partners/item/device_management_partner_item_request_builder.rb index 1b9542df06..7129775981 100644 --- a/lib/device_management/device_management_partners/item/device_management_partner_item_request_builder.rb +++ b/lib/device_management/device_management_partners/item/device_management_partner_item_request_builder.rb @@ -27,7 +27,7 @@ def terminate() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceManagementPartners/{deviceManagementPartner%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/deviceManagementPartners/{deviceManagementPartner%2Did}{?%24expand,%24select}") end ## ## Deletes a deviceManagementPartner. @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceManagementPartner.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceManagementPartner.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,13 +77,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,15 +94,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,17 +114,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_management_partner_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceManagementPartnerItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceManagementPartner object. diff --git a/lib/device_management/device_management_partners/item/terminate/terminate_request_builder.rb b/lib/device_management/device_management_partners/item/terminate/terminate_request_builder.rb index cbf4438691..1880a948ef 100644 --- a/lib/device_management/device_management_partners/item/terminate/terminate_request_builder.rb +++ b/lib/device_management/device_management_partners/item/terminate/terminate_request_builder.rb @@ -34,8 +34,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,15 +44,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a terminate_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TerminateRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/device_management_request_builder.rb b/lib/device_management/device_management_request_builder.rb index 1c6087ff13..5a48baffce 100644 --- a/lib/device_management/device_management_request_builder.rb +++ b/lib/device_management/device_management_request_builder.rb @@ -49,6 +49,7 @@ require_relative './user_experience_analytics_device_scores/user_experience_analytics_device_scores_request_builder' require_relative './user_experience_analytics_device_startup_history/user_experience_analytics_device_startup_history_request_builder' require_relative './user_experience_analytics_device_startup_processes/user_experience_analytics_device_startup_processes_request_builder' +require_relative './user_experience_analytics_device_startup_process_performance/user_experience_analytics_device_startup_process_performance_request_builder' require_relative './user_experience_analytics_metric_history/user_experience_analytics_metric_history_request_builder' require_relative './user_experience_analytics_model_scores/user_experience_analytics_model_scores_request_builder' require_relative './user_experience_analytics_overview/user_experience_analytics_overview_request_builder' @@ -58,6 +59,7 @@ require_relative './user_experience_analytics_work_from_anywhere_metrics/user_experience_analytics_work_from_anywhere_metrics_request_builder' require_relative './user_experience_analytics_work_from_anywhere_model_performance/user_experience_analytics_work_from_anywhere_model_performance_request_builder' require_relative './verify_windows_enrollment_auto_discovery_with_domain_name/verify_windows_enrollment_auto_discovery_with_domain_name_request_builder' +require_relative './virtual_endpoint/virtual_endpoint_request_builder' require_relative './windows_autopilot_device_identities/windows_autopilot_device_identities_request_builder' require_relative './windows_information_protection_app_learning_summaries/windows_information_protection_app_learning_summaries_request_builder' require_relative './windows_information_protection_network_learning_summaries/windows_information_protection_network_learning_summaries_request_builder' @@ -295,6 +297,11 @@ def user_experience_analytics_device_startup_processes() return MicrosoftGraph::DeviceManagement::UserExperienceAnalyticsDeviceStartupProcesses::UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to manage the userExperienceAnalyticsDeviceStartupProcessPerformance property of the microsoft.graph.deviceManagement entity. + def user_experience_analytics_device_startup_process_performance() + return MicrosoftGraph::DeviceManagement::UserExperienceAnalyticsDeviceStartupProcessPerformance::UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to manage the userExperienceAnalyticsMetricHistory property of the microsoft.graph.deviceManagement entity. def user_experience_analytics_metric_history() return MicrosoftGraph::DeviceManagement::UserExperienceAnalyticsMetricHistory::UserExperienceAnalyticsMetricHistoryRequestBuilder.new(@path_parameters, @request_adapter) @@ -335,6 +342,11 @@ def user_experience_analytics_work_from_anywhere_model_performance() return MicrosoftGraph::DeviceManagement::UserExperienceAnalyticsWorkFromAnywhereModelPerformance::UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to manage the virtualEndpoint property of the microsoft.graph.deviceManagement entity. + def virtual_endpoint() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::VirtualEndpointRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to manage the windowsAutopilotDeviceIdentities property of the microsoft.graph.deviceManagement entity. def windows_autopilot_device_identities() return MicrosoftGraph::DeviceManagement::WindowsAutopilotDeviceIdentities::WindowsAutopilotDeviceIdentitiesRequestBuilder.new(@path_parameters, @request_adapter) @@ -361,7 +373,7 @@ def windows_malware_information() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement{?%24expand,%24select}") end ## ## Read properties and relationships of the deviceManagement object. @@ -373,8 +385,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceManagement.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -398,8 +409,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceManagement.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -409,15 +419,15 @@ def patch(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -429,15 +439,15 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -449,6 +459,15 @@ def verify_windows_enrollment_auto_discovery_with_domain_name(domain_name) raise StandardError, 'domain_name cannot be null' if domain_name.nil? return VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder.new(@path_parameters, @request_adapter, domainName) end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_management_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceManagementRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceManagement object. diff --git a/lib/device_management/exchange_connectors/count/count_request_builder.rb b/lib/device_management/exchange_connectors/count/count_request_builder.rb index 4e5ecc11e2..c443115980 100644 --- a/lib/device_management/exchange_connectors/count/count_request_builder.rb +++ b/lib/device_management/exchange_connectors/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/exchangeConnectors/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/exchangeConnectors/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/exchange_connectors/exchange_connectors_request_builder.rb b/lib/device_management/exchange_connectors/exchange_connectors_request_builder.rb index dc15c501f2..2590b43cbd 100644 --- a/lib/device_management/exchange_connectors/exchange_connectors_request_builder.rb +++ b/lib/device_management/exchange_connectors/exchange_connectors_request_builder.rb @@ -38,7 +38,7 @@ def by_device_management_exchange_connector_id(device_management_exchange_connec ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/exchangeConnectors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/exchangeConnectors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the deviceManagementExchangeConnector objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceManagementExchangeConnectorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceManagementExchangeConnector.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a exchange_connectors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExchangeConnectorsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the deviceManagementExchangeConnector objects. diff --git a/lib/device_management/exchange_connectors/item/device_management_exchange_connector_item_request_builder.rb b/lib/device_management/exchange_connectors/item/device_management_exchange_connector_item_request_builder.rb index bbb100de1d..cf8d47eaf5 100644 --- a/lib/device_management/exchange_connectors/item/device_management_exchange_connector_item_request_builder.rb +++ b/lib/device_management/exchange_connectors/item/device_management_exchange_connector_item_request_builder.rb @@ -27,7 +27,7 @@ def sync() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/exchangeConnectors/{deviceManagementExchangeConnector%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/exchangeConnectors/{deviceManagementExchangeConnector%2Did}{?%24expand,%24select}") end ## ## Deletes a deviceManagementExchangeConnector. @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceManagementExchangeConnector.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceManagementExchangeConnector.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,13 +77,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,15 +94,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,17 +114,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_management_exchange_connector_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceManagementExchangeConnectorItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceManagementExchangeConnector object. diff --git a/lib/device_management/exchange_connectors/item/sync/sync_post_request_body.rb b/lib/device_management/exchange_connectors/item/sync/sync_post_request_body.rb index e4649131d4..879698452b 100644 --- a/lib/device_management/exchange_connectors/item/sync/sync_post_request_body.rb +++ b/lib/device_management/exchange_connectors/item/sync/sync_post_request_body.rb @@ -20,22 +20,22 @@ class SyncPostRequestBody # The type of Exchange Connector sync requested. @sync_type ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new syncPostRequestBody and sets the default values. + ## Instantiates a new SyncPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/exchange_connectors/item/sync/sync_request_builder.rb b/lib/device_management/exchange_connectors/item/sync/sync_request_builder.rb index d9e9d80d89..71c6785d7d 100644 --- a/lib/device_management/exchange_connectors/item/sync/sync_request_builder.rb +++ b/lib/device_management/exchange_connectors/item/sync/sync_request_builder.rb @@ -36,8 +36,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sync_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SyncRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/get_effective_permissions_with_scope/get_effective_permissions_with_scope.rb b/lib/device_management/get_effective_permissions_with_scope/get_effective_permissions_with_scope.rb index 640d7ce041..a04b8d2ed5 100644 --- a/lib/device_management/get_effective_permissions_with_scope/get_effective_permissions_with_scope.rb +++ b/lib/device_management/get_effective_permissions_with_scope/get_effective_permissions_with_scope.rb @@ -1 +1 @@ -require_relative 'get_effective_permissions_with_scope_response' +require_relative 'get_effective_permissions_with_scope_get_response' diff --git a/lib/device_management/get_effective_permissions_with_scope/get_effective_permissions_with_scope_get_response.rb b/lib/device_management/get_effective_permissions_with_scope/get_effective_permissions_with_scope_get_response.rb new file mode 100644 index 0000000000..5b1cc5dd06 --- /dev/null +++ b/lib/device_management/get_effective_permissions_with_scope/get_effective_permissions_with_scope_get_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_collection_pagination_count_response' +require_relative '../../models/role_permission' +require_relative '../device_management' +require_relative './get_effective_permissions_with_scope' + +module MicrosoftGraph + module DeviceManagement + module GetEffectivePermissionsWithScope + class GetEffectivePermissionsWithScopeGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetEffectivePermissionsWithScopeGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_effective_permissions_with_scope_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetEffectivePermissionsWithScopeGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::RolePermission.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a role_permission + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/device_management/get_effective_permissions_with_scope/get_effective_permissions_with_scope_request_builder.rb b/lib/device_management/get_effective_permissions_with_scope/get_effective_permissions_with_scope_request_builder.rb index 98287f1d62..7e4a64b5f2 100644 --- a/lib/device_management/get_effective_permissions_with_scope/get_effective_permissions_with_scope_request_builder.rb +++ b/lib/device_management/get_effective_permissions_with_scope/get_effective_permissions_with_scope_request_builder.rb @@ -19,21 +19,20 @@ class GetEffectivePermissionsWithScopeRequestBuilder < MicrosoftKiotaAbstraction ## @return a void ## def initialize(path_parameters, request_adapter, scope=nil) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/getEffectivePermissions(scope='{scope}'){?%24top,%24skip,%24search,%24filter,%24count}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/getEffectivePermissions(scope='{scope}'){?%24count,%24filter,%24search,%24skip,%24top}") end ## ## Retrieves the effective permissions of the currently authenticated user ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_effective_permissions_with_scope_response + ## @return a Fiber of get_effective_permissions_with_scope_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::GetEffectivePermissionsWithScope::GetEffectivePermissionsWithScopeResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::GetEffectivePermissionsWithScope::GetEffectivePermissionsWithScopeGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Retrieves the effective permissions of the currently authenticated user @@ -42,17 +41,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_effective_permissions_with_scope_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetEffectivePermissionsWithScopeRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieves the effective permissions of the currently authenticated user diff --git a/lib/device_management/get_effective_permissions_with_scope/get_effective_permissions_with_scope_response.rb b/lib/device_management/get_effective_permissions_with_scope/get_effective_permissions_with_scope_response.rb deleted file mode 100644 index 0046f0bffc..0000000000 --- a/lib/device_management/get_effective_permissions_with_scope/get_effective_permissions_with_scope_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_collection_pagination_count_response' -require_relative '../../models/role_permission' -require_relative '../device_management' -require_relative './get_effective_permissions_with_scope' - -module MicrosoftGraph - module DeviceManagement - module GetEffectivePermissionsWithScope - class GetEffectivePermissionsWithScopeResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getEffectivePermissionsWithScopeResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_effective_permissions_with_scope_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetEffectivePermissionsWithScopeResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::RolePermission.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a role_permission - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/device_management/imported_windows_autopilot_device_identities/count/count_request_builder.rb b/lib/device_management/imported_windows_autopilot_device_identities/count/count_request_builder.rb index 54662d6e30..aa2940b687 100644 --- a/lib/device_management/imported_windows_autopilot_device_identities/count/count_request_builder.rb +++ b/lib/device_management/imported_windows_autopilot_device_identities/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/importedWindowsAutopilotDeviceIdentities/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/importedWindowsAutopilotDeviceIdentities/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/imported_windows_autopilot_device_identities/import/import.rb b/lib/device_management/imported_windows_autopilot_device_identities/import/import.rb index 4c43dbfaf2..65d51bc872 100644 --- a/lib/device_management/imported_windows_autopilot_device_identities/import/import.rb +++ b/lib/device_management/imported_windows_autopilot_device_identities/import/import.rb @@ -1,2 +1,2 @@ require_relative 'import_post_request_body' -require_relative 'import_response' +require_relative 'import_post_response' diff --git a/lib/device_management/imported_windows_autopilot_device_identities/import/import_post_request_body.rb b/lib/device_management/imported_windows_autopilot_device_identities/import/import_post_request_body.rb index 7bdeb569af..9b5ed14835 100644 --- a/lib/device_management/imported_windows_autopilot_device_identities/import/import_post_request_body.rb +++ b/lib/device_management/imported_windows_autopilot_device_identities/import/import_post_request_body.rb @@ -18,22 +18,22 @@ class ImportPostRequestBody # The importedWindowsAutopilotDeviceIdentities property @imported_windows_autopilot_device_identities ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new importPostRequestBody and sets the default values. + ## Instantiates a new ImportPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/imported_windows_autopilot_device_identities/import/import_post_response.rb b/lib/device_management/imported_windows_autopilot_device_identities/import/import_post_response.rb new file mode 100644 index 0000000000..c7c910974d --- /dev/null +++ b/lib/device_management/imported_windows_autopilot_device_identities/import/import_post_response.rb @@ -0,0 +1,72 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../../models/imported_windows_autopilot_device_identity' +require_relative '../../device_management' +require_relative '../imported_windows_autopilot_device_identities' +require_relative './import' + +module MicrosoftGraph + module DeviceManagement + module ImportedWindowsAutopilotDeviceIdentities + module Import + class ImportPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new ImportPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a import_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ImportPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ImportedWindowsAutopilotDeviceIdentity.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a imported_windows_autopilot_device_identity + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/device_management/imported_windows_autopilot_device_identities/import/import_request_builder.rb b/lib/device_management/imported_windows_autopilot_device_identities/import/import_request_builder.rb index 31bf233163..89091f408e 100644 --- a/lib/device_management/imported_windows_autopilot_device_identities/import/import_request_builder.rb +++ b/lib/device_management/imported_windows_autopilot_device_identities/import/import_request_builder.rb @@ -26,7 +26,7 @@ def initialize(path_parameters, request_adapter) ## Not yet documented ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of import_response + ## @return a Fiber of import_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,9 +34,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::ImportedWindowsAutopilotDeviceIdentities::Import::ImportResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::ImportedWindowsAutopilotDeviceIdentities::Import::ImportPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Not yet documented @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a import_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImportRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/imported_windows_autopilot_device_identities/import/import_response.rb b/lib/device_management/imported_windows_autopilot_device_identities/import/import_response.rb deleted file mode 100644 index f71db7edfe..0000000000 --- a/lib/device_management/imported_windows_autopilot_device_identities/import/import_response.rb +++ /dev/null @@ -1,72 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../../models/imported_windows_autopilot_device_identity' -require_relative '../../device_management' -require_relative '../imported_windows_autopilot_device_identities' -require_relative './import' - -module MicrosoftGraph - module DeviceManagement - module ImportedWindowsAutopilotDeviceIdentities - module Import - class ImportResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new importResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a import_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return ImportResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ImportedWindowsAutopilotDeviceIdentity.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a imported_windows_autopilot_device_identity - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/device_management/imported_windows_autopilot_device_identities/imported_windows_autopilot_device_identities_request_builder.rb b/lib/device_management/imported_windows_autopilot_device_identities/imported_windows_autopilot_device_identities_request_builder.rb index 46d95e8e89..1ccdf093ff 100644 --- a/lib/device_management/imported_windows_autopilot_device_identities/imported_windows_autopilot_device_identities_request_builder.rb +++ b/lib/device_management/imported_windows_autopilot_device_identities/imported_windows_autopilot_device_identities_request_builder.rb @@ -44,7 +44,7 @@ def by_imported_windows_autopilot_device_identity_id(imported_windows_autopilot_ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/importedWindowsAutopilotDeviceIdentities{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/importedWindowsAutopilotDeviceIdentities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the importedWindowsAutopilotDeviceIdentity objects. @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ImportedWindowsAutopilotDeviceIdentityCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,8 +71,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ImportedWindowsAutopilotDeviceIdentity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,15 +81,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,17 +101,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a imported_windows_autopilot_device_identities_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImportedWindowsAutopilotDeviceIdentitiesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the importedWindowsAutopilotDeviceIdentity objects. diff --git a/lib/device_management/imported_windows_autopilot_device_identities/item/imported_windows_autopilot_device_identity_item_request_builder.rb b/lib/device_management/imported_windows_autopilot_device_identities/item/imported_windows_autopilot_device_identity_item_request_builder.rb index 9a775c4331..b4758cbf16 100644 --- a/lib/device_management/imported_windows_autopilot_device_identities/item/imported_windows_autopilot_device_identity_item_request_builder.rb +++ b/lib/device_management/imported_windows_autopilot_device_identities/item/imported_windows_autopilot_device_identity_item_request_builder.rb @@ -21,7 +21,7 @@ class ImportedWindowsAutopilotDeviceIdentityItemRequestBuilder < MicrosoftKiotaA ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/importedWindowsAutopilotDeviceIdentities/{importedWindowsAutopilotDeviceIdentity%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/importedWindowsAutopilotDeviceIdentities/{importedWindowsAutopilotDeviceIdentity%2Did}{?%24expand,%24select}") end ## ## Deletes a importedWindowsAutopilotDeviceIdentity. @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ImportedWindowsAutopilotDeviceIdentity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ImportedWindowsAutopilotDeviceIdentity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a imported_windows_autopilot_device_identity_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImportedWindowsAutopilotDeviceIdentityItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the importedWindowsAutopilotDeviceIdentity object. diff --git a/lib/device_management/ios_update_statuses/count/count_request_builder.rb b/lib/device_management/ios_update_statuses/count/count_request_builder.rb index 5ebb300943..1c42e121bd 100644 --- a/lib/device_management/ios_update_statuses/count/count_request_builder.rb +++ b/lib/device_management/ios_update_statuses/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/iosUpdateStatuses/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/iosUpdateStatuses/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/ios_update_statuses/ios_update_statuses_request_builder.rb b/lib/device_management/ios_update_statuses/ios_update_statuses_request_builder.rb index 38c1634cff..b64a42136c 100644 --- a/lib/device_management/ios_update_statuses/ios_update_statuses_request_builder.rb +++ b/lib/device_management/ios_update_statuses/ios_update_statuses_request_builder.rb @@ -38,7 +38,7 @@ def by_ios_update_device_status_id(ios_update_device_status_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/iosUpdateStatuses{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/iosUpdateStatuses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the iosUpdateDeviceStatus objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IosUpdateDeviceStatusCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IosUpdateDeviceStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ios_update_statuses_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IosUpdateStatusesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the iosUpdateDeviceStatus objects. diff --git a/lib/device_management/ios_update_statuses/item/ios_update_device_status_item_request_builder.rb b/lib/device_management/ios_update_statuses/item/ios_update_device_status_item_request_builder.rb index 6733a03a9d..46f1c8d63e 100644 --- a/lib/device_management/ios_update_statuses/item/ios_update_device_status_item_request_builder.rb +++ b/lib/device_management/ios_update_statuses/item/ios_update_device_status_item_request_builder.rb @@ -21,7 +21,7 @@ class IosUpdateDeviceStatusItemRequestBuilder < MicrosoftKiotaAbstractions::Base ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/iosUpdateStatuses/{iosUpdateDeviceStatus%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/iosUpdateStatuses/{iosUpdateDeviceStatus%2Did}{?%24expand,%24select}") end ## ## Deletes a iosUpdateDeviceStatus. @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IosUpdateDeviceStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IosUpdateDeviceStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ios_update_device_status_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IosUpdateDeviceStatusItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the iosUpdateDeviceStatus object. diff --git a/lib/device_management/managed_device_overview/managed_device_overview_request_builder.rb b/lib/device_management/managed_device_overview/managed_device_overview_request_builder.rb index e85025d34a..2796318226 100644 --- a/lib/device_management/managed_device_overview/managed_device_overview_request_builder.rb +++ b/lib/device_management/managed_device_overview/managed_device_overview_request_builder.rb @@ -19,10 +19,10 @@ class ManagedDeviceOverviewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDeviceOverview{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDeviceOverview{?%24expand,%24select}") end ## - ## Read properties and relationships of the managedDeviceOverview object. + ## Device overview ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of managed_device_overview ## @@ -31,31 +31,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDeviceOverview.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Read properties and relationships of the managedDeviceOverview object. + ## Device overview ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_device_overview_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedDeviceOverviewRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read properties and relationships of the managedDeviceOverview object. + # Device overview class ManagedDeviceOverviewRequestBuilderGetQueryParameters ## diff --git a/lib/device_management/managed_devices/count/count_request_builder.rb b/lib/device_management/managed_devices/count/count_request_builder.rb index 45b360ad7b..f59e16228b 100644 --- a/lib/device_management/managed_devices/count/count_request_builder.rb +++ b/lib/device_management/managed_devices/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/managed_devices/item/bypass_activation_lock/bypass_activation_lock_request_builder.rb b/lib/device_management/managed_devices/item/bypass_activation_lock/bypass_activation_lock_request_builder.rb index a06549ed7b..2f3a301ddf 100644 --- a/lib/device_management/managed_devices/item/bypass_activation_lock/bypass_activation_lock_request_builder.rb +++ b/lib/device_management/managed_devices/item/bypass_activation_lock/bypass_activation_lock_request_builder.rb @@ -34,8 +34,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,15 +44,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bypass_activation_lock_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BypassActivationLockRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/managed_devices/item/clean_windows_device/clean_windows_device_post_request_body.rb b/lib/device_management/managed_devices/item/clean_windows_device/clean_windows_device_post_request_body.rb index 5c30f210c3..cb2e914ac6 100644 --- a/lib/device_management/managed_devices/item/clean_windows_device/clean_windows_device_post_request_body.rb +++ b/lib/device_management/managed_devices/item/clean_windows_device/clean_windows_device_post_request_body.rb @@ -19,22 +19,22 @@ class CleanWindowsDevicePostRequestBody # The keepUserData property @keep_user_data ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new cleanWindowsDevicePostRequestBody and sets the default values. + ## Instantiates a new CleanWindowsDevicePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/managed_devices/item/clean_windows_device/clean_windows_device_request_builder.rb b/lib/device_management/managed_devices/item/clean_windows_device/clean_windows_device_request_builder.rb index 8abf56f398..481733e9d0 100644 --- a/lib/device_management/managed_devices/item/clean_windows_device/clean_windows_device_request_builder.rb +++ b/lib/device_management/managed_devices/item/clean_windows_device/clean_windows_device_request_builder.rb @@ -36,8 +36,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clean_windows_device_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CleanWindowsDeviceRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/managed_devices/item/delete_user_from_shared_apple_device/delete_user_from_shared_apple_device_post_request_body.rb b/lib/device_management/managed_devices/item/delete_user_from_shared_apple_device/delete_user_from_shared_apple_device_post_request_body.rb index b263629004..d5b5f4dc0c 100644 --- a/lib/device_management/managed_devices/item/delete_user_from_shared_apple_device/delete_user_from_shared_apple_device_post_request_body.rb +++ b/lib/device_management/managed_devices/item/delete_user_from_shared_apple_device/delete_user_from_shared_apple_device_post_request_body.rb @@ -19,22 +19,22 @@ class DeleteUserFromSharedAppleDevicePostRequestBody # The userPrincipalName property @user_principal_name ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new deleteUserFromSharedAppleDevicePostRequestBody and sets the default values. + ## Instantiates a new DeleteUserFromSharedAppleDevicePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/managed_devices/item/delete_user_from_shared_apple_device/delete_user_from_shared_apple_device_request_builder.rb b/lib/device_management/managed_devices/item/delete_user_from_shared_apple_device/delete_user_from_shared_apple_device_request_builder.rb index 92187f0601..654365eb2e 100644 --- a/lib/device_management/managed_devices/item/delete_user_from_shared_apple_device/delete_user_from_shared_apple_device_request_builder.rb +++ b/lib/device_management/managed_devices/item/delete_user_from_shared_apple_device/delete_user_from_shared_apple_device_request_builder.rb @@ -36,8 +36,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_user_from_shared_apple_device_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteUserFromSharedAppleDeviceRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/managed_devices/item/device_category/device_category_request_builder.rb b/lib/device_management/managed_devices/item/device_category/device_category_request_builder.rb index 5e9b4f5e25..2ae276c14c 100644 --- a/lib/device_management/managed_devices/item/device_category/device_category_request_builder.rb +++ b/lib/device_management/managed_devices/item/device_category/device_category_request_builder.rb @@ -6,6 +6,7 @@ require_relative '../../managed_devices' require_relative '../item' require_relative './device_category' +require_relative './ref/ref_request_builder' module MicrosoftGraph module DeviceManagement @@ -16,6 +17,11 @@ module DeviceCategory # Provides operations to manage the deviceCategory property of the microsoft.graph.managedDevice entity. class DeviceCategoryRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to manage the collection of deviceManagement entities. + def ref() + return MicrosoftGraph::DeviceManagement::ManagedDevices::Item::DeviceCategory::Ref::RefRequestBuilder.new(@path_parameters, @request_adapter) + end ## ## Instantiates a new DeviceCategoryRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -23,7 +29,7 @@ class DeviceCategoryRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceCategory{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceCategory{?%24expand,%24select}") end ## ## Delete navigation property deviceCategory for deviceManagement @@ -35,12 +41,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read properties and relationships of the deviceCategory object. + ## Device category ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of device_category ## @@ -49,12 +54,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCategory.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of a deviceCategory object. + ## Update the navigation property deviceCategory in deviceManagement ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of device_category @@ -65,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,35 +79,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read properties and relationships of the deviceCategory object. + ## Device category ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of a deviceCategory object. + ## Update the navigation property deviceCategory in deviceManagement ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -112,20 +116,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_category_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceCategoryRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read properties and relationships of the deviceCategory object. + # Device category class DeviceCategoryRequestBuilderGetQueryParameters ## diff --git a/lib/me/chats/item/messages/item/replies/item/undo_soft_delete/undo_soft_delete.rb b/lib/device_management/managed_devices/item/device_category/ref/ref.rb similarity index 100% rename from lib/me/chats/item/messages/item/replies/item/undo_soft_delete/undo_soft_delete.rb rename to lib/device_management/managed_devices/item/device_category/ref/ref.rb diff --git a/lib/device_management/managed_devices/item/device_category/ref/ref_request_builder.rb b/lib/device_management/managed_devices/item/device_category/ref/ref_request_builder.rb new file mode 100644 index 0000000000..40dc4fdcfc --- /dev/null +++ b/lib/device_management/managed_devices/item/device_category/ref/ref_request_builder.rb @@ -0,0 +1,140 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../models/reference_update' +require_relative '../../../../device_management' +require_relative '../../../managed_devices' +require_relative '../../item' +require_relative '../device_category' +require_relative './ref' + +module MicrosoftGraph + module DeviceManagement + module ManagedDevices + module Item + module DeviceCategory + module Ref + ## + # Provides operations to manage the collection of deviceManagement entities. + class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RefRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceCategory/$ref") + end + ## + ## Delete ref of navigation property deviceCategory for deviceManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Device category + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of string + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, string, error_mapping) + end + ## + ## Update the ref of navigation property deviceCategory in deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def put(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_put_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Delete ref of navigation property deviceCategory for deviceManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Device category + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the ref of navigation property deviceCategory in deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_put_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end +end diff --git a/lib/device_management/managed_devices/item/device_compliance_policy_states/count/count_request_builder.rb b/lib/device_management/managed_devices/item/device_compliance_policy_states/count/count_request_builder.rb index 9073b197a2..7a84941561 100644 --- a/lib/device_management/managed_devices/item/device_compliance_policy_states/count/count_request_builder.rb +++ b/lib/device_management/managed_devices/item/device_compliance_policy_states/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceCompliancePolicyStates/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceCompliancePolicyStates/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/managed_devices/item/device_compliance_policy_states/device_compliance_policy_states_request_builder.rb b/lib/device_management/managed_devices/item/device_compliance_policy_states/device_compliance_policy_states_request_builder.rb index 256a43d68b..2366918c1b 100644 --- a/lib/device_management/managed_devices/item/device_compliance_policy_states/device_compliance_policy_states_request_builder.rb +++ b/lib/device_management/managed_devices/item/device_compliance_policy_states/device_compliance_policy_states_request_builder.rb @@ -42,7 +42,7 @@ def by_device_compliance_policy_state_id(device_compliance_policy_state_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceCompliancePolicyStates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceCompliancePolicyStates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Device compliance policy states for this device. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCompliancePolicyStateCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCompliancePolicyState.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_compliance_policy_states_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceCompliancePolicyStatesRequestBuilder.new(raw_url, @request_adapter) + end ## # Device compliance policy states for this device. diff --git a/lib/device_management/managed_devices/item/device_compliance_policy_states/item/device_compliance_policy_state_item_request_builder.rb b/lib/device_management/managed_devices/item/device_compliance_policy_states/item/device_compliance_policy_state_item_request_builder.rb index ab483ebc98..a66205711a 100644 --- a/lib/device_management/managed_devices/item/device_compliance_policy_states/item/device_compliance_policy_state_item_request_builder.rb +++ b/lib/device_management/managed_devices/item/device_compliance_policy_states/item/device_compliance_policy_state_item_request_builder.rb @@ -25,7 +25,7 @@ class DeviceCompliancePolicyStateItemRequestBuilder < MicrosoftKiotaAbstractions ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceCompliancePolicyStates/{deviceCompliancePolicyState%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceCompliancePolicyStates/{deviceCompliancePolicyState%2Did}{?%24expand,%24select}") end ## ## Delete navigation property deviceCompliancePolicyStates for deviceManagement @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCompliancePolicyState.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCompliancePolicyState.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_compliance_policy_state_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceCompliancePolicyStateItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Device compliance policy states for this device. diff --git a/lib/device_management/managed_devices/item/device_configuration_states/count/count_request_builder.rb b/lib/device_management/managed_devices/item/device_configuration_states/count/count_request_builder.rb index 5ab9350981..1e81e5adea 100644 --- a/lib/device_management/managed_devices/item/device_configuration_states/count/count_request_builder.rb +++ b/lib/device_management/managed_devices/item/device_configuration_states/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceConfigurationStates/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceConfigurationStates/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/managed_devices/item/device_configuration_states/device_configuration_states_request_builder.rb b/lib/device_management/managed_devices/item/device_configuration_states/device_configuration_states_request_builder.rb index 5d744574b6..106a22581c 100644 --- a/lib/device_management/managed_devices/item/device_configuration_states/device_configuration_states_request_builder.rb +++ b/lib/device_management/managed_devices/item/device_configuration_states/device_configuration_states_request_builder.rb @@ -42,7 +42,7 @@ def by_device_configuration_state_id(device_configuration_state_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceConfigurationStates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceConfigurationStates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Device configuration states for this device. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationStateCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationState.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_configuration_states_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceConfigurationStatesRequestBuilder.new(raw_url, @request_adapter) + end ## # Device configuration states for this device. diff --git a/lib/device_management/managed_devices/item/device_configuration_states/item/device_configuration_state_item_request_builder.rb b/lib/device_management/managed_devices/item/device_configuration_states/item/device_configuration_state_item_request_builder.rb index 0b879c27b9..9188bcb9f0 100644 --- a/lib/device_management/managed_devices/item/device_configuration_states/item/device_configuration_state_item_request_builder.rb +++ b/lib/device_management/managed_devices/item/device_configuration_states/item/device_configuration_state_item_request_builder.rb @@ -25,7 +25,7 @@ class DeviceConfigurationStateItemRequestBuilder < MicrosoftKiotaAbstractions::B ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceConfigurationStates/{deviceConfigurationState%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceConfigurationStates/{deviceConfigurationState%2Did}{?%24expand,%24select}") end ## ## Delete navigation property deviceConfigurationStates for deviceManagement @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationState.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationState.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_configuration_state_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceConfigurationStateItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Device configuration states for this device. diff --git a/lib/device_management/managed_devices/item/disable_lost_mode/disable_lost_mode_request_builder.rb b/lib/device_management/managed_devices/item/disable_lost_mode/disable_lost_mode_request_builder.rb index 6a4abc345a..3daf3fd8fe 100644 --- a/lib/device_management/managed_devices/item/disable_lost_mode/disable_lost_mode_request_builder.rb +++ b/lib/device_management/managed_devices/item/disable_lost_mode/disable_lost_mode_request_builder.rb @@ -34,8 +34,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,15 +44,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a disable_lost_mode_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DisableLostModeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/managed_devices/item/locate_device/locate_device_request_builder.rb b/lib/device_management/managed_devices/item/locate_device/locate_device_request_builder.rb index bf219478a5..01e6155dbe 100644 --- a/lib/device_management/managed_devices/item/locate_device/locate_device_request_builder.rb +++ b/lib/device_management/managed_devices/item/locate_device/locate_device_request_builder.rb @@ -34,8 +34,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,15 +44,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a locate_device_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LocateDeviceRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/managed_devices/item/log_collection_requests/count/count_request_builder.rb b/lib/device_management/managed_devices/item/log_collection_requests/count/count_request_builder.rb index 313afee754..e53b049c4d 100644 --- a/lib/device_management/managed_devices/item/log_collection_requests/count/count_request_builder.rb +++ b/lib/device_management/managed_devices/item/log_collection_requests/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/logCollectionRequests/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/logCollectionRequests/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/managed_devices/item/log_collection_requests/item/create_download_url/create_download_url.rb b/lib/device_management/managed_devices/item/log_collection_requests/item/create_download_url/create_download_url.rb index 592d33e38a..a6f8b27ec0 100644 --- a/lib/device_management/managed_devices/item/log_collection_requests/item/create_download_url/create_download_url.rb +++ b/lib/device_management/managed_devices/item/log_collection_requests/item/create_download_url/create_download_url.rb @@ -1 +1 @@ -require_relative 'create_download_url_response' +require_relative 'create_download_url_post_response' diff --git a/lib/device_management/managed_devices/item/log_collection_requests/item/create_download_url/create_download_url_post_response.rb b/lib/device_management/managed_devices/item/log_collection_requests/item/create_download_url/create_download_url_post_response.rb new file mode 100644 index 0000000000..ff276035f5 --- /dev/null +++ b/lib/device_management/managed_devices/item/log_collection_requests/item/create_download_url/create_download_url_post_response.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../device_management' +require_relative '../../../../managed_devices' +require_relative '../../../item' +require_relative '../../log_collection_requests' +require_relative '../item' +require_relative './create_download_url' + +module MicrosoftGraph + module DeviceManagement + module ManagedDevices + module Item + module LogCollectionRequests + module Item + module CreateDownloadUrl + class CreateDownloadUrlPostResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new CreateDownloadUrlPostResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a create_download_url_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CreateDownloadUrlPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end +end diff --git a/lib/device_management/managed_devices/item/log_collection_requests/item/create_download_url/create_download_url_request_builder.rb b/lib/device_management/managed_devices/item/log_collection_requests/item/create_download_url/create_download_url_request_builder.rb index 0d5bd9d208..fb537ffba4 100644 --- a/lib/device_management/managed_devices/item/log_collection_requests/item/create_download_url/create_download_url_request_builder.rb +++ b/lib/device_management/managed_devices/item/log_collection_requests/item/create_download_url/create_download_url_request_builder.rb @@ -31,16 +31,15 @@ def initialize(path_parameters, request_adapter) ## ## Invoke action createDownloadUrl ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of create_download_url_response + ## @return a Fiber of create_download_url_post_response ## def post(request_configuration=nil) request_info = self.to_post_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::ManagedDevices::Item::LogCollectionRequests::Item::CreateDownloadUrl::CreateDownloadUrlResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::ManagedDevices::Item::LogCollectionRequests::Item::CreateDownloadUrl::CreateDownloadUrlPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke action createDownloadUrl @@ -49,16 +48,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a create_download_url_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreateDownloadUrlRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/managed_devices/item/log_collection_requests/item/create_download_url/create_download_url_response.rb b/lib/device_management/managed_devices/item/log_collection_requests/item/create_download_url/create_download_url_response.rb deleted file mode 100644 index d327567482..0000000000 --- a/lib/device_management/managed_devices/item/log_collection_requests/item/create_download_url/create_download_url_response.rb +++ /dev/null @@ -1,97 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../device_management' -require_relative '../../../../managed_devices' -require_relative '../../../item' -require_relative '../../log_collection_requests' -require_relative '../item' -require_relative './create_download_url' - -module MicrosoftGraph - module DeviceManagement - module ManagedDevices - module Item - module LogCollectionRequests - module Item - module CreateDownloadUrl - class CreateDownloadUrlResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new createDownloadUrlResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a create_download_url_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CreateDownloadUrlResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_string_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_string_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/device_management/managed_devices/item/log_collection_requests/item/device_log_collection_response_item_request_builder.rb b/lib/device_management/managed_devices/item/log_collection_requests/item/device_log_collection_response_item_request_builder.rb index a402026cbc..618b7ceb25 100644 --- a/lib/device_management/managed_devices/item/log_collection_requests/item/device_log_collection_response_item_request_builder.rb +++ b/lib/device_management/managed_devices/item/log_collection_requests/item/device_log_collection_response_item_request_builder.rb @@ -31,7 +31,7 @@ def create_download_url() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/logCollectionRequests/{deviceLogCollectionResponse%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/logCollectionRequests/{deviceLogCollectionResponse%2Did}{?%24expand,%24select}") end ## ## Delete navigation property logCollectionRequests for deviceManagement @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceLogCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceLogCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,15 +98,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_log_collection_response_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceLogCollectionResponseItemRequestBuilder.new(raw_url, @request_adapter) + end ## # List of log collection requests diff --git a/lib/device_management/managed_devices/item/log_collection_requests/log_collection_requests_request_builder.rb b/lib/device_management/managed_devices/item/log_collection_requests/log_collection_requests_request_builder.rb index f6477c0b14..870f9a9146 100644 --- a/lib/device_management/managed_devices/item/log_collection_requests/log_collection_requests_request_builder.rb +++ b/lib/device_management/managed_devices/item/log_collection_requests/log_collection_requests_request_builder.rb @@ -42,7 +42,7 @@ def by_device_log_collection_response_id(device_log_collection_response_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/logCollectionRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/logCollectionRequests{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List of log collection requests @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceLogCollectionResponseCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceLogCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a log_collection_requests_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LogCollectionRequestsRequestBuilder.new(raw_url, @request_adapter) + end ## # List of log collection requests diff --git a/lib/device_management/managed_devices/item/logout_shared_apple_device_active_user/logout_shared_apple_device_active_user_request_builder.rb b/lib/device_management/managed_devices/item/logout_shared_apple_device_active_user/logout_shared_apple_device_active_user_request_builder.rb index 65ab120118..a6cf92f5ec 100644 --- a/lib/device_management/managed_devices/item/logout_shared_apple_device_active_user/logout_shared_apple_device_active_user_request_builder.rb +++ b/lib/device_management/managed_devices/item/logout_shared_apple_device_active_user/logout_shared_apple_device_active_user_request_builder.rb @@ -34,8 +34,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,15 +44,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a logout_shared_apple_device_active_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LogoutSharedAppleDeviceActiveUserRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/managed_devices/item/managed_device_item_request_builder.rb b/lib/device_management/managed_devices/item/managed_device_item_request_builder.rb index 71ec9317de..c0b16e7b89 100644 --- a/lib/device_management/managed_devices/item/managed_device_item_request_builder.rb +++ b/lib/device_management/managed_devices/item/managed_device_item_request_builder.rb @@ -165,7 +165,7 @@ def wipe() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}{?%24expand,%24select}") end ## ## Deletes a managedDevice. @@ -177,12 +177,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read properties and relationships of the managedDevice object. + ## The list of managed devices. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of managed_device ## @@ -191,12 +190,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDevice.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of a managedDevice object. + ## Update the navigation property managedDevices in deviceManagement ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of managed_device @@ -207,8 +205,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDevice.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -218,35 +215,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read properties and relationships of the managedDevice object. + ## The list of managed devices. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of a managedDevice object. + ## Update the navigation property managedDevices in deviceManagement ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -254,20 +252,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_device_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedDeviceItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read properties and relationships of the managedDevice object. + # The list of managed devices. class ManagedDeviceItemRequestBuilderGetQueryParameters ## diff --git a/lib/device_management/managed_devices/item/reboot_now/reboot_now_request_builder.rb b/lib/device_management/managed_devices/item/reboot_now/reboot_now_request_builder.rb index 94930c4174..6387d9d08c 100644 --- a/lib/device_management/managed_devices/item/reboot_now/reboot_now_request_builder.rb +++ b/lib/device_management/managed_devices/item/reboot_now/reboot_now_request_builder.rb @@ -34,8 +34,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,15 +44,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reboot_now_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RebootNowRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/managed_devices/item/recover_passcode/recover_passcode_request_builder.rb b/lib/device_management/managed_devices/item/recover_passcode/recover_passcode_request_builder.rb index f3b7d377a5..7d4a7ee617 100644 --- a/lib/device_management/managed_devices/item/recover_passcode/recover_passcode_request_builder.rb +++ b/lib/device_management/managed_devices/item/recover_passcode/recover_passcode_request_builder.rb @@ -34,8 +34,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,15 +44,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a recover_passcode_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RecoverPasscodeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/managed_devices/item/remote_lock/remote_lock_request_builder.rb b/lib/device_management/managed_devices/item/remote_lock/remote_lock_request_builder.rb index 35b8a8f7b5..0e6bd0fa39 100644 --- a/lib/device_management/managed_devices/item/remote_lock/remote_lock_request_builder.rb +++ b/lib/device_management/managed_devices/item/remote_lock/remote_lock_request_builder.rb @@ -34,8 +34,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,15 +44,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a remote_lock_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RemoteLockRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/managed_devices/item/request_remote_assistance/request_remote_assistance_request_builder.rb b/lib/device_management/managed_devices/item/request_remote_assistance/request_remote_assistance_request_builder.rb index 3b865ee98f..f864d88410 100644 --- a/lib/device_management/managed_devices/item/request_remote_assistance/request_remote_assistance_request_builder.rb +++ b/lib/device_management/managed_devices/item/request_remote_assistance/request_remote_assistance_request_builder.rb @@ -34,8 +34,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,15 +44,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a request_remote_assistance_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RequestRemoteAssistanceRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/managed_devices/item/reset_passcode/reset_passcode_request_builder.rb b/lib/device_management/managed_devices/item/reset_passcode/reset_passcode_request_builder.rb index 6845e47365..58e799e858 100644 --- a/lib/device_management/managed_devices/item/reset_passcode/reset_passcode_request_builder.rb +++ b/lib/device_management/managed_devices/item/reset_passcode/reset_passcode_request_builder.rb @@ -34,8 +34,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,15 +44,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reset_passcode_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResetPasscodeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/managed_devices/item/retire/retire_request_builder.rb b/lib/device_management/managed_devices/item/retire/retire_request_builder.rb index 2fad10dac1..22a9819574 100644 --- a/lib/device_management/managed_devices/item/retire/retire_request_builder.rb +++ b/lib/device_management/managed_devices/item/retire/retire_request_builder.rb @@ -34,8 +34,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,15 +44,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a retire_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RetireRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/managed_devices/item/shut_down/shut_down_request_builder.rb b/lib/device_management/managed_devices/item/shut_down/shut_down_request_builder.rb index f7a4e5760d..5648c93e53 100644 --- a/lib/device_management/managed_devices/item/shut_down/shut_down_request_builder.rb +++ b/lib/device_management/managed_devices/item/shut_down/shut_down_request_builder.rb @@ -34,8 +34,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,15 +44,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a shut_down_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ShutDownRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/managed_devices/item/sync_device/sync_device_request_builder.rb b/lib/device_management/managed_devices/item/sync_device/sync_device_request_builder.rb index 15635da041..387af30926 100644 --- a/lib/device_management/managed_devices/item/sync_device/sync_device_request_builder.rb +++ b/lib/device_management/managed_devices/item/sync_device/sync_device_request_builder.rb @@ -34,8 +34,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,15 +44,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sync_device_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SyncDeviceRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/managed_devices/item/update_windows_device_account/update_windows_device_account_post_request_body.rb b/lib/device_management/managed_devices/item/update_windows_device_account/update_windows_device_account_post_request_body.rb index 0f302a48f0..dbd9e0d36e 100644 --- a/lib/device_management/managed_devices/item/update_windows_device_account/update_windows_device_account_post_request_body.rb +++ b/lib/device_management/managed_devices/item/update_windows_device_account/update_windows_device_account_post_request_body.rb @@ -20,22 +20,22 @@ class UpdateWindowsDeviceAccountPostRequestBody # The updateWindowsDeviceAccountActionParameter property @update_windows_device_account_action_parameter ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new updateWindowsDeviceAccountPostRequestBody and sets the default values. + ## Instantiates a new UpdateWindowsDeviceAccountPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/managed_devices/item/update_windows_device_account/update_windows_device_account_request_builder.rb b/lib/device_management/managed_devices/item/update_windows_device_account/update_windows_device_account_request_builder.rb index fcf8503dbe..7f1cce97c4 100644 --- a/lib/device_management/managed_devices/item/update_windows_device_account/update_windows_device_account_request_builder.rb +++ b/lib/device_management/managed_devices/item/update_windows_device_account/update_windows_device_account_request_builder.rb @@ -36,8 +36,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a update_windows_device_account_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UpdateWindowsDeviceAccountRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/managed_devices/item/users/users_request_builder.rb b/lib/device_management/managed_devices/item/users/users_request_builder.rb index bb44df5ab3..ee4d23dfe4 100644 --- a/lib/device_management/managed_devices/item/users/users_request_builder.rb +++ b/lib/device_management/managed_devices/item/users/users_request_builder.rb @@ -23,10 +23,10 @@ class UsersRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/users{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/users{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List properties and relationships of the user objects. + ## The primary users associated with the managed device. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of user_collection_response ## @@ -35,31 +35,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List properties and relationships of the user objects. + ## The primary users associated with the managed device. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a users_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsersRequestBuilder.new(raw_url, @request_adapter) + end ## - # List properties and relationships of the user objects. + # The primary users associated with the managed device. class UsersRequestBuilderGetQueryParameters ## diff --git a/lib/device_management/managed_devices/item/windows_defender_scan/windows_defender_scan_post_request_body.rb b/lib/device_management/managed_devices/item/windows_defender_scan/windows_defender_scan_post_request_body.rb index 3631a371e6..d16246d032 100644 --- a/lib/device_management/managed_devices/item/windows_defender_scan/windows_defender_scan_post_request_body.rb +++ b/lib/device_management/managed_devices/item/windows_defender_scan/windows_defender_scan_post_request_body.rb @@ -19,22 +19,22 @@ class WindowsDefenderScanPostRequestBody # The quickScan property @quick_scan ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new windowsDefenderScanPostRequestBody and sets the default values. + ## Instantiates a new WindowsDefenderScanPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/managed_devices/item/windows_defender_scan/windows_defender_scan_request_builder.rb b/lib/device_management/managed_devices/item/windows_defender_scan/windows_defender_scan_request_builder.rb index babcf67abc..2e9578cc25 100644 --- a/lib/device_management/managed_devices/item/windows_defender_scan/windows_defender_scan_request_builder.rb +++ b/lib/device_management/managed_devices/item/windows_defender_scan/windows_defender_scan_request_builder.rb @@ -36,8 +36,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a windows_defender_scan_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WindowsDefenderScanRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/managed_devices/item/windows_defender_update_signatures/windows_defender_update_signatures_request_builder.rb b/lib/device_management/managed_devices/item/windows_defender_update_signatures/windows_defender_update_signatures_request_builder.rb index 26bf07c31e..303f01e81d 100644 --- a/lib/device_management/managed_devices/item/windows_defender_update_signatures/windows_defender_update_signatures_request_builder.rb +++ b/lib/device_management/managed_devices/item/windows_defender_update_signatures/windows_defender_update_signatures_request_builder.rb @@ -34,8 +34,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,15 +44,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a windows_defender_update_signatures_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WindowsDefenderUpdateSignaturesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/managed_devices/item/windows_protection_state/detected_malware_state/count/count_request_builder.rb b/lib/device_management/managed_devices/item/windows_protection_state/detected_malware_state/count/count_request_builder.rb index 7ea3b70bc8..24024e52fe 100644 --- a/lib/device_management/managed_devices/item/windows_protection_state/detected_malware_state/count/count_request_builder.rb +++ b/lib/device_management/managed_devices/item/windows_protection_state/detected_malware_state/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/windowsProtectionState/detectedMalwareState/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/windowsProtectionState/detectedMalwareState/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/managed_devices/item/windows_protection_state/detected_malware_state/detected_malware_state_request_builder.rb b/lib/device_management/managed_devices/item/windows_protection_state/detected_malware_state/detected_malware_state_request_builder.rb index bba2314736..61665a9381 100644 --- a/lib/device_management/managed_devices/item/windows_protection_state/detected_malware_state/detected_malware_state_request_builder.rb +++ b/lib/device_management/managed_devices/item/windows_protection_state/detected_malware_state/detected_malware_state_request_builder.rb @@ -44,10 +44,10 @@ def by_windows_device_malware_state_id(windows_device_malware_state_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/windowsProtectionState/detectedMalwareState{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/windowsProtectionState/detectedMalwareState{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List properties and relationships of the windowsDeviceMalwareState objects. + ## Device malware list ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of windows_device_malware_state_collection_response ## @@ -56,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsDeviceMalwareStateCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new windowsDeviceMalwareState object. + ## Create new navigation property to detectedMalwareState for deviceManagement ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of windows_device_malware_state @@ -72,30 +71,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsDeviceMalwareState.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List properties and relationships of the windowsDeviceMalwareState objects. + ## Device malware list ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new windowsDeviceMalwareState object. + ## Create new navigation property to detectedMalwareState for deviceManagement ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a detected_malware_state_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DetectedMalwareStateRequestBuilder.new(raw_url, @request_adapter) + end ## - # List properties and relationships of the windowsDeviceMalwareState objects. + # Device malware list class DetectedMalwareStateRequestBuilderGetQueryParameters ## diff --git a/lib/device_management/managed_devices/item/windows_protection_state/detected_malware_state/item/windows_device_malware_state_item_request_builder.rb b/lib/device_management/managed_devices/item/windows_protection_state/detected_malware_state/item/windows_device_malware_state_item_request_builder.rb index 2d677abbe3..9d40e8f2f4 100644 --- a/lib/device_management/managed_devices/item/windows_protection_state/detected_malware_state/item/windows_device_malware_state_item_request_builder.rb +++ b/lib/device_management/managed_devices/item/windows_protection_state/detected_malware_state/item/windows_device_malware_state_item_request_builder.rb @@ -27,10 +27,10 @@ class WindowsDeviceMalwareStateItemRequestBuilder < MicrosoftKiotaAbstractions:: ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/windowsProtectionState/detectedMalwareState/{windowsDeviceMalwareState%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/windowsProtectionState/detectedMalwareState/{windowsDeviceMalwareState%2Did}{?%24expand,%24select}") end ## - ## Deletes a windowsDeviceMalwareState. + ## Delete navigation property detectedMalwareState for deviceManagement ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -39,12 +39,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read properties and relationships of the windowsDeviceMalwareState object. + ## Device malware list ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of windows_device_malware_state ## @@ -53,12 +52,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsDeviceMalwareState.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of a windowsDeviceMalwareState object. + ## Update the navigation property detectedMalwareState in deviceManagement ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of windows_device_malware_state @@ -69,46 +67,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsDeviceMalwareState.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Deletes a windowsDeviceMalwareState. + ## Delete navigation property detectedMalwareState for deviceManagement ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read properties and relationships of the windowsDeviceMalwareState object. + ## Device malware list ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of a windowsDeviceMalwareState object. + ## Update the navigation property detectedMalwareState in deviceManagement ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -116,20 +114,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a windows_device_malware_state_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WindowsDeviceMalwareStateItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read properties and relationships of the windowsDeviceMalwareState object. + # Device malware list class WindowsDeviceMalwareStateItemRequestBuilderGetQueryParameters ## diff --git a/lib/device_management/managed_devices/item/windows_protection_state/windows_protection_state_request_builder.rb b/lib/device_management/managed_devices/item/windows_protection_state/windows_protection_state_request_builder.rb index 9dbd6016a1..823d37e6f0 100644 --- a/lib/device_management/managed_devices/item/windows_protection_state/windows_protection_state_request_builder.rb +++ b/lib/device_management/managed_devices/item/windows_protection_state/windows_protection_state_request_builder.rb @@ -29,7 +29,7 @@ def detected_malware_state() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/windowsProtectionState{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/windowsProtectionState{?%24expand,%24select}") end ## ## Delete navigation property windowsProtectionState for deviceManagement @@ -41,12 +41,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read properties and relationships of the windowsProtectionState object. + ## The device protection status. This property is read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of windows_protection_state ## @@ -55,12 +54,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsProtectionState.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of a windowsProtectionState object. + ## Update the navigation property windowsProtectionState in deviceManagement ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of windows_protection_state @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsProtectionState.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,35 +79,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read properties and relationships of the windowsProtectionState object. + ## The device protection status. This property is read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of a windowsProtectionState object. + ## Update the navigation property windowsProtectionState in deviceManagement ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -118,20 +116,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a windows_protection_state_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WindowsProtectionStateRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read properties and relationships of the windowsProtectionState object. + # The device protection status. This property is read-only. class WindowsProtectionStateRequestBuilderGetQueryParameters ## diff --git a/lib/device_management/managed_devices/item/wipe/wipe_post_request_body.rb b/lib/device_management/managed_devices/item/wipe/wipe_post_request_body.rb index 9471c455d1..6796b39d8a 100644 --- a/lib/device_management/managed_devices/item/wipe/wipe_post_request_body.rb +++ b/lib/device_management/managed_devices/item/wipe/wipe_post_request_body.rb @@ -28,22 +28,22 @@ class WipePostRequestBody # The persistEsimDataPlan property @persist_esim_data_plan ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new wipePostRequestBody and sets the default values. + ## Instantiates a new WipePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/managed_devices/item/wipe/wipe_request_builder.rb b/lib/device_management/managed_devices/item/wipe/wipe_request_builder.rb index 1c46b978ef..ddddb03fde 100644 --- a/lib/device_management/managed_devices/item/wipe/wipe_request_builder.rb +++ b/lib/device_management/managed_devices/item/wipe/wipe_request_builder.rb @@ -36,8 +36,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a wipe_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WipeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/managed_devices/managed_devices_request_builder.rb b/lib/device_management/managed_devices/managed_devices_request_builder.rb index ae2077acf9..4fcaa64e30 100644 --- a/lib/device_management/managed_devices/managed_devices_request_builder.rb +++ b/lib/device_management/managed_devices/managed_devices_request_builder.rb @@ -38,10 +38,10 @@ def by_managed_device_id(managed_device_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/managedDevices{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List properties and relationships of the managedDevice objects. + ## The list of managed devices. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of managed_device_collection_response ## @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDeviceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,26 +65,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ManagedDevice.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List properties and relationships of the managedDevice objects. + ## The list of managed devices. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,20 +95,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a managed_devices_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ManagedDevicesRequestBuilder.new(raw_url, @request_adapter) + end ## - # List properties and relationships of the managedDevice objects. + # The list of managed devices. class ManagedDevicesRequestBuilderGetQueryParameters ## diff --git a/lib/device_management/mobile_app_troubleshooting_events/count/count_request_builder.rb b/lib/device_management/mobile_app_troubleshooting_events/count/count_request_builder.rb index 74a2fa7729..43cc477275 100644 --- a/lib/device_management/mobile_app_troubleshooting_events/count/count_request_builder.rb +++ b/lib/device_management/mobile_app_troubleshooting_events/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/mobileAppTroubleshootingEvents/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/mobileAppTroubleshootingEvents/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/app_log_collection_requests_request_builder.rb b/lib/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/app_log_collection_requests_request_builder.rb index 570ba3d4f9..a1bc1f958d 100644 --- a/lib/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/app_log_collection_requests_request_builder.rb +++ b/lib/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/app_log_collection_requests_request_builder.rb @@ -42,7 +42,7 @@ def by_app_log_collection_request_id(app_log_collection_request_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/mobileAppTroubleshootingEvents/{mobileAppTroubleshootingEvent%2Did}/appLogCollectionRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/mobileAppTroubleshootingEvents/{mobileAppTroubleshootingEvent%2Did}/appLogCollectionRequests{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the appLogCollectionRequest objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppLogCollectionRequestCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppLogCollectionRequest.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a app_log_collection_requests_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AppLogCollectionRequestsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the appLogCollectionRequest objects. diff --git a/lib/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/count/count_request_builder.rb b/lib/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/count/count_request_builder.rb index 40f10d1f43..0748777dd5 100644 --- a/lib/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/count/count_request_builder.rb +++ b/lib/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/mobileAppTroubleshootingEvents/{mobileAppTroubleshootingEvent%2Did}/appLogCollectionRequests/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/mobileAppTroubleshootingEvents/{mobileAppTroubleshootingEvent%2Did}/appLogCollectionRequests/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/item/app_log_collection_request_item_request_builder.rb b/lib/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/item/app_log_collection_request_item_request_builder.rb index 6a216c1731..823a83e541 100644 --- a/lib/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/item/app_log_collection_request_item_request_builder.rb +++ b/lib/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/item/app_log_collection_request_item_request_builder.rb @@ -31,7 +31,7 @@ def create_download_url() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/mobileAppTroubleshootingEvents/{mobileAppTroubleshootingEvent%2Did}/appLogCollectionRequests/{appLogCollectionRequest%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/mobileAppTroubleshootingEvents/{mobileAppTroubleshootingEvent%2Did}/appLogCollectionRequests/{appLogCollectionRequest%2Did}{?%24expand,%24select}") end ## ## Deletes a appLogCollectionRequest. @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppLogCollectionRequest.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppLogCollectionRequest.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,15 +98,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a app_log_collection_request_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AppLogCollectionRequestItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the appLogCollectionRequest object. diff --git a/lib/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/item/create_download_url/create_download_url_request_builder.rb b/lib/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/item/create_download_url/create_download_url_request_builder.rb index f5611bb5ad..956b3cb655 100644 --- a/lib/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/item/create_download_url/create_download_url_request_builder.rb +++ b/lib/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/item/create_download_url/create_download_url_request_builder.rb @@ -39,8 +39,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppLogCollectionDownloadDetails.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,16 +49,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a create_download_url_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreateDownloadUrlRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/mobile_app_troubleshooting_events/item/mobile_app_troubleshooting_event_item_request_builder.rb b/lib/device_management/mobile_app_troubleshooting_events/item/mobile_app_troubleshooting_event_item_request_builder.rb index 941a6868bf..f26bb44e9f 100644 --- a/lib/device_management/mobile_app_troubleshooting_events/item/mobile_app_troubleshooting_event_item_request_builder.rb +++ b/lib/device_management/mobile_app_troubleshooting_events/item/mobile_app_troubleshooting_event_item_request_builder.rb @@ -27,7 +27,7 @@ def app_log_collection_requests() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/mobileAppTroubleshootingEvents/{mobileAppTroubleshootingEvent%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/mobileAppTroubleshootingEvents/{mobileAppTroubleshootingEvent%2Did}{?%24expand,%24select}") end ## ## Deletes a mobileAppTroubleshootingEvent. @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppTroubleshootingEvent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppTroubleshootingEvent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,13 +77,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,15 +94,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,17 +114,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_troubleshooting_event_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppTroubleshootingEventItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the mobileAppTroubleshootingEvent object. diff --git a/lib/device_management/mobile_app_troubleshooting_events/mobile_app_troubleshooting_events_request_builder.rb b/lib/device_management/mobile_app_troubleshooting_events/mobile_app_troubleshooting_events_request_builder.rb index 938ab12ec5..e62d504319 100644 --- a/lib/device_management/mobile_app_troubleshooting_events/mobile_app_troubleshooting_events_request_builder.rb +++ b/lib/device_management/mobile_app_troubleshooting_events/mobile_app_troubleshooting_events_request_builder.rb @@ -38,7 +38,7 @@ def by_mobile_app_troubleshooting_event_id(mobile_app_troubleshooting_event_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/mobileAppTroubleshootingEvents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/mobileAppTroubleshootingEvents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the mobileAppTroubleshootingEvent objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppTroubleshootingEventCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileAppTroubleshootingEvent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_app_troubleshooting_events_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileAppTroubleshootingEventsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the mobileAppTroubleshootingEvent objects. diff --git a/lib/device_management/mobile_threat_defense_connectors/count/count_request_builder.rb b/lib/device_management/mobile_threat_defense_connectors/count/count_request_builder.rb index 7db78d1d2c..269dd25ca0 100644 --- a/lib/device_management/mobile_threat_defense_connectors/count/count_request_builder.rb +++ b/lib/device_management/mobile_threat_defense_connectors/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/mobileThreatDefenseConnectors/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/mobileThreatDefenseConnectors/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/mobile_threat_defense_connectors/item/mobile_threat_defense_connector_item_request_builder.rb b/lib/device_management/mobile_threat_defense_connectors/item/mobile_threat_defense_connector_item_request_builder.rb index 2d1cec339b..de347e7ba9 100644 --- a/lib/device_management/mobile_threat_defense_connectors/item/mobile_threat_defense_connector_item_request_builder.rb +++ b/lib/device_management/mobile_threat_defense_connectors/item/mobile_threat_defense_connector_item_request_builder.rb @@ -21,7 +21,7 @@ class MobileThreatDefenseConnectorItemRequestBuilder < MicrosoftKiotaAbstraction ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/mobileThreatDefenseConnectors/{mobileThreatDefenseConnector%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/mobileThreatDefenseConnectors/{mobileThreatDefenseConnector%2Did}{?%24expand,%24select}") end ## ## Deletes a mobileThreatDefenseConnector. @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileThreatDefenseConnector.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileThreatDefenseConnector.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_threat_defense_connector_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileThreatDefenseConnectorItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the mobileThreatDefenseConnector object. diff --git a/lib/device_management/mobile_threat_defense_connectors/mobile_threat_defense_connectors_request_builder.rb b/lib/device_management/mobile_threat_defense_connectors/mobile_threat_defense_connectors_request_builder.rb index d0d935ab38..efa63f6b00 100644 --- a/lib/device_management/mobile_threat_defense_connectors/mobile_threat_defense_connectors_request_builder.rb +++ b/lib/device_management/mobile_threat_defense_connectors/mobile_threat_defense_connectors_request_builder.rb @@ -38,7 +38,7 @@ def by_mobile_threat_defense_connector_id(mobile_threat_defense_connector_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/mobileThreatDefenseConnectors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/mobileThreatDefenseConnectors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the mobileThreatDefenseConnector objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileThreatDefenseConnectorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MobileThreatDefenseConnector.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mobile_threat_defense_connectors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MobileThreatDefenseConnectorsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the mobileThreatDefenseConnector objects. diff --git a/lib/device_management/notification_message_templates/count/count_request_builder.rb b/lib/device_management/notification_message_templates/count/count_request_builder.rb index ba8828e176..a1ecf047f3 100644 --- a/lib/device_management/notification_message_templates/count/count_request_builder.rb +++ b/lib/device_management/notification_message_templates/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/notificationMessageTemplates/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/notificationMessageTemplates/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/notification_message_templates/item/localized_notification_messages/count/count_request_builder.rb b/lib/device_management/notification_message_templates/item/localized_notification_messages/count/count_request_builder.rb index 51065025d9..409e71910e 100644 --- a/lib/device_management/notification_message_templates/item/localized_notification_messages/count/count_request_builder.rb +++ b/lib/device_management/notification_message_templates/item/localized_notification_messages/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/notificationMessageTemplates/{notificationMessageTemplate%2Did}/localizedNotificationMessages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/notificationMessageTemplates/{notificationMessageTemplate%2Did}/localizedNotificationMessages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/notification_message_templates/item/localized_notification_messages/item/localized_notification_message_item_request_builder.rb b/lib/device_management/notification_message_templates/item/localized_notification_messages/item/localized_notification_message_item_request_builder.rb index 46b5f89cc5..8985cf79e4 100644 --- a/lib/device_management/notification_message_templates/item/localized_notification_messages/item/localized_notification_message_item_request_builder.rb +++ b/lib/device_management/notification_message_templates/item/localized_notification_messages/item/localized_notification_message_item_request_builder.rb @@ -25,7 +25,7 @@ class LocalizedNotificationMessageItemRequestBuilder < MicrosoftKiotaAbstraction ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/notificationMessageTemplates/{notificationMessageTemplate%2Did}/localizedNotificationMessages/{localizedNotificationMessage%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/notificationMessageTemplates/{notificationMessageTemplate%2Did}/localizedNotificationMessages/{localizedNotificationMessage%2Did}{?%24expand,%24select}") end ## ## Deletes a localizedNotificationMessage. @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LocalizedNotificationMessage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LocalizedNotificationMessage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a localized_notification_message_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LocalizedNotificationMessageItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the localizedNotificationMessage object. diff --git a/lib/device_management/notification_message_templates/item/localized_notification_messages/localized_notification_messages_request_builder.rb b/lib/device_management/notification_message_templates/item/localized_notification_messages/localized_notification_messages_request_builder.rb index dbc23f1b9f..8b217c1411 100644 --- a/lib/device_management/notification_message_templates/item/localized_notification_messages/localized_notification_messages_request_builder.rb +++ b/lib/device_management/notification_message_templates/item/localized_notification_messages/localized_notification_messages_request_builder.rb @@ -42,7 +42,7 @@ def by_localized_notification_message_id(localized_notification_message_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/notificationMessageTemplates/{notificationMessageTemplate%2Did}/localizedNotificationMessages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/notificationMessageTemplates/{notificationMessageTemplate%2Did}/localizedNotificationMessages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the localizedNotificationMessage objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LocalizedNotificationMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LocalizedNotificationMessage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a localized_notification_messages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LocalizedNotificationMessagesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the localizedNotificationMessage objects. diff --git a/lib/device_management/notification_message_templates/item/notification_message_template_item_request_builder.rb b/lib/device_management/notification_message_templates/item/notification_message_template_item_request_builder.rb index 274f2ff66b..3baf54258e 100644 --- a/lib/device_management/notification_message_templates/item/notification_message_template_item_request_builder.rb +++ b/lib/device_management/notification_message_templates/item/notification_message_template_item_request_builder.rb @@ -33,7 +33,7 @@ def send_test_message() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/notificationMessageTemplates/{notificationMessageTemplate%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/notificationMessageTemplates/{notificationMessageTemplate%2Did}{?%24expand,%24select}") end ## ## Deletes a notificationMessageTemplate. @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::NotificationMessageTemplate.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::NotificationMessageTemplate.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,13 +83,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -102,15 +100,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,17 +120,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a notification_message_template_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NotificationMessageTemplateItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the notificationMessageTemplate object. diff --git a/lib/device_management/notification_message_templates/item/send_test_message/send_test_message_request_builder.rb b/lib/device_management/notification_message_templates/item/send_test_message/send_test_message_request_builder.rb index bc7d079602..40e50dd665 100644 --- a/lib/device_management/notification_message_templates/item/send_test_message/send_test_message_request_builder.rb +++ b/lib/device_management/notification_message_templates/item/send_test_message/send_test_message_request_builder.rb @@ -34,8 +34,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,15 +44,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a send_test_message_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SendTestMessageRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/notification_message_templates/notification_message_templates_request_builder.rb b/lib/device_management/notification_message_templates/notification_message_templates_request_builder.rb index a8a5a182e5..433dd4b749 100644 --- a/lib/device_management/notification_message_templates/notification_message_templates_request_builder.rb +++ b/lib/device_management/notification_message_templates/notification_message_templates_request_builder.rb @@ -38,7 +38,7 @@ def by_notification_message_template_id(notification_message_template_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/notificationMessageTemplates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/notificationMessageTemplates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the notificationMessageTemplate objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::NotificationMessageTemplateCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::NotificationMessageTemplate.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a notification_message_templates_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NotificationMessageTemplatesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the notificationMessageTemplate objects. diff --git a/lib/device_management/remote_assistance_partners/count/count_request_builder.rb b/lib/device_management/remote_assistance_partners/count/count_request_builder.rb index af96cf86a8..4b38714bbb 100644 --- a/lib/device_management/remote_assistance_partners/count/count_request_builder.rb +++ b/lib/device_management/remote_assistance_partners/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/remoteAssistancePartners/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/remoteAssistancePartners/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/remote_assistance_partners/item/begin_onboarding/begin_onboarding_request_builder.rb b/lib/device_management/remote_assistance_partners/item/begin_onboarding/begin_onboarding_request_builder.rb index 700d406ed4..4dc42909a9 100644 --- a/lib/device_management/remote_assistance_partners/item/begin_onboarding/begin_onboarding_request_builder.rb +++ b/lib/device_management/remote_assistance_partners/item/begin_onboarding/begin_onboarding_request_builder.rb @@ -34,8 +34,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,15 +44,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a begin_onboarding_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BeginOnboardingRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/remote_assistance_partners/item/disconnect/disconnect_request_builder.rb b/lib/device_management/remote_assistance_partners/item/disconnect/disconnect_request_builder.rb index 7eae31c997..2f13edf24a 100644 --- a/lib/device_management/remote_assistance_partners/item/disconnect/disconnect_request_builder.rb +++ b/lib/device_management/remote_assistance_partners/item/disconnect/disconnect_request_builder.rb @@ -34,8 +34,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,15 +44,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a disconnect_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DisconnectRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/remote_assistance_partners/item/remote_assistance_partner_item_request_builder.rb b/lib/device_management/remote_assistance_partners/item/remote_assistance_partner_item_request_builder.rb index 59094c1985..d3269acd73 100644 --- a/lib/device_management/remote_assistance_partners/item/remote_assistance_partner_item_request_builder.rb +++ b/lib/device_management/remote_assistance_partners/item/remote_assistance_partner_item_request_builder.rb @@ -33,7 +33,7 @@ def disconnect() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/remoteAssistancePartners/{remoteAssistancePartner%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/remoteAssistancePartners/{remoteAssistancePartner%2Did}{?%24expand,%24select}") end ## ## Deletes a remoteAssistancePartner. @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RemoteAssistancePartner.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RemoteAssistancePartner.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,13 +83,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -102,15 +100,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,17 +120,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a remote_assistance_partner_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RemoteAssistancePartnerItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the remoteAssistancePartner object. diff --git a/lib/device_management/remote_assistance_partners/remote_assistance_partners_request_builder.rb b/lib/device_management/remote_assistance_partners/remote_assistance_partners_request_builder.rb index 8e716a8671..02407310bf 100644 --- a/lib/device_management/remote_assistance_partners/remote_assistance_partners_request_builder.rb +++ b/lib/device_management/remote_assistance_partners/remote_assistance_partners_request_builder.rb @@ -38,7 +38,7 @@ def by_remote_assistance_partner_id(remote_assistance_partner_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/remoteAssistancePartners{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/remoteAssistancePartners{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the remoteAssistancePartner objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RemoteAssistancePartnerCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RemoteAssistancePartner.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a remote_assistance_partners_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RemoteAssistancePartnersRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the remoteAssistancePartner objects. diff --git a/lib/device_management/reports/export_jobs/count/count_request_builder.rb b/lib/device_management/reports/export_jobs/count/count_request_builder.rb index b4e9474558..6f11aef49f 100644 --- a/lib/device_management/reports/export_jobs/count/count_request_builder.rb +++ b/lib/device_management/reports/export_jobs/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/reports/exportJobs/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/reports/exportJobs/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/reports/export_jobs/export_jobs_request_builder.rb b/lib/device_management/reports/export_jobs/export_jobs_request_builder.rb index 357bb17f18..70ad126589 100644 --- a/lib/device_management/reports/export_jobs/export_jobs_request_builder.rb +++ b/lib/device_management/reports/export_jobs/export_jobs_request_builder.rb @@ -40,7 +40,7 @@ def by_device_management_export_job_id(device_management_export_job_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/reports/exportJobs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/reports/exportJobs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the deviceManagementExportJob objects. @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceManagementExportJobCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceManagementExportJob.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,15 +77,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a export_jobs_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExportJobsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the deviceManagementExportJob objects. diff --git a/lib/device_management/reports/export_jobs/item/device_management_export_job_item_request_builder.rb b/lib/device_management/reports/export_jobs/item/device_management_export_job_item_request_builder.rb index 396c4bf183..b3eb700a38 100644 --- a/lib/device_management/reports/export_jobs/item/device_management_export_job_item_request_builder.rb +++ b/lib/device_management/reports/export_jobs/item/device_management_export_job_item_request_builder.rb @@ -23,7 +23,7 @@ class DeviceManagementExportJobItemRequestBuilder < MicrosoftKiotaAbstractions:: ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/reports/exportJobs/{deviceManagementExportJob%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/reports/exportJobs/{deviceManagementExportJob%2Did}{?%24expand,%24select}") end ## ## Deletes a deviceManagementExportJob. @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceManagementExportJob.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceManagementExportJob.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_management_export_job_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceManagementExportJobItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceManagementExportJob object. diff --git a/lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb b/lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb index 053134f9ee..ea79cab4c6 100644 --- a/lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb +++ b/lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb @@ -35,22 +35,22 @@ class GetCachedReportPostRequestBody # The top property @top ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getCachedReportPostRequestBody and sets the default values. + ## Instantiates a new GetCachedReportPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/reports/get_cached_report/get_cached_report_request_builder.rb b/lib/device_management/reports/get_cached_report/get_cached_report_request_builder.rb index db895cc271..d00a8ed619 100644 --- a/lib/device_management/reports/get_cached_report/get_cached_report_request_builder.rb +++ b/lib/device_management/reports/get_cached_report/get_cached_report_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_cached_report_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetCachedReportRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/reports/get_compliance_policy_non_compliance_report/get_compliance_policy_non_compliance_report_post_request_body.rb b/lib/device_management/reports/get_compliance_policy_non_compliance_report/get_compliance_policy_non_compliance_report_post_request_body.rb index bb91b86dd7..0bc438cff9 100644 --- a/lib/device_management/reports/get_compliance_policy_non_compliance_report/get_compliance_policy_non_compliance_report_post_request_body.rb +++ b/lib/device_management/reports/get_compliance_policy_non_compliance_report/get_compliance_policy_non_compliance_report_post_request_body.rb @@ -41,22 +41,22 @@ class GetCompliancePolicyNonComplianceReportPostRequestBody # The top property @top ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getCompliancePolicyNonComplianceReportPostRequestBody and sets the default values. + ## Instantiates a new GetCompliancePolicyNonComplianceReportPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/reports/get_compliance_policy_non_compliance_report/get_compliance_policy_non_compliance_report_request_builder.rb b/lib/device_management/reports/get_compliance_policy_non_compliance_report/get_compliance_policy_non_compliance_report_request_builder.rb index 02b237d0c5..b1768f857c 100644 --- a/lib/device_management/reports/get_compliance_policy_non_compliance_report/get_compliance_policy_non_compliance_report_request_builder.rb +++ b/lib/device_management/reports/get_compliance_policy_non_compliance_report/get_compliance_policy_non_compliance_report_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_compliance_policy_non_compliance_report_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetCompliancePolicyNonComplianceReportRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/reports/get_compliance_policy_non_compliance_summary_report/get_compliance_policy_non_compliance_summary_report_post_request_body.rb b/lib/device_management/reports/get_compliance_policy_non_compliance_summary_report/get_compliance_policy_non_compliance_summary_report_post_request_body.rb index a06b5e6086..e1913f9637 100644 --- a/lib/device_management/reports/get_compliance_policy_non_compliance_summary_report/get_compliance_policy_non_compliance_summary_report_post_request_body.rb +++ b/lib/device_management/reports/get_compliance_policy_non_compliance_summary_report/get_compliance_policy_non_compliance_summary_report_post_request_body.rb @@ -41,22 +41,22 @@ class GetCompliancePolicyNonComplianceSummaryReportPostRequestBody # The top property @top ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getCompliancePolicyNonComplianceSummaryReportPostRequestBody and sets the default values. + ## Instantiates a new GetCompliancePolicyNonComplianceSummaryReportPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/reports/get_compliance_policy_non_compliance_summary_report/get_compliance_policy_non_compliance_summary_report_request_builder.rb b/lib/device_management/reports/get_compliance_policy_non_compliance_summary_report/get_compliance_policy_non_compliance_summary_report_request_builder.rb index 1f7c3c125e..abbd2afec6 100644 --- a/lib/device_management/reports/get_compliance_policy_non_compliance_summary_report/get_compliance_policy_non_compliance_summary_report_request_builder.rb +++ b/lib/device_management/reports/get_compliance_policy_non_compliance_summary_report/get_compliance_policy_non_compliance_summary_report_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_compliance_policy_non_compliance_summary_report_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetCompliancePolicyNonComplianceSummaryReportRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/reports/get_compliance_setting_non_compliance_report/get_compliance_setting_non_compliance_report_post_request_body.rb b/lib/device_management/reports/get_compliance_setting_non_compliance_report/get_compliance_setting_non_compliance_report_post_request_body.rb index 32a9545978..b8d31be98d 100644 --- a/lib/device_management/reports/get_compliance_setting_non_compliance_report/get_compliance_setting_non_compliance_report_post_request_body.rb +++ b/lib/device_management/reports/get_compliance_setting_non_compliance_report/get_compliance_setting_non_compliance_report_post_request_body.rb @@ -41,22 +41,22 @@ class GetComplianceSettingNonComplianceReportPostRequestBody # The top property @top ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getComplianceSettingNonComplianceReportPostRequestBody and sets the default values. + ## Instantiates a new GetComplianceSettingNonComplianceReportPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/reports/get_compliance_setting_non_compliance_report/get_compliance_setting_non_compliance_report_request_builder.rb b/lib/device_management/reports/get_compliance_setting_non_compliance_report/get_compliance_setting_non_compliance_report_request_builder.rb index 7c783f19be..dc2a14c8c0 100644 --- a/lib/device_management/reports/get_compliance_setting_non_compliance_report/get_compliance_setting_non_compliance_report_request_builder.rb +++ b/lib/device_management/reports/get_compliance_setting_non_compliance_report/get_compliance_setting_non_compliance_report_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_compliance_setting_non_compliance_report_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetComplianceSettingNonComplianceReportRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/reports/get_configuration_policy_non_compliance_report/get_configuration_policy_non_compliance_report_post_request_body.rb b/lib/device_management/reports/get_configuration_policy_non_compliance_report/get_configuration_policy_non_compliance_report_post_request_body.rb index 7d59803224..6ad3796718 100644 --- a/lib/device_management/reports/get_configuration_policy_non_compliance_report/get_configuration_policy_non_compliance_report_post_request_body.rb +++ b/lib/device_management/reports/get_configuration_policy_non_compliance_report/get_configuration_policy_non_compliance_report_post_request_body.rb @@ -41,22 +41,22 @@ class GetConfigurationPolicyNonComplianceReportPostRequestBody # The top property @top ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getConfigurationPolicyNonComplianceReportPostRequestBody and sets the default values. + ## Instantiates a new GetConfigurationPolicyNonComplianceReportPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/reports/get_configuration_policy_non_compliance_report/get_configuration_policy_non_compliance_report_request_builder.rb b/lib/device_management/reports/get_configuration_policy_non_compliance_report/get_configuration_policy_non_compliance_report_request_builder.rb index 70aae68ac8..6c8c0166ac 100644 --- a/lib/device_management/reports/get_configuration_policy_non_compliance_report/get_configuration_policy_non_compliance_report_request_builder.rb +++ b/lib/device_management/reports/get_configuration_policy_non_compliance_report/get_configuration_policy_non_compliance_report_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_configuration_policy_non_compliance_report_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetConfigurationPolicyNonComplianceReportRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/reports/get_configuration_policy_non_compliance_summary_report/get_configuration_policy_non_compliance_summary_report_post_request_body.rb b/lib/device_management/reports/get_configuration_policy_non_compliance_summary_report/get_configuration_policy_non_compliance_summary_report_post_request_body.rb index 49eb04ad1f..bb0fdbd1e4 100644 --- a/lib/device_management/reports/get_configuration_policy_non_compliance_summary_report/get_configuration_policy_non_compliance_summary_report_post_request_body.rb +++ b/lib/device_management/reports/get_configuration_policy_non_compliance_summary_report/get_configuration_policy_non_compliance_summary_report_post_request_body.rb @@ -41,22 +41,22 @@ class GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody # The top property @top ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getConfigurationPolicyNonComplianceSummaryReportPostRequestBody and sets the default values. + ## Instantiates a new GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/reports/get_configuration_policy_non_compliance_summary_report/get_configuration_policy_non_compliance_summary_report_request_builder.rb b/lib/device_management/reports/get_configuration_policy_non_compliance_summary_report/get_configuration_policy_non_compliance_summary_report_request_builder.rb index 7eb2109589..4c31bbcfd3 100644 --- a/lib/device_management/reports/get_configuration_policy_non_compliance_summary_report/get_configuration_policy_non_compliance_summary_report_request_builder.rb +++ b/lib/device_management/reports/get_configuration_policy_non_compliance_summary_report/get_configuration_policy_non_compliance_summary_report_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_configuration_policy_non_compliance_summary_report_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetConfigurationPolicyNonComplianceSummaryReportRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/reports/get_configuration_setting_non_compliance_report/get_configuration_setting_non_compliance_report_post_request_body.rb b/lib/device_management/reports/get_configuration_setting_non_compliance_report/get_configuration_setting_non_compliance_report_post_request_body.rb index b2ee450d51..10abb34366 100644 --- a/lib/device_management/reports/get_configuration_setting_non_compliance_report/get_configuration_setting_non_compliance_report_post_request_body.rb +++ b/lib/device_management/reports/get_configuration_setting_non_compliance_report/get_configuration_setting_non_compliance_report_post_request_body.rb @@ -41,22 +41,22 @@ class GetConfigurationSettingNonComplianceReportPostRequestBody # The top property @top ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getConfigurationSettingNonComplianceReportPostRequestBody and sets the default values. + ## Instantiates a new GetConfigurationSettingNonComplianceReportPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/reports/get_configuration_setting_non_compliance_report/get_configuration_setting_non_compliance_report_request_builder.rb b/lib/device_management/reports/get_configuration_setting_non_compliance_report/get_configuration_setting_non_compliance_report_request_builder.rb index e5293cb3c5..bdfd514700 100644 --- a/lib/device_management/reports/get_configuration_setting_non_compliance_report/get_configuration_setting_non_compliance_report_request_builder.rb +++ b/lib/device_management/reports/get_configuration_setting_non_compliance_report/get_configuration_setting_non_compliance_report_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_configuration_setting_non_compliance_report_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetConfigurationSettingNonComplianceReportRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/reports/get_device_management_intent_per_setting_contributing_profiles/get_device_management_intent_per_setting_contributing_profiles_post_request_body.rb b/lib/device_management/reports/get_device_management_intent_per_setting_contributing_profiles/get_device_management_intent_per_setting_contributing_profiles_post_request_body.rb index 75e0eda8d2..799efc6f38 100644 --- a/lib/device_management/reports/get_device_management_intent_per_setting_contributing_profiles/get_device_management_intent_per_setting_contributing_profiles_post_request_body.rb +++ b/lib/device_management/reports/get_device_management_intent_per_setting_contributing_profiles/get_device_management_intent_per_setting_contributing_profiles_post_request_body.rb @@ -41,22 +41,22 @@ class GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody # The top property @top ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody and sets the default values. + ## Instantiates a new GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/reports/get_device_management_intent_per_setting_contributing_profiles/get_device_management_intent_per_setting_contributing_profiles_request_builder.rb b/lib/device_management/reports/get_device_management_intent_per_setting_contributing_profiles/get_device_management_intent_per_setting_contributing_profiles_request_builder.rb index 1864b2eaf3..0fdd696794 100644 --- a/lib/device_management/reports/get_device_management_intent_per_setting_contributing_profiles/get_device_management_intent_per_setting_contributing_profiles_request_builder.rb +++ b/lib/device_management/reports/get_device_management_intent_per_setting_contributing_profiles/get_device_management_intent_per_setting_contributing_profiles_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_device_management_intent_per_setting_contributing_profiles_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/reports/get_device_management_intent_settings_report/get_device_management_intent_settings_report_post_request_body.rb b/lib/device_management/reports/get_device_management_intent_settings_report/get_device_management_intent_settings_report_post_request_body.rb index fb7a6dbc07..49199a18da 100644 --- a/lib/device_management/reports/get_device_management_intent_settings_report/get_device_management_intent_settings_report_post_request_body.rb +++ b/lib/device_management/reports/get_device_management_intent_settings_report/get_device_management_intent_settings_report_post_request_body.rb @@ -41,22 +41,22 @@ class GetDeviceManagementIntentSettingsReportPostRequestBody # The top property @top ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getDeviceManagementIntentSettingsReportPostRequestBody and sets the default values. + ## Instantiates a new GetDeviceManagementIntentSettingsReportPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/reports/get_device_management_intent_settings_report/get_device_management_intent_settings_report_request_builder.rb b/lib/device_management/reports/get_device_management_intent_settings_report/get_device_management_intent_settings_report_request_builder.rb index 352cbf675d..a51d5b6d88 100644 --- a/lib/device_management/reports/get_device_management_intent_settings_report/get_device_management_intent_settings_report_request_builder.rb +++ b/lib/device_management/reports/get_device_management_intent_settings_report/get_device_management_intent_settings_report_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_device_management_intent_settings_report_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetDeviceManagementIntentSettingsReportRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/reports/get_device_non_compliance_report/get_device_non_compliance_report_post_request_body.rb b/lib/device_management/reports/get_device_non_compliance_report/get_device_non_compliance_report_post_request_body.rb index 9a3eaecb17..59cb4c0daa 100644 --- a/lib/device_management/reports/get_device_non_compliance_report/get_device_non_compliance_report_post_request_body.rb +++ b/lib/device_management/reports/get_device_non_compliance_report/get_device_non_compliance_report_post_request_body.rb @@ -41,22 +41,22 @@ class GetDeviceNonComplianceReportPostRequestBody # The top property @top ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getDeviceNonComplianceReportPostRequestBody and sets the default values. + ## Instantiates a new GetDeviceNonComplianceReportPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/reports/get_device_non_compliance_report/get_device_non_compliance_report_request_builder.rb b/lib/device_management/reports/get_device_non_compliance_report/get_device_non_compliance_report_request_builder.rb index cb121ebe70..4806b70e5f 100644 --- a/lib/device_management/reports/get_device_non_compliance_report/get_device_non_compliance_report_request_builder.rb +++ b/lib/device_management/reports/get_device_non_compliance_report/get_device_non_compliance_report_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_device_non_compliance_report_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetDeviceNonComplianceReportRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/reports/get_devices_without_compliance_policy_report/get_devices_without_compliance_policy_report_post_request_body.rb b/lib/device_management/reports/get_devices_without_compliance_policy_report/get_devices_without_compliance_policy_report_post_request_body.rb index 9f2ea66e79..f315c44bdc 100644 --- a/lib/device_management/reports/get_devices_without_compliance_policy_report/get_devices_without_compliance_policy_report_post_request_body.rb +++ b/lib/device_management/reports/get_devices_without_compliance_policy_report/get_devices_without_compliance_policy_report_post_request_body.rb @@ -41,22 +41,22 @@ class GetDevicesWithoutCompliancePolicyReportPostRequestBody # The top property @top ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getDevicesWithoutCompliancePolicyReportPostRequestBody and sets the default values. + ## Instantiates a new GetDevicesWithoutCompliancePolicyReportPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/reports/get_devices_without_compliance_policy_report/get_devices_without_compliance_policy_report_request_builder.rb b/lib/device_management/reports/get_devices_without_compliance_policy_report/get_devices_without_compliance_policy_report_request_builder.rb index 65ad0de5ae..dd21dd4e9c 100644 --- a/lib/device_management/reports/get_devices_without_compliance_policy_report/get_devices_without_compliance_policy_report_request_builder.rb +++ b/lib/device_management/reports/get_devices_without_compliance_policy_report/get_devices_without_compliance_policy_report_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_devices_without_compliance_policy_report_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetDevicesWithoutCompliancePolicyReportRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb b/lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb index 8fc56f1187..0017b92fe3 100644 --- a/lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb +++ b/lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb @@ -38,22 +38,22 @@ class GetHistoricalReportPostRequestBody # The top property @top ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getHistoricalReportPostRequestBody and sets the default values. + ## Instantiates a new GetHistoricalReportPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/reports/get_historical_report/get_historical_report_request_builder.rb b/lib/device_management/reports/get_historical_report/get_historical_report_request_builder.rb index 402e31f03f..6b6df87694 100644 --- a/lib/device_management/reports/get_historical_report/get_historical_report_request_builder.rb +++ b/lib/device_management/reports/get_historical_report/get_historical_report_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_historical_report_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetHistoricalReportRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/reports/get_noncompliant_devices_and_settings_report/get_noncompliant_devices_and_settings_report_post_request_body.rb b/lib/device_management/reports/get_noncompliant_devices_and_settings_report/get_noncompliant_devices_and_settings_report_post_request_body.rb index 2c9ac4e494..908d55eff4 100644 --- a/lib/device_management/reports/get_noncompliant_devices_and_settings_report/get_noncompliant_devices_and_settings_report_post_request_body.rb +++ b/lib/device_management/reports/get_noncompliant_devices_and_settings_report/get_noncompliant_devices_and_settings_report_post_request_body.rb @@ -41,22 +41,22 @@ class GetNoncompliantDevicesAndSettingsReportPostRequestBody # The top property @top ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getNoncompliantDevicesAndSettingsReportPostRequestBody and sets the default values. + ## Instantiates a new GetNoncompliantDevicesAndSettingsReportPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/reports/get_noncompliant_devices_and_settings_report/get_noncompliant_devices_and_settings_report_request_builder.rb b/lib/device_management/reports/get_noncompliant_devices_and_settings_report/get_noncompliant_devices_and_settings_report_request_builder.rb index 0ed90ad7d0..799dda122d 100644 --- a/lib/device_management/reports/get_noncompliant_devices_and_settings_report/get_noncompliant_devices_and_settings_report_request_builder.rb +++ b/lib/device_management/reports/get_noncompliant_devices_and_settings_report/get_noncompliant_devices_and_settings_report_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_noncompliant_devices_and_settings_report_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetNoncompliantDevicesAndSettingsReportRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/reports/get_policy_non_compliance_metadata/get_policy_non_compliance_metadata_post_request_body.rb b/lib/device_management/reports/get_policy_non_compliance_metadata/get_policy_non_compliance_metadata_post_request_body.rb index b28adc51cd..4115e8bb8f 100644 --- a/lib/device_management/reports/get_policy_non_compliance_metadata/get_policy_non_compliance_metadata_post_request_body.rb +++ b/lib/device_management/reports/get_policy_non_compliance_metadata/get_policy_non_compliance_metadata_post_request_body.rb @@ -41,22 +41,22 @@ class GetPolicyNonComplianceMetadataPostRequestBody # The top property @top ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getPolicyNonComplianceMetadataPostRequestBody and sets the default values. + ## Instantiates a new GetPolicyNonComplianceMetadataPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/reports/get_policy_non_compliance_metadata/get_policy_non_compliance_metadata_request_builder.rb b/lib/device_management/reports/get_policy_non_compliance_metadata/get_policy_non_compliance_metadata_request_builder.rb index fd53463cae..b8483b5f85 100644 --- a/lib/device_management/reports/get_policy_non_compliance_metadata/get_policy_non_compliance_metadata_request_builder.rb +++ b/lib/device_management/reports/get_policy_non_compliance_metadata/get_policy_non_compliance_metadata_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_policy_non_compliance_metadata_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetPolicyNonComplianceMetadataRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/reports/get_policy_non_compliance_report/get_policy_non_compliance_report_post_request_body.rb b/lib/device_management/reports/get_policy_non_compliance_report/get_policy_non_compliance_report_post_request_body.rb index b93bd52ed0..d5aa63ef27 100644 --- a/lib/device_management/reports/get_policy_non_compliance_report/get_policy_non_compliance_report_post_request_body.rb +++ b/lib/device_management/reports/get_policy_non_compliance_report/get_policy_non_compliance_report_post_request_body.rb @@ -41,22 +41,22 @@ class GetPolicyNonComplianceReportPostRequestBody # The top property @top ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getPolicyNonComplianceReportPostRequestBody and sets the default values. + ## Instantiates a new GetPolicyNonComplianceReportPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/reports/get_policy_non_compliance_report/get_policy_non_compliance_report_request_builder.rb b/lib/device_management/reports/get_policy_non_compliance_report/get_policy_non_compliance_report_request_builder.rb index b69754a88c..19e9c4ece5 100644 --- a/lib/device_management/reports/get_policy_non_compliance_report/get_policy_non_compliance_report_request_builder.rb +++ b/lib/device_management/reports/get_policy_non_compliance_report/get_policy_non_compliance_report_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_policy_non_compliance_report_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetPolicyNonComplianceReportRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/reports/get_policy_non_compliance_summary_report/get_policy_non_compliance_summary_report_post_request_body.rb b/lib/device_management/reports/get_policy_non_compliance_summary_report/get_policy_non_compliance_summary_report_post_request_body.rb index bd72969e77..377a4d5a83 100644 --- a/lib/device_management/reports/get_policy_non_compliance_summary_report/get_policy_non_compliance_summary_report_post_request_body.rb +++ b/lib/device_management/reports/get_policy_non_compliance_summary_report/get_policy_non_compliance_summary_report_post_request_body.rb @@ -41,22 +41,22 @@ class GetPolicyNonComplianceSummaryReportPostRequestBody # The top property @top ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getPolicyNonComplianceSummaryReportPostRequestBody and sets the default values. + ## Instantiates a new GetPolicyNonComplianceSummaryReportPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/reports/get_policy_non_compliance_summary_report/get_policy_non_compliance_summary_report_request_builder.rb b/lib/device_management/reports/get_policy_non_compliance_summary_report/get_policy_non_compliance_summary_report_request_builder.rb index 11eac70b9f..1214848ad7 100644 --- a/lib/device_management/reports/get_policy_non_compliance_summary_report/get_policy_non_compliance_summary_report_request_builder.rb +++ b/lib/device_management/reports/get_policy_non_compliance_summary_report/get_policy_non_compliance_summary_report_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_policy_non_compliance_summary_report_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetPolicyNonComplianceSummaryReportRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/reports/get_report_filters/get_report_filters_post_request_body.rb b/lib/device_management/reports/get_report_filters/get_report_filters_post_request_body.rb index 5a76cfe293..da1e5859d0 100644 --- a/lib/device_management/reports/get_report_filters/get_report_filters_post_request_body.rb +++ b/lib/device_management/reports/get_report_filters/get_report_filters_post_request_body.rb @@ -41,22 +41,22 @@ class GetReportFiltersPostRequestBody # The top property @top ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getReportFiltersPostRequestBody and sets the default values. + ## Instantiates a new GetReportFiltersPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/reports/get_report_filters/get_report_filters_request_builder.rb b/lib/device_management/reports/get_report_filters/get_report_filters_request_builder.rb index 3857be9edc..256adc8feb 100644 --- a/lib/device_management/reports/get_report_filters/get_report_filters_request_builder.rb +++ b/lib/device_management/reports/get_report_filters/get_report_filters_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_report_filters_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetReportFiltersRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb b/lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb index 7c24ecbbe2..77a76dc302 100644 --- a/lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb +++ b/lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb @@ -41,22 +41,22 @@ class GetSettingNonComplianceReportPostRequestBody # The top property @top ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getSettingNonComplianceReportPostRequestBody and sets the default values. + ## Instantiates a new GetSettingNonComplianceReportPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_request_builder.rb b/lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_request_builder.rb index 0f87a18913..48fc339dde 100644 --- a/lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_request_builder.rb +++ b/lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_setting_non_compliance_report_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetSettingNonComplianceReportRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/reports/reports_request_builder.rb b/lib/device_management/reports/reports_request_builder.rb index 90fc98985e..1cd2e3c63a 100644 --- a/lib/device_management/reports/reports_request_builder.rb +++ b/lib/device_management/reports/reports_request_builder.rb @@ -23,6 +23,7 @@ require_relative './get_report_filters/get_report_filters_request_builder' require_relative './get_setting_non_compliance_report/get_setting_non_compliance_report_request_builder' require_relative './reports' +require_relative './retrieve_device_app_installation_status_report/retrieve_device_app_installation_status_report_request_builder' module MicrosoftGraph module DeviceManagement @@ -127,13 +128,18 @@ def get_setting_non_compliance_report() return MicrosoftGraph::DeviceManagement::Reports::GetSettingNonComplianceReport::GetSettingNonComplianceReportRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the retrieveDeviceAppInstallationStatusReport method. + def retrieve_device_app_installation_status_report() + return MicrosoftGraph::DeviceManagement::Reports::RetrieveDeviceAppInstallationStatusReport::RetrieveDeviceAppInstallationStatusReportRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Instantiates a new ReportsRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/reports{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/reports{?%24expand,%24select}") end ## ## Delete navigation property reports for deviceManagement @@ -145,8 +151,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -159,8 +164,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceManagementReports.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -175,8 +179,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceManagementReports.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -186,13 +189,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -202,15 +206,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -222,17 +226,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reports_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReportsRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceManagementReports object. diff --git a/lib/device_management/reports/retrieve_device_app_installation_status_report/retrieve_device_app_installation_status_report.rb b/lib/device_management/reports/retrieve_device_app_installation_status_report/retrieve_device_app_installation_status_report.rb new file mode 100644 index 0000000000..b9f2dcd98a --- /dev/null +++ b/lib/device_management/reports/retrieve_device_app_installation_status_report/retrieve_device_app_installation_status_report.rb @@ -0,0 +1 @@ +require_relative 'retrieve_device_app_installation_status_report_post_request_body' diff --git a/lib/device_management/reports/retrieve_device_app_installation_status_report/retrieve_device_app_installation_status_report_post_request_body.rb b/lib/device_management/reports/retrieve_device_app_installation_status_report/retrieve_device_app_installation_status_report_post_request_body.rb new file mode 100644 index 0000000000..eb79b2ec1c --- /dev/null +++ b/lib/device_management/reports/retrieve_device_app_installation_status_report/retrieve_device_app_installation_status_report_post_request_body.rb @@ -0,0 +1,248 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../device_management' +require_relative '../reports' +require_relative './retrieve_device_app_installation_status_report' + +module MicrosoftGraph + module DeviceManagement + module Reports + module RetrieveDeviceAppInstallationStatusReport + class RetrieveDeviceAppInstallationStatusReportPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The filter property + @filter + ## + # The groupBy property + @group_by + ## + # The name property + @name + ## + # The orderBy property + @order_by + ## + # The search property + @search + ## + # The select property + @select + ## + # The sessionId property + @session_id + ## + # The skip property + @skip + ## + # The top property + @top + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new RetrieveDeviceAppInstallationStatusReportPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a retrieve_device_app_installation_status_report_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return RetrieveDeviceAppInstallationStatusReportPostRequestBody.new + end + ## + ## Gets the filter property value. The filter property + ## @return a string + ## + def filter + return @filter + end + ## + ## Sets the filter property value. The filter property + ## @param value Value to set for the filter property. + ## @return a void + ## + def filter=(value) + @filter = value + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "filter" => lambda {|n| @filter = n.get_string_value() }, + "groupBy" => lambda {|n| @group_by = n.get_collection_of_primitive_values(String) }, + "name" => lambda {|n| @name = n.get_string_value() }, + "orderBy" => lambda {|n| @order_by = n.get_collection_of_primitive_values(String) }, + "search" => lambda {|n| @search = n.get_string_value() }, + "select" => lambda {|n| @select = n.get_collection_of_primitive_values(String) }, + "sessionId" => lambda {|n| @session_id = n.get_string_value() }, + "skip" => lambda {|n| @skip = n.get_number_value() }, + "top" => lambda {|n| @top = n.get_number_value() }, + } + end + ## + ## Gets the groupBy property value. The groupBy property + ## @return a string + ## + def group_by + return @group_by + end + ## + ## Sets the groupBy property value. The groupBy property + ## @param value Value to set for the groupBy property. + ## @return a void + ## + def group_by=(value) + @group_by = value + end + ## + ## Gets the name property value. The name property + ## @return a string + ## + def name + return @name + end + ## + ## Sets the name property value. The name property + ## @param value Value to set for the name property. + ## @return a void + ## + def name=(value) + @name = value + end + ## + ## Gets the orderBy property value. The orderBy property + ## @return a string + ## + def order_by + return @order_by + end + ## + ## Sets the orderBy property value. The orderBy property + ## @param value Value to set for the orderBy property. + ## @return a void + ## + def order_by=(value) + @order_by = value + end + ## + ## Gets the search property value. The search property + ## @return a string + ## + def search + return @search + end + ## + ## Sets the search property value. The search property + ## @param value Value to set for the search property. + ## @return a void + ## + def search=(value) + @search = value + end + ## + ## Gets the select property value. The select property + ## @return a string + ## + def select + return @select + end + ## + ## Sets the select property value. The select property + ## @param value Value to set for the select property. + ## @return a void + ## + def select=(value) + @select = value + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("filter", @filter) + writer.write_collection_of_primitive_values("groupBy", @group_by) + writer.write_string_value("name", @name) + writer.write_collection_of_primitive_values("orderBy", @order_by) + writer.write_string_value("search", @search) + writer.write_collection_of_primitive_values("select", @select) + writer.write_string_value("sessionId", @session_id) + writer.write_number_value("skip", @skip) + writer.write_number_value("top", @top) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the sessionId property value. The sessionId property + ## @return a string + ## + def session_id + return @session_id + end + ## + ## Sets the sessionId property value. The sessionId property + ## @param value Value to set for the sessionId property. + ## @return a void + ## + def session_id=(value) + @session_id = value + end + ## + ## Gets the skip property value. The skip property + ## @return a integer + ## + def skip + return @skip + end + ## + ## Sets the skip property value. The skip property + ## @param value Value to set for the skip property. + ## @return a void + ## + def skip=(value) + @skip = value + end + ## + ## Gets the top property value. The top property + ## @return a integer + ## + def top + return @top + end + ## + ## Sets the top property value. The top property + ## @param value Value to set for the top property. + ## @return a void + ## + def top=(value) + @top = value + end + end + end + end + end +end diff --git a/lib/device_management/reports/retrieve_device_app_installation_status_report/retrieve_device_app_installation_status_report_request_builder.rb b/lib/device_management/reports/retrieve_device_app_installation_status_report/retrieve_device_app_installation_status_report_request_builder.rb new file mode 100644 index 0000000000..cdd038c06a --- /dev/null +++ b/lib/device_management/reports/retrieve_device_app_installation_status_report/retrieve_device_app_installation_status_report_request_builder.rb @@ -0,0 +1,73 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../device_management' +require_relative '../reports' +require_relative './retrieve_device_app_installation_status_report' + +module MicrosoftGraph + module DeviceManagement + module Reports + module RetrieveDeviceAppInstallationStatusReport + ## + # Provides operations to call the retrieveDeviceAppInstallationStatusReport method. + class RetrieveDeviceAppInstallationStatusReportRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RetrieveDeviceAppInstallationStatusReportRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/reports/retrieveDeviceAppInstallationStatusReport") + end + ## + ## Invoke action retrieveDeviceAppInstallationStatusReport + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of binary + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, Binary, error_mapping) + end + ## + ## Invoke action retrieveDeviceAppInstallationStatusReport + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a retrieve_device_app_installation_status_report_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RetrieveDeviceAppInstallationStatusReportRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end +end diff --git a/lib/device_management/resource_operations/count/count_request_builder.rb b/lib/device_management/resource_operations/count/count_request_builder.rb index 8961cbd58a..8f561864ed 100644 --- a/lib/device_management/resource_operations/count/count_request_builder.rb +++ b/lib/device_management/resource_operations/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/resourceOperations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/resourceOperations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/resource_operations/item/resource_operation_item_request_builder.rb b/lib/device_management/resource_operations/item/resource_operation_item_request_builder.rb index 6374856dce..26d64c6269 100644 --- a/lib/device_management/resource_operations/item/resource_operation_item_request_builder.rb +++ b/lib/device_management/resource_operations/item/resource_operation_item_request_builder.rb @@ -21,7 +21,7 @@ class ResourceOperationItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/resourceOperations/{resourceOperation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/resourceOperations/{resourceOperation%2Did}{?%24expand,%24select}") end ## ## Deletes a resourceOperation. @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ResourceOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ResourceOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resource_operation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourceOperationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the resourceOperation object. diff --git a/lib/device_management/resource_operations/resource_operations_request_builder.rb b/lib/device_management/resource_operations/resource_operations_request_builder.rb index 42013fb058..7fe43c3afb 100644 --- a/lib/device_management/resource_operations/resource_operations_request_builder.rb +++ b/lib/device_management/resource_operations/resource_operations_request_builder.rb @@ -38,7 +38,7 @@ def by_resource_operation_id(resource_operation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/resourceOperations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/resourceOperations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the resourceOperation objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ResourceOperationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ResourceOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resource_operations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourceOperationsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the resourceOperation objects. diff --git a/lib/device_management/role_assignments/count/count_request_builder.rb b/lib/device_management/role_assignments/count/count_request_builder.rb index 83e14c3dcc..0a499b51f5 100644 --- a/lib/device_management/role_assignments/count/count_request_builder.rb +++ b/lib/device_management/role_assignments/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/roleAssignments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/roleAssignments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/role_assignments/item/device_and_app_management_role_assignment_item_request_builder.rb b/lib/device_management/role_assignments/item/device_and_app_management_role_assignment_item_request_builder.rb index 9ddc4765fd..4611ecdf12 100644 --- a/lib/device_management/role_assignments/item/device_and_app_management_role_assignment_item_request_builder.rb +++ b/lib/device_management/role_assignments/item/device_and_app_management_role_assignment_item_request_builder.rb @@ -27,7 +27,7 @@ def role_definition() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/roleAssignments/{deviceAndAppManagementRoleAssignment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/roleAssignments/{deviceAndAppManagementRoleAssignment%2Did}{?%24expand,%24select}") end ## ## Deletes a deviceAndAppManagementRoleAssignment. @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceAndAppManagementRoleAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceAndAppManagementRoleAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,13 +77,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,15 +94,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,17 +114,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_and_app_management_role_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceAndAppManagementRoleAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the deviceAndAppManagementRoleAssignment object. diff --git a/lib/device_management/role_assignments/item/role_definition/role_definition_request_builder.rb b/lib/device_management/role_assignments/item/role_definition/role_definition_request_builder.rb index 032c186827..ccd992b57a 100644 --- a/lib/device_management/role_assignments/item/role_definition/role_definition_request_builder.rb +++ b/lib/device_management/role_assignments/item/role_definition/role_definition_request_builder.rb @@ -23,7 +23,7 @@ class RoleDefinitionRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/roleAssignments/{deviceAndAppManagementRoleAssignment%2Did}/roleDefinition{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/roleAssignments/{deviceAndAppManagementRoleAssignment%2Did}/roleDefinition{?%24expand,%24select}") end ## ## Role definition this assignment is part of. @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RoleDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,17 +45,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a role_definition_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RoleDefinitionRequestBuilder.new(raw_url, @request_adapter) + end ## # Role definition this assignment is part of. diff --git a/lib/device_management/role_assignments/role_assignments_request_builder.rb b/lib/device_management/role_assignments/role_assignments_request_builder.rb index 60ae6399b4..2aa6c81eea 100644 --- a/lib/device_management/role_assignments/role_assignments_request_builder.rb +++ b/lib/device_management/role_assignments/role_assignments_request_builder.rb @@ -38,7 +38,7 @@ def by_device_and_app_management_role_assignment_id(device_and_app_management_ro ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/roleAssignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/roleAssignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the deviceAndAppManagementRoleAssignment objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceAndAppManagementRoleAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceAndAppManagementRoleAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a role_assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RoleAssignmentsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the deviceAndAppManagementRoleAssignment objects. diff --git a/lib/device_management/role_definitions/count/count_request_builder.rb b/lib/device_management/role_definitions/count/count_request_builder.rb index 9017f5c5a4..1a1fdff6bf 100644 --- a/lib/device_management/role_definitions/count/count_request_builder.rb +++ b/lib/device_management/role_definitions/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/roleDefinitions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/roleDefinitions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/role_definitions/item/role_assignments/count/count_request_builder.rb b/lib/device_management/role_definitions/item/role_assignments/count/count_request_builder.rb index 3765b976c4..ebbe107bb5 100644 --- a/lib/device_management/role_definitions/item/role_assignments/count/count_request_builder.rb +++ b/lib/device_management/role_definitions/item/role_assignments/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/roleDefinitions/{roleDefinition%2Did}/roleAssignments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/roleDefinitions/{roleDefinition%2Did}/roleAssignments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/role_definitions/item/role_assignments/item/role_assignment_item_request_builder.rb b/lib/device_management/role_definitions/item/role_assignments/item/role_assignment_item_request_builder.rb index 091c78630d..95b8d2e0f2 100644 --- a/lib/device_management/role_definitions/item/role_assignments/item/role_assignment_item_request_builder.rb +++ b/lib/device_management/role_definitions/item/role_assignments/item/role_assignment_item_request_builder.rb @@ -31,7 +31,7 @@ def role_definition() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/roleDefinitions/{roleDefinition%2Did}/roleAssignments/{roleAssignment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/roleDefinitions/{roleDefinition%2Did}/roleAssignments/{roleAssignment%2Did}{?%24expand,%24select}") end ## ## Deletes a roleAssignment. @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RoleAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RoleAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,15 +98,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a role_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RoleAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the roleAssignment object. diff --git a/lib/device_management/role_definitions/item/role_assignments/item/role_definition/role_definition_request_builder.rb b/lib/device_management/role_definitions/item/role_assignments/item/role_definition/role_definition_request_builder.rb index 5aff6dc40a..aae58d72e6 100644 --- a/lib/device_management/role_definitions/item/role_assignments/item/role_definition/role_definition_request_builder.rb +++ b/lib/device_management/role_definitions/item/role_assignments/item/role_definition/role_definition_request_builder.rb @@ -27,7 +27,7 @@ class RoleDefinitionRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/roleDefinitions/{roleDefinition%2Did}/roleAssignments/{roleAssignment%2Did}/roleDefinition{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/roleDefinitions/{roleDefinition%2Did}/roleAssignments/{roleAssignment%2Did}/roleDefinition{?%24expand,%24select}") end ## ## Role definition this assignment is part of. @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RoleDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a role_definition_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RoleDefinitionRequestBuilder.new(raw_url, @request_adapter) + end ## # Role definition this assignment is part of. diff --git a/lib/device_management/role_definitions/item/role_assignments/role_assignments_request_builder.rb b/lib/device_management/role_definitions/item/role_assignments/role_assignments_request_builder.rb index eade0aef66..3289dd0ca9 100644 --- a/lib/device_management/role_definitions/item/role_assignments/role_assignments_request_builder.rb +++ b/lib/device_management/role_definitions/item/role_assignments/role_assignments_request_builder.rb @@ -42,7 +42,7 @@ def by_role_assignment_id(role_assignment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/roleDefinitions/{roleDefinition%2Did}/roleAssignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/roleDefinitions/{roleDefinition%2Did}/roleAssignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the roleAssignment objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RoleAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RoleAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a role_assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RoleAssignmentsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the roleAssignment objects. diff --git a/lib/device_management/role_definitions/item/role_definition_item_request_builder.rb b/lib/device_management/role_definitions/item/role_definition_item_request_builder.rb index 94a8b68aa9..2b4cc6d149 100644 --- a/lib/device_management/role_definitions/item/role_definition_item_request_builder.rb +++ b/lib/device_management/role_definitions/item/role_definition_item_request_builder.rb @@ -27,7 +27,7 @@ def role_assignments() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/roleDefinitions/{roleDefinition%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/roleDefinitions/{roleDefinition%2Did}{?%24expand,%24select}") end ## ## Deletes a deviceAndAppManagementRoleDefinition. @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,12 +52,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RoleDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of a roleDefinition object. + ## Update the properties of a deviceAndAppManagementRoleDefinition object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of role_definition @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RoleDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,13 +77,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,19 +94,19 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of a roleDefinition object. + ## Update the properties of a deviceAndAppManagementRoleDefinition object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -116,17 +114,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a role_definition_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RoleDefinitionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the roleDefinition object. diff --git a/lib/device_management/role_definitions/role_definitions_request_builder.rb b/lib/device_management/role_definitions/role_definitions_request_builder.rb index 209de47b40..d33ac08768 100644 --- a/lib/device_management/role_definitions/role_definitions_request_builder.rb +++ b/lib/device_management/role_definitions/role_definitions_request_builder.rb @@ -38,10 +38,10 @@ def by_role_definition_id(role_definition_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/roleDefinitions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/roleDefinitions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List properties and relationships of the deviceAndAppManagementRoleDefinition objects. + ## List properties and relationships of the roleDefinition objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of role_definition_collection_response ## @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RoleDefinitionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,26 +65,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RoleDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List properties and relationships of the deviceAndAppManagementRoleDefinition objects. + ## List properties and relationships of the roleDefinition objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,20 +95,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a role_definitions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RoleDefinitionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # List properties and relationships of the deviceAndAppManagementRoleDefinition objects. + # List properties and relationships of the roleDefinition objects. class RoleDefinitionsRequestBuilderGetQueryParameters ## diff --git a/lib/device_management/software_update_status_summary/software_update_status_summary_request_builder.rb b/lib/device_management/software_update_status_summary/software_update_status_summary_request_builder.rb index 3b5f089289..982f406b79 100644 --- a/lib/device_management/software_update_status_summary/software_update_status_summary_request_builder.rb +++ b/lib/device_management/software_update_status_summary/software_update_status_summary_request_builder.rb @@ -19,7 +19,7 @@ class SoftwareUpdateStatusSummaryRequestBuilder < MicrosoftKiotaAbstractions::Ba ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/softwareUpdateStatusSummary{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/softwareUpdateStatusSummary{?%24expand,%24select}") end ## ## Read properties and relationships of the softwareUpdateStatusSummary object. @@ -31,8 +31,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SoftwareUpdateStatusSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -42,17 +41,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a software_update_status_summary_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SoftwareUpdateStatusSummaryRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the softwareUpdateStatusSummary object. diff --git a/lib/device_management/telecom_expense_management_partners/count/count_request_builder.rb b/lib/device_management/telecom_expense_management_partners/count/count_request_builder.rb index fe50012c63..c389f7a814 100644 --- a/lib/device_management/telecom_expense_management_partners/count/count_request_builder.rb +++ b/lib/device_management/telecom_expense_management_partners/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/telecomExpenseManagementPartners/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/telecomExpenseManagementPartners/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/telecom_expense_management_partners/item/telecom_expense_management_partner_item_request_builder.rb b/lib/device_management/telecom_expense_management_partners/item/telecom_expense_management_partner_item_request_builder.rb index af82db44d8..023f9fca14 100644 --- a/lib/device_management/telecom_expense_management_partners/item/telecom_expense_management_partner_item_request_builder.rb +++ b/lib/device_management/telecom_expense_management_partners/item/telecom_expense_management_partner_item_request_builder.rb @@ -21,7 +21,7 @@ class TelecomExpenseManagementPartnerItemRequestBuilder < MicrosoftKiotaAbstract ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/telecomExpenseManagementPartners/{telecomExpenseManagementPartner%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/telecomExpenseManagementPartners/{telecomExpenseManagementPartner%2Did}{?%24expand,%24select}") end ## ## Deletes a telecomExpenseManagementPartner. @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TelecomExpenseManagementPartner.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TelecomExpenseManagementPartner.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a telecom_expense_management_partner_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TelecomExpenseManagementPartnerItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the telecomExpenseManagementPartner object. diff --git a/lib/device_management/telecom_expense_management_partners/telecom_expense_management_partners_request_builder.rb b/lib/device_management/telecom_expense_management_partners/telecom_expense_management_partners_request_builder.rb index f0d96b0f4d..e76b645880 100644 --- a/lib/device_management/telecom_expense_management_partners/telecom_expense_management_partners_request_builder.rb +++ b/lib/device_management/telecom_expense_management_partners/telecom_expense_management_partners_request_builder.rb @@ -38,7 +38,7 @@ def by_telecom_expense_management_partner_id(telecom_expense_management_partner_ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/telecomExpenseManagementPartners{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/telecomExpenseManagementPartners{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the telecomExpenseManagementPartner objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TelecomExpenseManagementPartnerCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TelecomExpenseManagementPartner.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a telecom_expense_management_partners_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TelecomExpenseManagementPartnersRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the telecomExpenseManagementPartner objects. diff --git a/lib/device_management/terms_and_conditions/count/count_request_builder.rb b/lib/device_management/terms_and_conditions/count/count_request_builder.rb index 02c4d3013a..b6d4e35306 100644 --- a/lib/device_management/terms_and_conditions/count/count_request_builder.rb +++ b/lib/device_management/terms_and_conditions/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/termsAndConditions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/termsAndConditions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/terms_and_conditions/item/acceptance_statuses/acceptance_statuses_request_builder.rb b/lib/device_management/terms_and_conditions/item/acceptance_statuses/acceptance_statuses_request_builder.rb index 3f9cb4cb53..179b4332a3 100644 --- a/lib/device_management/terms_and_conditions/item/acceptance_statuses/acceptance_statuses_request_builder.rb +++ b/lib/device_management/terms_and_conditions/item/acceptance_statuses/acceptance_statuses_request_builder.rb @@ -42,7 +42,7 @@ def by_terms_and_conditions_acceptance_status_id(terms_and_conditions_acceptance ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/acceptanceStatuses{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/acceptanceStatuses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the termsAndConditionsAcceptanceStatus objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermsAndConditionsAcceptanceStatusCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermsAndConditionsAcceptanceStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a acceptance_statuses_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AcceptanceStatusesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the termsAndConditionsAcceptanceStatus objects. diff --git a/lib/device_management/terms_and_conditions/item/acceptance_statuses/count/count_request_builder.rb b/lib/device_management/terms_and_conditions/item/acceptance_statuses/count/count_request_builder.rb index d4344db068..54c9f49c60 100644 --- a/lib/device_management/terms_and_conditions/item/acceptance_statuses/count/count_request_builder.rb +++ b/lib/device_management/terms_and_conditions/item/acceptance_statuses/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/acceptanceStatuses/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/acceptanceStatuses/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/terms_and_conditions/item/acceptance_statuses/item/terms_and_conditions/terms_and_conditions_request_builder.rb b/lib/device_management/terms_and_conditions/item/acceptance_statuses/item/terms_and_conditions/terms_and_conditions_request_builder.rb index 2bc3765659..7b7af19a34 100644 --- a/lib/device_management/terms_and_conditions/item/acceptance_statuses/item/terms_and_conditions/terms_and_conditions_request_builder.rb +++ b/lib/device_management/terms_and_conditions/item/acceptance_statuses/item/terms_and_conditions/terms_and_conditions_request_builder.rb @@ -27,7 +27,7 @@ class TermsAndConditionsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/acceptanceStatuses/{termsAndConditionsAcceptanceStatus%2Did}/termsAndConditions{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/acceptanceStatuses/{termsAndConditionsAcceptanceStatus%2Did}/termsAndConditions{?%24expand,%24select}") end ## ## Navigation link to the terms and conditions that are assigned. @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermsAndConditions.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a terms_and_conditions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermsAndConditionsRequestBuilder.new(raw_url, @request_adapter) + end ## # Navigation link to the terms and conditions that are assigned. diff --git a/lib/device_management/terms_and_conditions/item/acceptance_statuses/item/terms_and_conditions_acceptance_status_item_request_builder.rb b/lib/device_management/terms_and_conditions/item/acceptance_statuses/item/terms_and_conditions_acceptance_status_item_request_builder.rb index eb7f3fe752..e89c010a8f 100644 --- a/lib/device_management/terms_and_conditions/item/acceptance_statuses/item/terms_and_conditions_acceptance_status_item_request_builder.rb +++ b/lib/device_management/terms_and_conditions/item/acceptance_statuses/item/terms_and_conditions_acceptance_status_item_request_builder.rb @@ -31,7 +31,7 @@ def terms_and_conditions() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/acceptanceStatuses/{termsAndConditionsAcceptanceStatus%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/acceptanceStatuses/{termsAndConditionsAcceptanceStatus%2Did}{?%24expand,%24select}") end ## ## Deletes a termsAndConditionsAcceptanceStatus. @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermsAndConditionsAcceptanceStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermsAndConditionsAcceptanceStatus.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,15 +98,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a terms_and_conditions_acceptance_status_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermsAndConditionsAcceptanceStatusItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the termsAndConditionsAcceptanceStatus object. diff --git a/lib/device_management/terms_and_conditions/item/assignments/assignments_request_builder.rb b/lib/device_management/terms_and_conditions/item/assignments/assignments_request_builder.rb index fe9625578a..bd3a3bb87f 100644 --- a/lib/device_management/terms_and_conditions/item/assignments/assignments_request_builder.rb +++ b/lib/device_management/terms_and_conditions/item/assignments/assignments_request_builder.rb @@ -42,7 +42,7 @@ def by_terms_and_conditions_assignment_id(terms_and_conditions_assignment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the termsAndConditionsAssignment objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermsAndConditionsAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermsAndConditionsAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the termsAndConditionsAssignment objects. diff --git a/lib/device_management/terms_and_conditions/item/assignments/count/count_request_builder.rb b/lib/device_management/terms_and_conditions/item/assignments/count/count_request_builder.rb index 05bcfa963e..a5366f26f3 100644 --- a/lib/device_management/terms_and_conditions/item/assignments/count/count_request_builder.rb +++ b/lib/device_management/terms_and_conditions/item/assignments/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/assignments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/assignments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/terms_and_conditions/item/assignments/item/terms_and_conditions_assignment_item_request_builder.rb b/lib/device_management/terms_and_conditions/item/assignments/item/terms_and_conditions_assignment_item_request_builder.rb index 7c8c8a63b1..70b110c1f6 100644 --- a/lib/device_management/terms_and_conditions/item/assignments/item/terms_and_conditions_assignment_item_request_builder.rb +++ b/lib/device_management/terms_and_conditions/item/assignments/item/terms_and_conditions_assignment_item_request_builder.rb @@ -25,7 +25,7 @@ class TermsAndConditionsAssignmentItemRequestBuilder < MicrosoftKiotaAbstraction ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/assignments/{termsAndConditionsAssignment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/assignments/{termsAndConditionsAssignment%2Did}{?%24expand,%24select}") end ## ## Deletes a termsAndConditionsAssignment. @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermsAndConditionsAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermsAndConditionsAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a terms_and_conditions_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermsAndConditionsAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the termsAndConditionsAssignment object. diff --git a/lib/device_management/terms_and_conditions/item/terms_and_conditions_item_request_builder.rb b/lib/device_management/terms_and_conditions/item/terms_and_conditions_item_request_builder.rb index 36d873c900..3128bba959 100644 --- a/lib/device_management/terms_and_conditions/item/terms_and_conditions_item_request_builder.rb +++ b/lib/device_management/terms_and_conditions/item/terms_and_conditions_item_request_builder.rb @@ -33,7 +33,7 @@ def assignments() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}{?%24expand,%24select}") end ## ## Deletes a termsAndConditions. @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermsAndConditions.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermsAndConditions.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,13 +83,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -102,15 +100,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,17 +120,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a terms_and_conditions_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermsAndConditionsItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the termsAndConditions object. diff --git a/lib/device_management/terms_and_conditions/terms_and_conditions_request_builder.rb b/lib/device_management/terms_and_conditions/terms_and_conditions_request_builder.rb index 9da18cc6fc..29a04c9f91 100644 --- a/lib/device_management/terms_and_conditions/terms_and_conditions_request_builder.rb +++ b/lib/device_management/terms_and_conditions/terms_and_conditions_request_builder.rb @@ -38,7 +38,7 @@ def by_terms_and_conditions_id(terms_and_conditions_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/termsAndConditions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/termsAndConditions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the termsAndConditions objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermsAndConditionsCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermsAndConditions.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a terms_and_conditions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermsAndConditionsRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the termsAndConditions objects. diff --git a/lib/device_management/troubleshooting_events/count/count_request_builder.rb b/lib/device_management/troubleshooting_events/count/count_request_builder.rb index c01ea83748..7427d1c95a 100644 --- a/lib/device_management/troubleshooting_events/count/count_request_builder.rb +++ b/lib/device_management/troubleshooting_events/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/troubleshootingEvents/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/troubleshootingEvents/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/troubleshooting_events/item/device_management_troubleshooting_event_item_request_builder.rb b/lib/device_management/troubleshooting_events/item/device_management_troubleshooting_event_item_request_builder.rb index c5fadc6eb7..68ac43b114 100644 --- a/lib/device_management/troubleshooting_events/item/device_management_troubleshooting_event_item_request_builder.rb +++ b/lib/device_management/troubleshooting_events/item/device_management_troubleshooting_event_item_request_builder.rb @@ -21,7 +21,7 @@ class DeviceManagementTroubleshootingEventItemRequestBuilder < MicrosoftKiotaAbs ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/troubleshootingEvents/{deviceManagementTroubleshootingEvent%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/troubleshootingEvents/{deviceManagementTroubleshootingEvent%2Did}{?%24expand,%24select}") end ## ## Delete navigation property troubleshootingEvents for deviceManagement @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceManagementTroubleshootingEvent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceManagementTroubleshootingEvent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_management_troubleshooting_event_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceManagementTroubleshootingEventItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The list of troubleshooting events for the tenant. diff --git a/lib/device_management/troubleshooting_events/troubleshooting_events_request_builder.rb b/lib/device_management/troubleshooting_events/troubleshooting_events_request_builder.rb index d98bf05c4b..8a627a6e09 100644 --- a/lib/device_management/troubleshooting_events/troubleshooting_events_request_builder.rb +++ b/lib/device_management/troubleshooting_events/troubleshooting_events_request_builder.rb @@ -38,7 +38,7 @@ def by_device_management_troubleshooting_event_id(device_management_troubleshoot ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/troubleshootingEvents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/troubleshootingEvents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The list of troubleshooting events for the tenant. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceManagementTroubleshootingEventCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceManagementTroubleshootingEvent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a troubleshooting_events_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TroubleshootingEventsRequestBuilder.new(raw_url, @request_adapter) + end ## # The list of troubleshooting events for the tenant. diff --git a/lib/device_management/user_experience_analytics_app_health_application_performance/count/count_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_application_performance/count/count_request_builder.rb index 17b3f305f1..488ab1fc71 100644 --- a/lib/device_management/user_experience_analytics_app_health_application_performance/count/count_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_application_performance/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/user_experience_analytics_app_health_application_performance/item/user_experience_analytics_app_health_application_performance_item_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_application_performance/item/user_experience_analytics_app_health_application_performance_item_request_builder.rb index 903b671c5e..ef20e5b81b 100644 --- a/lib/device_management/user_experience_analytics_app_health_application_performance/item/user_experience_analytics_app_health_application_performance_item_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_application_performance/item/user_experience_analytics_app_health_application_performance_item_request_builder.rb @@ -21,7 +21,7 @@ class UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilder < ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance/{userExperienceAnalyticsAppHealthApplicationPerformance%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance/{userExperienceAnalyticsAppHealthApplicationPerformance%2Did}{?%24expand,%24select}") end ## ## Delete navigation property userExperienceAnalyticsAppHealthApplicationPerformance for deviceManagement @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthApplicationPerformance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthApplicationPerformance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_app_health_application_performance_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics appHealth Application Performance diff --git a/lib/device_management/user_experience_analytics_app_health_application_performance/user_experience_analytics_app_health_application_performance_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_application_performance/user_experience_analytics_app_health_application_performance_request_builder.rb index 8267c25be1..567b1f40e9 100644 --- a/lib/device_management/user_experience_analytics_app_health_application_performance/user_experience_analytics_app_health_application_performance_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_application_performance/user_experience_analytics_app_health_application_performance_request_builder.rb @@ -38,7 +38,7 @@ def by_user_experience_analytics_app_health_application_performance_id(user_expe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## User experience analytics appHealth Application Performance @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthApplicationPerformance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_app_health_application_performance_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics appHealth Application Performance diff --git a/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_details/b5977ca896bb8f07ba0110a16f7d5b9de7419efcedd12306c7bce008c6149c07.rb b/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_details/b5977ca896bb8f07ba0110a16f7d5b9de7419efcedd12306c7bce008c6149c07.rb index 7be1f98855..926129caeb 100644 --- a/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_details/b5977ca896bb8f07ba0110a16f7d5b9de7419efcedd12306c7bce008c6149c07.rb +++ b/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_details/b5977ca896bb8f07ba0110a16f7d5b9de7419efcedd12306c7bce008c6149c07.rb @@ -38,7 +38,7 @@ def by_user_experience_analytics_app_health_app_performance_by_app_version_detai ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## User experience analytics appHealth Application Performance by App Version details @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_app_health_application_performance_by_app_version_details_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics appHealth Application Performance by App Version details diff --git a/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_details/count/count_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_details/count/count_request_builder.rb index 316398856b..3f1ebc1ebb 100644 --- a/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_details/count/count_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_details/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_details/item/717f29c93ded4b80b57e573ed284eb4254e96ee97486643da30ad3475dd053d2.rb b/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_details/item/717f29c93ded4b80b57e573ed284eb4254e96ee97486643da30ad3475dd053d2.rb index 10e4125c67..332a20a486 100644 --- a/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_details/item/717f29c93ded4b80b57e573ed284eb4254e96ee97486643da30ad3475dd053d2.rb +++ b/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_details/item/717f29c93ded4b80b57e573ed284eb4254e96ee97486643da30ad3475dd053d2.rb @@ -21,7 +21,7 @@ class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemReque ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/{userExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/{userExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails%2Did}{?%24expand,%24select}") end ## ## Delete navigation property userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails for deviceManagement @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_app_health_app_performance_by_app_version_details_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics appHealth Application Performance by App Version details diff --git a/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_device_id/5b8a65d5a63f0349825de135a809711610a9af8fe10a6b6cb11e3a107c3c85b6.rb b/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_device_id/5b8a65d5a63f0349825de135a809711610a9af8fe10a6b6cb11e3a107c3c85b6.rb index 01a20ddbdd..a23b2502ed 100644 --- a/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_device_id/5b8a65d5a63f0349825de135a809711610a9af8fe10a6b6cb11e3a107c3c85b6.rb +++ b/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_device_id/5b8a65d5a63f0349825de135a809711610a9af8fe10a6b6cb11e3a107c3c85b6.rb @@ -38,7 +38,7 @@ def by_user_experience_analytics_app_health_app_performance_by_app_version_devic ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## User experience analytics appHealth Application Performance by App Version Device Id @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_app_health_application_performance_by_app_version_device_id_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics appHealth Application Performance by App Version Device Id diff --git a/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_device_id/count/count_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_device_id/count/count_request_builder.rb index cef32b3d81..8af96307bd 100644 --- a/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_device_id/count/count_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_device_id/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_device_id/item/46c10a5e7dc0c8dec068c60364198d53762fabb8220b38c0d3c14867fcdcb46a.rb b/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_device_id/item/46c10a5e7dc0c8dec068c60364198d53762fabb8220b38c0d3c14867fcdcb46a.rb index 0ed8fc9501..15158624b5 100644 --- a/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_device_id/item/46c10a5e7dc0c8dec068c60364198d53762fabb8220b38c0d3c14867fcdcb46a.rb +++ b/lib/device_management/user_experience_analytics_app_health_application_performance_by_app_version_device_id/item/46c10a5e7dc0c8dec068c60364198d53762fabb8220b38c0d3c14867fcdcb46a.rb @@ -21,7 +21,7 @@ class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/{userExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/{userExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId%2Did}{?%24expand,%24select}") end ## ## Delete navigation property userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId for deviceManagement @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_app_health_app_performance_by_app_version_device_id_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics appHealth Application Performance by App Version Device Id diff --git a/lib/device_management/user_experience_analytics_app_health_application_performance_by_o_s_version/count/count_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_application_performance_by_o_s_version/count/count_request_builder.rb index 8434bae4f3..f4792d2142 100644 --- a/lib/device_management/user_experience_analytics_app_health_application_performance_by_o_s_version/count/count_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_application_performance_by_o_s_version/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/user_experience_analytics_app_health_application_performance_by_o_s_version/item/user_experience_analytics_app_health_app_performance_by_o_s_version_item_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_application_performance_by_o_s_version/item/user_experience_analytics_app_health_app_performance_by_o_s_version_item_request_builder.rb index 5ff83fa424..f87fa27fda 100644 --- a/lib/device_management/user_experience_analytics_app_health_application_performance_by_o_s_version/item/user_experience_analytics_app_health_app_performance_by_o_s_version_item_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_application_performance_by_o_s_version/item/user_experience_analytics_app_health_app_performance_by_o_s_version_item_request_builder.rb @@ -21,7 +21,7 @@ class UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilde ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/{userExperienceAnalyticsAppHealthAppPerformanceByOSVersion%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/{userExperienceAnalyticsAppHealthAppPerformanceByOSVersion%2Did}{?%24expand,%24select}") end ## ## Delete navigation property userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion for deviceManagement @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_app_health_app_performance_by_o_s_version_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics appHealth Application Performance by OS Version diff --git a/lib/device_management/user_experience_analytics_app_health_application_performance_by_o_s_version/user_experience_analytics_app_health_application_performance_by_o_s_version_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_application_performance_by_o_s_version/user_experience_analytics_app_health_application_performance_by_o_s_version_request_builder.rb index c66fe6b972..f5643919b8 100644 --- a/lib/device_management/user_experience_analytics_app_health_application_performance_by_o_s_version/user_experience_analytics_app_health_application_performance_by_o_s_version_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_application_performance_by_o_s_version/user_experience_analytics_app_health_application_performance_by_o_s_version_request_builder.rb @@ -38,7 +38,7 @@ def by_user_experience_analytics_app_health_app_performance_by_o_s_version_id(us ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## User experience analytics appHealth Application Performance by OS Version @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_app_health_application_performance_by_o_s_version_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics appHealth Application Performance by OS Version diff --git a/lib/device_management/user_experience_analytics_app_health_device_model_performance/count/count_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_device_model_performance/count/count_request_builder.rb index 465fc1928b..58fc582516 100644 --- a/lib/device_management/user_experience_analytics_app_health_device_model_performance/count/count_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_device_model_performance/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/user_experience_analytics_app_health_device_model_performance/item/user_experience_analytics_app_health_device_model_performance_item_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_device_model_performance/item/user_experience_analytics_app_health_device_model_performance_item_request_builder.rb index 95599cdf2a..a2d6911797 100644 --- a/lib/device_management/user_experience_analytics_app_health_device_model_performance/item/user_experience_analytics_app_health_device_model_performance_item_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_device_model_performance/item/user_experience_analytics_app_health_device_model_performance_item_request_builder.rb @@ -21,7 +21,7 @@ class UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilder < ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance/{userExperienceAnalyticsAppHealthDeviceModelPerformance%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance/{userExperienceAnalyticsAppHealthDeviceModelPerformance%2Did}{?%24expand,%24select}") end ## ## Delete navigation property userExperienceAnalyticsAppHealthDeviceModelPerformance for deviceManagement @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthDeviceModelPerformance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthDeviceModelPerformance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_app_health_device_model_performance_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics appHealth Model Performance diff --git a/lib/device_management/user_experience_analytics_app_health_device_model_performance/user_experience_analytics_app_health_device_model_performance_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_device_model_performance/user_experience_analytics_app_health_device_model_performance_request_builder.rb index 0cc2804b44..86b66de2a8 100644 --- a/lib/device_management/user_experience_analytics_app_health_device_model_performance/user_experience_analytics_app_health_device_model_performance_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_device_model_performance/user_experience_analytics_app_health_device_model_performance_request_builder.rb @@ -38,7 +38,7 @@ def by_user_experience_analytics_app_health_device_model_performance_id(user_exp ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## User experience analytics appHealth Model Performance @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthDeviceModelPerformance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_app_health_device_model_performance_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics appHealth Model Performance diff --git a/lib/device_management/user_experience_analytics_app_health_device_performance/count/count_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_device_performance/count/count_request_builder.rb index bd12e76c8e..99ee24edee 100644 --- a/lib/device_management/user_experience_analytics_app_health_device_performance/count/count_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_device_performance/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/user_experience_analytics_app_health_device_performance/item/user_experience_analytics_app_health_device_performance_item_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_device_performance/item/user_experience_analytics_app_health_device_performance_item_request_builder.rb index 5a843a3b03..4c0a34a614 100644 --- a/lib/device_management/user_experience_analytics_app_health_device_performance/item/user_experience_analytics_app_health_device_performance_item_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_device_performance/item/user_experience_analytics_app_health_device_performance_item_request_builder.rb @@ -21,7 +21,7 @@ class UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilder < Micr ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance/{userExperienceAnalyticsAppHealthDevicePerformance%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance/{userExperienceAnalyticsAppHealthDevicePerformance%2Did}{?%24expand,%24select}") end ## ## Delete navigation property userExperienceAnalyticsAppHealthDevicePerformance for deviceManagement @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthDevicePerformance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthDevicePerformance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_app_health_device_performance_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics appHealth Device Performance diff --git a/lib/device_management/user_experience_analytics_app_health_device_performance/user_experience_analytics_app_health_device_performance_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_device_performance/user_experience_analytics_app_health_device_performance_request_builder.rb index dd01795c53..2d85163d12 100644 --- a/lib/device_management/user_experience_analytics_app_health_device_performance/user_experience_analytics_app_health_device_performance_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_device_performance/user_experience_analytics_app_health_device_performance_request_builder.rb @@ -38,7 +38,7 @@ def by_user_experience_analytics_app_health_device_performance_id(user_experienc ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## User experience analytics appHealth Device Performance @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthDevicePerformance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_app_health_device_performance_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics appHealth Device Performance diff --git a/lib/device_management/user_experience_analytics_app_health_device_performance_details/count/count_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_device_performance_details/count/count_request_builder.rb index 1a5014c3a3..a2b26acd90 100644 --- a/lib/device_management/user_experience_analytics_app_health_device_performance_details/count/count_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_device_performance_details/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/user_experience_analytics_app_health_device_performance_details/item/user_experience_analytics_app_health_device_performance_details_item_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_device_performance_details/item/user_experience_analytics_app_health_device_performance_details_item_request_builder.rb index 827c7bdfab..92751dc3af 100644 --- a/lib/device_management/user_experience_analytics_app_health_device_performance_details/item/user_experience_analytics_app_health_device_performance_details_item_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_device_performance_details/item/user_experience_analytics_app_health_device_performance_details_item_request_builder.rb @@ -21,7 +21,7 @@ class UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails/{userExperienceAnalyticsAppHealthDevicePerformanceDetails%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails/{userExperienceAnalyticsAppHealthDevicePerformanceDetails%2Did}{?%24expand,%24select}") end ## ## Delete navigation property userExperienceAnalyticsAppHealthDevicePerformanceDetails for deviceManagement @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthDevicePerformanceDetails.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthDevicePerformanceDetails.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_app_health_device_performance_details_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics device performance details diff --git a/lib/device_management/user_experience_analytics_app_health_device_performance_details/user_experience_analytics_app_health_device_performance_details_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_device_performance_details/user_experience_analytics_app_health_device_performance_details_request_builder.rb index b4bdd7cc8b..df4e0d2b10 100644 --- a/lib/device_management/user_experience_analytics_app_health_device_performance_details/user_experience_analytics_app_health_device_performance_details_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_device_performance_details/user_experience_analytics_app_health_device_performance_details_request_builder.rb @@ -38,7 +38,7 @@ def by_user_experience_analytics_app_health_device_performance_details_id(user_e ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## User experience analytics device performance details @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthDevicePerformanceDetails.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_app_health_device_performance_details_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics device performance details diff --git a/lib/device_management/user_experience_analytics_app_health_o_s_version_performance/count/count_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_o_s_version_performance/count/count_request_builder.rb index c966ebbb80..fbf122d459 100644 --- a/lib/device_management/user_experience_analytics_app_health_o_s_version_performance/count/count_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_o_s_version_performance/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/user_experience_analytics_app_health_o_s_version_performance/item/user_experience_analytics_app_health_o_s_version_performance_item_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_o_s_version_performance/item/user_experience_analytics_app_health_o_s_version_performance_item_request_builder.rb index e067f31286..ade9e31adb 100644 --- a/lib/device_management/user_experience_analytics_app_health_o_s_version_performance/item/user_experience_analytics_app_health_o_s_version_performance_item_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_o_s_version_performance/item/user_experience_analytics_app_health_o_s_version_performance_item_request_builder.rb @@ -21,7 +21,7 @@ class UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilder < M ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance/{userExperienceAnalyticsAppHealthOSVersionPerformance%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance/{userExperienceAnalyticsAppHealthOSVersionPerformance%2Did}{?%24expand,%24select}") end ## ## Delete navigation property userExperienceAnalyticsAppHealthOSVersionPerformance for deviceManagement @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthOSVersionPerformance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthOSVersionPerformance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_app_health_o_s_version_performance_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics appHealth OS version Performance diff --git a/lib/device_management/user_experience_analytics_app_health_o_s_version_performance/user_experience_analytics_app_health_o_s_version_performance_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_o_s_version_performance/user_experience_analytics_app_health_o_s_version_performance_request_builder.rb index 890c103fb3..d3b0ff9157 100644 --- a/lib/device_management/user_experience_analytics_app_health_o_s_version_performance/user_experience_analytics_app_health_o_s_version_performance_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_o_s_version_performance/user_experience_analytics_app_health_o_s_version_performance_request_builder.rb @@ -38,7 +38,7 @@ def by_user_experience_analytics_app_health_o_s_version_performance_id(user_expe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## User experience analytics appHealth OS version Performance @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthOSVersionPerformance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_app_health_o_s_version_performance_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics appHealth OS version Performance diff --git a/lib/device_management/user_experience_analytics_app_health_overview/metric_values/count/count_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_overview/metric_values/count/count_request_builder.rb index aa50ce45d6..6efe009ac4 100644 --- a/lib/device_management/user_experience_analytics_app_health_overview/metric_values/count/count_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_overview/metric_values/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/user_experience_analytics_app_health_overview/metric_values/item/user_experience_analytics_metric_item_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_overview/metric_values/item/user_experience_analytics_metric_item_request_builder.rb index 03381deb9e..e3e6e07db9 100644 --- a/lib/device_management/user_experience_analytics_app_health_overview/metric_values/item/user_experience_analytics_metric_item_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_overview/metric_values/item/user_experience_analytics_metric_item_request_builder.rb @@ -23,7 +23,7 @@ class UserExperienceAnalyticsMetricItemRequestBuilder < MicrosoftKiotaAbstractio ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues/{userExperienceAnalyticsMetric%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues/{userExperienceAnalyticsMetric%2Did}{?%24expand,%24select}") end ## ## Delete navigation property metricValues for deviceManagement @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsMetric.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsMetric.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_metric_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsMetricItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The metric values for the user experience analytics category. Read-only. diff --git a/lib/device_management/user_experience_analytics_app_health_overview/metric_values/metric_values_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_overview/metric_values/metric_values_request_builder.rb index b843c72bfc..41d55a98da 100644 --- a/lib/device_management/user_experience_analytics_app_health_overview/metric_values/metric_values_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_overview/metric_values/metric_values_request_builder.rb @@ -40,7 +40,7 @@ def by_user_experience_analytics_metric_id(user_experience_analytics_metric_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The metric values for the user experience analytics category. Read-only. @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsMetricCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsMetric.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,15 +77,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a metric_values_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MetricValuesRequestBuilder.new(raw_url, @request_adapter) + end ## # The metric values for the user experience analytics category. Read-only. diff --git a/lib/device_management/user_experience_analytics_app_health_overview/user_experience_analytics_app_health_overview_request_builder.rb b/lib/device_management/user_experience_analytics_app_health_overview/user_experience_analytics_app_health_overview_request_builder.rb index fe288cce16..5d1be91cff 100644 --- a/lib/device_management/user_experience_analytics_app_health_overview/user_experience_analytics_app_health_overview_request_builder.rb +++ b/lib/device_management/user_experience_analytics_app_health_overview/user_experience_analytics_app_health_overview_request_builder.rb @@ -25,7 +25,7 @@ def metric_values() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOverview{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOverview{?%24expand,%24select}") end ## ## Delete navigation property userExperienceAnalyticsAppHealthOverview for deviceManagement @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_app_health_overview_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsAppHealthOverviewRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics appHealth overview diff --git a/lib/device_management/user_experience_analytics_baselines/count/count_request_builder.rb b/lib/device_management/user_experience_analytics_baselines/count/count_request_builder.rb index 605eba6f7b..aa399c095a 100644 --- a/lib/device_management/user_experience_analytics_baselines/count/count_request_builder.rb +++ b/lib/device_management/user_experience_analytics_baselines/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/user_experience_analytics_baselines/item/app_health_metrics/app_health_metrics_request_builder.rb b/lib/device_management/user_experience_analytics_baselines/item/app_health_metrics/app_health_metrics_request_builder.rb index fbbbb80942..16b8ec5e7f 100644 --- a/lib/device_management/user_experience_analytics_baselines/item/app_health_metrics/app_health_metrics_request_builder.rb +++ b/lib/device_management/user_experience_analytics_baselines/item/app_health_metrics/app_health_metrics_request_builder.rb @@ -23,7 +23,7 @@ class AppHealthMetricsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBu ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/appHealthMetrics{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/appHealthMetrics{?%24expand,%24select}") end ## ## The scores and insights for the application health metrics. @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,17 +45,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a app_health_metrics_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AppHealthMetricsRequestBuilder.new(raw_url, @request_adapter) + end ## # The scores and insights for the application health metrics. diff --git a/lib/device_management/user_experience_analytics_baselines/item/battery_health_metrics/battery_health_metrics_request_builder.rb b/lib/device_management/user_experience_analytics_baselines/item/battery_health_metrics/battery_health_metrics_request_builder.rb index 7c1b2ad0ad..d58d182031 100644 --- a/lib/device_management/user_experience_analytics_baselines/item/battery_health_metrics/battery_health_metrics_request_builder.rb +++ b/lib/device_management/user_experience_analytics_baselines/item/battery_health_metrics/battery_health_metrics_request_builder.rb @@ -23,7 +23,7 @@ class BatteryHealthMetricsRequestBuilder < MicrosoftKiotaAbstractions::BaseReque ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/batteryHealthMetrics{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/batteryHealthMetrics{?%24expand,%24select}") end ## ## The scores and insights for the battery health metrics. @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,17 +45,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a battery_health_metrics_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BatteryHealthMetricsRequestBuilder.new(raw_url, @request_adapter) + end ## # The scores and insights for the battery health metrics. diff --git a/lib/device_management/user_experience_analytics_baselines/item/best_practices_metrics/best_practices_metrics_request_builder.rb b/lib/device_management/user_experience_analytics_baselines/item/best_practices_metrics/best_practices_metrics_request_builder.rb index fcf1bfc639..378af6c337 100644 --- a/lib/device_management/user_experience_analytics_baselines/item/best_practices_metrics/best_practices_metrics_request_builder.rb +++ b/lib/device_management/user_experience_analytics_baselines/item/best_practices_metrics/best_practices_metrics_request_builder.rb @@ -23,7 +23,7 @@ class BestPracticesMetricsRequestBuilder < MicrosoftKiotaAbstractions::BaseReque ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/bestPracticesMetrics{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/bestPracticesMetrics{?%24expand,%24select}") end ## ## The scores and insights for the best practices metrics. @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,17 +45,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a best_practices_metrics_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BestPracticesMetricsRequestBuilder.new(raw_url, @request_adapter) + end ## # The scores and insights for the best practices metrics. diff --git a/lib/device_management/user_experience_analytics_baselines/item/device_boot_performance_metrics/device_boot_performance_metrics_request_builder.rb b/lib/device_management/user_experience_analytics_baselines/item/device_boot_performance_metrics/device_boot_performance_metrics_request_builder.rb index 8a0b294ce0..cb752d6280 100644 --- a/lib/device_management/user_experience_analytics_baselines/item/device_boot_performance_metrics/device_boot_performance_metrics_request_builder.rb +++ b/lib/device_management/user_experience_analytics_baselines/item/device_boot_performance_metrics/device_boot_performance_metrics_request_builder.rb @@ -23,7 +23,7 @@ class DeviceBootPerformanceMetricsRequestBuilder < MicrosoftKiotaAbstractions::B ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/deviceBootPerformanceMetrics{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/deviceBootPerformanceMetrics{?%24expand,%24select}") end ## ## The scores and insights for the device boot performance metrics. @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,17 +45,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_boot_performance_metrics_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceBootPerformanceMetricsRequestBuilder.new(raw_url, @request_adapter) + end ## # The scores and insights for the device boot performance metrics. diff --git a/lib/device_management/user_experience_analytics_baselines/item/reboot_analytics_metrics/reboot_analytics_metrics_request_builder.rb b/lib/device_management/user_experience_analytics_baselines/item/reboot_analytics_metrics/reboot_analytics_metrics_request_builder.rb index 60f9e67670..5835eb64b7 100644 --- a/lib/device_management/user_experience_analytics_baselines/item/reboot_analytics_metrics/reboot_analytics_metrics_request_builder.rb +++ b/lib/device_management/user_experience_analytics_baselines/item/reboot_analytics_metrics/reboot_analytics_metrics_request_builder.rb @@ -23,7 +23,7 @@ class RebootAnalyticsMetricsRequestBuilder < MicrosoftKiotaAbstractions::BaseReq ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/rebootAnalyticsMetrics{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/rebootAnalyticsMetrics{?%24expand,%24select}") end ## ## The scores and insights for the reboot analytics metrics. @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,17 +45,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reboot_analytics_metrics_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RebootAnalyticsMetricsRequestBuilder.new(raw_url, @request_adapter) + end ## # The scores and insights for the reboot analytics metrics. diff --git a/lib/device_management/user_experience_analytics_baselines/item/resource_performance_metrics/resource_performance_metrics_request_builder.rb b/lib/device_management/user_experience_analytics_baselines/item/resource_performance_metrics/resource_performance_metrics_request_builder.rb index f000ed6e25..0a8a425171 100644 --- a/lib/device_management/user_experience_analytics_baselines/item/resource_performance_metrics/resource_performance_metrics_request_builder.rb +++ b/lib/device_management/user_experience_analytics_baselines/item/resource_performance_metrics/resource_performance_metrics_request_builder.rb @@ -23,7 +23,7 @@ class ResourcePerformanceMetricsRequestBuilder < MicrosoftKiotaAbstractions::Bas ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/resourcePerformanceMetrics{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/resourcePerformanceMetrics{?%24expand,%24select}") end ## ## The scores and insights for the resource performance metrics. @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,17 +45,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resource_performance_metrics_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourcePerformanceMetricsRequestBuilder.new(raw_url, @request_adapter) + end ## # The scores and insights for the resource performance metrics. diff --git a/lib/device_management/user_experience_analytics_baselines/item/user_experience_analytics_baseline_item_request_builder.rb b/lib/device_management/user_experience_analytics_baselines/item/user_experience_analytics_baseline_item_request_builder.rb index 62ecf2daf8..9c563ac685 100644 --- a/lib/device_management/user_experience_analytics_baselines/item/user_experience_analytics_baseline_item_request_builder.rb +++ b/lib/device_management/user_experience_analytics_baselines/item/user_experience_analytics_baseline_item_request_builder.rb @@ -63,7 +63,7 @@ def work_from_anywhere_metrics() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}{?%24expand,%24select}") end ## ## Delete navigation property userExperienceAnalyticsBaselines for deviceManagement @@ -75,8 +75,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -89,8 +88,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsBaseline.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -105,8 +103,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsBaseline.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -116,13 +113,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,15 +130,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -152,17 +150,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_baseline_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsBaselineItemRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics baselines diff --git a/lib/device_management/user_experience_analytics_baselines/item/work_from_anywhere_metrics/work_from_anywhere_metrics_request_builder.rb b/lib/device_management/user_experience_analytics_baselines/item/work_from_anywhere_metrics/work_from_anywhere_metrics_request_builder.rb index 303beeb6fc..1a848f38e1 100644 --- a/lib/device_management/user_experience_analytics_baselines/item/work_from_anywhere_metrics/work_from_anywhere_metrics_request_builder.rb +++ b/lib/device_management/user_experience_analytics_baselines/item/work_from_anywhere_metrics/work_from_anywhere_metrics_request_builder.rb @@ -23,7 +23,7 @@ class WorkFromAnywhereMetricsRequestBuilder < MicrosoftKiotaAbstractions::BaseRe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/workFromAnywhereMetrics{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/workFromAnywhereMetrics{?%24expand,%24select}") end ## ## The scores and insights for the work from anywhere metrics. @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,17 +45,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a work_from_anywhere_metrics_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorkFromAnywhereMetricsRequestBuilder.new(raw_url, @request_adapter) + end ## # The scores and insights for the work from anywhere metrics. diff --git a/lib/device_management/user_experience_analytics_baselines/user_experience_analytics_baselines_request_builder.rb b/lib/device_management/user_experience_analytics_baselines/user_experience_analytics_baselines_request_builder.rb index 17e183c506..9f3c7a9ee7 100644 --- a/lib/device_management/user_experience_analytics_baselines/user_experience_analytics_baselines_request_builder.rb +++ b/lib/device_management/user_experience_analytics_baselines/user_experience_analytics_baselines_request_builder.rb @@ -38,7 +38,7 @@ def by_user_experience_analytics_baseline_id(user_experience_analytics_baseline_ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## User experience analytics baselines @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsBaselineCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsBaseline.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_baselines_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsBaselinesRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics baselines diff --git a/lib/device_management/user_experience_analytics_categories/count/count_request_builder.rb b/lib/device_management/user_experience_analytics_categories/count/count_request_builder.rb index 0a06468ff2..6b2553693b 100644 --- a/lib/device_management/user_experience_analytics_categories/count/count_request_builder.rb +++ b/lib/device_management/user_experience_analytics_categories/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsCategories/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsCategories/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/user_experience_analytics_categories/item/metric_values/count/count_request_builder.rb b/lib/device_management/user_experience_analytics_categories/item/metric_values/count/count_request_builder.rb index f33fe94138..e53d8c4ded 100644 --- a/lib/device_management/user_experience_analytics_categories/item/metric_values/count/count_request_builder.rb +++ b/lib/device_management/user_experience_analytics_categories/item/metric_values/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsCategories/{userExperienceAnalyticsCategory%2Did}/metricValues/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsCategories/{userExperienceAnalyticsCategory%2Did}/metricValues/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/user_experience_analytics_categories/item/metric_values/item/user_experience_analytics_metric_item_request_builder.rb b/lib/device_management/user_experience_analytics_categories/item/metric_values/item/user_experience_analytics_metric_item_request_builder.rb index 796d7b4394..e02208c39d 100644 --- a/lib/device_management/user_experience_analytics_categories/item/metric_values/item/user_experience_analytics_metric_item_request_builder.rb +++ b/lib/device_management/user_experience_analytics_categories/item/metric_values/item/user_experience_analytics_metric_item_request_builder.rb @@ -25,7 +25,7 @@ class UserExperienceAnalyticsMetricItemRequestBuilder < MicrosoftKiotaAbstractio ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsCategories/{userExperienceAnalyticsCategory%2Did}/metricValues/{userExperienceAnalyticsMetric%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsCategories/{userExperienceAnalyticsCategory%2Did}/metricValues/{userExperienceAnalyticsMetric%2Did}{?%24expand,%24select}") end ## ## Delete navigation property metricValues for deviceManagement @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsMetric.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsMetric.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_metric_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsMetricItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The metric values for the user experience analytics category. Read-only. diff --git a/lib/device_management/user_experience_analytics_categories/item/metric_values/metric_values_request_builder.rb b/lib/device_management/user_experience_analytics_categories/item/metric_values/metric_values_request_builder.rb index 9441992fee..01f224fa2c 100644 --- a/lib/device_management/user_experience_analytics_categories/item/metric_values/metric_values_request_builder.rb +++ b/lib/device_management/user_experience_analytics_categories/item/metric_values/metric_values_request_builder.rb @@ -42,7 +42,7 @@ def by_user_experience_analytics_metric_id(user_experience_analytics_metric_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsCategories/{userExperienceAnalyticsCategory%2Did}/metricValues{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsCategories/{userExperienceAnalyticsCategory%2Did}/metricValues{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The metric values for the user experience analytics category. Read-only. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsMetricCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsMetric.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a metric_values_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MetricValuesRequestBuilder.new(raw_url, @request_adapter) + end ## # The metric values for the user experience analytics category. Read-only. diff --git a/lib/device_management/user_experience_analytics_categories/item/user_experience_analytics_category_item_request_builder.rb b/lib/device_management/user_experience_analytics_categories/item/user_experience_analytics_category_item_request_builder.rb index 170223b0b5..932d44e960 100644 --- a/lib/device_management/user_experience_analytics_categories/item/user_experience_analytics_category_item_request_builder.rb +++ b/lib/device_management/user_experience_analytics_categories/item/user_experience_analytics_category_item_request_builder.rb @@ -27,7 +27,7 @@ def metric_values() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsCategories/{userExperienceAnalyticsCategory%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsCategories/{userExperienceAnalyticsCategory%2Did}{?%24expand,%24select}") end ## ## Delete navigation property userExperienceAnalyticsCategories for deviceManagement @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,13 +77,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,15 +94,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,17 +114,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_category_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsCategoryItemRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics categories diff --git a/lib/device_management/user_experience_analytics_categories/user_experience_analytics_categories_request_builder.rb b/lib/device_management/user_experience_analytics_categories/user_experience_analytics_categories_request_builder.rb index 5708b0394d..194237a77e 100644 --- a/lib/device_management/user_experience_analytics_categories/user_experience_analytics_categories_request_builder.rb +++ b/lib/device_management/user_experience_analytics_categories/user_experience_analytics_categories_request_builder.rb @@ -38,7 +38,7 @@ def by_user_experience_analytics_category_id(user_experience_analytics_category_ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsCategories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsCategories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## User experience analytics categories @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsCategoriesRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics categories diff --git a/lib/device_management/user_experience_analytics_device_performance/count/count_request_builder.rb b/lib/device_management/user_experience_analytics_device_performance/count/count_request_builder.rb index 83971df9d2..4c19fe2824 100644 --- a/lib/device_management/user_experience_analytics_device_performance/count/count_request_builder.rb +++ b/lib/device_management/user_experience_analytics_device_performance/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDevicePerformance/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDevicePerformance/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/user_experience_analytics_device_performance/item/user_experience_analytics_device_performance_item_request_builder.rb b/lib/device_management/user_experience_analytics_device_performance/item/user_experience_analytics_device_performance_item_request_builder.rb index 58a1dadaa6..c3c82c5423 100644 --- a/lib/device_management/user_experience_analytics_device_performance/item/user_experience_analytics_device_performance_item_request_builder.rb +++ b/lib/device_management/user_experience_analytics_device_performance/item/user_experience_analytics_device_performance_item_request_builder.rb @@ -21,7 +21,7 @@ class UserExperienceAnalyticsDevicePerformanceItemRequestBuilder < MicrosoftKiot ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDevicePerformance/{userExperienceAnalyticsDevicePerformance%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDevicePerformance/{userExperienceAnalyticsDevicePerformance%2Did}{?%24expand,%24select}") end ## ## Delete navigation property userExperienceAnalyticsDevicePerformance for deviceManagement @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsDevicePerformance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsDevicePerformance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_device_performance_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsDevicePerformanceItemRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics device performance diff --git a/lib/device_management/user_experience_analytics_device_performance/summarize_device_performance_devices_with_summarize_by/summarize_device_performance_devices_with_summarize_by.rb b/lib/device_management/user_experience_analytics_device_performance/summarize_device_performance_devices_with_summarize_by/summarize_device_performance_devices_with_summarize_by.rb index 2f53530bfd..8afcb3181b 100644 --- a/lib/device_management/user_experience_analytics_device_performance/summarize_device_performance_devices_with_summarize_by/summarize_device_performance_devices_with_summarize_by.rb +++ b/lib/device_management/user_experience_analytics_device_performance/summarize_device_performance_devices_with_summarize_by/summarize_device_performance_devices_with_summarize_by.rb @@ -1 +1 @@ -require_relative 'summarize_device_performance_devices_with_summarize_by_response' +require_relative 'summarize_device_performance_devices_with_summarize_by_get_response' diff --git a/lib/device_management/user_experience_analytics_device_performance/summarize_device_performance_devices_with_summarize_by/summarize_device_performance_devices_with_summarize_by_get_response.rb b/lib/device_management/user_experience_analytics_device_performance/summarize_device_performance_devices_with_summarize_by/summarize_device_performance_devices_with_summarize_by_get_response.rb new file mode 100644 index 0000000000..92e684776a --- /dev/null +++ b/lib/device_management/user_experience_analytics_device_performance/summarize_device_performance_devices_with_summarize_by/summarize_device_performance_devices_with_summarize_by_get_response.rb @@ -0,0 +1,72 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../../models/user_experience_analytics_device_performance' +require_relative '../../device_management' +require_relative '../user_experience_analytics_device_performance' +require_relative './summarize_device_performance_devices_with_summarize_by' + +module MicrosoftGraph + module DeviceManagement + module UserExperienceAnalyticsDevicePerformance + module SummarizeDevicePerformanceDevicesWithSummarizeBy + class SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a summarize_device_performance_devices_with_summarize_by_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsDevicePerformance.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a user_experience_analytics_device_performance + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/device_management/user_experience_analytics_device_performance/summarize_device_performance_devices_with_summarize_by/summarize_device_performance_devices_with_summarize_by_request_builder.rb b/lib/device_management/user_experience_analytics_device_performance/summarize_device_performance_devices_with_summarize_by/summarize_device_performance_devices_with_summarize_by_request_builder.rb index 0a5367a7dd..a65a55f373 100644 --- a/lib/device_management/user_experience_analytics_device_performance/summarize_device_performance_devices_with_summarize_by/summarize_device_performance_devices_with_summarize_by_request_builder.rb +++ b/lib/device_management/user_experience_analytics_device_performance/summarize_device_performance_devices_with_summarize_by/summarize_device_performance_devices_with_summarize_by_request_builder.rb @@ -21,21 +21,20 @@ class SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder < Microsoft ## @return a void ## def initialize(path_parameters, request_adapter, summarize_by=nil) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDevicePerformance/summarizeDevicePerformanceDevices(summarizeBy='{summarizeBy}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDevicePerformance/summarizeDevicePerformanceDevices(summarizeBy='{summarizeBy}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Invoke function summarizeDevicePerformanceDevices ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of summarize_device_performance_devices_with_summarize_by_response + ## @return a Fiber of summarize_device_performance_devices_with_summarize_by_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::UserExperienceAnalyticsDevicePerformance::SummarizeDevicePerformanceDevicesWithSummarizeBy::SummarizeDevicePerformanceDevicesWithSummarizeByResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::UserExperienceAnalyticsDevicePerformance::SummarizeDevicePerformanceDevicesWithSummarizeBy::SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function summarizeDevicePerformanceDevices @@ -44,17 +43,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a summarize_device_performance_devices_with_summarize_by_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder.new(raw_url, @request_adapter) + end ## # Invoke function summarizeDevicePerformanceDevices @@ -64,6 +72,9 @@ class SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilderGetQueryPara # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -91,6 +102,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/device_management/user_experience_analytics_device_performance/summarize_device_performance_devices_with_summarize_by/summarize_device_performance_devices_with_summarize_by_response.rb b/lib/device_management/user_experience_analytics_device_performance/summarize_device_performance_devices_with_summarize_by/summarize_device_performance_devices_with_summarize_by_response.rb deleted file mode 100644 index 168be22a5d..0000000000 --- a/lib/device_management/user_experience_analytics_device_performance/summarize_device_performance_devices_with_summarize_by/summarize_device_performance_devices_with_summarize_by_response.rb +++ /dev/null @@ -1,72 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../../models/user_experience_analytics_device_performance' -require_relative '../../device_management' -require_relative '../user_experience_analytics_device_performance' -require_relative './summarize_device_performance_devices_with_summarize_by' - -module MicrosoftGraph - module DeviceManagement - module UserExperienceAnalyticsDevicePerformance - module SummarizeDevicePerformanceDevicesWithSummarizeBy - class SummarizeDevicePerformanceDevicesWithSummarizeByResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new summarizeDevicePerformanceDevicesWithSummarizeByResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a summarize_device_performance_devices_with_summarize_by_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return SummarizeDevicePerformanceDevicesWithSummarizeByResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsDevicePerformance.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a user_experience_analytics_device_performance - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/device_management/user_experience_analytics_device_performance/user_experience_analytics_device_performance_request_builder.rb b/lib/device_management/user_experience_analytics_device_performance/user_experience_analytics_device_performance_request_builder.rb index 3ed16e92b5..3344797a87 100644 --- a/lib/device_management/user_experience_analytics_device_performance/user_experience_analytics_device_performance_request_builder.rb +++ b/lib/device_management/user_experience_analytics_device_performance/user_experience_analytics_device_performance_request_builder.rb @@ -39,7 +39,7 @@ def by_user_experience_analytics_device_performance_id(user_experience_analytics ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDevicePerformance{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDevicePerformance{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## User experience analytics device performance @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsDevicePerformanceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +66,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsDevicePerformance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,15 +85,15 @@ def summarize_device_performance_devices_with_summarize_by(summarize_by) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -107,17 +105,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_device_performance_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsDevicePerformanceRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics device performance diff --git a/lib/device_management/user_experience_analytics_device_scores/count/count_request_builder.rb b/lib/device_management/user_experience_analytics_device_scores/count/count_request_builder.rb index 52e57c7415..404b046858 100644 --- a/lib/device_management/user_experience_analytics_device_scores/count/count_request_builder.rb +++ b/lib/device_management/user_experience_analytics_device_scores/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceScores/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceScores/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/user_experience_analytics_device_scores/item/user_experience_analytics_device_scores_item_request_builder.rb b/lib/device_management/user_experience_analytics_device_scores/item/user_experience_analytics_device_scores_item_request_builder.rb index 943b6d7ca4..ecf9373b96 100644 --- a/lib/device_management/user_experience_analytics_device_scores/item/user_experience_analytics_device_scores_item_request_builder.rb +++ b/lib/device_management/user_experience_analytics_device_scores/item/user_experience_analytics_device_scores_item_request_builder.rb @@ -21,7 +21,7 @@ class UserExperienceAnalyticsDeviceScoresItemRequestBuilder < MicrosoftKiotaAbst ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceScores/{userExperienceAnalyticsDeviceScores%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceScores/{userExperienceAnalyticsDeviceScores%2Did}{?%24expand,%24select}") end ## ## Delete navigation property userExperienceAnalyticsDeviceScores for deviceManagement @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsDeviceScores.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsDeviceScores.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_device_scores_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsDeviceScoresItemRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics device scores diff --git a/lib/device_management/user_experience_analytics_device_scores/user_experience_analytics_device_scores_request_builder.rb b/lib/device_management/user_experience_analytics_device_scores/user_experience_analytics_device_scores_request_builder.rb index 11b35fdafc..5dbe9720b2 100644 --- a/lib/device_management/user_experience_analytics_device_scores/user_experience_analytics_device_scores_request_builder.rb +++ b/lib/device_management/user_experience_analytics_device_scores/user_experience_analytics_device_scores_request_builder.rb @@ -38,7 +38,7 @@ def by_user_experience_analytics_device_scores_id(user_experience_analytics_devi ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceScores{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceScores{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## User experience analytics device scores @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsDeviceScoresCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsDeviceScores.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_device_scores_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsDeviceScoresRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics device scores diff --git a/lib/device_management/user_experience_analytics_device_startup_history/count/count_request_builder.rb b/lib/device_management/user_experience_analytics_device_startup_history/count/count_request_builder.rb index 7c6fee3fd6..7ddaf24f4e 100644 --- a/lib/device_management/user_experience_analytics_device_startup_history/count/count_request_builder.rb +++ b/lib/device_management/user_experience_analytics_device_startup_history/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupHistory/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupHistory/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/user_experience_analytics_device_startup_history/item/user_experience_analytics_device_startup_history_item_request_builder.rb b/lib/device_management/user_experience_analytics_device_startup_history/item/user_experience_analytics_device_startup_history_item_request_builder.rb index 103ded93aa..2658c3f2ee 100644 --- a/lib/device_management/user_experience_analytics_device_startup_history/item/user_experience_analytics_device_startup_history_item_request_builder.rb +++ b/lib/device_management/user_experience_analytics_device_startup_history/item/user_experience_analytics_device_startup_history_item_request_builder.rb @@ -21,7 +21,7 @@ class UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilder < MicrosoftK ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupHistory/{userExperienceAnalyticsDeviceStartupHistory%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupHistory/{userExperienceAnalyticsDeviceStartupHistory%2Did}{?%24expand,%24select}") end ## ## Delete navigation property userExperienceAnalyticsDeviceStartupHistory for deviceManagement @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsDeviceStartupHistory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsDeviceStartupHistory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_device_startup_history_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics device Startup History diff --git a/lib/device_management/user_experience_analytics_device_startup_history/user_experience_analytics_device_startup_history_request_builder.rb b/lib/device_management/user_experience_analytics_device_startup_history/user_experience_analytics_device_startup_history_request_builder.rb index 68b88ae069..97275f5a0d 100644 --- a/lib/device_management/user_experience_analytics_device_startup_history/user_experience_analytics_device_startup_history_request_builder.rb +++ b/lib/device_management/user_experience_analytics_device_startup_history/user_experience_analytics_device_startup_history_request_builder.rb @@ -38,7 +38,7 @@ def by_user_experience_analytics_device_startup_history_id(user_experience_analy ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupHistory{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupHistory{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## User experience analytics device Startup History @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsDeviceStartupHistoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsDeviceStartupHistory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_device_startup_history_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics device Startup History diff --git a/lib/me/employee_experience/learning_course_activities/count/count.rb b/lib/device_management/user_experience_analytics_device_startup_process_performance/count/count.rb similarity index 100% rename from lib/me/employee_experience/learning_course_activities/count/count.rb rename to lib/device_management/user_experience_analytics_device_startup_process_performance/count/count.rb diff --git a/lib/device_management/user_experience_analytics_device_startup_process_performance/count/count_request_builder.rb b/lib/device_management/user_experience_analytics_device_startup_process_performance/count/count_request_builder.rb new file mode 100644 index 0000000000..0105f5bf2d --- /dev/null +++ b/lib/device_management/user_experience_analytics_device_startup_process_performance/count/count_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../device_management' +require_relative '../user_experience_analytics_device_startup_process_performance' +require_relative './count' + +module MicrosoftGraph + module DeviceManagement + module UserExperienceAnalyticsDeviceStartupProcessPerformance + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/me/contacts/item/extensions/item/item.rb b/lib/device_management/user_experience_analytics_device_startup_process_performance/item/item.rb similarity index 100% rename from lib/me/contacts/item/extensions/item/item.rb rename to lib/device_management/user_experience_analytics_device_startup_process_performance/item/item.rb diff --git a/lib/device_management/user_experience_analytics_device_startup_process_performance/item/user_experience_analytics_device_startup_process_performance_item_request_builder.rb b/lib/device_management/user_experience_analytics_device_startup_process_performance/item/user_experience_analytics_device_startup_process_performance_item_request_builder.rb new file mode 100644 index 0000000000..60dee52b6e --- /dev/null +++ b/lib/device_management/user_experience_analytics_device_startup_process_performance/item/user_experience_analytics_device_startup_process_performance_item_request_builder.rb @@ -0,0 +1,163 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../../models/user_experience_analytics_device_startup_process_performance' +require_relative '../../device_management' +require_relative '../user_experience_analytics_device_startup_process_performance' +require_relative './item' + +module MicrosoftGraph + module DeviceManagement + module UserExperienceAnalyticsDeviceStartupProcessPerformance + module Item + ## + # Provides operations to manage the userExperienceAnalyticsDeviceStartupProcessPerformance property of the microsoft.graph.deviceManagement entity. + class UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance/{userExperienceAnalyticsDeviceStartupProcessPerformance%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property userExperienceAnalyticsDeviceStartupProcessPerformance for deviceManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## User experience analytics device Startup Process Performance + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of user_experience_analytics_device_startup_process_performance + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsDeviceStartupProcessPerformance.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property userExperienceAnalyticsDeviceStartupProcessPerformance in deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of user_experience_analytics_device_startup_process_performance + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsDeviceStartupProcessPerformance.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property userExperienceAnalyticsDeviceStartupProcessPerformance for deviceManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## User experience analytics device Startup Process Performance + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property userExperienceAnalyticsDeviceStartupProcessPerformance in deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_device_startup_process_performance_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # User experience analytics device Startup Process Performance + class UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/messages/item/replies/replies.rb b/lib/device_management/user_experience_analytics_device_startup_process_performance/user_experience_analytics_device_startup_process_performance.rb similarity index 100% rename from lib/me/chats/item/messages/item/replies/replies.rb rename to lib/device_management/user_experience_analytics_device_startup_process_performance/user_experience_analytics_device_startup_process_performance.rb diff --git a/lib/device_management/user_experience_analytics_device_startup_process_performance/user_experience_analytics_device_startup_process_performance_request_builder.rb b/lib/device_management/user_experience_analytics_device_startup_process_performance/user_experience_analytics_device_startup_process_performance_request_builder.rb new file mode 100644 index 0000000000..86a6e2f514 --- /dev/null +++ b/lib/device_management/user_experience_analytics_device_startup_process_performance/user_experience_analytics_device_startup_process_performance_request_builder.rb @@ -0,0 +1,179 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/o_data_errors_o_data_error' +require_relative '../../models/user_experience_analytics_device_startup_process_performance' +require_relative '../../models/user_experience_analytics_device_startup_process_performance_collection_response' +require_relative '../device_management' +require_relative './count/count_request_builder' +require_relative './item/user_experience_analytics_device_startup_process_performance_item_request_builder' +require_relative './user_experience_analytics_device_startup_process_performance' + +module MicrosoftGraph + module DeviceManagement + module UserExperienceAnalyticsDeviceStartupProcessPerformance + ## + # Provides operations to manage the userExperienceAnalyticsDeviceStartupProcessPerformance property of the microsoft.graph.deviceManagement entity. + class UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceManagement::UserExperienceAnalyticsDeviceStartupProcessPerformance::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the userExperienceAnalyticsDeviceStartupProcessPerformance property of the microsoft.graph.deviceManagement entity. + ## @param user_experience_analytics_device_startup_process_performance_id The unique identifier of userExperienceAnalyticsDeviceStartupProcessPerformance + ## @return a user_experience_analytics_device_startup_process_performance_item_request_builder + ## + def by_user_experience_analytics_device_startup_process_performance_id(user_experience_analytics_device_startup_process_performance_id) + raise StandardError, 'user_experience_analytics_device_startup_process_performance_id cannot be null' if user_experience_analytics_device_startup_process_performance_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["userExperienceAnalyticsDeviceStartupProcessPerformance%2Did"] = user_experience_analytics_device_startup_process_performance_id + return MicrosoftGraph::DeviceManagement::UserExperienceAnalyticsDeviceStartupProcessPerformance::Item::UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## User experience analytics device Startup Process Performance + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of user_experience_analytics_device_startup_process_performance_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsDeviceStartupProcessPerformanceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to userExperienceAnalyticsDeviceStartupProcessPerformance for deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of user_experience_analytics_device_startup_process_performance + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsDeviceStartupProcessPerformance.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## User experience analytics device Startup Process Performance + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to userExperienceAnalyticsDeviceStartupProcessPerformance for deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_device_startup_process_performance_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # User experience analytics device Startup Process Performance + class UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end +end diff --git a/lib/device_management/user_experience_analytics_device_startup_processes/count/count_request_builder.rb b/lib/device_management/user_experience_analytics_device_startup_processes/count/count_request_builder.rb index d1e110905a..6d68d62fa1 100644 --- a/lib/device_management/user_experience_analytics_device_startup_processes/count/count_request_builder.rb +++ b/lib/device_management/user_experience_analytics_device_startup_processes/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/user_experience_analytics_device_startup_processes/item/user_experience_analytics_device_startup_process_item_request_builder.rb b/lib/device_management/user_experience_analytics_device_startup_processes/item/user_experience_analytics_device_startup_process_item_request_builder.rb index 8eda8c4c84..a15687e2d6 100644 --- a/lib/device_management/user_experience_analytics_device_startup_processes/item/user_experience_analytics_device_startup_process_item_request_builder.rb +++ b/lib/device_management/user_experience_analytics_device_startup_processes/item/user_experience_analytics_device_startup_process_item_request_builder.rb @@ -21,7 +21,7 @@ class UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilder < MicrosoftK ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses/{userExperienceAnalyticsDeviceStartupProcess%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses/{userExperienceAnalyticsDeviceStartupProcess%2Did}{?%24expand,%24select}") end ## ## Delete navigation property userExperienceAnalyticsDeviceStartupProcesses for deviceManagement @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsDeviceStartupProcess.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsDeviceStartupProcess.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_device_startup_process_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics device Startup Processes diff --git a/lib/device_management/user_experience_analytics_device_startup_processes/user_experience_analytics_device_startup_processes_request_builder.rb b/lib/device_management/user_experience_analytics_device_startup_processes/user_experience_analytics_device_startup_processes_request_builder.rb index b2d5c1783f..d955e3028f 100644 --- a/lib/device_management/user_experience_analytics_device_startup_processes/user_experience_analytics_device_startup_processes_request_builder.rb +++ b/lib/device_management/user_experience_analytics_device_startup_processes/user_experience_analytics_device_startup_processes_request_builder.rb @@ -38,7 +38,7 @@ def by_user_experience_analytics_device_startup_process_id(user_experience_analy ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## User experience analytics device Startup Processes @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsDeviceStartupProcessCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsDeviceStartupProcess.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_device_startup_processes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics device Startup Processes diff --git a/lib/device_management/user_experience_analytics_metric_history/count/count_request_builder.rb b/lib/device_management/user_experience_analytics_metric_history/count/count_request_builder.rb index 9f8052c22d..c0abb440dd 100644 --- a/lib/device_management/user_experience_analytics_metric_history/count/count_request_builder.rb +++ b/lib/device_management/user_experience_analytics_metric_history/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsMetricHistory/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsMetricHistory/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/user_experience_analytics_metric_history/item/user_experience_analytics_metric_history_item_request_builder.rb b/lib/device_management/user_experience_analytics_metric_history/item/user_experience_analytics_metric_history_item_request_builder.rb index e301a7471f..747a03c8a2 100644 --- a/lib/device_management/user_experience_analytics_metric_history/item/user_experience_analytics_metric_history_item_request_builder.rb +++ b/lib/device_management/user_experience_analytics_metric_history/item/user_experience_analytics_metric_history_item_request_builder.rb @@ -21,7 +21,7 @@ class UserExperienceAnalyticsMetricHistoryItemRequestBuilder < MicrosoftKiotaAbs ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsMetricHistory/{userExperienceAnalyticsMetricHistory%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsMetricHistory/{userExperienceAnalyticsMetricHistory%2Did}{?%24expand,%24select}") end ## ## Delete navigation property userExperienceAnalyticsMetricHistory for deviceManagement @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsMetricHistory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsMetricHistory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_metric_history_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsMetricHistoryItemRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics metric history diff --git a/lib/device_management/user_experience_analytics_metric_history/user_experience_analytics_metric_history_request_builder.rb b/lib/device_management/user_experience_analytics_metric_history/user_experience_analytics_metric_history_request_builder.rb index 443d228abe..efae68e3eb 100644 --- a/lib/device_management/user_experience_analytics_metric_history/user_experience_analytics_metric_history_request_builder.rb +++ b/lib/device_management/user_experience_analytics_metric_history/user_experience_analytics_metric_history_request_builder.rb @@ -38,7 +38,7 @@ def by_user_experience_analytics_metric_history_id(user_experience_analytics_met ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsMetricHistory{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsMetricHistory{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## User experience analytics metric history @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsMetricHistoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsMetricHistory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_metric_history_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsMetricHistoryRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics metric history diff --git a/lib/device_management/user_experience_analytics_model_scores/count/count_request_builder.rb b/lib/device_management/user_experience_analytics_model_scores/count/count_request_builder.rb index 622811b6aa..b0df2288e5 100644 --- a/lib/device_management/user_experience_analytics_model_scores/count/count_request_builder.rb +++ b/lib/device_management/user_experience_analytics_model_scores/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsModelScores/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsModelScores/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/user_experience_analytics_model_scores/item/user_experience_analytics_model_scores_item_request_builder.rb b/lib/device_management/user_experience_analytics_model_scores/item/user_experience_analytics_model_scores_item_request_builder.rb index 5e6e5ec8bd..665ee3cb3f 100644 --- a/lib/device_management/user_experience_analytics_model_scores/item/user_experience_analytics_model_scores_item_request_builder.rb +++ b/lib/device_management/user_experience_analytics_model_scores/item/user_experience_analytics_model_scores_item_request_builder.rb @@ -21,7 +21,7 @@ class UserExperienceAnalyticsModelScoresItemRequestBuilder < MicrosoftKiotaAbstr ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsModelScores/{userExperienceAnalyticsModelScores%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsModelScores/{userExperienceAnalyticsModelScores%2Did}{?%24expand,%24select}") end ## ## Delete navigation property userExperienceAnalyticsModelScores for deviceManagement @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsModelScores.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsModelScores.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_model_scores_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsModelScoresItemRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics model scores diff --git a/lib/device_management/user_experience_analytics_model_scores/user_experience_analytics_model_scores_request_builder.rb b/lib/device_management/user_experience_analytics_model_scores/user_experience_analytics_model_scores_request_builder.rb index 8783cec0f5..e94fdc8154 100644 --- a/lib/device_management/user_experience_analytics_model_scores/user_experience_analytics_model_scores_request_builder.rb +++ b/lib/device_management/user_experience_analytics_model_scores/user_experience_analytics_model_scores_request_builder.rb @@ -38,7 +38,7 @@ def by_user_experience_analytics_model_scores_id(user_experience_analytics_model ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsModelScores{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsModelScores{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## User experience analytics model scores @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsModelScoresCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsModelScores.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_model_scores_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsModelScoresRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics model scores diff --git a/lib/device_management/user_experience_analytics_overview/user_experience_analytics_overview_request_builder.rb b/lib/device_management/user_experience_analytics_overview/user_experience_analytics_overview_request_builder.rb index 8019f45ff3..940afcf099 100644 --- a/lib/device_management/user_experience_analytics_overview/user_experience_analytics_overview_request_builder.rb +++ b/lib/device_management/user_experience_analytics_overview/user_experience_analytics_overview_request_builder.rb @@ -19,7 +19,7 @@ class UserExperienceAnalyticsOverviewRequestBuilder < MicrosoftKiotaAbstractions ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsOverview{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsOverview{?%24expand,%24select}") end ## ## Delete navigation property userExperienceAnalyticsOverview for deviceManagement @@ -31,8 +31,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsOverview.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -61,8 +59,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsOverview.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,13 +69,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -88,15 +86,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,17 +106,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_overview_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsOverviewRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics overview diff --git a/lib/device_management/user_experience_analytics_score_history/count/count_request_builder.rb b/lib/device_management/user_experience_analytics_score_history/count/count_request_builder.rb index 8b2a3a79ad..dc940fcf1d 100644 --- a/lib/device_management/user_experience_analytics_score_history/count/count_request_builder.rb +++ b/lib/device_management/user_experience_analytics_score_history/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsScoreHistory/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsScoreHistory/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/user_experience_analytics_score_history/item/user_experience_analytics_score_history_item_request_builder.rb b/lib/device_management/user_experience_analytics_score_history/item/user_experience_analytics_score_history_item_request_builder.rb index 31134741bb..1e35a4f6e2 100644 --- a/lib/device_management/user_experience_analytics_score_history/item/user_experience_analytics_score_history_item_request_builder.rb +++ b/lib/device_management/user_experience_analytics_score_history/item/user_experience_analytics_score_history_item_request_builder.rb @@ -21,7 +21,7 @@ class UserExperienceAnalyticsScoreHistoryItemRequestBuilder < MicrosoftKiotaAbst ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsScoreHistory/{userExperienceAnalyticsScoreHistory%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsScoreHistory/{userExperienceAnalyticsScoreHistory%2Did}{?%24expand,%24select}") end ## ## Delete navigation property userExperienceAnalyticsScoreHistory for deviceManagement @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsScoreHistory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsScoreHistory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_score_history_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsScoreHistoryItemRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics device Startup Score History diff --git a/lib/device_management/user_experience_analytics_score_history/user_experience_analytics_score_history_request_builder.rb b/lib/device_management/user_experience_analytics_score_history/user_experience_analytics_score_history_request_builder.rb index 999e3c5ab9..6c7929b9d3 100644 --- a/lib/device_management/user_experience_analytics_score_history/user_experience_analytics_score_history_request_builder.rb +++ b/lib/device_management/user_experience_analytics_score_history/user_experience_analytics_score_history_request_builder.rb @@ -38,7 +38,7 @@ def by_user_experience_analytics_score_history_id(user_experience_analytics_scor ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsScoreHistory{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsScoreHistory{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## User experience analytics device Startup Score History @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsScoreHistoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsScoreHistory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_score_history_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsScoreHistoryRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics device Startup Score History diff --git a/lib/device_management/user_experience_analytics_summarize_work_from_anywhere_devices/user_experience_analytics_summarize_work_from_anywhere_devices_request_builder.rb b/lib/device_management/user_experience_analytics_summarize_work_from_anywhere_devices/user_experience_analytics_summarize_work_from_anywhere_devices_request_builder.rb index fabdda64cc..1eb9a68b3d 100644 --- a/lib/device_management/user_experience_analytics_summarize_work_from_anywhere_devices/user_experience_analytics_summarize_work_from_anywhere_devices_request_builder.rb +++ b/lib/device_management/user_experience_analytics_summarize_work_from_anywhere_devices/user_experience_analytics_summarize_work_from_anywhere_devices_request_builder.rb @@ -31,8 +31,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsWorkFromAnywhereDevicesSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -42,16 +41,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_summarize_work_from_anywhere_devices_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/user_experience_analytics_work_from_anywhere_hardware_readiness_metric/user_experience_analytics_work_from_anywhere_hardware_readiness_metric_request_builder.rb b/lib/device_management/user_experience_analytics_work_from_anywhere_hardware_readiness_metric/user_experience_analytics_work_from_anywhere_hardware_readiness_metric_request_builder.rb index 801f66fbf4..0678bffd79 100644 --- a/lib/device_management/user_experience_analytics_work_from_anywhere_hardware_readiness_metric/user_experience_analytics_work_from_anywhere_hardware_readiness_metric_request_builder.rb +++ b/lib/device_management/user_experience_analytics_work_from_anywhere_hardware_readiness_metric/user_experience_analytics_work_from_anywhere_hardware_readiness_metric_request_builder.rb @@ -19,7 +19,7 @@ class UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric{?%24expand,%24select}") end ## ## Delete navigation property userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric for deviceManagement @@ -31,8 +31,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -61,8 +59,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,13 +69,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -88,15 +86,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,17 +106,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_work_from_anywhere_hardware_readiness_metric_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics work from anywhere hardware readiness metrics. diff --git a/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/count/count_request_builder.rb b/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/count/count_request_builder.rb index a346868159..7187aafaaf 100644 --- a/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/count/count_request_builder.rb +++ b/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/item/metric_devices/count/count_request_builder.rb b/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/item/metric_devices/count/count_request_builder.rb index f06fb2576a..7d3f090ca4 100644 --- a/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/item/metric_devices/count/count_request_builder.rb +++ b/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/item/metric_devices/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/{userExperienceAnalyticsWorkFromAnywhereMetric%2Did}/metricDevices/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/{userExperienceAnalyticsWorkFromAnywhereMetric%2Did}/metricDevices/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/item/metric_devices/item/user_experience_analytics_work_from_anywhere_device_item_request_builder.rb b/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/item/metric_devices/item/user_experience_analytics_work_from_anywhere_device_item_request_builder.rb index 4474275b0c..cd8f38d7f6 100644 --- a/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/item/metric_devices/item/user_experience_analytics_work_from_anywhere_device_item_request_builder.rb +++ b/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/item/metric_devices/item/user_experience_analytics_work_from_anywhere_device_item_request_builder.rb @@ -25,7 +25,7 @@ class UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilder < Microsof ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/{userExperienceAnalyticsWorkFromAnywhereMetric%2Did}/metricDevices/{userExperienceAnalyticsWorkFromAnywhereDevice%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/{userExperienceAnalyticsWorkFromAnywhereMetric%2Did}/metricDevices/{userExperienceAnalyticsWorkFromAnywhereDevice%2Did}{?%24expand,%24select}") end ## ## Delete navigation property metricDevices for deviceManagement @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsWorkFromAnywhereDevice.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsWorkFromAnywhereDevice.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_work_from_anywhere_device_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The work from anywhere metric devices. Read-only. diff --git a/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/item/metric_devices/metric_devices_request_builder.rb b/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/item/metric_devices/metric_devices_request_builder.rb index 697ba1f2aa..9a499bd247 100644 --- a/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/item/metric_devices/metric_devices_request_builder.rb +++ b/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/item/metric_devices/metric_devices_request_builder.rb @@ -42,7 +42,7 @@ def by_user_experience_analytics_work_from_anywhere_device_id(user_experience_an ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/{userExperienceAnalyticsWorkFromAnywhereMetric%2Did}/metricDevices{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/{userExperienceAnalyticsWorkFromAnywhereMetric%2Did}/metricDevices{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The work from anywhere metric devices. Read-only. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsWorkFromAnywhereDevice.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a metric_devices_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MetricDevicesRequestBuilder.new(raw_url, @request_adapter) + end ## # The work from anywhere metric devices. Read-only. diff --git a/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/item/user_experience_analytics_work_from_anywhere_metric_item_request_builder.rb b/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/item/user_experience_analytics_work_from_anywhere_metric_item_request_builder.rb index 7524bc5f78..64c281cf62 100644 --- a/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/item/user_experience_analytics_work_from_anywhere_metric_item_request_builder.rb +++ b/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/item/user_experience_analytics_work_from_anywhere_metric_item_request_builder.rb @@ -27,7 +27,7 @@ def metric_devices() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/{userExperienceAnalyticsWorkFromAnywhereMetric%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/{userExperienceAnalyticsWorkFromAnywhereMetric%2Did}{?%24expand,%24select}") end ## ## Delete navigation property userExperienceAnalyticsWorkFromAnywhereMetrics for deviceManagement @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsWorkFromAnywhereMetric.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsWorkFromAnywhereMetric.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,13 +77,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,15 +94,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,17 +114,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_work_from_anywhere_metric_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics work from anywhere metrics. diff --git a/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/user_experience_analytics_work_from_anywhere_metrics_request_builder.rb b/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/user_experience_analytics_work_from_anywhere_metrics_request_builder.rb index 15b7e3660f..f105363eed 100644 --- a/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/user_experience_analytics_work_from_anywhere_metrics_request_builder.rb +++ b/lib/device_management/user_experience_analytics_work_from_anywhere_metrics/user_experience_analytics_work_from_anywhere_metrics_request_builder.rb @@ -38,7 +38,7 @@ def by_user_experience_analytics_work_from_anywhere_metric_id(user_experience_an ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## User experience analytics work from anywhere metrics. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsWorkFromAnywhereMetric.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_work_from_anywhere_metrics_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilder.new(raw_url, @request_adapter) + end ## # User experience analytics work from anywhere metrics. diff --git a/lib/device_management/user_experience_analytics_work_from_anywhere_model_performance/count/count_request_builder.rb b/lib/device_management/user_experience_analytics_work_from_anywhere_model_performance/count/count_request_builder.rb index d26861d44d..6ba1dc091d 100644 --- a/lib/device_management/user_experience_analytics_work_from_anywhere_model_performance/count/count_request_builder.rb +++ b/lib/device_management/user_experience_analytics_work_from_anywhere_model_performance/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/user_experience_analytics_work_from_anywhere_model_performance/item/user_experience_analytics_work_from_anywhere_model_performance_item_request_builder.rb b/lib/device_management/user_experience_analytics_work_from_anywhere_model_performance/item/user_experience_analytics_work_from_anywhere_model_performance_item_request_builder.rb index 4e581b3574..327a734c3e 100644 --- a/lib/device_management/user_experience_analytics_work_from_anywhere_model_performance/item/user_experience_analytics_work_from_anywhere_model_performance_item_request_builder.rb +++ b/lib/device_management/user_experience_analytics_work_from_anywhere_model_performance/item/user_experience_analytics_work_from_anywhere_model_performance_item_request_builder.rb @@ -21,7 +21,7 @@ class UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance/{userExperienceAnalyticsWorkFromAnywhereModelPerformance%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance/{userExperienceAnalyticsWorkFromAnywhereModelPerformance%2Did}{?%24expand,%24select}") end ## ## Delete navigation property userExperienceAnalyticsWorkFromAnywhereModelPerformance for deviceManagement @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsWorkFromAnywhereModelPerformance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsWorkFromAnywhereModelPerformance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_work_from_anywhere_model_performance_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The user experience analytics work from anywhere model performance diff --git a/lib/device_management/user_experience_analytics_work_from_anywhere_model_performance/user_experience_analytics_work_from_anywhere_model_performance_request_builder.rb b/lib/device_management/user_experience_analytics_work_from_anywhere_model_performance/user_experience_analytics_work_from_anywhere_model_performance_request_builder.rb index cda6ad9c5d..bc77f3f708 100644 --- a/lib/device_management/user_experience_analytics_work_from_anywhere_model_performance/user_experience_analytics_work_from_anywhere_model_performance_request_builder.rb +++ b/lib/device_management/user_experience_analytics_work_from_anywhere_model_performance/user_experience_analytics_work_from_anywhere_model_performance_request_builder.rb @@ -38,7 +38,7 @@ def by_user_experience_analytics_work_from_anywhere_model_performance_id(user_ex ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The user experience analytics work from anywhere model performance @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsWorkFromAnywhereModelPerformance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_experience_analytics_work_from_anywhere_model_performance_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder.new(raw_url, @request_adapter) + end ## # The user experience analytics work from anywhere model performance diff --git a/lib/device_management/verify_windows_enrollment_auto_discovery_with_domain_name/verify_windows_enrollment_auto_discovery_with_domain_name.rb b/lib/device_management/verify_windows_enrollment_auto_discovery_with_domain_name/verify_windows_enrollment_auto_discovery_with_domain_name.rb index ab6637ba7e..64eea21011 100644 --- a/lib/device_management/verify_windows_enrollment_auto_discovery_with_domain_name/verify_windows_enrollment_auto_discovery_with_domain_name.rb +++ b/lib/device_management/verify_windows_enrollment_auto_discovery_with_domain_name/verify_windows_enrollment_auto_discovery_with_domain_name.rb @@ -1 +1 @@ -require_relative 'verify_windows_enrollment_auto_discovery_with_domain_name_response' +require_relative 'verify_windows_enrollment_auto_discovery_with_domain_name_get_response' diff --git a/lib/device_management/verify_windows_enrollment_auto_discovery_with_domain_name/verify_windows_enrollment_auto_discovery_with_domain_name_get_response.rb b/lib/device_management/verify_windows_enrollment_auto_discovery_with_domain_name/verify_windows_enrollment_auto_discovery_with_domain_name_get_response.rb new file mode 100644 index 0000000000..306b0580fb --- /dev/null +++ b/lib/device_management/verify_windows_enrollment_auto_discovery_with_domain_name/verify_windows_enrollment_auto_discovery_with_domain_name_get_response.rb @@ -0,0 +1,85 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../device_management' +require_relative './verify_windows_enrollment_auto_discovery_with_domain_name' + +module MicrosoftGraph + module DeviceManagement + module VerifyWindowsEnrollmentAutoDiscoveryWithDomainName + class VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a verify_windows_enrollment_auto_discovery_with_domain_name_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a boolean + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/device_management/verify_windows_enrollment_auto_discovery_with_domain_name/verify_windows_enrollment_auto_discovery_with_domain_name_request_builder.rb b/lib/device_management/verify_windows_enrollment_auto_discovery_with_domain_name/verify_windows_enrollment_auto_discovery_with_domain_name_request_builder.rb index ac420c5782..7bd6e01e89 100644 --- a/lib/device_management/verify_windows_enrollment_auto_discovery_with_domain_name/verify_windows_enrollment_auto_discovery_with_domain_name_request_builder.rb +++ b/lib/device_management/verify_windows_enrollment_auto_discovery_with_domain_name/verify_windows_enrollment_auto_discovery_with_domain_name_request_builder.rb @@ -24,16 +24,15 @@ def initialize(path_parameters, request_adapter, domain_name=nil) ## ## Invoke function verifyWindowsEnrollmentAutoDiscovery ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of verify_windows_enrollment_auto_discovery_with_domain_name_response + ## @return a Fiber of verify_windows_enrollment_auto_discovery_with_domain_name_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::VerifyWindowsEnrollmentAutoDiscoveryWithDomainName::VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::VerifyWindowsEnrollmentAutoDiscoveryWithDomainName::VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function verifyWindowsEnrollmentAutoDiscovery @@ -42,16 +41,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a verify_windows_enrollment_auto_discovery_with_domain_name_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/verify_windows_enrollment_auto_discovery_with_domain_name/verify_windows_enrollment_auto_discovery_with_domain_name_response.rb b/lib/device_management/verify_windows_enrollment_auto_discovery_with_domain_name/verify_windows_enrollment_auto_discovery_with_domain_name_response.rb deleted file mode 100644 index 00809a7460..0000000000 --- a/lib/device_management/verify_windows_enrollment_auto_discovery_with_domain_name/verify_windows_enrollment_auto_discovery_with_domain_name_response.rb +++ /dev/null @@ -1,85 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../device_management' -require_relative './verify_windows_enrollment_auto_discovery_with_domain_name' - -module MicrosoftGraph - module DeviceManagement - module VerifyWindowsEnrollmentAutoDiscoveryWithDomainName - class VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new verifyWindowsEnrollmentAutoDiscoveryWithDomainNameResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a verify_windows_enrollment_auto_discovery_with_domain_name_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_boolean_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a boolean - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/me/chats/item/messages/item/soft_delete/soft_delete.rb b/lib/device_management/virtual_endpoint/audit_events/audit_events.rb similarity index 100% rename from lib/me/chats/item/messages/item/soft_delete/soft_delete.rb rename to lib/device_management/virtual_endpoint/audit_events/audit_events.rb diff --git a/lib/device_management/virtual_endpoint/audit_events/audit_events_request_builder.rb b/lib/device_management/virtual_endpoint/audit_events/audit_events_request_builder.rb new file mode 100644 index 0000000000..2208dcea3a --- /dev/null +++ b/lib/device_management/virtual_endpoint/audit_events/audit_events_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/cloud_pc_audit_event' +require_relative '../../../models/cloud_pc_audit_event_collection_response' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../device_management' +require_relative '../virtual_endpoint' +require_relative './audit_events' +require_relative './count/count_request_builder' +require_relative './get_audit_activity_types/get_audit_activity_types_request_builder' +require_relative './item/cloud_pc_audit_event_item_request_builder' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module AuditEvents + ## + # Provides operations to manage the auditEvents property of the microsoft.graph.virtualEndpoint entity. + class AuditEventsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::AuditEvents::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the getAuditActivityTypes method. + def get_audit_activity_types() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::AuditEvents::GetAuditActivityTypes::GetAuditActivityTypesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the auditEvents property of the microsoft.graph.virtualEndpoint entity. + ## @param cloud_pc_audit_event_id The unique identifier of cloudPcAuditEvent + ## @return a cloud_pc_audit_event_item_request_builder + ## + def by_cloud_pc_audit_event_id(cloud_pc_audit_event_id) + raise StandardError, 'cloud_pc_audit_event_id cannot be null' if cloud_pc_audit_event_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["cloudPcAuditEvent%2Did"] = cloud_pc_audit_event_id + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::AuditEvents::Item::CloudPcAuditEventItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AuditEventsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/auditEvents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## List all the cloudPcAuditEvent objects for the tenant. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_audit_event_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcAuditEventCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to auditEvents for deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_audit_event + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcAuditEvent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## List all the cloudPcAuditEvent objects for the tenant. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to auditEvents for deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a audit_events_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AuditEventsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # List all the cloudPcAuditEvent objects for the tenant. + class AuditEventsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/me/events/count/count.rb b/lib/device_management/virtual_endpoint/audit_events/count/count.rb similarity index 100% rename from lib/me/events/count/count.rb rename to lib/device_management/virtual_endpoint/audit_events/count/count.rb diff --git a/lib/device_management/virtual_endpoint/audit_events/count/count_request_builder.rb b/lib/device_management/virtual_endpoint/audit_events/count/count_request_builder.rb new file mode 100644 index 0000000000..d5779dcafc --- /dev/null +++ b/lib/device_management/virtual_endpoint/audit_events/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_management' +require_relative '../../virtual_endpoint' +require_relative '../audit_events' +require_relative './count' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module AuditEvents + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/auditEvents/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/device_management/virtual_endpoint/audit_events/get_audit_activity_types/get_audit_activity_types.rb b/lib/device_management/virtual_endpoint/audit_events/get_audit_activity_types/get_audit_activity_types.rb new file mode 100644 index 0000000000..99b1f05a04 --- /dev/null +++ b/lib/device_management/virtual_endpoint/audit_events/get_audit_activity_types/get_audit_activity_types.rb @@ -0,0 +1 @@ +require_relative 'get_audit_activity_types_get_response' diff --git a/lib/device_management/virtual_endpoint/audit_events/get_audit_activity_types/get_audit_activity_types_get_response.rb b/lib/device_management/virtual_endpoint/audit_events/get_audit_activity_types/get_audit_activity_types_get_response.rb new file mode 100644 index 0000000000..c159a0aca7 --- /dev/null +++ b/lib/device_management/virtual_endpoint/audit_events/get_audit_activity_types/get_audit_activity_types_get_response.rb @@ -0,0 +1,74 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/base_collection_pagination_count_response' +require_relative '../../../device_management' +require_relative '../../virtual_endpoint' +require_relative '../audit_events' +require_relative './get_audit_activity_types' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module AuditEvents + module GetAuditActivityTypes + class GetAuditActivityTypesGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetAuditActivityTypesGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_audit_activity_types_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetAuditActivityTypesGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/device_management/virtual_endpoint/audit_events/get_audit_activity_types/get_audit_activity_types_request_builder.rb b/lib/device_management/virtual_endpoint/audit_events/get_audit_activity_types/get_audit_activity_types_request_builder.rb new file mode 100644 index 0000000000..e3214870dc --- /dev/null +++ b/lib/device_management/virtual_endpoint/audit_events/get_audit_activity_types/get_audit_activity_types_request_builder.rb @@ -0,0 +1,115 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_management' +require_relative '../../virtual_endpoint' +require_relative '../audit_events' +require_relative './get_audit_activity_types' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module AuditEvents + module GetAuditActivityTypes + ## + # Provides operations to call the getAuditActivityTypes method. + class GetAuditActivityTypesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new GetAuditActivityTypesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/auditEvents/getAuditActivityTypes(){?%24count,%24filter,%24search,%24skip,%24top}") + end + ## + ## Get audit activity types by tenant ID. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of get_audit_activity_types_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::VirtualEndpoint::AuditEvents::GetAuditActivityTypes::GetAuditActivityTypesGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get audit activity types by tenant ID. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_audit_activity_types_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetAuditActivityTypesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get audit activity types by tenant ID. + class GetAuditActivityTypesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "filter" + return "%24filter" + when "search" + return "%24search" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/device_management/virtual_endpoint/audit_events/item/cloud_pc_audit_event_item_request_builder.rb b/lib/device_management/virtual_endpoint/audit_events/item/cloud_pc_audit_event_item_request_builder.rb new file mode 100644 index 0000000000..d00369a2c1 --- /dev/null +++ b/lib/device_management/virtual_endpoint/audit_events/item/cloud_pc_audit_event_item_request_builder.rb @@ -0,0 +1,166 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/cloud_pc_audit_event' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_management' +require_relative '../../virtual_endpoint' +require_relative '../audit_events' +require_relative './item' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module AuditEvents + module Item + ## + # Provides operations to manage the auditEvents property of the microsoft.graph.virtualEndpoint entity. + class CloudPcAuditEventItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CloudPcAuditEventItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/auditEvents/{cloudPcAuditEvent%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property auditEvents for deviceManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Read the properties and relationships of a cloudPcAuditEvent object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_audit_event + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcAuditEvent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property auditEvents in deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_audit_event + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcAuditEvent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property auditEvents for deviceManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Read the properties and relationships of a cloudPcAuditEvent object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property auditEvents in deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cloud_pc_audit_event_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CloudPcAuditEventItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Read the properties and relationships of a cloudPcAuditEvent object. + class CloudPcAuditEventItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/contacts/item/item.rb b/lib/device_management/virtual_endpoint/audit_events/item/item.rb similarity index 100% rename from lib/me/contacts/item/item.rb rename to lib/device_management/virtual_endpoint/audit_events/item/item.rb diff --git a/lib/me/chats/item/messages/item/undo_soft_delete/undo_soft_delete.rb b/lib/device_management/virtual_endpoint/cloud_p_cs/cloud_p_cs.rb similarity index 100% rename from lib/me/chats/item/messages/item/undo_soft_delete/undo_soft_delete.rb rename to lib/device_management/virtual_endpoint/cloud_p_cs/cloud_p_cs.rb diff --git a/lib/device_management/virtual_endpoint/cloud_p_cs/cloud_p_cs_request_builder.rb b/lib/device_management/virtual_endpoint/cloud_p_cs/cloud_p_cs_request_builder.rb new file mode 100644 index 0000000000..357e9b2238 --- /dev/null +++ b/lib/device_management/virtual_endpoint/cloud_p_cs/cloud_p_cs_request_builder.rb @@ -0,0 +1,182 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/cloud_p_c' +require_relative '../../../models/cloud_p_c_collection_response' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../device_management' +require_relative '../virtual_endpoint' +require_relative './cloud_p_cs' +require_relative './count/count_request_builder' +require_relative './item/cloud_p_c_item_request_builder' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module CloudPCs + ## + # Provides operations to manage the cloudPCs property of the microsoft.graph.virtualEndpoint entity. + class CloudPCsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::CloudPCs::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the cloudPCs property of the microsoft.graph.virtualEndpoint entity. + ## @param cloud_p_c_id The unique identifier of cloudPC + ## @return a cloud_p_c_item_request_builder + ## + def by_cloud_p_c_id(cloud_p_c_id) + raise StandardError, 'cloud_p_c_id cannot be null' if cloud_p_c_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["cloudPC%2Did"] = cloud_p_c_id + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::CloudPCs::Item::CloudPCItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new CloudPCsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## List the cloudPC devices in a tenant. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_p_c_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPCCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to cloudPCs for deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_p_c + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPC.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## List the cloudPC devices in a tenant. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to cloudPCs for deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cloud_p_cs_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CloudPCsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # List the cloudPC devices in a tenant. + class CloudPCsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/me/events/item/attachments/count/count.rb b/lib/device_management/virtual_endpoint/cloud_p_cs/count/count.rb similarity index 100% rename from lib/me/events/item/attachments/count/count.rb rename to lib/device_management/virtual_endpoint/cloud_p_cs/count/count.rb diff --git a/lib/device_management/virtual_endpoint/cloud_p_cs/count/count_request_builder.rb b/lib/device_management/virtual_endpoint/cloud_p_cs/count/count_request_builder.rb new file mode 100644 index 0000000000..2437d4d150 --- /dev/null +++ b/lib/device_management/virtual_endpoint/cloud_p_cs/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_management' +require_relative '../../virtual_endpoint' +require_relative '../cloud_p_cs' +require_relative './count' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module CloudPCs + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/device_management/virtual_endpoint/cloud_p_cs/item/cloud_p_c_item_request_builder.rb b/lib/device_management/virtual_endpoint/cloud_p_cs/item/cloud_p_c_item_request_builder.rb new file mode 100644 index 0000000000..e7d0291599 --- /dev/null +++ b/lib/device_management/virtual_endpoint/cloud_p_cs/item/cloud_p_c_item_request_builder.rb @@ -0,0 +1,196 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/cloud_p_c' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_management' +require_relative '../../virtual_endpoint' +require_relative '../cloud_p_cs' +require_relative './end_grace_period/end_grace_period_request_builder' +require_relative './item' +require_relative './reboot/reboot_request_builder' +require_relative './rename/rename_request_builder' +require_relative './restore/restore_request_builder' +require_relative './troubleshoot/troubleshoot_request_builder' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module CloudPCs + module Item + ## + # Provides operations to manage the cloudPCs property of the microsoft.graph.virtualEndpoint entity. + class CloudPCItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the endGracePeriod method. + def end_grace_period() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::CloudPCs::Item::EndGracePeriod::EndGracePeriodRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the reboot method. + def reboot() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::CloudPCs::Item::Reboot::RebootRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rename method. + def rename() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::CloudPCs::Item::Rename::RenameRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the restore method. + def restore() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::CloudPCs::Item::Restore::RestoreRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the troubleshoot method. + def troubleshoot() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::CloudPCs::Item::Troubleshoot::TroubleshootRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new CloudPCItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property cloudPCs for deviceManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Read the properties and relationships of a specific cloudPC object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_p_c + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPC.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property cloudPCs in deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_p_c + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPC.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property cloudPCs for deviceManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Read the properties and relationships of a specific cloudPC object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property cloudPCs in deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cloud_p_c_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CloudPCItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Read the properties and relationships of a specific cloudPC object. + class CloudPCItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/messages/messages.rb b/lib/device_management/virtual_endpoint/cloud_p_cs/item/end_grace_period/end_grace_period.rb similarity index 100% rename from lib/me/chats/item/messages/messages.rb rename to lib/device_management/virtual_endpoint/cloud_p_cs/item/end_grace_period/end_grace_period.rb diff --git a/lib/device_management/virtual_endpoint/cloud_p_cs/item/end_grace_period/end_grace_period_request_builder.rb b/lib/device_management/virtual_endpoint/cloud_p_cs/item/end_grace_period/end_grace_period_request_builder.rb new file mode 100644 index 0000000000..832a68db22 --- /dev/null +++ b/lib/device_management/virtual_endpoint/cloud_p_cs/item/end_grace_period/end_grace_period_request_builder.rb @@ -0,0 +1,74 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_management' +require_relative '../../../virtual_endpoint' +require_relative '../../cloud_p_cs' +require_relative '../item' +require_relative './end_grace_period' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module CloudPCs + module Item + module EndGracePeriod + ## + # Provides operations to call the endGracePeriod method. + class EndGracePeriodRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EndGracePeriodRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/endGracePeriod") + end + ## + ## End the grace period for a specific cloudPC object. The grace period is triggered when the Cloud PC license is removed or the provisioning policy is unassigned. It allows users to access Cloud PCs for up to seven days before deprovisioning occurs. Ending the grace period immediately deprovisions the Cloud PC without waiting the seven days. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## End the grace period for a specific cloudPC object. The grace period is triggered when the Cloud PC license is removed or the provisioning policy is unassigned. It allows users to access Cloud PCs for up to seven days before deprovisioning occurs. Ending the grace period immediately deprovisions the Cloud PC without waiting the seven days. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a end_grace_period_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EndGracePeriodRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end +end diff --git a/lib/me/created_objects/item/item.rb b/lib/device_management/virtual_endpoint/cloud_p_cs/item/item.rb similarity index 100% rename from lib/me/created_objects/item/item.rb rename to lib/device_management/virtual_endpoint/cloud_p_cs/item/item.rb diff --git a/lib/me/chats/item/permission_grants/item/restore/restore.rb b/lib/device_management/virtual_endpoint/cloud_p_cs/item/reboot/reboot.rb similarity index 100% rename from lib/me/chats/item/permission_grants/item/restore/restore.rb rename to lib/device_management/virtual_endpoint/cloud_p_cs/item/reboot/reboot.rb diff --git a/lib/device_management/virtual_endpoint/cloud_p_cs/item/reboot/reboot_request_builder.rb b/lib/device_management/virtual_endpoint/cloud_p_cs/item/reboot/reboot_request_builder.rb new file mode 100644 index 0000000000..3c691af154 --- /dev/null +++ b/lib/device_management/virtual_endpoint/cloud_p_cs/item/reboot/reboot_request_builder.rb @@ -0,0 +1,74 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_management' +require_relative '../../../virtual_endpoint' +require_relative '../../cloud_p_cs' +require_relative '../item' +require_relative './reboot' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module CloudPCs + module Item + module Reboot + ## + # Provides operations to call the reboot method. + class RebootRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RebootRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/reboot") + end + ## + ## Reboot a specific cloudPC object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Reboot a specific cloudPC object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reboot_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RebootRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end +end diff --git a/lib/device_management/virtual_endpoint/cloud_p_cs/item/rename/rename.rb b/lib/device_management/virtual_endpoint/cloud_p_cs/item/rename/rename.rb new file mode 100644 index 0000000000..7efbc40e6d --- /dev/null +++ b/lib/device_management/virtual_endpoint/cloud_p_cs/item/rename/rename.rb @@ -0,0 +1 @@ +require_relative 'rename_post_request_body' diff --git a/lib/device_management/virtual_endpoint/cloud_p_cs/item/rename/rename_post_request_body.rb b/lib/device_management/virtual_endpoint/cloud_p_cs/item/rename/rename_post_request_body.rb new file mode 100644 index 0000000000..ea45d5bdc3 --- /dev/null +++ b/lib/device_management/virtual_endpoint/cloud_p_cs/item/rename/rename_post_request_body.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../device_management' +require_relative '../../../virtual_endpoint' +require_relative '../../cloud_p_cs' +require_relative '../item' +require_relative './rename' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module CloudPCs + module Item + module Rename + class RenamePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The displayName property + @display_name + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new RenamePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a rename_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return RenamePostRequestBody.new + end + ## + ## Gets the displayName property value. The displayName property + ## @return a string + ## + def display_name + return @display_name + end + ## + ## Sets the displayName property value. The displayName property + ## @param value Value to set for the displayName property. + ## @return a void + ## + def display_name=(value) + @display_name = value + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "displayName" => lambda {|n| @display_name = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("displayName", @display_name) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end +end diff --git a/lib/device_management/virtual_endpoint/cloud_p_cs/item/rename/rename_request_builder.rb b/lib/device_management/virtual_endpoint/cloud_p_cs/item/rename/rename_request_builder.rb new file mode 100644 index 0000000000..35eea3744a --- /dev/null +++ b/lib/device_management/virtual_endpoint/cloud_p_cs/item/rename/rename_request_builder.rb @@ -0,0 +1,79 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_management' +require_relative '../../../virtual_endpoint' +require_relative '../../cloud_p_cs' +require_relative '../item' +require_relative './rename' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module CloudPCs + module Item + module Rename + ## + # Provides operations to call the rename method. + class RenameRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RenameRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/rename") + end + ## + ## Rename a specific cloudPC object. Use this API to update the displayName of a Cloud PC entity. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Rename a specific cloudPC object. Use this API to update the displayName of a Cloud PC entity. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rename_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RenameRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end +end diff --git a/lib/device_management/virtual_endpoint/cloud_p_cs/item/restore/restore.rb b/lib/device_management/virtual_endpoint/cloud_p_cs/item/restore/restore.rb new file mode 100644 index 0000000000..94107de110 --- /dev/null +++ b/lib/device_management/virtual_endpoint/cloud_p_cs/item/restore/restore.rb @@ -0,0 +1 @@ +require_relative 'restore_post_request_body' diff --git a/lib/device_management/virtual_endpoint/cloud_p_cs/item/restore/restore_post_request_body.rb b/lib/device_management/virtual_endpoint/cloud_p_cs/item/restore/restore_post_request_body.rb new file mode 100644 index 0000000000..f870a24ae3 --- /dev/null +++ b/lib/device_management/virtual_endpoint/cloud_p_cs/item/restore/restore_post_request_body.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../device_management' +require_relative '../../../virtual_endpoint' +require_relative '../../cloud_p_cs' +require_relative '../item' +require_relative './restore' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module CloudPCs + module Item + module Restore + class RestorePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The cloudPcSnapshotId property + @cloud_pc_snapshot_id + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the cloudPcSnapshotId property value. The cloudPcSnapshotId property + ## @return a string + ## + def cloud_pc_snapshot_id + return @cloud_pc_snapshot_id + end + ## + ## Sets the cloudPcSnapshotId property value. The cloudPcSnapshotId property + ## @param value Value to set for the cloudPcSnapshotId property. + ## @return a void + ## + def cloud_pc_snapshot_id=(value) + @cloud_pc_snapshot_id = value + end + ## + ## Instantiates a new RestorePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a restore_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return RestorePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "cloudPcSnapshotId" => lambda {|n| @cloud_pc_snapshot_id = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("cloudPcSnapshotId", @cloud_pc_snapshot_id) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end +end diff --git a/lib/device_management/virtual_endpoint/cloud_p_cs/item/restore/restore_request_builder.rb b/lib/device_management/virtual_endpoint/cloud_p_cs/item/restore/restore_request_builder.rb new file mode 100644 index 0000000000..b4e0bd49c0 --- /dev/null +++ b/lib/device_management/virtual_endpoint/cloud_p_cs/item/restore/restore_request_builder.rb @@ -0,0 +1,79 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_management' +require_relative '../../../virtual_endpoint' +require_relative '../../cloud_p_cs' +require_relative '../item' +require_relative './restore' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module CloudPCs + module Item + module Restore + ## + # Provides operations to call the restore method. + class RestoreRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RestoreRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/restore") + end + ## + ## Restore a specific cloudPC object to a previous state from a snapshot. Use this API to trigger a remote action that restores a Cloud PC device to a previous state. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Restore a specific cloudPC object to a previous state from a snapshot. Use this API to trigger a remote action that restores a Cloud PC device to a previous state. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a restore_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RestoreRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/permission_grants/permission_grants.rb b/lib/device_management/virtual_endpoint/cloud_p_cs/item/troubleshoot/troubleshoot.rb similarity index 100% rename from lib/me/chats/item/permission_grants/permission_grants.rb rename to lib/device_management/virtual_endpoint/cloud_p_cs/item/troubleshoot/troubleshoot.rb diff --git a/lib/device_management/virtual_endpoint/cloud_p_cs/item/troubleshoot/troubleshoot_request_builder.rb b/lib/device_management/virtual_endpoint/cloud_p_cs/item/troubleshoot/troubleshoot_request_builder.rb new file mode 100644 index 0000000000..db2cb6796f --- /dev/null +++ b/lib/device_management/virtual_endpoint/cloud_p_cs/item/troubleshoot/troubleshoot_request_builder.rb @@ -0,0 +1,74 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_management' +require_relative '../../../virtual_endpoint' +require_relative '../../cloud_p_cs' +require_relative '../item' +require_relative './troubleshoot' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module CloudPCs + module Item + module Troubleshoot + ## + # Provides operations to call the troubleshoot method. + class TroubleshootRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new TroubleshootRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/troubleshoot") + end + ## + ## Troubleshoot a specific cloudPC object. Use this API to check the health status of the Cloud PC and the session host. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Troubleshoot a specific cloudPC object. Use this API to check the health status of the Cloud PC and the session host. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a troubleshoot_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TroubleshootRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end +end diff --git a/lib/me/events/item/extensions/count/count.rb b/lib/device_management/virtual_endpoint/device_images/count/count.rb similarity index 100% rename from lib/me/events/item/extensions/count/count.rb rename to lib/device_management/virtual_endpoint/device_images/count/count.rb diff --git a/lib/device_management/virtual_endpoint/device_images/count/count_request_builder.rb b/lib/device_management/virtual_endpoint/device_images/count/count_request_builder.rb new file mode 100644 index 0000000000..a9a906f461 --- /dev/null +++ b/lib/device_management/virtual_endpoint/device_images/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_management' +require_relative '../../virtual_endpoint' +require_relative '../device_images' +require_relative './count' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module DeviceImages + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/pinned_messages/item/message/message.rb b/lib/device_management/virtual_endpoint/device_images/device_images.rb similarity index 100% rename from lib/me/chats/item/pinned_messages/item/message/message.rb rename to lib/device_management/virtual_endpoint/device_images/device_images.rb diff --git a/lib/device_management/virtual_endpoint/device_images/device_images_request_builder.rb b/lib/device_management/virtual_endpoint/device_images/device_images_request_builder.rb new file mode 100644 index 0000000000..07579e4820 --- /dev/null +++ b/lib/device_management/virtual_endpoint/device_images/device_images_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/cloud_pc_device_image' +require_relative '../../../models/cloud_pc_device_image_collection_response' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../device_management' +require_relative '../virtual_endpoint' +require_relative './count/count_request_builder' +require_relative './device_images' +require_relative './get_source_images/get_source_images_request_builder' +require_relative './item/cloud_pc_device_image_item_request_builder' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module DeviceImages + ## + # Provides operations to manage the deviceImages property of the microsoft.graph.virtualEndpoint entity. + class DeviceImagesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::DeviceImages::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the getSourceImages method. + def get_source_images() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::DeviceImages::GetSourceImages::GetSourceImagesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the deviceImages property of the microsoft.graph.virtualEndpoint entity. + ## @param cloud_pc_device_image_id The unique identifier of cloudPcDeviceImage + ## @return a cloud_pc_device_image_item_request_builder + ## + def by_cloud_pc_device_image_id(cloud_pc_device_image_id) + raise StandardError, 'cloud_pc_device_image_id cannot be null' if cloud_pc_device_image_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["cloudPcDeviceImage%2Did"] = cloud_pc_device_image_id + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::DeviceImages::Item::CloudPcDeviceImageItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new DeviceImagesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## List the properties and relationships of cloudPcDeviceImage objects (operating system images) uploaded to Cloud PC. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_device_image_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcDeviceImageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create a new cloudPcDeviceImage object. Upload a custom OS image that you can later provision on Cloud PCs. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_device_image + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcDeviceImage.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## List the properties and relationships of cloudPcDeviceImage objects (operating system images) uploaded to Cloud PC. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create a new cloudPcDeviceImage object. Upload a custom OS image that you can later provision on Cloud PCs. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_images_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceImagesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # List the properties and relationships of cloudPcDeviceImage objects (operating system images) uploaded to Cloud PC. + class DeviceImagesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/device_management/virtual_endpoint/device_images/get_source_images/get_source_images.rb b/lib/device_management/virtual_endpoint/device_images/get_source_images/get_source_images.rb new file mode 100644 index 0000000000..d72bf0fc6f --- /dev/null +++ b/lib/device_management/virtual_endpoint/device_images/get_source_images/get_source_images.rb @@ -0,0 +1 @@ +require_relative 'get_source_images_get_response' diff --git a/lib/device_management/virtual_endpoint/device_images/get_source_images/get_source_images_get_response.rb b/lib/device_management/virtual_endpoint/device_images/get_source_images/get_source_images_get_response.rb new file mode 100644 index 0000000000..9892c64df3 --- /dev/null +++ b/lib/device_management/virtual_endpoint/device_images/get_source_images/get_source_images_get_response.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/base_collection_pagination_count_response' +require_relative '../../../../models/cloud_pc_source_device_image' +require_relative '../../../device_management' +require_relative '../../virtual_endpoint' +require_relative '../device_images' +require_relative './get_source_images' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module DeviceImages + module GetSourceImages + class GetSourceImagesGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetSourceImagesGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_source_images_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetSourceImagesGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CloudPcSourceDeviceImage.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a cloud_pc_source_device_image + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/device_management/virtual_endpoint/device_images/get_source_images/get_source_images_request_builder.rb b/lib/device_management/virtual_endpoint/device_images/get_source_images/get_source_images_request_builder.rb new file mode 100644 index 0000000000..5a2dcde789 --- /dev/null +++ b/lib/device_management/virtual_endpoint/device_images/get_source_images/get_source_images_request_builder.rb @@ -0,0 +1,115 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_management' +require_relative '../../virtual_endpoint' +require_relative '../device_images' +require_relative './get_source_images' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module DeviceImages + module GetSourceImages + ## + # Provides operations to call the getSourceImages method. + class GetSourceImagesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new GetSourceImagesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages/getSourceImages(){?%24count,%24filter,%24search,%24skip,%24top}") + end + ## + ## Get cloudPcSourceDeviceImage objects that can be uploaded and used on Cloud PCs. View a list of all the managed image resources from your Microsoft Entra subscriptions. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of get_source_images_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DeviceManagement::VirtualEndpoint::DeviceImages::GetSourceImages::GetSourceImagesGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get cloudPcSourceDeviceImage objects that can be uploaded and used on Cloud PCs. View a list of all the managed image resources from your Microsoft Entra subscriptions. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_source_images_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetSourceImagesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get cloudPcSourceDeviceImage objects that can be uploaded and used on Cloud PCs. View a list of all the managed image resources from your Microsoft Entra subscriptions. + class GetSourceImagesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "filter" + return "%24filter" + when "search" + return "%24search" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/device_management/virtual_endpoint/device_images/item/cloud_pc_device_image_item_request_builder.rb b/lib/device_management/virtual_endpoint/device_images/item/cloud_pc_device_image_item_request_builder.rb new file mode 100644 index 0000000000..5cbd17363a --- /dev/null +++ b/lib/device_management/virtual_endpoint/device_images/item/cloud_pc_device_image_item_request_builder.rb @@ -0,0 +1,166 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/cloud_pc_device_image' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_management' +require_relative '../../virtual_endpoint' +require_relative '../device_images' +require_relative './item' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module DeviceImages + module Item + ## + # Provides operations to manage the deviceImages property of the microsoft.graph.virtualEndpoint entity. + class CloudPcDeviceImageItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CloudPcDeviceImageItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages/{cloudPcDeviceImage%2Did}{?%24expand,%24select}") + end + ## + ## Delete a cloudPcDeviceImage object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Read the properties and relationships of a specific cloudPcDeviceImage object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_device_image + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcDeviceImage.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property deviceImages in deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_device_image + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcDeviceImage.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete a cloudPcDeviceImage object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Read the properties and relationships of a specific cloudPcDeviceImage object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property deviceImages in deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cloud_pc_device_image_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CloudPcDeviceImageItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Read the properties and relationships of a specific cloudPcDeviceImage object. + class CloudPcDeviceImageItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/device_management_troubleshooting_events/item/item.rb b/lib/device_management/virtual_endpoint/device_images/item/item.rb similarity index 100% rename from lib/me/device_management_troubleshooting_events/item/item.rb rename to lib/device_management/virtual_endpoint/device_images/item/item.rb diff --git a/lib/me/events/item/instances/count/count.rb b/lib/device_management/virtual_endpoint/gallery_images/count/count.rb similarity index 100% rename from lib/me/events/item/instances/count/count.rb rename to lib/device_management/virtual_endpoint/gallery_images/count/count.rb diff --git a/lib/device_management/virtual_endpoint/gallery_images/count/count_request_builder.rb b/lib/device_management/virtual_endpoint/gallery_images/count/count_request_builder.rb new file mode 100644 index 0000000000..a2935a0c05 --- /dev/null +++ b/lib/device_management/virtual_endpoint/gallery_images/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_management' +require_relative '../../virtual_endpoint' +require_relative '../gallery_images' +require_relative './count' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module GalleryImages + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/galleryImages/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/pinned_messages/pinned_messages.rb b/lib/device_management/virtual_endpoint/gallery_images/gallery_images.rb similarity index 100% rename from lib/me/chats/item/pinned_messages/pinned_messages.rb rename to lib/device_management/virtual_endpoint/gallery_images/gallery_images.rb diff --git a/lib/device_management/virtual_endpoint/gallery_images/gallery_images_request_builder.rb b/lib/device_management/virtual_endpoint/gallery_images/gallery_images_request_builder.rb new file mode 100644 index 0000000000..cf540db8ee --- /dev/null +++ b/lib/device_management/virtual_endpoint/gallery_images/gallery_images_request_builder.rb @@ -0,0 +1,182 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/cloud_pc_gallery_image' +require_relative '../../../models/cloud_pc_gallery_image_collection_response' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../device_management' +require_relative '../virtual_endpoint' +require_relative './count/count_request_builder' +require_relative './gallery_images' +require_relative './item/cloud_pc_gallery_image_item_request_builder' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module GalleryImages + ## + # Provides operations to manage the galleryImages property of the microsoft.graph.virtualEndpoint entity. + class GalleryImagesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::GalleryImages::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the galleryImages property of the microsoft.graph.virtualEndpoint entity. + ## @param cloud_pc_gallery_image_id The unique identifier of cloudPcGalleryImage + ## @return a cloud_pc_gallery_image_item_request_builder + ## + def by_cloud_pc_gallery_image_id(cloud_pc_gallery_image_id) + raise StandardError, 'cloud_pc_gallery_image_id cannot be null' if cloud_pc_gallery_image_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["cloudPcGalleryImage%2Did"] = cloud_pc_gallery_image_id + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::GalleryImages::Item::CloudPcGalleryImageItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new GalleryImagesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/galleryImages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## List the properties and relationships of cloudPcGalleryImage objects. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_gallery_image_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcGalleryImageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to galleryImages for deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_gallery_image + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcGalleryImage.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## List the properties and relationships of cloudPcGalleryImage objects. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to galleryImages for deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a gallery_images_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GalleryImagesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # List the properties and relationships of cloudPcGalleryImage objects. + class GalleryImagesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/device_management/virtual_endpoint/gallery_images/item/cloud_pc_gallery_image_item_request_builder.rb b/lib/device_management/virtual_endpoint/gallery_images/item/cloud_pc_gallery_image_item_request_builder.rb new file mode 100644 index 0000000000..2f46ae2ce5 --- /dev/null +++ b/lib/device_management/virtual_endpoint/gallery_images/item/cloud_pc_gallery_image_item_request_builder.rb @@ -0,0 +1,166 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/cloud_pc_gallery_image' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_management' +require_relative '../../virtual_endpoint' +require_relative '../gallery_images' +require_relative './item' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module GalleryImages + module Item + ## + # Provides operations to manage the galleryImages property of the microsoft.graph.virtualEndpoint entity. + class CloudPcGalleryImageItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CloudPcGalleryImageItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/galleryImages/{cloudPcGalleryImage%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property galleryImages for deviceManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Read the properties and relationships of a specific cloudPcGalleryImage object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_gallery_image + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcGalleryImage.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property galleryImages in deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_gallery_image + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcGalleryImage.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property galleryImages for deviceManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Read the properties and relationships of a specific cloudPcGalleryImage object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property galleryImages in deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cloud_pc_gallery_image_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CloudPcGalleryImageItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Read the properties and relationships of a specific cloudPcGalleryImage object. + class CloudPcGalleryImageItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/direct_reports/item/item.rb b/lib/device_management/virtual_endpoint/gallery_images/item/item.rb similarity index 100% rename from lib/me/direct_reports/item/item.rb rename to lib/device_management/virtual_endpoint/gallery_images/item/item.rb diff --git a/lib/me/events/item/instances/item/attachments/count/count.rb b/lib/device_management/virtual_endpoint/on_premises_connections/count/count.rb similarity index 100% rename from lib/me/events/item/instances/item/attachments/count/count.rb rename to lib/device_management/virtual_endpoint/on_premises_connections/count/count.rb diff --git a/lib/device_management/virtual_endpoint/on_premises_connections/count/count_request_builder.rb b/lib/device_management/virtual_endpoint/on_premises_connections/count/count_request_builder.rb new file mode 100644 index 0000000000..b116646a31 --- /dev/null +++ b/lib/device_management/virtual_endpoint/on_premises_connections/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_management' +require_relative '../../virtual_endpoint' +require_relative '../on_premises_connections' +require_relative './count' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module OnPremisesConnections + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/onPremisesConnections/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/device_management/virtual_endpoint/on_premises_connections/item/cloud_pc_on_premises_connection_item_request_builder.rb b/lib/device_management/virtual_endpoint/on_premises_connections/item/cloud_pc_on_premises_connection_item_request_builder.rb new file mode 100644 index 0000000000..effde2c158 --- /dev/null +++ b/lib/device_management/virtual_endpoint/on_premises_connections/item/cloud_pc_on_premises_connection_item_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/cloud_pc_on_premises_connection' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_management' +require_relative '../../virtual_endpoint' +require_relative '../on_premises_connections' +require_relative './item' +require_relative './run_health_checks/run_health_checks_request_builder' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module OnPremisesConnections + module Item + ## + # Provides operations to manage the onPremisesConnections property of the microsoft.graph.virtualEndpoint entity. + class CloudPcOnPremisesConnectionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the runHealthChecks method. + def run_health_checks() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::OnPremisesConnections::Item::RunHealthChecks::RunHealthChecksRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new CloudPcOnPremisesConnectionItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/onPremisesConnections/{cloudPcOnPremisesConnection%2Did}{?%24expand,%24select}") + end + ## + ## Delete a specific cloudPcOnPremisesConnection object. When you delete an Azure network connection, permissions to the service are removed from the specified Azure resources. You cannot delete an Azure network connection when it's in use, as indicated by the inUse property. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Read the properties and relationships of the cloudPcOnPremisesConnection object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_on_premises_connection + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcOnPremisesConnection.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the properties of a cloudPcOnPremisesConnection object. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_on_premises_connection + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcOnPremisesConnection.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete a specific cloudPcOnPremisesConnection object. When you delete an Azure network connection, permissions to the service are removed from the specified Azure resources. You cannot delete an Azure network connection when it's in use, as indicated by the inUse property. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Read the properties and relationships of the cloudPcOnPremisesConnection object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the properties of a cloudPcOnPremisesConnection object. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cloud_pc_on_premises_connection_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CloudPcOnPremisesConnectionItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Read the properties and relationships of the cloudPcOnPremisesConnection object. + class CloudPcOnPremisesConnectionItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/drives/item/item.rb b/lib/device_management/virtual_endpoint/on_premises_connections/item/item.rb similarity index 100% rename from lib/me/drives/item/item.rb rename to lib/device_management/virtual_endpoint/on_premises_connections/item/item.rb diff --git a/lib/me/chats/item/tabs/item/teams_app/teams_app.rb b/lib/device_management/virtual_endpoint/on_premises_connections/item/run_health_checks/run_health_checks.rb similarity index 100% rename from lib/me/chats/item/tabs/item/teams_app/teams_app.rb rename to lib/device_management/virtual_endpoint/on_premises_connections/item/run_health_checks/run_health_checks.rb diff --git a/lib/device_management/virtual_endpoint/on_premises_connections/item/run_health_checks/run_health_checks_request_builder.rb b/lib/device_management/virtual_endpoint/on_premises_connections/item/run_health_checks/run_health_checks_request_builder.rb new file mode 100644 index 0000000000..21b9e24aa0 --- /dev/null +++ b/lib/device_management/virtual_endpoint/on_premises_connections/item/run_health_checks/run_health_checks_request_builder.rb @@ -0,0 +1,74 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_management' +require_relative '../../../virtual_endpoint' +require_relative '../../on_premises_connections' +require_relative '../item' +require_relative './run_health_checks' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module OnPremisesConnections + module Item + module RunHealthChecks + ## + # Provides operations to call the runHealthChecks method. + class RunHealthChecksRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RunHealthChecksRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/onPremisesConnections/{cloudPcOnPremisesConnection%2Did}/runHealthChecks") + end + ## + ## Run health checks on the cloudPcOnPremisesConnection object. It triggers a new health check for the cloudPcOnPremisesConnection (../resources/cloudpconpremisesconnection.md) object and changes the healthCheckStatus and [healthCheckStatusDetail properties when check finished. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Run health checks on the cloudPcOnPremisesConnection object. It triggers a new health check for the cloudPcOnPremisesConnection (../resources/cloudpconpremisesconnection.md) object and changes the healthCheckStatus and [healthCheckStatusDetail properties when check finished. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a run_health_checks_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RunHealthChecksRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end +end diff --git a/lib/me/chats/item/tabs/tabs.rb b/lib/device_management/virtual_endpoint/on_premises_connections/on_premises_connections.rb similarity index 100% rename from lib/me/chats/item/tabs/tabs.rb rename to lib/device_management/virtual_endpoint/on_premises_connections/on_premises_connections.rb diff --git a/lib/device_management/virtual_endpoint/on_premises_connections/on_premises_connections_request_builder.rb b/lib/device_management/virtual_endpoint/on_premises_connections/on_premises_connections_request_builder.rb new file mode 100644 index 0000000000..13ec54e395 --- /dev/null +++ b/lib/device_management/virtual_endpoint/on_premises_connections/on_premises_connections_request_builder.rb @@ -0,0 +1,182 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/cloud_pc_on_premises_connection' +require_relative '../../../models/cloud_pc_on_premises_connection_collection_response' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../device_management' +require_relative '../virtual_endpoint' +require_relative './count/count_request_builder' +require_relative './item/cloud_pc_on_premises_connection_item_request_builder' +require_relative './on_premises_connections' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module OnPremisesConnections + ## + # Provides operations to manage the onPremisesConnections property of the microsoft.graph.virtualEndpoint entity. + class OnPremisesConnectionsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::OnPremisesConnections::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the onPremisesConnections property of the microsoft.graph.virtualEndpoint entity. + ## @param cloud_pc_on_premises_connection_id The unique identifier of cloudPcOnPremisesConnection + ## @return a cloud_pc_on_premises_connection_item_request_builder + ## + def by_cloud_pc_on_premises_connection_id(cloud_pc_on_premises_connection_id) + raise StandardError, 'cloud_pc_on_premises_connection_id cannot be null' if cloud_pc_on_premises_connection_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["cloudPcOnPremisesConnection%2Did"] = cloud_pc_on_premises_connection_id + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::OnPremisesConnections::Item::CloudPcOnPremisesConnectionItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new OnPremisesConnectionsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/onPremisesConnections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## List properties and relationships of the cloudPcOnPremisesConnection objects. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_on_premises_connection_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcOnPremisesConnectionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create a new cloudPcOnPremisesConnection object for provisioning Cloud PCs. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_on_premises_connection + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcOnPremisesConnection.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## List properties and relationships of the cloudPcOnPremisesConnection objects. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create a new cloudPcOnPremisesConnection object for provisioning Cloud PCs. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a on_premises_connections_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnPremisesConnectionsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # List properties and relationships of the cloudPcOnPremisesConnection objects. + class OnPremisesConnectionsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/me/events/item/instances/item/extensions/count/count.rb b/lib/device_management/virtual_endpoint/provisioning_policies/count/count.rb similarity index 100% rename from lib/me/events/item/instances/item/extensions/count/count.rb rename to lib/device_management/virtual_endpoint/provisioning_policies/count/count.rb diff --git a/lib/device_management/virtual_endpoint/provisioning_policies/count/count_request_builder.rb b/lib/device_management/virtual_endpoint/provisioning_policies/count/count_request_builder.rb new file mode 100644 index 0000000000..760524ba00 --- /dev/null +++ b/lib/device_management/virtual_endpoint/provisioning_policies/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_management' +require_relative '../../virtual_endpoint' +require_relative '../provisioning_policies' +require_relative './count' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module ProvisioningPolicies + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/device_management/virtual_endpoint/provisioning_policies/item/assign/assign.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/assign/assign.rb new file mode 100644 index 0000000000..6d568921e5 --- /dev/null +++ b/lib/device_management/virtual_endpoint/provisioning_policies/item/assign/assign.rb @@ -0,0 +1 @@ +require_relative 'assign_post_request_body' diff --git a/lib/device_management/virtual_endpoint/provisioning_policies/item/assign/assign_post_request_body.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/assign/assign_post_request_body.rb new file mode 100644 index 0000000000..65513e0fad --- /dev/null +++ b/lib/device_management/virtual_endpoint/provisioning_policies/item/assign/assign_post_request_body.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/cloud_pc_provisioning_policy_assignment' +require_relative '../../../../device_management' +require_relative '../../../virtual_endpoint' +require_relative '../../provisioning_policies' +require_relative '../item' +require_relative './assign' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module ProvisioningPolicies + module Item + module Assign + class AssignPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The assignments property + @assignments + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the assignments property value. The assignments property + ## @return a cloud_pc_provisioning_policy_assignment + ## + def assignments + return @assignments + end + ## + ## Sets the assignments property value. The assignments property + ## @param value Value to set for the assignments property. + ## @return a void + ## + def assignments=(value) + @assignments = value + end + ## + ## Instantiates a new AssignPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a assign_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AssignPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "assignments" => lambda {|n| @assignments = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CloudPcProvisioningPolicyAssignment.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_collection_of_object_values("assignments", @assignments) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end +end diff --git a/lib/device_management/virtual_endpoint/provisioning_policies/item/assign/assign_request_builder.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/assign/assign_request_builder.rb new file mode 100644 index 0000000000..95c026e7a0 --- /dev/null +++ b/lib/device_management/virtual_endpoint/provisioning_policies/item/assign/assign_request_builder.rb @@ -0,0 +1,79 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_management' +require_relative '../../../virtual_endpoint' +require_relative '../../provisioning_policies' +require_relative '../item' +require_relative './assign' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module ProvisioningPolicies + module Item + module Assign + ## + # Provides operations to call the assign method. + class AssignRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new AssignRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assign") + end + ## + ## Assign a cloudPcProvisioningPolicy to user groups. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Assign a cloudPcProvisioningPolicy to user groups. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assign_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end +end diff --git a/lib/me/contact_folders/contact_folders.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/assignments.rb similarity index 100% rename from lib/me/contact_folders/contact_folders.rb rename to lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/assignments.rb diff --git a/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/assignments_request_builder.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/assignments_request_builder.rb new file mode 100644 index 0000000000..ecd7fe2007 --- /dev/null +++ b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/assignments_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/cloud_pc_provisioning_policy_assignment' +require_relative '../../../../../models/cloud_pc_provisioning_policy_assignment_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_management' +require_relative '../../../virtual_endpoint' +require_relative '../../provisioning_policies' +require_relative '../item' +require_relative './assignments' +require_relative './count/count_request_builder' +require_relative './item/cloud_pc_provisioning_policy_assignment_item_request_builder' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module ProvisioningPolicies + module Item + module Assignments + ## + # Provides operations to manage the assignments property of the microsoft.graph.cloudPcProvisioningPolicy entity. + class AssignmentsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::ProvisioningPolicies::Item::Assignments::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the assignments property of the microsoft.graph.cloudPcProvisioningPolicy entity. + ## @param cloud_pc_provisioning_policy_assignment_id The unique identifier of cloudPcProvisioningPolicyAssignment + ## @return a cloud_pc_provisioning_policy_assignment_item_request_builder + ## + def by_cloud_pc_provisioning_policy_assignment_id(cloud_pc_provisioning_policy_assignment_id) + raise StandardError, 'cloud_pc_provisioning_policy_assignment_id cannot be null' if cloud_pc_provisioning_policy_assignment_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["cloudPcProvisioningPolicyAssignment%2Did"] = cloud_pc_provisioning_policy_assignment_id + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::ProvisioningPolicies::Item::Assignments::Item::CloudPcProvisioningPolicyAssignmentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AssignmentsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## A defined collection of provisioning policy assignments. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have provisioning policy assigned. Returned only on $expand. For an example about how to get the assignments relationship, see Get cloudPcProvisioningPolicy. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_provisioning_policy_assignment_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcProvisioningPolicyAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to assignments for deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_provisioning_policy_assignment + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcProvisioningPolicyAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## A defined collection of provisioning policy assignments. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have provisioning policy assigned. Returned only on $expand. For an example about how to get the assignments relationship, see Get cloudPcProvisioningPolicy. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to assignments for deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # A defined collection of provisioning policy assignments. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have provisioning policy assigned. Returned only on $expand. For an example about how to get the assignments relationship, see Get cloudPcProvisioningPolicy. + class AssignmentsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/extensions/count/count.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/count/count.rb similarity index 100% rename from lib/me/extensions/count/count.rb rename to lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/count/count.rb diff --git a/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/count/count_request_builder.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/count/count_request_builder.rb new file mode 100644 index 0000000000..4a1a26a6d6 --- /dev/null +++ b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_management' +require_relative '../../../../virtual_endpoint' +require_relative '../../../provisioning_policies' +require_relative '../../item' +require_relative '../assignments' +require_relative './count' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module ProvisioningPolicies + module Item + module Assignments + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/contact_folders/item/child_folders/child_folders.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/assigned_users.rb similarity index 100% rename from lib/me/contact_folders/item/child_folders/child_folders.rb rename to lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/assigned_users.rb diff --git a/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/assigned_users_request_builder.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/assigned_users_request_builder.rb new file mode 100644 index 0000000000..5e01cb8890 --- /dev/null +++ b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/assigned_users_request_builder.rb @@ -0,0 +1,158 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../models/user_collection_response' +require_relative '../../../../../../device_management' +require_relative '../../../../../virtual_endpoint' +require_relative '../../../../provisioning_policies' +require_relative '../../../item' +require_relative '../../assignments' +require_relative '../item' +require_relative './assigned_users' +require_relative './count/count_request_builder' +require_relative './item/user_item_request_builder' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module ProvisioningPolicies + module Item + module Assignments + module Item + module AssignedUsers + ## + # Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity. + class AssignedUsersRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::ProvisioningPolicies::Item::Assignments::Item::AssignedUsers::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity. + ## @param user_id The unique identifier of user + ## @return a user_item_request_builder + ## + def by_user_id(user_id) + raise StandardError, 'user_id cannot be null' if user_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["user%2Did"] = user_id + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::ProvisioningPolicies::Item::Assignments::Item::AssignedUsers::Item::UserItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AssignedUsersRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of user_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assigned_users_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignedUsersRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + class AssignedUsersRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/followed_sites/count/count.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/count/count.rb similarity index 100% rename from lib/me/followed_sites/count/count.rb rename to lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/count/count.rb diff --git a/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/count/count_request_builder.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/count/count_request_builder.rb new file mode 100644 index 0000000000..8bb4ede2fa --- /dev/null +++ b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../device_management' +require_relative '../../../../../../virtual_endpoint' +require_relative '../../../../../provisioning_policies' +require_relative '../../../../item' +require_relative '../../../assignments' +require_relative '../../item' +require_relative '../assigned_users' +require_relative './count' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module ProvisioningPolicies + module Item + module Assignments + module Item + module AssignedUsers + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/employee_experience/learning_course_activities/item/item.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/item/item.rb similarity index 100% rename from lib/me/employee_experience/learning_course_activities/item/item.rb rename to lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/item/item.rb diff --git a/lib/me/contact_folders/item/child_folders/item/contacts/contacts.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/item/mailbox_settings/mailbox_settings.rb similarity index 100% rename from lib/me/contact_folders/item/child_folders/item/contacts/contacts.rb rename to lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/item/mailbox_settings/mailbox_settings.rb diff --git a/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/item/mailbox_settings/mailbox_settings_request_builder.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/item/mailbox_settings/mailbox_settings_request_builder.rb new file mode 100644 index 0000000000..337530cf63 --- /dev/null +++ b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/item/mailbox_settings/mailbox_settings_request_builder.rb @@ -0,0 +1,151 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/mailbox_settings' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../device_management' +require_relative '../../../../../../../virtual_endpoint' +require_relative '../../../../../../provisioning_policies' +require_relative '../../../../../item' +require_relative '../../../../assignments' +require_relative '../../../item' +require_relative '../../assigned_users' +require_relative '../item' +require_relative './mailbox_settings' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module ProvisioningPolicies + module Item + module Assignments + module Item + module AssignedUsers + module Item + module MailboxSettings + ## + # Builds and executes requests for operations under \deviceManagement\virtualEndpoint\provisioningPolicies\{cloudPcProvisioningPolicy-id}\assignments\{cloudPcProvisioningPolicyAssignment-id}\assignedUsers\{user-id}\mailboxSettings + class MailboxSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}/mailboxSettings{?%24expand,%24select}") + end + ## + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mailbox_settings + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update property mailboxSettings value. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mailbox_settings + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update property mailboxSettings value. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mailbox_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MailboxSettingsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + class MailboxSettingsRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/inference_classification/overrides/count/count.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/item/service_provisioning_errors/count/count.rb similarity index 100% rename from lib/me/inference_classification/overrides/count/count.rb rename to lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/item/service_provisioning_errors/count/count.rb diff --git a/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/item/service_provisioning_errors/count/count_request_builder.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/item/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..4c29c3cace --- /dev/null +++ b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/item/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../device_management' +require_relative '../../../../../../../../virtual_endpoint' +require_relative '../../../../../../../provisioning_policies' +require_relative '../../../../../../item' +require_relative '../../../../../assignments' +require_relative '../../../../item' +require_relative '../../../assigned_users' +require_relative '../../item' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module ProvisioningPolicies + module Item + module Assignments + module Item + module AssignedUsers + module Item + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/contact_folders/item/child_folders/item/contacts/item/extensions/extensions.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/item/service_provisioning_errors/service_provisioning_errors.rb similarity index 100% rename from lib/me/contact_folders/item/child_folders/item/contacts/item/extensions/extensions.rb rename to lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/item/service_provisioning_errors/service_provisioning_errors.rb diff --git a/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/item/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/item/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..f9f1b188c3 --- /dev/null +++ b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/item/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,152 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/service_provisioning_error_collection_response' +require_relative '../../../../../../../../device_management' +require_relative '../../../../../../../virtual_endpoint' +require_relative '../../../../../../provisioning_policies' +require_relative '../../../../../item' +require_relative '../../../../assignments' +require_relative '../../../item' +require_relative '../../assigned_users' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module ProvisioningPolicies + module Item + module Assignments + module Item + module AssignedUsers + module Item + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \deviceManagement\virtualEndpoint\provisioningPolicies\{cloudPcProvisioningPolicy-id}\assignments\{cloudPcProvisioningPolicyAssignment-id}\assignedUsers\{user-id}\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::ProvisioningPolicies::Item::Assignments::Item::AssignedUsers::Item::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/item/user_item_request_builder.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/item/user_item_request_builder.rb new file mode 100644 index 0000000000..1f25a40485 --- /dev/null +++ b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users/item/user_item_request_builder.rb @@ -0,0 +1,125 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../models/user' +require_relative '../../../../../../../device_management' +require_relative '../../../../../../virtual_endpoint' +require_relative '../../../../../provisioning_policies' +require_relative '../../../../item' +require_relative '../../../assignments' +require_relative '../../item' +require_relative '../assigned_users' +require_relative './item' +require_relative './mailbox_settings/mailbox_settings_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module ProvisioningPolicies + module Item + module Assignments + module Item + module AssignedUsers + module Item + ## + # Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity. + class UserItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # The mailboxSettings property + def mailbox_settings() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::ProvisioningPolicies::Item::Assignments::Item::AssignedUsers::Item::MailboxSettings::MailboxSettingsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::ProvisioningPolicies::Item::Assignments::Item::AssignedUsers::Item::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new UserItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}{?%24expand,%24select}") + end + ## + ## The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of user + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + class UserItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/contact_folders/item/child_folders/item/contacts/item/photo/photo.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users_with_user_principal_name/assigned_users_with_user_principal_name.rb similarity index 100% rename from lib/me/contact_folders/item/child_folders/item/contacts/item/photo/photo.rb rename to lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users_with_user_principal_name/assigned_users_with_user_principal_name.rb diff --git a/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users_with_user_principal_name/assigned_users_with_user_principal_name_request_builder.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users_with_user_principal_name/assigned_users_with_user_principal_name_request_builder.rb new file mode 100644 index 0000000000..e6252fb881 --- /dev/null +++ b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users_with_user_principal_name/assigned_users_with_user_principal_name_request_builder.rb @@ -0,0 +1,111 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../models/user' +require_relative '../../../../../../device_management' +require_relative '../../../../../virtual_endpoint' +require_relative '../../../../provisioning_policies' +require_relative '../../../item' +require_relative '../../assignments' +require_relative '../item' +require_relative './assigned_users_with_user_principal_name' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module ProvisioningPolicies + module Item + module Assignments + module Item + module AssignedUsersWithUserPrincipalName + ## + # Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity. + class AssignedUsersWithUserPrincipalNameRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new AssignedUsersWithUserPrincipalNameRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param user_principal_name Alternate key of user + ## @return a void + ## + def initialize(path_parameters, request_adapter, user_principal_name=nil) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers(userPrincipalName='{userPrincipalName}'){?%24expand,%24select}") + end + ## + ## The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of user + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assigned_users_with_user_principal_name_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignedUsersWithUserPrincipalNameRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + class AssignedUsersWithUserPrincipalNameRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/cloud_pc_provisioning_policy_assignment_item_request_builder.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/cloud_pc_provisioning_policy_assignment_item_request_builder.rb new file mode 100644 index 0000000000..8b559de93d --- /dev/null +++ b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/cloud_pc_provisioning_policy_assignment_item_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/cloud_pc_provisioning_policy_assignment' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_management' +require_relative '../../../../virtual_endpoint' +require_relative '../../../provisioning_policies' +require_relative '../../item' +require_relative '../assignments' +require_relative './assigned_users/assigned_users_request_builder' +require_relative './assigned_users_with_user_principal_name/assigned_users_with_user_principal_name_request_builder' +require_relative './item' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module ProvisioningPolicies + module Item + module Assignments + module Item + ## + # Provides operations to manage the assignments property of the microsoft.graph.cloudPcProvisioningPolicy entity. + class CloudPcProvisioningPolicyAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity. + def assigned_users() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::ProvisioningPolicies::Item::Assignments::Item::AssignedUsers::AssignedUsersRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity. + ## @param user_principal_name Alternate key of user + ## @return a assigned_users_with_user_principal_name_request_builder + ## + def assigned_users_with_user_principal_name(user_principal_name) + raise StandardError, 'user_principal_name cannot be null' if user_principal_name.nil? + return AssignedUsersWithUserPrincipalNameRequestBuilder.new(@path_parameters, @request_adapter, userPrincipalName) + end + ## + ## Instantiates a new CloudPcProvisioningPolicyAssignmentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property assignments for deviceManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## A defined collection of provisioning policy assignments. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have provisioning policy assigned. Returned only on $expand. For an example about how to get the assignments relationship, see Get cloudPcProvisioningPolicy. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_provisioning_policy_assignment + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcProvisioningPolicyAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property assignments in deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_provisioning_policy_assignment + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcProvisioningPolicyAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property assignments for deviceManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## A defined collection of provisioning policy assignments. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have provisioning policy assigned. Returned only on $expand. For an example about how to get the assignments relationship, see Get cloudPcProvisioningPolicy. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property assignments in deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cloud_pc_provisioning_policy_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CloudPcProvisioningPolicyAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # A defined collection of provisioning policy assignments. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have provisioning policy assigned. Returned only on $expand. For an example about how to get the assignments relationship, see Get cloudPcProvisioningPolicy. + class CloudPcProvisioningPolicyAssignmentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/events/item/attachments/item/item.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/item.rb similarity index 100% rename from lib/me/events/item/attachments/item/item.rb rename to lib/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/item.rb diff --git a/lib/device_management/virtual_endpoint/provisioning_policies/item/cloud_pc_provisioning_policy_item_request_builder.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/cloud_pc_provisioning_policy_item_request_builder.rb new file mode 100644 index 0000000000..0da80f3d1b --- /dev/null +++ b/lib/device_management/virtual_endpoint/provisioning_policies/item/cloud_pc_provisioning_policy_item_request_builder.rb @@ -0,0 +1,178 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/cloud_pc_provisioning_policy' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_management' +require_relative '../../virtual_endpoint' +require_relative '../provisioning_policies' +require_relative './assign/assign_request_builder' +require_relative './assignments/assignments_request_builder' +require_relative './item' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module ProvisioningPolicies + module Item + ## + # Provides operations to manage the provisioningPolicies property of the microsoft.graph.virtualEndpoint entity. + class CloudPcProvisioningPolicyItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the assign method. + def assign() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::ProvisioningPolicies::Item::Assign::AssignRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the assignments property of the microsoft.graph.cloudPcProvisioningPolicy entity. + def assignments() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::ProvisioningPolicies::Item::Assignments::AssignmentsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new CloudPcProvisioningPolicyItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}{?%24expand,%24select}") + end + ## + ## Delete a cloudPcProvisioningPolicy object. You can’t delete a policy that’s in use. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Read the properties and relationships of a cloudPcProvisioningPolicy object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_provisioning_policy + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcProvisioningPolicy.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the properties of a cloudPcProvisioningPolicy object. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_provisioning_policy + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcProvisioningPolicy.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete a cloudPcProvisioningPolicy object. You can’t delete a policy that’s in use. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Read the properties and relationships of a cloudPcProvisioningPolicy object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the properties of a cloudPcProvisioningPolicy object. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cloud_pc_provisioning_policy_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CloudPcProvisioningPolicyItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Read the properties and relationships of a cloudPcProvisioningPolicy object. + class CloudPcProvisioningPolicyItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/events/item/extensions/item/item.rb b/lib/device_management/virtual_endpoint/provisioning_policies/item/item.rb similarity index 100% rename from lib/me/events/item/extensions/item/item.rb rename to lib/device_management/virtual_endpoint/provisioning_policies/item/item.rb diff --git a/lib/me/contact_folders/item/child_folders/item/contacts/item/photo/value/value.rb b/lib/device_management/virtual_endpoint/provisioning_policies/provisioning_policies.rb similarity index 100% rename from lib/me/contact_folders/item/child_folders/item/contacts/item/photo/value/value.rb rename to lib/device_management/virtual_endpoint/provisioning_policies/provisioning_policies.rb diff --git a/lib/device_management/virtual_endpoint/provisioning_policies/provisioning_policies_request_builder.rb b/lib/device_management/virtual_endpoint/provisioning_policies/provisioning_policies_request_builder.rb new file mode 100644 index 0000000000..3623d6240b --- /dev/null +++ b/lib/device_management/virtual_endpoint/provisioning_policies/provisioning_policies_request_builder.rb @@ -0,0 +1,182 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/cloud_pc_provisioning_policy' +require_relative '../../../models/cloud_pc_provisioning_policy_collection_response' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../device_management' +require_relative '../virtual_endpoint' +require_relative './count/count_request_builder' +require_relative './item/cloud_pc_provisioning_policy_item_request_builder' +require_relative './provisioning_policies' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module ProvisioningPolicies + ## + # Provides operations to manage the provisioningPolicies property of the microsoft.graph.virtualEndpoint entity. + class ProvisioningPoliciesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::ProvisioningPolicies::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the provisioningPolicies property of the microsoft.graph.virtualEndpoint entity. + ## @param cloud_pc_provisioning_policy_id The unique identifier of cloudPcProvisioningPolicy + ## @return a cloud_pc_provisioning_policy_item_request_builder + ## + def by_cloud_pc_provisioning_policy_id(cloud_pc_provisioning_policy_id) + raise StandardError, 'cloud_pc_provisioning_policy_id cannot be null' if cloud_pc_provisioning_policy_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["cloudPcProvisioningPolicy%2Did"] = cloud_pc_provisioning_policy_id + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::ProvisioningPolicies::Item::CloudPcProvisioningPolicyItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ProvisioningPoliciesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## List properties and relationships of the cloudPcProvisioningPolicy objects. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_provisioning_policy_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcProvisioningPolicyCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create a new cloudPcProvisioningPolicy object. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_provisioning_policy + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcProvisioningPolicy.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## List properties and relationships of the cloudPcProvisioningPolicy objects. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create a new cloudPcProvisioningPolicy object. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a provisioning_policies_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ProvisioningPoliciesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # List properties and relationships of the cloudPcProvisioningPolicy objects. + class ProvisioningPoliciesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/me/insights/shared/count/count.rb b/lib/device_management/virtual_endpoint/user_settings/count/count.rb similarity index 100% rename from lib/me/insights/shared/count/count.rb rename to lib/device_management/virtual_endpoint/user_settings/count/count.rb diff --git a/lib/device_management/virtual_endpoint/user_settings/count/count_request_builder.rb b/lib/device_management/virtual_endpoint/user_settings/count/count_request_builder.rb new file mode 100644 index 0000000000..967c4c9258 --- /dev/null +++ b/lib/device_management/virtual_endpoint/user_settings/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_management' +require_relative '../../virtual_endpoint' +require_relative '../user_settings' +require_relative './count' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module UserSettings + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/device_management/virtual_endpoint/user_settings/item/assign/assign.rb b/lib/device_management/virtual_endpoint/user_settings/item/assign/assign.rb new file mode 100644 index 0000000000..6d568921e5 --- /dev/null +++ b/lib/device_management/virtual_endpoint/user_settings/item/assign/assign.rb @@ -0,0 +1 @@ +require_relative 'assign_post_request_body' diff --git a/lib/device_management/virtual_endpoint/user_settings/item/assign/assign_post_request_body.rb b/lib/device_management/virtual_endpoint/user_settings/item/assign/assign_post_request_body.rb new file mode 100644 index 0000000000..de4e86ba36 --- /dev/null +++ b/lib/device_management/virtual_endpoint/user_settings/item/assign/assign_post_request_body.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/cloud_pc_user_setting_assignment' +require_relative '../../../../device_management' +require_relative '../../../virtual_endpoint' +require_relative '../../user_settings' +require_relative '../item' +require_relative './assign' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module UserSettings + module Item + module Assign + class AssignPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The assignments property + @assignments + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the assignments property value. The assignments property + ## @return a cloud_pc_user_setting_assignment + ## + def assignments + return @assignments + end + ## + ## Sets the assignments property value. The assignments property + ## @param value Value to set for the assignments property. + ## @return a void + ## + def assignments=(value) + @assignments = value + end + ## + ## Instantiates a new AssignPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a assign_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AssignPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "assignments" => lambda {|n| @assignments = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CloudPcUserSettingAssignment.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_collection_of_object_values("assignments", @assignments) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end +end diff --git a/lib/device_management/virtual_endpoint/user_settings/item/assign/assign_request_builder.rb b/lib/device_management/virtual_endpoint/user_settings/item/assign/assign_request_builder.rb new file mode 100644 index 0000000000..d3b9c3f8fd --- /dev/null +++ b/lib/device_management/virtual_endpoint/user_settings/item/assign/assign_request_builder.rb @@ -0,0 +1,79 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_management' +require_relative '../../../virtual_endpoint' +require_relative '../../user_settings' +require_relative '../item' +require_relative './assign' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module UserSettings + module Item + module Assign + ## + # Provides operations to call the assign method. + class AssignRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new AssignRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}/assign") + end + ## + ## Assign a cloudPcUserSetting to user groups. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Assign a cloudPcUserSetting to user groups. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assign_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end +end diff --git a/lib/me/contact_folders/item/contacts/contacts.rb b/lib/device_management/virtual_endpoint/user_settings/item/assignments/assignments.rb similarity index 100% rename from lib/me/contact_folders/item/contacts/contacts.rb rename to lib/device_management/virtual_endpoint/user_settings/item/assignments/assignments.rb diff --git a/lib/device_management/virtual_endpoint/user_settings/item/assignments/assignments_request_builder.rb b/lib/device_management/virtual_endpoint/user_settings/item/assignments/assignments_request_builder.rb new file mode 100644 index 0000000000..ddcaaba3fa --- /dev/null +++ b/lib/device_management/virtual_endpoint/user_settings/item/assignments/assignments_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/cloud_pc_user_setting_assignment' +require_relative '../../../../../models/cloud_pc_user_setting_assignment_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../device_management' +require_relative '../../../virtual_endpoint' +require_relative '../../user_settings' +require_relative '../item' +require_relative './assignments' +require_relative './count/count_request_builder' +require_relative './item/cloud_pc_user_setting_assignment_item_request_builder' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module UserSettings + module Item + module Assignments + ## + # Provides operations to manage the assignments property of the microsoft.graph.cloudPcUserSetting entity. + class AssignmentsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::UserSettings::Item::Assignments::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the assignments property of the microsoft.graph.cloudPcUserSetting entity. + ## @param cloud_pc_user_setting_assignment_id The unique identifier of cloudPcUserSettingAssignment + ## @return a cloud_pc_user_setting_assignment_item_request_builder + ## + def by_cloud_pc_user_setting_assignment_id(cloud_pc_user_setting_assignment_id) + raise StandardError, 'cloud_pc_user_setting_assignment_id cannot be null' if cloud_pc_user_setting_assignment_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["cloudPcUserSettingAssignment%2Did"] = cloud_pc_user_setting_assignment_id + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::UserSettings::Item::Assignments::Item::CloudPcUserSettingAssignmentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AssignmentsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have cloudPCUserSetting assigned. Returned only on $expand. For an example, see Get cloudPcUserSetting. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_user_setting_assignment_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcUserSettingAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to assignments for deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_user_setting_assignment + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcUserSettingAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have cloudPCUserSetting assigned. Returned only on $expand. For an example, see Get cloudPcUserSetting. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to assignments for deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have cloudPCUserSetting assigned. Returned only on $expand. For an example, see Get cloudPcUserSetting. + class AssignmentsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/insights/trending/count/count.rb b/lib/device_management/virtual_endpoint/user_settings/item/assignments/count/count.rb similarity index 100% rename from lib/me/insights/trending/count/count.rb rename to lib/device_management/virtual_endpoint/user_settings/item/assignments/count/count.rb diff --git a/lib/device_management/virtual_endpoint/user_settings/item/assignments/count/count_request_builder.rb b/lib/device_management/virtual_endpoint/user_settings/item/assignments/count/count_request_builder.rb new file mode 100644 index 0000000000..620c3d20a0 --- /dev/null +++ b/lib/device_management/virtual_endpoint/user_settings/item/assignments/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_management' +require_relative '../../../../virtual_endpoint' +require_relative '../../../user_settings' +require_relative '../../item' +require_relative '../assignments' +require_relative './count' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module UserSettings + module Item + module Assignments + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}/assignments/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/device_management/virtual_endpoint/user_settings/item/assignments/item/cloud_pc_user_setting_assignment_item_request_builder.rb b/lib/device_management/virtual_endpoint/user_settings/item/assignments/item/cloud_pc_user_setting_assignment_item_request_builder.rb new file mode 100644 index 0000000000..b3ef86b8c4 --- /dev/null +++ b/lib/device_management/virtual_endpoint/user_settings/item/assignments/item/cloud_pc_user_setting_assignment_item_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/cloud_pc_user_setting_assignment' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../device_management' +require_relative '../../../../virtual_endpoint' +require_relative '../../../user_settings' +require_relative '../../item' +require_relative '../assignments' +require_relative './item' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module UserSettings + module Item + module Assignments + module Item + ## + # Provides operations to manage the assignments property of the microsoft.graph.cloudPcUserSetting entity. + class CloudPcUserSettingAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CloudPcUserSettingAssignmentItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}/assignments/{cloudPcUserSettingAssignment%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property assignments for deviceManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have cloudPCUserSetting assigned. Returned only on $expand. For an example, see Get cloudPcUserSetting. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_user_setting_assignment + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcUserSettingAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property assignments in deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_user_setting_assignment + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcUserSettingAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property assignments for deviceManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have cloudPCUserSetting assigned. Returned only on $expand. For an example, see Get cloudPcUserSetting. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property assignments in deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cloud_pc_user_setting_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CloudPcUserSettingAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have cloudPCUserSetting assigned. Returned only on $expand. For an example, see Get cloudPcUserSetting. + class CloudPcUserSettingAssignmentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/events/item/instances/item/attachments/item/item.rb b/lib/device_management/virtual_endpoint/user_settings/item/assignments/item/item.rb similarity index 100% rename from lib/me/events/item/instances/item/attachments/item/item.rb rename to lib/device_management/virtual_endpoint/user_settings/item/assignments/item/item.rb diff --git a/lib/device_management/virtual_endpoint/user_settings/item/cloud_pc_user_setting_item_request_builder.rb b/lib/device_management/virtual_endpoint/user_settings/item/cloud_pc_user_setting_item_request_builder.rb new file mode 100644 index 0000000000..409ea546b9 --- /dev/null +++ b/lib/device_management/virtual_endpoint/user_settings/item/cloud_pc_user_setting_item_request_builder.rb @@ -0,0 +1,178 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/cloud_pc_user_setting' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../device_management' +require_relative '../../virtual_endpoint' +require_relative '../user_settings' +require_relative './assign/assign_request_builder' +require_relative './assignments/assignments_request_builder' +require_relative './item' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module UserSettings + module Item + ## + # Provides operations to manage the userSettings property of the microsoft.graph.virtualEndpoint entity. + class CloudPcUserSettingItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the assign method. + def assign() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::UserSettings::Item::Assign::AssignRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the assignments property of the microsoft.graph.cloudPcUserSetting entity. + def assignments() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::UserSettings::Item::Assignments::AssignmentsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new CloudPcUserSettingItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}{?%24expand,%24select}") + end + ## + ## Delete a cloudPcUserSetting object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Read the properties and relationships of a cloudPcUserSetting object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_user_setting + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcUserSetting.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the properties of a cloudPcUserSetting object. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_user_setting + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcUserSetting.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete a cloudPcUserSetting object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Read the properties and relationships of a cloudPcUserSetting object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the properties of a cloudPcUserSetting object. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cloud_pc_user_setting_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CloudPcUserSettingItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Read the properties and relationships of a cloudPcUserSetting object. + class CloudPcUserSettingItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/me/events/item/instances/item/extensions/item/item.rb b/lib/device_management/virtual_endpoint/user_settings/item/item.rb similarity index 100% rename from lib/me/events/item/instances/item/extensions/item/item.rb rename to lib/device_management/virtual_endpoint/user_settings/item/item.rb diff --git a/lib/me/contact_folders/item/contacts/item/extensions/extensions.rb b/lib/device_management/virtual_endpoint/user_settings/user_settings.rb similarity index 100% rename from lib/me/contact_folders/item/contacts/item/extensions/extensions.rb rename to lib/device_management/virtual_endpoint/user_settings/user_settings.rb diff --git a/lib/device_management/virtual_endpoint/user_settings/user_settings_request_builder.rb b/lib/device_management/virtual_endpoint/user_settings/user_settings_request_builder.rb new file mode 100644 index 0000000000..8049201565 --- /dev/null +++ b/lib/device_management/virtual_endpoint/user_settings/user_settings_request_builder.rb @@ -0,0 +1,182 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/cloud_pc_user_setting' +require_relative '../../../models/cloud_pc_user_setting_collection_response' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../device_management' +require_relative '../virtual_endpoint' +require_relative './count/count_request_builder' +require_relative './item/cloud_pc_user_setting_item_request_builder' +require_relative './user_settings' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + module UserSettings + ## + # Provides operations to manage the userSettings property of the microsoft.graph.virtualEndpoint entity. + class UserSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::UserSettings::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the userSettings property of the microsoft.graph.virtualEndpoint entity. + ## @param cloud_pc_user_setting_id The unique identifier of cloudPcUserSetting + ## @return a cloud_pc_user_setting_item_request_builder + ## + def by_cloud_pc_user_setting_id(cloud_pc_user_setting_id) + raise StandardError, 'cloud_pc_user_setting_id cannot be null' if cloud_pc_user_setting_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["cloudPcUserSetting%2Did"] = cloud_pc_user_setting_id + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::UserSettings::Item::CloudPcUserSettingItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new UserSettingsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get a list of cloudPcUserSetting objects and their properties. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_user_setting_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcUserSettingCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create a new cloudPcUserSetting object. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of cloud_pc_user_setting + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CloudPcUserSetting.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get a list of cloudPcUserSetting objects and their properties. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create a new cloudPcUserSetting object. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserSettingsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get a list of cloudPcUserSetting objects and their properties. + class UserSettingsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/me/contact_folders/item/contacts/item/photo/photo.rb b/lib/device_management/virtual_endpoint/virtual_endpoint.rb similarity index 100% rename from lib/me/contact_folders/item/contacts/item/photo/photo.rb rename to lib/device_management/virtual_endpoint/virtual_endpoint.rb diff --git a/lib/device_management/virtual_endpoint/virtual_endpoint_request_builder.rb b/lib/device_management/virtual_endpoint/virtual_endpoint_request_builder.rb new file mode 100644 index 0000000000..1003e49a9a --- /dev/null +++ b/lib/device_management/virtual_endpoint/virtual_endpoint_request_builder.rb @@ -0,0 +1,202 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/o_data_errors_o_data_error' +require_relative '../../models/virtual_endpoint' +require_relative '../device_management' +require_relative './audit_events/audit_events_request_builder' +require_relative './cloud_p_cs/cloud_p_cs_request_builder' +require_relative './device_images/device_images_request_builder' +require_relative './gallery_images/gallery_images_request_builder' +require_relative './on_premises_connections/on_premises_connections_request_builder' +require_relative './provisioning_policies/provisioning_policies_request_builder' +require_relative './user_settings/user_settings_request_builder' +require_relative './virtual_endpoint' + +module MicrosoftGraph + module DeviceManagement + module VirtualEndpoint + ## + # Provides operations to manage the virtualEndpoint property of the microsoft.graph.deviceManagement entity. + class VirtualEndpointRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the auditEvents property of the microsoft.graph.virtualEndpoint entity. + def audit_events() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::AuditEvents::AuditEventsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the cloudPCs property of the microsoft.graph.virtualEndpoint entity. + def cloud_p_cs() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::CloudPCs::CloudPCsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the deviceImages property of the microsoft.graph.virtualEndpoint entity. + def device_images() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::DeviceImages::DeviceImagesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the galleryImages property of the microsoft.graph.virtualEndpoint entity. + def gallery_images() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::GalleryImages::GalleryImagesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the onPremisesConnections property of the microsoft.graph.virtualEndpoint entity. + def on_premises_connections() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::OnPremisesConnections::OnPremisesConnectionsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the provisioningPolicies property of the microsoft.graph.virtualEndpoint entity. + def provisioning_policies() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::ProvisioningPolicies::ProvisioningPoliciesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the userSettings property of the microsoft.graph.virtualEndpoint entity. + def user_settings() + return MicrosoftGraph::DeviceManagement::VirtualEndpoint::UserSettings::UserSettingsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new VirtualEndpointRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint{?%24expand,%24select}") + end + ## + ## Delete navigation property virtualEndpoint for deviceManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Virtual endpoint + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of virtual_endpoint + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::VirtualEndpoint.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property virtualEndpoint in deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of virtual_endpoint + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::VirtualEndpoint.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property virtualEndpoint for deviceManagement + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Virtual endpoint + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property virtualEndpoint in deviceManagement + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a virtual_endpoint_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VirtualEndpointRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Virtual endpoint + class VirtualEndpointRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end +end diff --git a/lib/device_management/windows_autopilot_device_identities/count/count_request_builder.rb b/lib/device_management/windows_autopilot_device_identities/count/count_request_builder.rb index fa3f27dadd..c66181655d 100644 --- a/lib/device_management/windows_autopilot_device_identities/count/count_request_builder.rb +++ b/lib/device_management/windows_autopilot_device_identities/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsAutopilotDeviceIdentities/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsAutopilotDeviceIdentities/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/windows_autopilot_device_identities/item/assign_user_to_device/assign_user_to_device_post_request_body.rb b/lib/device_management/windows_autopilot_device_identities/item/assign_user_to_device/assign_user_to_device_post_request_body.rb index 2fd43dc060..a2081180cf 100644 --- a/lib/device_management/windows_autopilot_device_identities/item/assign_user_to_device/assign_user_to_device_post_request_body.rb +++ b/lib/device_management/windows_autopilot_device_identities/item/assign_user_to_device/assign_user_to_device_post_request_body.rb @@ -22,15 +22,15 @@ class AssignUserToDevicePostRequestBody # The userPrincipalName property @user_principal_name ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -52,7 +52,7 @@ def addressable_user_name=(value) @addressable_user_name = value end ## - ## Instantiates a new assignUserToDevicePostRequestBody and sets the default values. + ## Instantiates a new AssignUserToDevicePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/windows_autopilot_device_identities/item/assign_user_to_device/assign_user_to_device_request_builder.rb b/lib/device_management/windows_autopilot_device_identities/item/assign_user_to_device/assign_user_to_device_request_builder.rb index f71734daf8..f8558022dd 100644 --- a/lib/device_management/windows_autopilot_device_identities/item/assign_user_to_device/assign_user_to_device_request_builder.rb +++ b/lib/device_management/windows_autopilot_device_identities/item/assign_user_to_device/assign_user_to_device_request_builder.rb @@ -36,8 +36,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assign_user_to_device_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignUserToDeviceRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/windows_autopilot_device_identities/item/unassign_user_from_device/unassign_user_from_device_request_builder.rb b/lib/device_management/windows_autopilot_device_identities/item/unassign_user_from_device/unassign_user_from_device_request_builder.rb index e727a0470a..2ac21084da 100644 --- a/lib/device_management/windows_autopilot_device_identities/item/unassign_user_from_device/unassign_user_from_device_request_builder.rb +++ b/lib/device_management/windows_autopilot_device_identities/item/unassign_user_from_device/unassign_user_from_device_request_builder.rb @@ -34,8 +34,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,15 +44,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unassign_user_from_device_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnassignUserFromDeviceRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/windows_autopilot_device_identities/item/update_device_properties/update_device_properties_post_request_body.rb b/lib/device_management/windows_autopilot_device_identities/item/update_device_properties/update_device_properties_post_request_body.rb index a7c33e1881..e35b5e167d 100644 --- a/lib/device_management/windows_autopilot_device_identities/item/update_device_properties/update_device_properties_post_request_body.rb +++ b/lib/device_management/windows_autopilot_device_identities/item/update_device_properties/update_device_properties_post_request_body.rb @@ -28,15 +28,15 @@ class UpdateDevicePropertiesPostRequestBody # The userPrincipalName property @user_principal_name ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -58,7 +58,7 @@ def addressable_user_name=(value) @addressable_user_name = value end ## - ## Instantiates a new updateDevicePropertiesPostRequestBody and sets the default values. + ## Instantiates a new UpdateDevicePropertiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/device_management/windows_autopilot_device_identities/item/update_device_properties/update_device_properties_request_builder.rb b/lib/device_management/windows_autopilot_device_identities/item/update_device_properties/update_device_properties_request_builder.rb index e368bd8774..43d67993a6 100644 --- a/lib/device_management/windows_autopilot_device_identities/item/update_device_properties/update_device_properties_request_builder.rb +++ b/lib/device_management/windows_autopilot_device_identities/item/update_device_properties/update_device_properties_request_builder.rb @@ -36,8 +36,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a update_device_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UpdateDevicePropertiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/device_management/windows_autopilot_device_identities/item/windows_autopilot_device_identity_item_request_builder.rb b/lib/device_management/windows_autopilot_device_identities/item/windows_autopilot_device_identity_item_request_builder.rb index d79fed8446..3f6e55a8d3 100644 --- a/lib/device_management/windows_autopilot_device_identities/item/windows_autopilot_device_identity_item_request_builder.rb +++ b/lib/device_management/windows_autopilot_device_identities/item/windows_autopilot_device_identity_item_request_builder.rb @@ -39,7 +39,7 @@ def update_device_properties() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsAutopilotDeviceIdentities/{windowsAutopilotDeviceIdentity%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsAutopilotDeviceIdentities/{windowsAutopilotDeviceIdentity%2Did}{?%24expand,%24select}") end ## ## Deletes a windowsAutopilotDeviceIdentity. @@ -51,8 +51,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsAutopilotDeviceIdentity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsAutopilotDeviceIdentity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,13 +89,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,15 +106,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,17 +126,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a windows_autopilot_device_identity_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WindowsAutopilotDeviceIdentityItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the windowsAutopilotDeviceIdentity object. diff --git a/lib/device_management/windows_autopilot_device_identities/windows_autopilot_device_identities_request_builder.rb b/lib/device_management/windows_autopilot_device_identities/windows_autopilot_device_identities_request_builder.rb index 3ad4b7daae..ada4c1f387 100644 --- a/lib/device_management/windows_autopilot_device_identities/windows_autopilot_device_identities_request_builder.rb +++ b/lib/device_management/windows_autopilot_device_identities/windows_autopilot_device_identities_request_builder.rb @@ -38,7 +38,7 @@ def by_windows_autopilot_device_identity_id(windows_autopilot_device_identity_id ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsAutopilotDeviceIdentities{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsAutopilotDeviceIdentities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the windowsAutopilotDeviceIdentity objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsAutopilotDeviceIdentityCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsAutopilotDeviceIdentity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a windows_autopilot_device_identities_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WindowsAutopilotDeviceIdentitiesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the windowsAutopilotDeviceIdentity objects. diff --git a/lib/device_management/windows_information_protection_app_learning_summaries/count/count_request_builder.rb b/lib/device_management/windows_information_protection_app_learning_summaries/count/count_request_builder.rb index 9df9474ec9..89e05a1e47 100644 --- a/lib/device_management/windows_information_protection_app_learning_summaries/count/count_request_builder.rb +++ b/lib/device_management/windows_information_protection_app_learning_summaries/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsInformationProtectionAppLearningSummaries/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsInformationProtectionAppLearningSummaries/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/windows_information_protection_app_learning_summaries/item/windows_information_protection_app_learning_summary_item_request_builder.rb b/lib/device_management/windows_information_protection_app_learning_summaries/item/windows_information_protection_app_learning_summary_item_request_builder.rb index 3ed60d76f0..f0b7736292 100644 --- a/lib/device_management/windows_information_protection_app_learning_summaries/item/windows_information_protection_app_learning_summary_item_request_builder.rb +++ b/lib/device_management/windows_information_protection_app_learning_summaries/item/windows_information_protection_app_learning_summary_item_request_builder.rb @@ -21,7 +21,7 @@ class WindowsInformationProtectionAppLearningSummaryItemRequestBuilder < Microso ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsInformationProtectionAppLearningSummaries/{windowsInformationProtectionAppLearningSummary%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsInformationProtectionAppLearningSummaries/{windowsInformationProtectionAppLearningSummary%2Did}{?%24expand,%24select}") end ## ## Deletes a windowsInformationProtectionAppLearningSummary. @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionAppLearningSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionAppLearningSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a windows_information_protection_app_learning_summary_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WindowsInformationProtectionAppLearningSummaryItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the windowsInformationProtectionAppLearningSummary object. diff --git a/lib/device_management/windows_information_protection_app_learning_summaries/windows_information_protection_app_learning_summaries_request_builder.rb b/lib/device_management/windows_information_protection_app_learning_summaries/windows_information_protection_app_learning_summaries_request_builder.rb index 499b3854be..d9a8a21fa6 100644 --- a/lib/device_management/windows_information_protection_app_learning_summaries/windows_information_protection_app_learning_summaries_request_builder.rb +++ b/lib/device_management/windows_information_protection_app_learning_summaries/windows_information_protection_app_learning_summaries_request_builder.rb @@ -38,7 +38,7 @@ def by_windows_information_protection_app_learning_summary_id(windows_informatio ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsInformationProtectionAppLearningSummaries{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsInformationProtectionAppLearningSummaries{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the windowsInformationProtectionAppLearningSummary objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionAppLearningSummaryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionAppLearningSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a windows_information_protection_app_learning_summaries_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WindowsInformationProtectionAppLearningSummariesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the windowsInformationProtectionAppLearningSummary objects. diff --git a/lib/device_management/windows_information_protection_network_learning_summaries/count/count_request_builder.rb b/lib/device_management/windows_information_protection_network_learning_summaries/count/count_request_builder.rb index 00914b5411..7e240231f8 100644 --- a/lib/device_management/windows_information_protection_network_learning_summaries/count/count_request_builder.rb +++ b/lib/device_management/windows_information_protection_network_learning_summaries/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsInformationProtectionNetworkLearningSummaries/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsInformationProtectionNetworkLearningSummaries/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/windows_information_protection_network_learning_summaries/item/windows_information_protection_network_learning_summary_item_request_builder.rb b/lib/device_management/windows_information_protection_network_learning_summaries/item/windows_information_protection_network_learning_summary_item_request_builder.rb index ab4185f698..3eb5f5dad1 100644 --- a/lib/device_management/windows_information_protection_network_learning_summaries/item/windows_information_protection_network_learning_summary_item_request_builder.rb +++ b/lib/device_management/windows_information_protection_network_learning_summaries/item/windows_information_protection_network_learning_summary_item_request_builder.rb @@ -21,7 +21,7 @@ class WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilder < Mic ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsInformationProtectionNetworkLearningSummaries/{windowsInformationProtectionNetworkLearningSummary%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsInformationProtectionNetworkLearningSummaries/{windowsInformationProtectionNetworkLearningSummary%2Did}{?%24expand,%24select}") end ## ## Deletes a windowsInformationProtectionNetworkLearningSummary. @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionNetworkLearningSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionNetworkLearningSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a windows_information_protection_network_learning_summary_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the windowsInformationProtectionNetworkLearningSummary object. diff --git a/lib/device_management/windows_information_protection_network_learning_summaries/windows_information_protection_network_learning_summaries_request_builder.rb b/lib/device_management/windows_information_protection_network_learning_summaries/windows_information_protection_network_learning_summaries_request_builder.rb index 341d9499dd..42faded5e0 100644 --- a/lib/device_management/windows_information_protection_network_learning_summaries/windows_information_protection_network_learning_summaries_request_builder.rb +++ b/lib/device_management/windows_information_protection_network_learning_summaries/windows_information_protection_network_learning_summaries_request_builder.rb @@ -38,7 +38,7 @@ def by_windows_information_protection_network_learning_summary_id(windows_inform ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsInformationProtectionNetworkLearningSummaries{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsInformationProtectionNetworkLearningSummaries{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the windowsInformationProtectionNetworkLearningSummary objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionNetworkLearningSummaryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionNetworkLearningSummary.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a windows_information_protection_network_learning_summaries_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WindowsInformationProtectionNetworkLearningSummariesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the windowsInformationProtectionNetworkLearningSummary objects. diff --git a/lib/device_management/windows_malware_information/count/count_request_builder.rb b/lib/device_management/windows_malware_information/count/count_request_builder.rb index 85b5e4d855..05ca742509 100644 --- a/lib/device_management/windows_malware_information/count/count_request_builder.rb +++ b/lib/device_management/windows_malware_information/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsMalwareInformation/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsMalwareInformation/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/windows_malware_information/item/device_malware_states/count/count_request_builder.rb b/lib/device_management/windows_malware_information/item/device_malware_states/count/count_request_builder.rb index 7bcdd01e70..abea106f17 100644 --- a/lib/device_management/windows_malware_information/item/device_malware_states/count/count_request_builder.rb +++ b/lib/device_management/windows_malware_information/item/device_malware_states/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsMalwareInformation/{windowsMalwareInformation%2Did}/deviceMalwareStates/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsMalwareInformation/{windowsMalwareInformation%2Did}/deviceMalwareStates/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/device_management/windows_malware_information/item/device_malware_states/device_malware_states_request_builder.rb b/lib/device_management/windows_malware_information/item/device_malware_states/device_malware_states_request_builder.rb index 8e3c79be18..930617576e 100644 --- a/lib/device_management/windows_malware_information/item/device_malware_states/device_malware_states_request_builder.rb +++ b/lib/device_management/windows_malware_information/item/device_malware_states/device_malware_states_request_builder.rb @@ -42,7 +42,7 @@ def by_malware_state_for_windows_device_id(malware_state_for_windows_device_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsMalwareInformation/{windowsMalwareInformation%2Did}/deviceMalwareStates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsMalwareInformation/{windowsMalwareInformation%2Did}/deviceMalwareStates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the malwareStateForWindowsDevice objects. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MalwareStateForWindowsDeviceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MalwareStateForWindowsDevice.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_malware_states_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceMalwareStatesRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the malwareStateForWindowsDevice objects. diff --git a/lib/device_management/windows_malware_information/item/device_malware_states/item/malware_state_for_windows_device_item_request_builder.rb b/lib/device_management/windows_malware_information/item/device_malware_states/item/malware_state_for_windows_device_item_request_builder.rb index 363550510e..2a2f82ddea 100644 --- a/lib/device_management/windows_malware_information/item/device_malware_states/item/malware_state_for_windows_device_item_request_builder.rb +++ b/lib/device_management/windows_malware_information/item/device_malware_states/item/malware_state_for_windows_device_item_request_builder.rb @@ -25,7 +25,7 @@ class MalwareStateForWindowsDeviceItemRequestBuilder < MicrosoftKiotaAbstraction ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsMalwareInformation/{windowsMalwareInformation%2Did}/deviceMalwareStates/{malwareStateForWindowsDevice%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsMalwareInformation/{windowsMalwareInformation%2Did}/deviceMalwareStates/{malwareStateForWindowsDevice%2Did}{?%24expand,%24select}") end ## ## Deletes a malwareStateForWindowsDevice. @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MalwareStateForWindowsDevice.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MalwareStateForWindowsDevice.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a malware_state_for_windows_device_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MalwareStateForWindowsDeviceItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the malwareStateForWindowsDevice object. diff --git a/lib/device_management/windows_malware_information/item/windows_malware_information_item_request_builder.rb b/lib/device_management/windows_malware_information/item/windows_malware_information_item_request_builder.rb index 7736d61f81..eb50fb78ca 100644 --- a/lib/device_management/windows_malware_information/item/windows_malware_information_item_request_builder.rb +++ b/lib/device_management/windows_malware_information/item/windows_malware_information_item_request_builder.rb @@ -27,7 +27,7 @@ def device_malware_states() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsMalwareInformation/{windowsMalwareInformation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsMalwareInformation/{windowsMalwareInformation%2Did}{?%24expand,%24select}") end ## ## Deletes a windowsMalwareInformation. @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsMalwareInformation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsMalwareInformation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,13 +77,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,15 +94,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,17 +114,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a windows_malware_information_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WindowsMalwareInformationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read properties and relationships of the windowsMalwareInformation object. diff --git a/lib/device_management/windows_malware_information/windows_malware_information_request_builder.rb b/lib/device_management/windows_malware_information/windows_malware_information_request_builder.rb index c5931b1fb8..9817875098 100644 --- a/lib/device_management/windows_malware_information/windows_malware_information_request_builder.rb +++ b/lib/device_management/windows_malware_information/windows_malware_information_request_builder.rb @@ -38,7 +38,7 @@ def by_windows_malware_information_id(windows_malware_information_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsMalwareInformation{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/windowsMalwareInformation{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List properties and relationships of the windowsMalwareInformation objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsMalwareInformationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WindowsMalwareInformation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a windows_malware_information_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WindowsMalwareInformationRequestBuilder.new(raw_url, @request_adapter) + end ## # List properties and relationships of the windowsMalwareInformation objects. diff --git a/lib/devices/count/count_request_builder.rb b/lib/devices/count/count_request_builder.rb index 5f51bdb81e..b43fd1c12f 100644 --- a/lib/devices/count/count_request_builder.rb +++ b/lib/devices/count/count_request_builder.rb @@ -18,7 +18,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/devices/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -30,8 +30,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -41,17 +40,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/devices/delta/delta.rb b/lib/devices/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/devices/delta/delta.rb +++ b/lib/devices/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/devices/delta/delta_get_response.rb b/lib/devices/delta/delta_get_response.rb new file mode 100644 index 0000000000..bdaf819f41 --- /dev/null +++ b/lib/devices/delta/delta_get_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_delta_function_response' +require_relative '../../models/device' +require_relative '../devices' +require_relative './delta' + +module MicrosoftGraph + module Devices + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Device.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a device + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/devices/delta/delta_request_builder.rb b/lib/devices/delta/delta_request_builder.rb index 9e138d7e5c..f86e12b3a4 100644 --- a/lib/devices/delta/delta_request_builder.rb +++ b/lib/devices/delta/delta_request_builder.rb @@ -18,49 +18,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/devices/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## Get newly created, updated, or deleted devices 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. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Devices::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Devices::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## Get newly created, updated, or deleted devices 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. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # Get newly created, updated, or deleted devices 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. class DeltaRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -88,6 +99,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/devices/delta/delta_response.rb b/lib/devices/delta/delta_response.rb deleted file mode 100644 index d97bf929c1..0000000000 --- a/lib/devices/delta/delta_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_delta_function_response' -require_relative '../../models/device' -require_relative '../devices' -require_relative './delta' - -module MicrosoftGraph - module Devices - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Device.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a device - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/devices/devices_request_builder.rb b/lib/devices/devices_request_builder.rb index 35c53a452b..d8e9a60801 100644 --- a/lib/devices/devices_request_builder.rb +++ b/lib/devices/devices_request_builder.rb @@ -60,7 +60,7 @@ def by_device_id(device_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of device objects registered in the organization. @@ -72,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,8 +87,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Device.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,15 +97,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -119,17 +117,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a devices_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DevicesRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of device objects registered in the organization. diff --git a/lib/devices/get_available_extension_properties/get_available_extension_properties.rb b/lib/devices/get_available_extension_properties/get_available_extension_properties.rb index b6fee576bf..ce1b642cad 100644 --- a/lib/devices/get_available_extension_properties/get_available_extension_properties.rb +++ b/lib/devices/get_available_extension_properties/get_available_extension_properties.rb @@ -1,2 +1,2 @@ require_relative 'get_available_extension_properties_post_request_body' -require_relative 'get_available_extension_properties_response' +require_relative 'get_available_extension_properties_post_response' diff --git a/lib/devices/get_available_extension_properties/get_available_extension_properties_post_request_body.rb b/lib/devices/get_available_extension_properties/get_available_extension_properties_post_request_body.rb index 3719770d59..fcb1ae776b 100644 --- a/lib/devices/get_available_extension_properties/get_available_extension_properties_post_request_body.rb +++ b/lib/devices/get_available_extension_properties/get_available_extension_properties_post_request_body.rb @@ -15,22 +15,22 @@ class GetAvailableExtensionPropertiesPostRequestBody # The isSyncedFromOnPremises property @is_synced_from_on_premises ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getAvailableExtensionPropertiesPostRequestBody and sets the default values. + ## Instantiates a new GetAvailableExtensionPropertiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/devices/get_available_extension_properties/get_available_extension_properties_post_response.rb b/lib/devices/get_available_extension_properties/get_available_extension_properties_post_response.rb new file mode 100644 index 0000000000..b7d342aec1 --- /dev/null +++ b/lib/devices/get_available_extension_properties/get_available_extension_properties_post_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_collection_pagination_count_response' +require_relative '../../models/extension_property' +require_relative '../devices' +require_relative './get_available_extension_properties' + +module MicrosoftGraph + module Devices + module GetAvailableExtensionProperties + class GetAvailableExtensionPropertiesPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetAvailableExtensionPropertiesPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_available_extension_properties_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetAvailableExtensionPropertiesPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a extension_property + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/devices/get_available_extension_properties/get_available_extension_properties_request_builder.rb b/lib/devices/get_available_extension_properties/get_available_extension_properties_request_builder.rb index aec86d3a8a..dfae9f6c1b 100644 --- a/lib/devices/get_available_extension_properties/get_available_extension_properties_request_builder.rb +++ b/lib/devices/get_available_extension_properties/get_available_extension_properties_request_builder.rb @@ -21,10 +21,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/devices/getAvailableExtensionProperties") end ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_available_extension_properties_response + ## @return a Fiber of get_available_extension_properties_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -32,12 +32,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Devices::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Devices::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -45,17 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_available_extension_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetAvailableExtensionPropertiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/devices/get_available_extension_properties/get_available_extension_properties_response.rb b/lib/devices/get_available_extension_properties/get_available_extension_properties_response.rb deleted file mode 100644 index e7b29e451a..0000000000 --- a/lib/devices/get_available_extension_properties/get_available_extension_properties_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_collection_pagination_count_response' -require_relative '../../models/extension_property' -require_relative '../devices' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module Devices - module GetAvailableExtensionProperties - class GetAvailableExtensionPropertiesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_available_extension_properties_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAvailableExtensionPropertiesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a extension_property - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/devices/get_by_ids/get_by_ids.rb b/lib/devices/get_by_ids/get_by_ids.rb index e4b0824834..131a179969 100644 --- a/lib/devices/get_by_ids/get_by_ids.rb +++ b/lib/devices/get_by_ids/get_by_ids.rb @@ -1,2 +1,2 @@ require_relative 'get_by_ids_post_request_body' -require_relative 'get_by_ids_response' +require_relative 'get_by_ids_post_response' diff --git a/lib/devices/get_by_ids/get_by_ids_post_request_body.rb b/lib/devices/get_by_ids/get_by_ids_post_request_body.rb index 297e327e9d..30762e7bd8 100644 --- a/lib/devices/get_by_ids/get_by_ids_post_request_body.rb +++ b/lib/devices/get_by_ids/get_by_ids_post_request_body.rb @@ -18,22 +18,22 @@ class GetByIdsPostRequestBody # The types property @types ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getByIdsPostRequestBody and sets the default values. + ## Instantiates a new GetByIdsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/devices/get_by_ids/get_by_ids_post_response.rb b/lib/devices/get_by_ids/get_by_ids_post_response.rb new file mode 100644 index 0000000000..ab4d32f232 --- /dev/null +++ b/lib/devices/get_by_ids/get_by_ids_post_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_collection_pagination_count_response' +require_relative '../../models/directory_object' +require_relative '../devices' +require_relative './get_by_ids' + +module MicrosoftGraph + module Devices + module GetByIds + class GetByIdsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetByIdsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_by_ids_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetByIdsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a directory_object + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/devices/get_by_ids/get_by_ids_request_builder.rb b/lib/devices/get_by_ids/get_by_ids_request_builder.rb index 249fafaaa5..78a5e884f4 100644 --- a/lib/devices/get_by_ids/get_by_ids_request_builder.rb +++ b/lib/devices/get_by_ids/get_by_ids_request_builder.rb @@ -24,7 +24,7 @@ def initialize(path_parameters, request_adapter) ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_by_ids_response + ## @return a Fiber of get_by_ids_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -32,9 +32,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Devices::GetByIds::GetByIdsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Devices::GetByIds::GetByIdsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: @@ -45,17 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_by_ids_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetByIdsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/devices/get_by_ids/get_by_ids_response.rb b/lib/devices/get_by_ids/get_by_ids_response.rb deleted file mode 100644 index 47f9afb7b1..0000000000 --- a/lib/devices/get_by_ids/get_by_ids_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_collection_pagination_count_response' -require_relative '../../models/directory_object' -require_relative '../devices' -require_relative './get_by_ids' - -module MicrosoftGraph - module Devices - module GetByIds - class GetByIdsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getByIdsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_by_ids_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetByIdsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/devices/item/check_member_groups/check_member_groups.rb b/lib/devices/item/check_member_groups/check_member_groups.rb index 938b908522..98148024fe 100644 --- a/lib/devices/item/check_member_groups/check_member_groups.rb +++ b/lib/devices/item/check_member_groups/check_member_groups.rb @@ -1,2 +1,2 @@ require_relative 'check_member_groups_post_request_body' -require_relative 'check_member_groups_response' +require_relative 'check_member_groups_post_response' diff --git a/lib/devices/item/check_member_groups/check_member_groups_post_request_body.rb b/lib/devices/item/check_member_groups/check_member_groups_post_request_body.rb index 4b6766ef36..2c16ee916d 100644 --- a/lib/devices/item/check_member_groups/check_member_groups_post_request_body.rb +++ b/lib/devices/item/check_member_groups/check_member_groups_post_request_body.rb @@ -17,22 +17,22 @@ class CheckMemberGroupsPostRequestBody # The groupIds property @group_ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new checkMemberGroupsPostRequestBody and sets the default values. + ## Instantiates a new CheckMemberGroupsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/devices/item/check_member_groups/check_member_groups_post_response.rb b/lib/devices/item/check_member_groups/check_member_groups_post_response.rb new file mode 100644 index 0000000000..f875b8bd6d --- /dev/null +++ b/lib/devices/item/check_member_groups/check_member_groups_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../devices' +require_relative '../item' +require_relative './check_member_groups' + +module MicrosoftGraph + module Devices + module Item + module CheckMemberGroups + class CheckMemberGroupsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new CheckMemberGroupsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a check_member_groups_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CheckMemberGroupsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/devices/item/check_member_groups/check_member_groups_request_builder.rb b/lib/devices/item/check_member_groups/check_member_groups_request_builder.rb index 4a5bb58f55..52e50a3a31 100644 --- a/lib/devices/item/check_member_groups/check_member_groups_request_builder.rb +++ b/lib/devices/item/check_member_groups/check_member_groups_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/checkMemberGroups") end ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + ## Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_groups_response + ## @return a Fiber of check_member_groups_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Devices::Item::CheckMemberGroups::CheckMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Devices::Item::CheckMemberGroups::CheckMemberGroupsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + ## Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a check_member_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CheckMemberGroupsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/devices/item/check_member_groups/check_member_groups_response.rb b/lib/devices/item/check_member_groups/check_member_groups_response.rb deleted file mode 100644 index c6da849c2d..0000000000 --- a/lib/devices/item/check_member_groups/check_member_groups_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../devices' -require_relative '../item' -require_relative './check_member_groups' - -module MicrosoftGraph - module Devices - module Item - module CheckMemberGroups - class CheckMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/devices/item/check_member_objects/check_member_objects.rb b/lib/devices/item/check_member_objects/check_member_objects.rb index 67fbf971e7..1826285d49 100644 --- a/lib/devices/item/check_member_objects/check_member_objects.rb +++ b/lib/devices/item/check_member_objects/check_member_objects.rb @@ -1,2 +1,2 @@ require_relative 'check_member_objects_post_request_body' -require_relative 'check_member_objects_response' +require_relative 'check_member_objects_post_response' diff --git a/lib/devices/item/check_member_objects/check_member_objects_post_request_body.rb b/lib/devices/item/check_member_objects/check_member_objects_post_request_body.rb index 963c124fec..7b7b609728 100644 --- a/lib/devices/item/check_member_objects/check_member_objects_post_request_body.rb +++ b/lib/devices/item/check_member_objects/check_member_objects_post_request_body.rb @@ -17,22 +17,22 @@ class CheckMemberObjectsPostRequestBody # The ids property @ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new checkMemberObjectsPostRequestBody and sets the default values. + ## Instantiates a new CheckMemberObjectsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/devices/item/check_member_objects/check_member_objects_post_response.rb b/lib/devices/item/check_member_objects/check_member_objects_post_response.rb new file mode 100644 index 0000000000..5c2c95657d --- /dev/null +++ b/lib/devices/item/check_member_objects/check_member_objects_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../devices' +require_relative '../item' +require_relative './check_member_objects' + +module MicrosoftGraph + module Devices + module Item + module CheckMemberObjects + class CheckMemberObjectsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new CheckMemberObjectsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a check_member_objects_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CheckMemberObjectsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/devices/item/check_member_objects/check_member_objects_request_builder.rb b/lib/devices/item/check_member_objects/check_member_objects_request_builder.rb index cb4d7907ef..fd3e27a76b 100644 --- a/lib/devices/item/check_member_objects/check_member_objects_request_builder.rb +++ b/lib/devices/item/check_member_objects/check_member_objects_request_builder.rb @@ -26,7 +26,7 @@ def initialize(path_parameters, request_adapter) ## Invoke action checkMemberObjects ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_objects_response + ## @return a Fiber of check_member_objects_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,9 +34,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Devices::Item::CheckMemberObjects::CheckMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Devices::Item::CheckMemberObjects::CheckMemberObjectsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke action checkMemberObjects @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a check_member_objects_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CheckMemberObjectsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/devices/item/check_member_objects/check_member_objects_response.rb b/lib/devices/item/check_member_objects/check_member_objects_response.rb deleted file mode 100644 index 36e0821201..0000000000 --- a/lib/devices/item/check_member_objects/check_member_objects_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../devices' -require_relative '../item' -require_relative './check_member_objects' - -module MicrosoftGraph - module Devices - module Item - module CheckMemberObjects - class CheckMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/devices/item/device_item_request_builder.rb b/lib/devices/item/device_item_request_builder.rb index a2cb5a60a0..1b53e94d67 100644 --- a/lib/devices/item/device_item_request_builder.rb +++ b/lib/devices/item/device_item_request_builder.rb @@ -79,7 +79,7 @@ def transitive_member_of() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}{?%24expand,%24select}") end ## ## Delete a registered device. @@ -91,8 +91,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -105,8 +104,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Device.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -121,8 +119,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Device.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -132,13 +129,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -148,15 +146,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -168,17 +166,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the properties and relationships of a device object. diff --git a/lib/devices/item/extensions/count/count_request_builder.rb b/lib/devices/item/extensions/count/count_request_builder.rb index eca909b80e..c61b7f499d 100644 --- a/lib/devices/item/extensions/count/count_request_builder.rb +++ b/lib/devices/item/extensions/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/extensions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/extensions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/devices/item/extensions/extensions_request_builder.rb b/lib/devices/item/extensions/extensions_request_builder.rb index 1574b727a7..c6c0f2d77a 100644 --- a/lib/devices/item/extensions/extensions_request_builder.rb +++ b/lib/devices/item/extensions/extensions_request_builder.rb @@ -40,7 +40,7 @@ def by_extension_id(extension_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/extensions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The collection of open extensions defined for the device. Read-only. Nullable. @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExtensionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,15 +77,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extensions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionsRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of open extensions defined for the device. Read-only. Nullable. diff --git a/lib/devices/item/extensions/item/extension_item_request_builder.rb b/lib/devices/item/extensions/item/extension_item_request_builder.rb index 3e15351fca..193464dcf5 100644 --- a/lib/devices/item/extensions/item/extension_item_request_builder.rb +++ b/lib/devices/item/extensions/item/extension_item_request_builder.rb @@ -23,7 +23,7 @@ class ExtensionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/extensions/{extension%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/extensions/{extension%2Did}{?%24expand,%24select}") end ## ## Delete navigation property extensions for devices @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extension_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of open extensions defined for the device. Read-only. Nullable. diff --git a/lib/devices/item/get_member_groups/get_member_groups.rb b/lib/devices/item/get_member_groups/get_member_groups.rb index 0a25b012ea..9190b99738 100644 --- a/lib/devices/item/get_member_groups/get_member_groups.rb +++ b/lib/devices/item/get_member_groups/get_member_groups.rb @@ -1,2 +1,2 @@ require_relative 'get_member_groups_post_request_body' -require_relative 'get_member_groups_response' +require_relative 'get_member_groups_post_response' diff --git a/lib/devices/item/get_member_groups/get_member_groups_post_request_body.rb b/lib/devices/item/get_member_groups/get_member_groups_post_request_body.rb index fd52a2a35c..5a136f195a 100644 --- a/lib/devices/item/get_member_groups/get_member_groups_post_request_body.rb +++ b/lib/devices/item/get_member_groups/get_member_groups_post_request_body.rb @@ -17,22 +17,22 @@ class GetMemberGroupsPostRequestBody # The securityEnabledOnly property @security_enabled_only ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getMemberGroupsPostRequestBody and sets the default values. + ## Instantiates a new GetMemberGroupsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/devices/item/get_member_groups/get_member_groups_post_response.rb b/lib/devices/item/get_member_groups/get_member_groups_post_response.rb new file mode 100644 index 0000000000..252bccd09c --- /dev/null +++ b/lib/devices/item/get_member_groups/get_member_groups_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../devices' +require_relative '../item' +require_relative './get_member_groups' + +module MicrosoftGraph + module Devices + module Item + module GetMemberGroups + class GetMemberGroupsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetMemberGroupsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_member_groups_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetMemberGroupsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/devices/item/get_member_groups/get_member_groups_request_builder.rb b/lib/devices/item/get_member_groups/get_member_groups_request_builder.rb index c1f08b62ad..8a5f607812 100644 --- a/lib/devices/item/get_member_groups/get_member_groups_request_builder.rb +++ b/lib/devices/item/get_member_groups/get_member_groups_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/getMemberGroups") end ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. + ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_groups_response + ## @return a Fiber of get_member_groups_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Devices::Item::GetMemberGroups::GetMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Devices::Item::GetMemberGroups::GetMemberGroupsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. + ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_member_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetMemberGroupsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/devices/item/get_member_groups/get_member_groups_response.rb b/lib/devices/item/get_member_groups/get_member_groups_response.rb deleted file mode 100644 index a43bd7853f..0000000000 --- a/lib/devices/item/get_member_groups/get_member_groups_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../devices' -require_relative '../item' -require_relative './get_member_groups' - -module MicrosoftGraph - module Devices - module Item - module GetMemberGroups - class GetMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/devices/item/get_member_objects/get_member_objects.rb b/lib/devices/item/get_member_objects/get_member_objects.rb index 40edad6b9e..f7a486b0f9 100644 --- a/lib/devices/item/get_member_objects/get_member_objects.rb +++ b/lib/devices/item/get_member_objects/get_member_objects.rb @@ -1,2 +1,2 @@ require_relative 'get_member_objects_post_request_body' -require_relative 'get_member_objects_response' +require_relative 'get_member_objects_post_response' diff --git a/lib/devices/item/get_member_objects/get_member_objects_post_request_body.rb b/lib/devices/item/get_member_objects/get_member_objects_post_request_body.rb index 07fb9b6363..af32723d5a 100644 --- a/lib/devices/item/get_member_objects/get_member_objects_post_request_body.rb +++ b/lib/devices/item/get_member_objects/get_member_objects_post_request_body.rb @@ -17,22 +17,22 @@ class GetMemberObjectsPostRequestBody # The securityEnabledOnly property @security_enabled_only ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getMemberObjectsPostRequestBody and sets the default values. + ## Instantiates a new GetMemberObjectsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/devices/item/get_member_objects/get_member_objects_post_response.rb b/lib/devices/item/get_member_objects/get_member_objects_post_response.rb new file mode 100644 index 0000000000..cf38378c41 --- /dev/null +++ b/lib/devices/item/get_member_objects/get_member_objects_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../devices' +require_relative '../item' +require_relative './get_member_objects' + +module MicrosoftGraph + module Devices + module Item + module GetMemberObjects + class GetMemberObjectsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetMemberObjectsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_member_objects_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetMemberObjectsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/devices/item/get_member_objects/get_member_objects_request_builder.rb b/lib/devices/item/get_member_objects/get_member_objects_request_builder.rb index a9cf556d34..6479494bc9 100644 --- a/lib/devices/item/get_member_objects/get_member_objects_request_builder.rb +++ b/lib/devices/item/get_member_objects/get_member_objects_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/getMemberObjects") end ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + ## Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_objects_response + ## @return a Fiber of get_member_objects_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Devices::Item::GetMemberObjects::GetMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Devices::Item::GetMemberObjects::GetMemberObjectsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + ## Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_member_objects_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetMemberObjectsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/devices/item/get_member_objects/get_member_objects_response.rb b/lib/devices/item/get_member_objects/get_member_objects_response.rb deleted file mode 100644 index ec92635464..0000000000 --- a/lib/devices/item/get_member_objects/get_member_objects_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../devices' -require_relative '../item' -require_relative './get_member_objects' - -module MicrosoftGraph - module Devices - module Item - module GetMemberObjects - class GetMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/devices/item/member_of/count/count_request_builder.rb b/lib/devices/item/member_of/count/count_request_builder.rb index 11d3643963..99d623aafa 100644 --- a/lib/devices/item/member_of/count/count_request_builder.rb +++ b/lib/devices/item/member_of/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/memberOf/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/memberOf/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/devices/item/member_of/graph_administrative_unit/count/count_request_builder.rb b/lib/devices/item/member_of/graph_administrative_unit/count/count_request_builder.rb index 9df5c07899..a9d2e0cfeb 100644 --- a/lib/devices/item/member_of/graph_administrative_unit/count/count_request_builder.rb +++ b/lib/devices/item/member_of/graph_administrative_unit/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/memberOf/graph.administrativeUnit/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/memberOf/graph.administrativeUnit/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/devices/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/devices/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb index 9dde637390..9b28146e07 100644 --- a/lib/devices/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +++ b/lib/devices/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/memberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/memberOf/graph.administrativeUnit{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnitCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_administrative_unit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAdministrativeUnitRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection diff --git a/lib/devices/item/member_of/graph_group/count/count_request_builder.rb b/lib/devices/item/member_of/graph_group/count/count_request_builder.rb index e089b29011..bc06f348da 100644 --- a/lib/devices/item/member_of/graph_group/count/count_request_builder.rb +++ b/lib/devices/item/member_of/graph_group/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/memberOf/graph.group/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/memberOf/graph.group/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/devices/item/member_of/graph_group/graph_group_request_builder.rb b/lib/devices/item/member_of/graph_group/graph_group_request_builder.rb index 3524a7acd3..09c1c8aebf 100644 --- a/lib/devices/item/member_of/graph_group/graph_group_request_builder.rb +++ b/lib/devices/item/member_of/graph_group/graph_group_request_builder.rb @@ -29,10 +29,10 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/memberOf/graph.group{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/memberOf/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection + ## Get groups and administrative units that this device is a direct member of. This operation is not transitive. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of group_collection_response ## @@ -41,31 +41,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection + ## Get groups and administrative units that this device is a direct member of. This operation is not transitive. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection + # Get groups and administrative units that this device is a direct member of. This operation is not transitive. class GraphGroupRequestBuilderGetQueryParameters ## diff --git a/lib/devices/item/member_of/item/directory_object_item_request_builder.rb b/lib/devices/item/member_of/item/directory_object_item_request_builder.rb index 26fb4f1205..74f20369b5 100644 --- a/lib/devices/item/member_of/item/directory_object_item_request_builder.rb +++ b/lib/devices/item/member_of/item/directory_object_item_request_builder.rb @@ -35,7 +35,7 @@ def graph_group() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/memberOf/{directoryObject%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/memberOf/{directoryObject%2Did}{?%24expand,%24select}") end ## ## Groups and administrative units that this device is a member of. Read-only. Nullable. Supports $expand. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directory_object_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoryObjectItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Groups and administrative units that this device is a member of. Read-only. Nullable. Supports $expand. diff --git a/lib/devices/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/devices/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb index d1bf5d4dbd..7c06419355 100644 --- a/lib/devices/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +++ b/lib/devices/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -25,7 +25,7 @@ class GraphAdministrativeUnitRequestBuilder < MicrosoftKiotaAbstractions::BaseRe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/memberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/memberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_administrative_unit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAdministrativeUnitRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit diff --git a/lib/devices/item/member_of/item/graph_group/graph_group_request_builder.rb b/lib/devices/item/member_of/item/graph_group/graph_group_request_builder.rb index de112f7a7e..f5f597ca78 100644 --- a/lib/devices/item/member_of/item/graph_group/graph_group_request_builder.rb +++ b/lib/devices/item/member_of/item/graph_group/graph_group_request_builder.rb @@ -25,10 +25,10 @@ class GraphGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/memberOf/{directoryObject%2Did}/graph.group{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/memberOf/{directoryObject%2Did}/graph.group{?%24expand,%24select}") end ## - ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.group + ## Get groups and administrative units that this device is a direct member of. This operation is not transitive. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of group ## @@ -37,31 +37,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.group + ## Get groups and administrative units that this device is a direct member of. This operation is not transitive. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the item of type microsoft.graph.directoryObject as microsoft.graph.group + # Get groups and administrative units that this device is a direct member of. This operation is not transitive. class GraphGroupRequestBuilderGetQueryParameters ## diff --git a/lib/devices/item/member_of/member_of_request_builder.rb b/lib/devices/item/member_of/member_of_request_builder.rb index 8968813413..185caa58a2 100644 --- a/lib/devices/item/member_of/member_of_request_builder.rb +++ b/lib/devices/item/member_of/member_of_request_builder.rb @@ -51,10 +51,10 @@ def by_directory_object_id(directory_object_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/memberOf{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/memberOf{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Groups and administrative units that this device is a member of. Read-only. Nullable. Supports $expand. + ## Get groups and administrative units that this device is a direct member of. This operation is not transitive. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object_collection_response ## @@ -63,31 +63,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Groups and administrative units that this device is a member of. Read-only. Nullable. Supports $expand. + ## Get groups and administrative units that this device is a direct member of. This operation is not transitive. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a member_of_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MemberOfRequestBuilder.new(raw_url, @request_adapter) + end ## - # Groups and administrative units that this device is a member of. Read-only. Nullable. Supports $expand. + # Get groups and administrative units that this device is a direct member of. This operation is not transitive. class MemberOfRequestBuilderGetQueryParameters ## diff --git a/lib/devices/item/registered_owners/count/count_request_builder.rb b/lib/devices/item/registered_owners/count/count_request_builder.rb index dfafa27d7a..98327cf39c 100644 --- a/lib/devices/item/registered_owners/count/count_request_builder.rb +++ b/lib/devices/item/registered_owners/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/devices/item/registered_owners/graph_app_role_assignment/count/count_request_builder.rb b/lib/devices/item/registered_owners/graph_app_role_assignment/count/count_request_builder.rb index 4334b587b1..611c3d26ed 100644 --- a/lib/devices/item/registered_owners/graph_app_role_assignment/count/count_request_builder.rb +++ b/lib/devices/item/registered_owners/graph_app_role_assignment/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/graph.appRoleAssignment/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/graph.appRoleAssignment/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/devices/item/registered_owners/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb b/lib/devices/item/registered_owners/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb index a20b7fc80e..d591e41cd6 100644 --- a/lib/devices/item/registered_owners/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb +++ b/lib/devices/item/registered_owners/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/graph.appRoleAssignment{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/graph.appRoleAssignment{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.appRoleAssignment in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppRoleAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_app_role_assignment_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAppRoleAssignmentRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.appRoleAssignment in the microsoft.graph.directoryObject collection diff --git a/lib/devices/item/registered_owners/graph_endpoint/count/count_request_builder.rb b/lib/devices/item/registered_owners/graph_endpoint/count/count_request_builder.rb index e44fd855af..3e4dd13941 100644 --- a/lib/devices/item/registered_owners/graph_endpoint/count/count_request_builder.rb +++ b/lib/devices/item/registered_owners/graph_endpoint/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/graph.endpoint/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/graph.endpoint/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/devices/item/registered_owners/graph_endpoint/graph_endpoint_request_builder.rb b/lib/devices/item/registered_owners/graph_endpoint/graph_endpoint_request_builder.rb index 33c9125892..4dd956e5ba 100644 --- a/lib/devices/item/registered_owners/graph_endpoint/graph_endpoint_request_builder.rb +++ b/lib/devices/item/registered_owners/graph_endpoint/graph_endpoint_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/graph.endpoint{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/graph.endpoint{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.endpoint in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EndpointCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_endpoint_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphEndpointRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.endpoint in the microsoft.graph.directoryObject collection diff --git a/lib/devices/item/registered_owners/graph_service_principal/count/count_request_builder.rb b/lib/devices/item/registered_owners/graph_service_principal/count/count_request_builder.rb index 1acd77edb1..ee9963e8a2 100644 --- a/lib/devices/item/registered_owners/graph_service_principal/count/count_request_builder.rb +++ b/lib/devices/item/registered_owners/graph_service_principal/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/graph.servicePrincipal/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/graph.servicePrincipal/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/devices/item/registered_owners/graph_service_principal/graph_service_principal_request_builder.rb b/lib/devices/item/registered_owners/graph_service_principal/graph_service_principal_request_builder.rb index 6c51e4afaa..9d3f9feddc 100644 --- a/lib/devices/item/registered_owners/graph_service_principal/graph_service_principal_request_builder.rb +++ b/lib/devices/item/registered_owners/graph_service_principal/graph_service_principal_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/graph.servicePrincipal{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/graph.servicePrincipal{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServicePrincipalCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_service_principal_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphServicePrincipalRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection diff --git a/lib/devices/item/registered_owners/graph_user/count/count_request_builder.rb b/lib/devices/item/registered_owners/graph_user/count/count_request_builder.rb index 1baf4a1a84..4cc50e5e65 100644 --- a/lib/devices/item/registered_owners/graph_user/count/count_request_builder.rb +++ b/lib/devices/item/registered_owners/graph_user/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/graph.user/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/graph.user/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/devices/item/registered_owners/graph_user/graph_user_request_builder.rb b/lib/devices/item/registered_owners/graph_user/graph_user_request_builder.rb index 92fb8ee8f8..6455271905 100644 --- a/lib/devices/item/registered_owners/graph_user/graph_user_request_builder.rb +++ b/lib/devices/item/registered_owners/graph_user/graph_user_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/graph.user{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/graph.user{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection diff --git a/lib/devices/item/registered_owners/item/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb b/lib/devices/item/registered_owners/item/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb index 2e7ea72ef1..ab2b095665 100644 --- a/lib/devices/item/registered_owners/item/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb +++ b/lib/devices/item/registered_owners/item/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb @@ -25,7 +25,7 @@ class GraphAppRoleAssignmentRequestBuilder < MicrosoftKiotaAbstractions::BaseReq ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/graph.appRoleAssignment{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/graph.appRoleAssignment{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.appRoleAssignment @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppRoleAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_app_role_assignment_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAppRoleAssignmentRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.appRoleAssignment diff --git a/lib/devices/item/registered_owners/item/graph_endpoint/graph_endpoint_request_builder.rb b/lib/devices/item/registered_owners/item/graph_endpoint/graph_endpoint_request_builder.rb index 96320fa3e5..dbe3697b5b 100644 --- a/lib/devices/item/registered_owners/item/graph_endpoint/graph_endpoint_request_builder.rb +++ b/lib/devices/item/registered_owners/item/graph_endpoint/graph_endpoint_request_builder.rb @@ -25,7 +25,7 @@ class GraphEndpointRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/graph.endpoint{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/graph.endpoint{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Endpoint.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_endpoint_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphEndpointRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint diff --git a/lib/devices/item/registered_owners/item/graph_service_principal/graph_service_principal_request_builder.rb b/lib/devices/item/registered_owners/item/graph_service_principal/graph_service_principal_request_builder.rb index fae7efec78..b5d4844817 100644 --- a/lib/devices/item/registered_owners/item/graph_service_principal/graph_service_principal_request_builder.rb +++ b/lib/devices/item/registered_owners/item/graph_service_principal/graph_service_principal_request_builder.rb @@ -25,7 +25,7 @@ class GraphServicePrincipalRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/graph.servicePrincipal{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/graph.servicePrincipal{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServicePrincipal.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_service_principal_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphServicePrincipalRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal diff --git a/lib/devices/item/registered_owners/item/graph_user/graph_user_request_builder.rb b/lib/devices/item/registered_owners/item/graph_user/graph_user_request_builder.rb index 9a6acf7136..e1999ce698 100644 --- a/lib/devices/item/registered_owners/item/graph_user/graph_user_request_builder.rb +++ b/lib/devices/item/registered_owners/item/graph_user/graph_user_request_builder.rb @@ -25,7 +25,7 @@ class GraphUserRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/graph.user{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/graph.user{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.user @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.user diff --git a/lib/devices/item/registered_owners/item/ref/ref_request_builder.rb b/lib/devices/item/registered_owners/item/ref/ref_request_builder.rb index 920c53c687..b5e8c738e7 100644 --- a/lib/devices/item/registered_owners/item/ref/ref_request_builder.rb +++ b/lib/devices/item/registered_owners/item/ref/ref_request_builder.rb @@ -24,7 +24,7 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/$ref") end ## ## Remove a user as a registered owner of the device. @@ -36,8 +36,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,38 +46,24 @@ def delete(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Remove a user as a registered owner of the device. - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/devices/item/registered_owners/ref/ref_request_builder.rb b/lib/devices/item/registered_owners/ref/ref_request_builder.rb index f28c82e8f9..f5bc278408 100644 --- a/lib/devices/item/registered_owners/ref/ref_request_builder.rb +++ b/lib/devices/item/registered_owners/ref/ref_request_builder.rb @@ -24,10 +24,23 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") end ## - ## The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand. + ## Remove a user as a registered owner of the device. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Retrieve a list of users that are registered owners of the device. A registered owner is the user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Currently, there can be only one owner. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of string_collection_response ## @@ -36,8 +49,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,26 +64,43 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand. + ## Remove a user as a registered owner of the device. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/devices/{device%2Did}/registeredOwners/$ref?@id={%40id}' request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Retrieve a list of users that are registered owners of the device. A registered owner is the user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Currently, there can be only one owner. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/devices/{device%2Did}/registeredOwners/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -83,19 +112,52 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/devices/{device%2Did}/registeredOwners/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Remove a user as a registered owner of the device. + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end ## - # The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand. + # Retrieve a list of users that are registered owners of the device. A registered owner is the user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Currently, there can be only one owner. class RefRequestBuilderGetQueryParameters ## diff --git a/lib/devices/item/registered_owners/registered_owners_request_builder.rb b/lib/devices/item/registered_owners/registered_owners_request_builder.rb index 7cd32b81ae..0b5acd96dc 100644 --- a/lib/devices/item/registered_owners/registered_owners_request_builder.rb +++ b/lib/devices/item/registered_owners/registered_owners_request_builder.rb @@ -53,7 +53,7 @@ def ref() end ## ## Gets an item from the MicrosoftGraph.devices.item.registeredOwners.item collection - ## @param directory_object_id Unique identifier of the item + ## @param directory_object_id The unique identifier of directoryObject ## @return a directory_object_item_request_builder ## def by_directory_object_id(directory_object_id) @@ -69,10 +69,10 @@ def by_directory_object_id(directory_object_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredOwners{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand. + ## Retrieve a list of users that are registered owners of the device. A registered owner is the user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Currently, there can be only one owner. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object_collection_response ## @@ -81,31 +81,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand. + ## Retrieve a list of users that are registered owners of the device. A registered owner is the user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Currently, there can be only one owner. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a registered_owners_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RegisteredOwnersRequestBuilder.new(raw_url, @request_adapter) + end ## - # The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand. + # Retrieve a list of users that are registered owners of the device. A registered owner is the user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Currently, there can be only one owner. class RegisteredOwnersRequestBuilderGetQueryParameters ## diff --git a/lib/devices/item/registered_users/count/count_request_builder.rb b/lib/devices/item/registered_users/count/count_request_builder.rb index 0ebb761244..eb31fa6910 100644 --- a/lib/devices/item/registered_users/count/count_request_builder.rb +++ b/lib/devices/item/registered_users/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/devices/item/registered_users/graph_app_role_assignment/count/count_request_builder.rb b/lib/devices/item/registered_users/graph_app_role_assignment/count/count_request_builder.rb index a71cac18dc..b814d5b1cc 100644 --- a/lib/devices/item/registered_users/graph_app_role_assignment/count/count_request_builder.rb +++ b/lib/devices/item/registered_users/graph_app_role_assignment/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/graph.appRoleAssignment/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/graph.appRoleAssignment/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/devices/item/registered_users/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb b/lib/devices/item/registered_users/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb index 6849ab816d..6ba891af39 100644 --- a/lib/devices/item/registered_users/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb +++ b/lib/devices/item/registered_users/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/graph.appRoleAssignment{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/graph.appRoleAssignment{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.appRoleAssignment in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppRoleAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_app_role_assignment_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAppRoleAssignmentRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.appRoleAssignment in the microsoft.graph.directoryObject collection diff --git a/lib/devices/item/registered_users/graph_endpoint/count/count_request_builder.rb b/lib/devices/item/registered_users/graph_endpoint/count/count_request_builder.rb index 0b8cbf1814..f3d28682d5 100644 --- a/lib/devices/item/registered_users/graph_endpoint/count/count_request_builder.rb +++ b/lib/devices/item/registered_users/graph_endpoint/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/graph.endpoint/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/graph.endpoint/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/devices/item/registered_users/graph_endpoint/graph_endpoint_request_builder.rb b/lib/devices/item/registered_users/graph_endpoint/graph_endpoint_request_builder.rb index 917e51b175..2be5176f3e 100644 --- a/lib/devices/item/registered_users/graph_endpoint/graph_endpoint_request_builder.rb +++ b/lib/devices/item/registered_users/graph_endpoint/graph_endpoint_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/graph.endpoint{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/graph.endpoint{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.endpoint in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EndpointCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_endpoint_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphEndpointRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.endpoint in the microsoft.graph.directoryObject collection diff --git a/lib/devices/item/registered_users/graph_service_principal/count/count_request_builder.rb b/lib/devices/item/registered_users/graph_service_principal/count/count_request_builder.rb index 1157deadce..199fae4803 100644 --- a/lib/devices/item/registered_users/graph_service_principal/count/count_request_builder.rb +++ b/lib/devices/item/registered_users/graph_service_principal/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/graph.servicePrincipal/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/graph.servicePrincipal/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/devices/item/registered_users/graph_service_principal/graph_service_principal_request_builder.rb b/lib/devices/item/registered_users/graph_service_principal/graph_service_principal_request_builder.rb index e0c15e73f8..6fa26a8cf1 100644 --- a/lib/devices/item/registered_users/graph_service_principal/graph_service_principal_request_builder.rb +++ b/lib/devices/item/registered_users/graph_service_principal/graph_service_principal_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/graph.servicePrincipal{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/graph.servicePrincipal{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServicePrincipalCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_service_principal_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphServicePrincipalRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection diff --git a/lib/devices/item/registered_users/graph_user/count/count_request_builder.rb b/lib/devices/item/registered_users/graph_user/count/count_request_builder.rb index 97056c9999..3cf6ffdef4 100644 --- a/lib/devices/item/registered_users/graph_user/count/count_request_builder.rb +++ b/lib/devices/item/registered_users/graph_user/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/graph.user/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/graph.user/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/devices/item/registered_users/graph_user/graph_user_request_builder.rb b/lib/devices/item/registered_users/graph_user/graph_user_request_builder.rb index 2be2d95d6d..73c0144ca9 100644 --- a/lib/devices/item/registered_users/graph_user/graph_user_request_builder.rb +++ b/lib/devices/item/registered_users/graph_user/graph_user_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/graph.user{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/graph.user{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection diff --git a/lib/devices/item/registered_users/item/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb b/lib/devices/item/registered_users/item/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb index f618fc7d67..a90f137e75 100644 --- a/lib/devices/item/registered_users/item/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb +++ b/lib/devices/item/registered_users/item/graph_app_role_assignment/graph_app_role_assignment_request_builder.rb @@ -25,7 +25,7 @@ class GraphAppRoleAssignmentRequestBuilder < MicrosoftKiotaAbstractions::BaseReq ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/graph.appRoleAssignment{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/graph.appRoleAssignment{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.appRoleAssignment @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppRoleAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_app_role_assignment_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAppRoleAssignmentRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.appRoleAssignment diff --git a/lib/devices/item/registered_users/item/graph_endpoint/graph_endpoint_request_builder.rb b/lib/devices/item/registered_users/item/graph_endpoint/graph_endpoint_request_builder.rb index 5c3a10ba66..012156c45e 100644 --- a/lib/devices/item/registered_users/item/graph_endpoint/graph_endpoint_request_builder.rb +++ b/lib/devices/item/registered_users/item/graph_endpoint/graph_endpoint_request_builder.rb @@ -25,7 +25,7 @@ class GraphEndpointRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/graph.endpoint{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/graph.endpoint{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Endpoint.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_endpoint_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphEndpointRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint diff --git a/lib/devices/item/registered_users/item/graph_service_principal/graph_service_principal_request_builder.rb b/lib/devices/item/registered_users/item/graph_service_principal/graph_service_principal_request_builder.rb index 2496575e52..b2409eacc2 100644 --- a/lib/devices/item/registered_users/item/graph_service_principal/graph_service_principal_request_builder.rb +++ b/lib/devices/item/registered_users/item/graph_service_principal/graph_service_principal_request_builder.rb @@ -25,7 +25,7 @@ class GraphServicePrincipalRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/graph.servicePrincipal{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/graph.servicePrincipal{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServicePrincipal.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_service_principal_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphServicePrincipalRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal diff --git a/lib/devices/item/registered_users/item/graph_user/graph_user_request_builder.rb b/lib/devices/item/registered_users/item/graph_user/graph_user_request_builder.rb index f80e84c07a..564a12e33c 100644 --- a/lib/devices/item/registered_users/item/graph_user/graph_user_request_builder.rb +++ b/lib/devices/item/registered_users/item/graph_user/graph_user_request_builder.rb @@ -25,7 +25,7 @@ class GraphUserRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/graph.user{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/graph.user{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.user @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.user diff --git a/lib/devices/item/registered_users/item/ref/ref_request_builder.rb b/lib/devices/item/registered_users/item/ref/ref_request_builder.rb index ba820720bd..e052faeb21 100644 --- a/lib/devices/item/registered_users/item/ref/ref_request_builder.rb +++ b/lib/devices/item/registered_users/item/ref/ref_request_builder.rb @@ -24,7 +24,7 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/$ref") end ## ## Remove a user as a registered user of the device. @@ -36,8 +36,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,38 +46,24 @@ def delete(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Remove a user as a registered user of the device. - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/devices/item/registered_users/ref/ref_request_builder.rb b/lib/devices/item/registered_users/ref/ref_request_builder.rb index e16ade79fa..c65e081b8b 100644 --- a/lib/devices/item/registered_users/ref/ref_request_builder.rb +++ b/lib/devices/item/registered_users/ref/ref_request_builder.rb @@ -24,10 +24,23 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") end ## - ## Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand. + ## Remove a user as a registered user of the device. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Retrieve a list of users that are registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of string_collection_response ## @@ -36,8 +49,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,26 +64,43 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand. + ## Remove a user as a registered user of the device. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/devices/{device%2Did}/registeredUsers/$ref?@id={%40id}' request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Retrieve a list of users that are registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/devices/{device%2Did}/registeredUsers/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -83,19 +112,52 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/devices/{device%2Did}/registeredUsers/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Remove a user as a registered user of the device. + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end ## - # Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand. + # Retrieve a list of users that are registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. class RefRequestBuilderGetQueryParameters ## diff --git a/lib/devices/item/registered_users/registered_users_request_builder.rb b/lib/devices/item/registered_users/registered_users_request_builder.rb index 16b81f02a5..8f461940f3 100644 --- a/lib/devices/item/registered_users/registered_users_request_builder.rb +++ b/lib/devices/item/registered_users/registered_users_request_builder.rb @@ -53,7 +53,7 @@ def ref() end ## ## Gets an item from the MicrosoftGraph.devices.item.registeredUsers.item collection - ## @param directory_object_id Unique identifier of the item + ## @param directory_object_id The unique identifier of directoryObject ## @return a directory_object_item_request_builder ## def by_directory_object_id(directory_object_id) @@ -69,10 +69,10 @@ def by_directory_object_id(directory_object_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand. + ## Retrieve a list of users that are registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object_collection_response ## @@ -81,31 +81,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand. + ## Retrieve a list of users that are registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a registered_users_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RegisteredUsersRequestBuilder.new(raw_url, @request_adapter) + end ## - # Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand. + # Retrieve a list of users that are registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. class RegisteredUsersRequestBuilderGetQueryParameters ## diff --git a/lib/devices/item/restore/restore_request_builder.rb b/lib/devices/item/restore/restore_request_builder.rb index 94da25431c..a3a2760db5 100644 --- a/lib/devices/item/restore/restore_request_builder.rb +++ b/lib/devices/item/restore/restore_request_builder.rb @@ -24,7 +24,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/restore") end ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object ## @@ -33,27 +33,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a restore_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RestoreRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/devices/item/transitive_member_of/count/count_request_builder.rb b/lib/devices/item/transitive_member_of/count/count_request_builder.rb index 94e1db0b49..ed488e45c5 100644 --- a/lib/devices/item/transitive_member_of/count/count_request_builder.rb +++ b/lib/devices/item/transitive_member_of/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/devices/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb b/lib/devices/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb index 1ca9108d8c..ea670533d5 100644 --- a/lib/devices/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb +++ b/lib/devices/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/graph.administrativeUnit/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/graph.administrativeUnit/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/devices/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/devices/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb index b8d64ca8fd..2c38283b2d 100644 --- a/lib/devices/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +++ b/lib/devices/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/graph.administrativeUnit{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnitCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_administrative_unit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAdministrativeUnitRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection diff --git a/lib/devices/item/transitive_member_of/graph_group/count/count_request_builder.rb b/lib/devices/item/transitive_member_of/graph_group/count/count_request_builder.rb index 0bacf93718..16478ccc34 100644 --- a/lib/devices/item/transitive_member_of/graph_group/count/count_request_builder.rb +++ b/lib/devices/item/transitive_member_of/graph_group/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/graph.group/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/graph.group/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/devices/item/transitive_member_of/graph_group/graph_group_request_builder.rb b/lib/devices/item/transitive_member_of/graph_group/graph_group_request_builder.rb index a60f4b52af..1cbe00cf06 100644 --- a/lib/devices/item/transitive_member_of/graph_group/graph_group_request_builder.rb +++ b/lib/devices/item/transitive_member_of/graph_group/graph_group_request_builder.rb @@ -29,10 +29,10 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/graph.group{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection + ## Get the groups and administrative units that the device is a member of. This API request is transitive, and will also return all groups and administrative units the device is a nested member of. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of group_collection_response ## @@ -41,31 +41,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection + ## Get the groups and administrative units that the device is a member of. This API request is transitive, and will also return all groups and administrative units the device is a nested member of. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection + # Get the groups and administrative units that the device is a member of. This API request is transitive, and will also return all groups and administrative units the device is a nested member of. class GraphGroupRequestBuilderGetQueryParameters ## diff --git a/lib/devices/item/transitive_member_of/item/directory_object_item_request_builder.rb b/lib/devices/item/transitive_member_of/item/directory_object_item_request_builder.rb index d592b1f547..14cbc0b819 100644 --- a/lib/devices/item/transitive_member_of/item/directory_object_item_request_builder.rb +++ b/lib/devices/item/transitive_member_of/item/directory_object_item_request_builder.rb @@ -35,7 +35,7 @@ def graph_group() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/{directoryObject%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/{directoryObject%2Did}{?%24expand,%24select}") end ## ## Groups and administrative units that the device is a member of. This operation is transitive. Supports $expand. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directory_object_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoryObjectItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Groups and administrative units that the device is a member of. This operation is transitive. Supports $expand. diff --git a/lib/devices/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/devices/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb index d217bf67e0..ab67e0fedf 100644 --- a/lib/devices/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +++ b/lib/devices/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -25,7 +25,7 @@ class GraphAdministrativeUnitRequestBuilder < MicrosoftKiotaAbstractions::BaseRe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_administrative_unit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAdministrativeUnitRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit diff --git a/lib/devices/item/transitive_member_of/item/graph_group/graph_group_request_builder.rb b/lib/devices/item/transitive_member_of/item/graph_group/graph_group_request_builder.rb index ff40eb8111..08bce5e10e 100644 --- a/lib/devices/item/transitive_member_of/item/graph_group/graph_group_request_builder.rb +++ b/lib/devices/item/transitive_member_of/item/graph_group/graph_group_request_builder.rb @@ -25,10 +25,10 @@ class GraphGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.group{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.group{?%24expand,%24select}") end ## - ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.group + ## Get the groups and administrative units that the device is a member of. This API request is transitive, and will also return all groups and administrative units the device is a nested member of. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of group ## @@ -37,31 +37,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.group + ## Get the groups and administrative units that the device is a member of. This API request is transitive, and will also return all groups and administrative units the device is a nested member of. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the item of type microsoft.graph.directoryObject as microsoft.graph.group + # Get the groups and administrative units that the device is a member of. This API request is transitive, and will also return all groups and administrative units the device is a nested member of. class GraphGroupRequestBuilderGetQueryParameters ## diff --git a/lib/devices/item/transitive_member_of/transitive_member_of_request_builder.rb b/lib/devices/item/transitive_member_of/transitive_member_of_request_builder.rb index de4a9ff0ee..d012cf6d7b 100644 --- a/lib/devices/item/transitive_member_of/transitive_member_of_request_builder.rb +++ b/lib/devices/item/transitive_member_of/transitive_member_of_request_builder.rb @@ -51,10 +51,10 @@ def by_directory_object_id(directory_object_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/transitiveMemberOf{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/transitiveMemberOf{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Groups and administrative units that the device is a member of. This operation is transitive. Supports $expand. + ## Get the groups and administrative units that the device is a member of. This API request is transitive, and will also return all groups and administrative units the device is a nested member of. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object_collection_response ## @@ -63,31 +63,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Groups and administrative units that the device is a member of. This operation is transitive. Supports $expand. + ## Get the groups and administrative units that the device is a member of. This API request is transitive, and will also return all groups and administrative units the device is a nested member of. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a transitive_member_of_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TransitiveMemberOfRequestBuilder.new(raw_url, @request_adapter) + end ## - # Groups and administrative units that the device is a member of. This operation is transitive. Supports $expand. + # Get the groups and administrative units that the device is a member of. This API request is transitive, and will also return all groups and administrative units the device is a nested member of. class TransitiveMemberOfRequestBuilderGetQueryParameters ## diff --git a/lib/devices/validate_properties/validate_properties_post_request_body.rb b/lib/devices/validate_properties/validate_properties_post_request_body.rb index 91a09604ce..46ef2cbf2b 100644 --- a/lib/devices/validate_properties/validate_properties_post_request_body.rb +++ b/lib/devices/validate_properties/validate_properties_post_request_body.rb @@ -24,22 +24,22 @@ class ValidatePropertiesPostRequestBody # The onBehalfOfUserId property @on_behalf_of_user_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new validatePropertiesPostRequestBody and sets the default values. + ## Instantiates a new ValidatePropertiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/devices/validate_properties/validate_properties_request_builder.rb b/lib/devices/validate_properties/validate_properties_request_builder.rb index 3dd8785ea8..0fba162907 100644 --- a/lib/devices/validate_properties/validate_properties_request_builder.rb +++ b/lib/devices/validate_properties/validate_properties_request_builder.rb @@ -32,8 +32,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,16 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a validate_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ValidatePropertiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/devices_with_device_id/devices_with_device_id_request_builder.rb b/lib/devices_with_device_id/devices_with_device_id_request_builder.rb index 4537224d6c..81dd711574 100644 --- a/lib/devices_with_device_id/devices_with_device_id_request_builder.rb +++ b/lib/devices_with_device_id/devices_with_device_id_request_builder.rb @@ -18,7 +18,7 @@ class DevicesWithDeviceIdRequestBuilder < MicrosoftKiotaAbstractions::BaseReques ## @return a void ## def initialize(path_parameters, request_adapter, device_id=nil) - super(path_parameters, request_adapter, "{+baseurl}/devices(deviceId='{deviceId}'){?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/devices(deviceId='{deviceId}'){?%24expand,%24select}") end ## ## Delete a registered device. @@ -30,8 +30,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -44,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Device.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -60,8 +58,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Device.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,13 +68,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -87,15 +85,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -107,17 +105,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a devices_with_device_id_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DevicesWithDeviceIdRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the properties and relationships of a device object. diff --git a/lib/directory/administrative_units/administrative_units_request_builder.rb b/lib/directory/administrative_units/administrative_units_request_builder.rb index 5c9ac93965..ad30f033bd 100644 --- a/lib/directory/administrative_units/administrative_units_request_builder.rb +++ b/lib/directory/administrative_units/administrative_units_request_builder.rb @@ -44,7 +44,7 @@ def by_administrative_unit_id(administrative_unit_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of administrativeUnit objects. @@ -56,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnitCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new administrativeUnit. + ## Create a new administrativeUnit. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of administrative_unit @@ -72,8 +71,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,19 +81,19 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Use this API to create a new administrativeUnit. + ## Create a new administrativeUnit. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -103,17 +101,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a administrative_units_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AdministrativeUnitsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of administrativeUnit objects. diff --git a/lib/directory/administrative_units/count/count_request_builder.rb b/lib/directory/administrative_units/count/count_request_builder.rb index ba838329f6..c6da08a632 100644 --- a/lib/directory/administrative_units/count/count_request_builder.rb +++ b/lib/directory/administrative_units/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory/administrative_units/delta/delta.rb b/lib/directory/administrative_units/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/directory/administrative_units/delta/delta.rb +++ b/lib/directory/administrative_units/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/directory/administrative_units/delta/delta_get_response.rb b/lib/directory/administrative_units/delta/delta_get_response.rb new file mode 100644 index 0000000000..fcaeeb2fed --- /dev/null +++ b/lib/directory/administrative_units/delta/delta_get_response.rb @@ -0,0 +1,72 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/administrative_unit' +require_relative '../../../models/base_delta_function_response' +require_relative '../../directory' +require_relative '../administrative_units' +require_relative './delta' + +module MicrosoftGraph + module Directory + module AdministrativeUnits + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a administrative_unit + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/directory/administrative_units/delta/delta_request_builder.rb b/lib/directory/administrative_units/delta/delta_request_builder.rb index 70ec2af70b..62b50bc895 100644 --- a/lib/directory/administrative_units/delta/delta_request_builder.rb +++ b/lib/directory/administrative_units/delta/delta_request_builder.rb @@ -20,21 +20,20 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Invoke function delta ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Directory::AdministrativeUnits::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Directory::AdministrativeUnits::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function delta @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## # Invoke function delta @@ -63,6 +71,9 @@ class DeltaRequestBuilderGetQueryParameters # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -90,6 +101,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/directory/administrative_units/delta/delta_response.rb b/lib/directory/administrative_units/delta/delta_response.rb deleted file mode 100644 index 18211dfc3a..0000000000 --- a/lib/directory/administrative_units/delta/delta_response.rb +++ /dev/null @@ -1,72 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/administrative_unit' -require_relative '../../../models/base_delta_function_response' -require_relative '../../directory' -require_relative '../administrative_units' -require_relative './delta' - -module MicrosoftGraph - module Directory - module AdministrativeUnits - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a administrative_unit - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/directory/administrative_units/item/administrative_unit_item_request_builder.rb b/lib/directory/administrative_units/item/administrative_unit_item_request_builder.rb index 65625b0b6e..b20c1368e4 100644 --- a/lib/directory/administrative_units/item/administrative_unit_item_request_builder.rb +++ b/lib/directory/administrative_units/item/administrative_unit_item_request_builder.rb @@ -39,7 +39,7 @@ def scoped_role_members() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}{?%24expand,%24select}") end ## ## Delete an administrativeUnit. @@ -51,8 +51,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,13 +89,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,15 +106,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,17 +126,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a administrative_unit_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AdministrativeUnitItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of an administrativeUnit object. diff --git a/lib/directory/administrative_units/item/extensions/count/count_request_builder.rb b/lib/directory/administrative_units/item/extensions/count/count_request_builder.rb index 4c161e627c..6f4060b6a5 100644 --- a/lib/directory/administrative_units/item/extensions/count/count_request_builder.rb +++ b/lib/directory/administrative_units/item/extensions/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/extensions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/extensions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory/administrative_units/item/extensions/extensions_request_builder.rb b/lib/directory/administrative_units/item/extensions/extensions_request_builder.rb index 562eb25716..ff346cbe79 100644 --- a/lib/directory/administrative_units/item/extensions/extensions_request_builder.rb +++ b/lib/directory/administrative_units/item/extensions/extensions_request_builder.rb @@ -42,7 +42,7 @@ def by_extension_id(extension_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/extensions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The collection of open extensions defined for this administrative unit. Nullable. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExtensionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extensions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionsRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of open extensions defined for this administrative unit. Nullable. diff --git a/lib/directory/administrative_units/item/extensions/item/extension_item_request_builder.rb b/lib/directory/administrative_units/item/extensions/item/extension_item_request_builder.rb index 45b152e57d..c9de442c2b 100644 --- a/lib/directory/administrative_units/item/extensions/item/extension_item_request_builder.rb +++ b/lib/directory/administrative_units/item/extensions/item/extension_item_request_builder.rb @@ -25,7 +25,7 @@ class ExtensionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/extensions/{extension%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/extensions/{extension%2Did}{?%24expand,%24select}") end ## ## Delete navigation property extensions for directory @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extension_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of open extensions defined for this administrative unit. Nullable. diff --git a/lib/directory/administrative_units/item/members/count/count_request_builder.rb b/lib/directory/administrative_units/item/members/count/count_request_builder.rb index 487292cfc7..385140b13e 100644 --- a/lib/directory/administrative_units/item/members/count/count_request_builder.rb +++ b/lib/directory/administrative_units/item/members/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory/administrative_units/item/members/graph_application/count/count_request_builder.rb b/lib/directory/administrative_units/item/members/graph_application/count/count_request_builder.rb index 5407c4fbc7..308ccfe71c 100644 --- a/lib/directory/administrative_units/item/members/graph_application/count/count_request_builder.rb +++ b/lib/directory/administrative_units/item/members/graph_application/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.application/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.application/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory/administrative_units/item/members/graph_application/graph_application_request_builder.rb b/lib/directory/administrative_units/item/members/graph_application/graph_application_request_builder.rb index f1aafac221..e5c65334e7 100644 --- a/lib/directory/administrative_units/item/members/graph_application/graph_application_request_builder.rb +++ b/lib/directory/administrative_units/item/members/graph_application/graph_application_request_builder.rb @@ -31,7 +31,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.application{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.application{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ApplicationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_application_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphApplicationRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection diff --git a/lib/directory/administrative_units/item/members/graph_device/count/count_request_builder.rb b/lib/directory/administrative_units/item/members/graph_device/count/count_request_builder.rb index f29487d56f..8f2d1b998e 100644 --- a/lib/directory/administrative_units/item/members/graph_device/count/count_request_builder.rb +++ b/lib/directory/administrative_units/item/members/graph_device/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.device/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.device/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory/administrative_units/item/members/graph_device/graph_device_request_builder.rb b/lib/directory/administrative_units/item/members/graph_device/graph_device_request_builder.rb index b59df3cb27..c4455a48fc 100644 --- a/lib/directory/administrative_units/item/members/graph_device/graph_device_request_builder.rb +++ b/lib/directory/administrative_units/item/members/graph_device/graph_device_request_builder.rb @@ -31,7 +31,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.device{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.device{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_device_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphDeviceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection diff --git a/lib/directory/administrative_units/item/members/graph_group/count/count_request_builder.rb b/lib/directory/administrative_units/item/members/graph_group/count/count_request_builder.rb index ddd2689bb7..05ea5cb86e 100644 --- a/lib/directory/administrative_units/item/members/graph_group/count/count_request_builder.rb +++ b/lib/directory/administrative_units/item/members/graph_group/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.group/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.group/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory/administrative_units/item/members/graph_group/graph_group_request_builder.rb b/lib/directory/administrative_units/item/members/graph_group/graph_group_request_builder.rb index 225622a05d..800b021802 100644 --- a/lib/directory/administrative_units/item/members/graph_group/graph_group_request_builder.rb +++ b/lib/directory/administrative_units/item/members/graph_group/graph_group_request_builder.rb @@ -31,7 +31,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.group{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection diff --git a/lib/directory/administrative_units/item/members/graph_org_contact/count/count_request_builder.rb b/lib/directory/administrative_units/item/members/graph_org_contact/count/count_request_builder.rb index be797b27b6..3a235c4437 100644 --- a/lib/directory/administrative_units/item/members/graph_org_contact/count/count_request_builder.rb +++ b/lib/directory/administrative_units/item/members/graph_org_contact/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.orgContact/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.orgContact/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory/administrative_units/item/members/graph_org_contact/graph_org_contact_request_builder.rb b/lib/directory/administrative_units/item/members/graph_org_contact/graph_org_contact_request_builder.rb index d2f4d9de0c..1a25a24528 100644 --- a/lib/directory/administrative_units/item/members/graph_org_contact/graph_org_contact_request_builder.rb +++ b/lib/directory/administrative_units/item/members/graph_org_contact/graph_org_contact_request_builder.rb @@ -31,7 +31,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.orgContact{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.orgContact{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OrgContactCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_org_contact_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphOrgContactRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection diff --git a/lib/directory/administrative_units/item/members/graph_service_principal/count/count_request_builder.rb b/lib/directory/administrative_units/item/members/graph_service_principal/count/count_request_builder.rb index e474c156d2..fe8d2309c6 100644 --- a/lib/directory/administrative_units/item/members/graph_service_principal/count/count_request_builder.rb +++ b/lib/directory/administrative_units/item/members/graph_service_principal/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.servicePrincipal/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.servicePrincipal/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory/administrative_units/item/members/graph_service_principal/graph_service_principal_request_builder.rb b/lib/directory/administrative_units/item/members/graph_service_principal/graph_service_principal_request_builder.rb index d5a451f870..fb82f1f694 100644 --- a/lib/directory/administrative_units/item/members/graph_service_principal/graph_service_principal_request_builder.rb +++ b/lib/directory/administrative_units/item/members/graph_service_principal/graph_service_principal_request_builder.rb @@ -31,7 +31,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.servicePrincipal{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.servicePrincipal{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServicePrincipalCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_service_principal_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphServicePrincipalRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection diff --git a/lib/directory/administrative_units/item/members/graph_user/count/count_request_builder.rb b/lib/directory/administrative_units/item/members/graph_user/count/count_request_builder.rb index b9c1798ab7..74dca995b0 100644 --- a/lib/directory/administrative_units/item/members/graph_user/count/count_request_builder.rb +++ b/lib/directory/administrative_units/item/members/graph_user/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.user/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.user/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory/administrative_units/item/members/graph_user/graph_user_request_builder.rb b/lib/directory/administrative_units/item/members/graph_user/graph_user_request_builder.rb index 46fc4e632a..626f35a82c 100644 --- a/lib/directory/administrative_units/item/members/graph_user/graph_user_request_builder.rb +++ b/lib/directory/administrative_units/item/members/graph_user/graph_user_request_builder.rb @@ -31,7 +31,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.user{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.user{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection diff --git a/lib/directory/administrative_units/item/members/item/graph_application/graph_application_request_builder.rb b/lib/directory/administrative_units/item/members/item/graph_application/graph_application_request_builder.rb index acf48d8e48..feedb4b6ea 100644 --- a/lib/directory/administrative_units/item/members/item/graph_application/graph_application_request_builder.rb +++ b/lib/directory/administrative_units/item/members/item/graph_application/graph_application_request_builder.rb @@ -27,7 +27,7 @@ class GraphApplicationRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBu ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.application{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.application{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.application @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Application.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_application_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphApplicationRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.application diff --git a/lib/directory/administrative_units/item/members/item/graph_device/graph_device_request_builder.rb b/lib/directory/administrative_units/item/members/item/graph_device/graph_device_request_builder.rb index 71b6568fca..d6d5def709 100644 --- a/lib/directory/administrative_units/item/members/item/graph_device/graph_device_request_builder.rb +++ b/lib/directory/administrative_units/item/members/item/graph_device/graph_device_request_builder.rb @@ -27,7 +27,7 @@ class GraphDeviceRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.device{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.device{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.device @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Device.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_device_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphDeviceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.device diff --git a/lib/directory/administrative_units/item/members/item/graph_group/graph_group_request_builder.rb b/lib/directory/administrative_units/item/members/item/graph_group/graph_group_request_builder.rb index b6b230df8f..075b74e941 100644 --- a/lib/directory/administrative_units/item/members/item/graph_group/graph_group_request_builder.rb +++ b/lib/directory/administrative_units/item/members/item/graph_group/graph_group_request_builder.rb @@ -27,7 +27,7 @@ class GraphGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.group{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.group{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.group @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.group diff --git a/lib/directory/administrative_units/item/members/item/graph_org_contact/graph_org_contact_request_builder.rb b/lib/directory/administrative_units/item/members/item/graph_org_contact/graph_org_contact_request_builder.rb index ae2dbb12af..32ee8b535e 100644 --- a/lib/directory/administrative_units/item/members/item/graph_org_contact/graph_org_contact_request_builder.rb +++ b/lib/directory/administrative_units/item/members/item/graph_org_contact/graph_org_contact_request_builder.rb @@ -27,7 +27,7 @@ class GraphOrgContactRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.orgContact{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.orgContact{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OrgContact.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_org_contact_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphOrgContactRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact diff --git a/lib/directory/administrative_units/item/members/item/graph_service_principal/graph_service_principal_request_builder.rb b/lib/directory/administrative_units/item/members/item/graph_service_principal/graph_service_principal_request_builder.rb index c1387f5efc..051db74479 100644 --- a/lib/directory/administrative_units/item/members/item/graph_service_principal/graph_service_principal_request_builder.rb +++ b/lib/directory/administrative_units/item/members/item/graph_service_principal/graph_service_principal_request_builder.rb @@ -27,7 +27,7 @@ class GraphServicePrincipalRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.servicePrincipal{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.servicePrincipal{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServicePrincipal.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_service_principal_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphServicePrincipalRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal diff --git a/lib/directory/administrative_units/item/members/item/graph_user/graph_user_request_builder.rb b/lib/directory/administrative_units/item/members/item/graph_user/graph_user_request_builder.rb index 3a7cd4c531..c5299b6d78 100644 --- a/lib/directory/administrative_units/item/members/item/graph_user/graph_user_request_builder.rb +++ b/lib/directory/administrative_units/item/members/item/graph_user/graph_user_request_builder.rb @@ -27,7 +27,7 @@ class GraphUserRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.user{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.user{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.user @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.user diff --git a/lib/directory/administrative_units/item/members/item/ref/ref_request_builder.rb b/lib/directory/administrative_units/item/members/item/ref/ref_request_builder.rb index 8e606c5d6d..13e5b4bf68 100644 --- a/lib/directory/administrative_units/item/members/item/ref/ref_request_builder.rb +++ b/lib/directory/administrative_units/item/members/item/ref/ref_request_builder.rb @@ -26,7 +26,7 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/$ref") end ## ## Use this API to remove a member (user, group, or device) from an administrative unit. @@ -38,8 +38,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,38 +48,24 @@ def delete(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Use this API to remove a member (user, group, or device) from an administrative unit. - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/directory/administrative_units/item/members/members_request_builder.rb b/lib/directory/administrative_units/item/members/members_request_builder.rb index 72c66c1de3..4f950ec4eb 100644 --- a/lib/directory/administrative_units/item/members/members_request_builder.rb +++ b/lib/directory/administrative_units/item/members/members_request_builder.rb @@ -68,7 +68,7 @@ def ref() end ## ## Gets an item from the MicrosoftGraph.directory.administrativeUnits.item.members.item collection - ## @param directory_object_id Unique identifier of the item + ## @param directory_object_id The unique identifier of directoryObject ## @return a directory_object_item_request_builder ## def by_directory_object_id(directory_object_id) @@ -84,10 +84,10 @@ def by_directory_object_id(directory_object_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Users and groups that are members of this administrative unit. Supports $expand. + ## Use this API to get the members list (users, groups, or devices) in an administrative unit. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object_collection_response ## @@ -96,12 +96,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create new navigation property to members for directory + ## Use this API to add a member (user, group, or device) to an administrative unit. Currently it's only possible to add one member at a time to an administrative unit. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object @@ -112,30 +111,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Users and groups that are members of this administrative unit. Supports $expand. + ## Use this API to get the members list (users, groups, or devices) in an administrative unit. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create new navigation property to members for directory + ## Use this API to add a member (user, group, or device) to an administrative unit. Currently it's only possible to add one member at a time to an administrative unit. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -143,20 +141,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a members_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MembersRequestBuilder.new(raw_url, @request_adapter) + end ## - # Users and groups that are members of this administrative unit. Supports $expand. + # Use this API to get the members list (users, groups, or devices) in an administrative unit. class MembersRequestBuilderGetQueryParameters ## diff --git a/lib/directory/administrative_units/item/members/ref/ref_request_builder.rb b/lib/directory/administrative_units/item/members/ref/ref_request_builder.rb index 00573d84bd..0600690def 100644 --- a/lib/directory/administrative_units/item/members/ref/ref_request_builder.rb +++ b/lib/directory/administrative_units/item/members/ref/ref_request_builder.rb @@ -26,10 +26,23 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") end ## - ## Users and groups that are members of this administrative unit. Supports $expand. + ## Use this API to remove a member (user, group, or device) from an administrative unit. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Use this API to get the members list (users, groups, or devices) in an administrative unit. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of string_collection_response ## @@ -38,12 +51,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create new navigation property ref to members for directory + ## Use this API to add a member (user, group, or device) to an administrative unit. Currently it's only possible to add one member at a time to an administrative unit. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -54,30 +66,47 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Users and groups that are members of this administrative unit. Supports $expand. + ## Use this API to remove a member (user, group, or device) from an administrative unit. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$ref?@id={%40id}' request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Use this API to get the members list (users, groups, or devices) in an administrative unit. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create new navigation property ref to members for directory + ## Use this API to add a member (user, group, or device) to an administrative unit. Currently it's only possible to add one member at a time to an administrative unit. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -85,19 +114,52 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Use this API to remove a member (user, group, or device) from an administrative unit. + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end ## - # Users and groups that are members of this administrative unit. Supports $expand. + # Use this API to get the members list (users, groups, or devices) in an administrative unit. class RefRequestBuilderGetQueryParameters ## diff --git a/lib/directory/administrative_units/item/scoped_role_members/count/count_request_builder.rb b/lib/directory/administrative_units/item/scoped_role_members/count/count_request_builder.rb index 80fe0e1984..085116a28b 100644 --- a/lib/directory/administrative_units/item/scoped_role_members/count/count_request_builder.rb +++ b/lib/directory/administrative_units/item/scoped_role_members/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/scopedRoleMembers/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/scopedRoleMembers/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory/administrative_units/item/scoped_role_members/item/scoped_role_membership_item_request_builder.rb b/lib/directory/administrative_units/item/scoped_role_members/item/scoped_role_membership_item_request_builder.rb index 559aae2bd2..46e5690cf5 100644 --- a/lib/directory/administrative_units/item/scoped_role_members/item/scoped_role_membership_item_request_builder.rb +++ b/lib/directory/administrative_units/item/scoped_role_members/item/scoped_role_membership_item_request_builder.rb @@ -25,10 +25,10 @@ class ScopedRoleMembershipItemRequestBuilder < MicrosoftKiotaAbstractions::BaseR ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/scopedRoleMembers/{scopedRoleMembership%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/scopedRoleMembers/{scopedRoleMembership%2Did}{?%24expand,%24select}") end ## - ## Remove an Azure Active Directory (Azure AD) role assignment with administrative unit scope. + ## Remove a Microsoft Entra role assignment with administrative unit scope. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -37,12 +37,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get an Azure Active Directory (Azure AD) role assignment with administrative unit scope. + ## Get a Microsoft Entra role assignment with administrative unit scope. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of scoped_role_membership ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ScopedRoleMembership.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,42 +65,42 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ScopedRoleMembership.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Remove an Azure Active Directory (Azure AD) role assignment with administrative unit scope. + ## Remove a Microsoft Entra role assignment with administrative unit scope. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get an Azure Active Directory (Azure AD) role assignment with administrative unit scope. + ## Get a Microsoft Entra role assignment with administrative unit scope. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,20 +112,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a scoped_role_membership_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ScopedRoleMembershipItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get an Azure Active Directory (Azure AD) role assignment with administrative unit scope. + # Get a Microsoft Entra role assignment with administrative unit scope. class ScopedRoleMembershipItemRequestBuilderGetQueryParameters ## diff --git a/lib/directory/administrative_units/item/scoped_role_members/scoped_role_members_request_builder.rb b/lib/directory/administrative_units/item/scoped_role_members/scoped_role_members_request_builder.rb index 8d477a2c49..513786b7a3 100644 --- a/lib/directory/administrative_units/item/scoped_role_members/scoped_role_members_request_builder.rb +++ b/lib/directory/administrative_units/item/scoped_role_members/scoped_role_members_request_builder.rb @@ -42,10 +42,10 @@ def by_scoped_role_membership_id(scoped_role_membership_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/scopedRoleMembers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/scopedRoleMembers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List Azure Active Directory (Azure AD) role assignments with administrative unit scope. + ## List Microsoft Entra role assignments with administrative unit scope. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of scoped_role_membership_collection_response ## @@ -54,12 +54,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ScopedRoleMembershipCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Assign an Azure Active Directory (Azure AD) role with administrative unit scope. For a list of roles that can be assigned with administrative unit scope, see Assign Azure AD roles with administrative unit scope. + ## Assign a Microsoft Entra role with administrative unit scope. For a list of roles that can be assigned with administrative unit scope, see Assign Microsoft Entra roles with administrative unit scope. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of scoped_role_membership @@ -70,30 +69,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ScopedRoleMembership.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List Azure Active Directory (Azure AD) role assignments with administrative unit scope. + ## List Microsoft Entra role assignments with administrative unit scope. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Assign an Azure Active Directory (Azure AD) role with administrative unit scope. For a list of roles that can be assigned with administrative unit scope, see Assign Azure AD roles with administrative unit scope. + ## Assign a Microsoft Entra role with administrative unit scope. For a list of roles that can be assigned with administrative unit scope, see Assign Microsoft Entra roles with administrative unit scope. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -101,20 +99,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a scoped_role_members_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ScopedRoleMembersRequestBuilder.new(raw_url, @request_adapter) + end ## - # List Azure Active Directory (Azure AD) role assignments with administrative unit scope. + # List Microsoft Entra role assignments with administrative unit scope. class ScopedRoleMembersRequestBuilderGetQueryParameters ## diff --git a/lib/directory/attribute_sets/attribute_sets_request_builder.rb b/lib/directory/attribute_sets/attribute_sets_request_builder.rb index 67e6a50894..6d9528dc60 100644 --- a/lib/directory/attribute_sets/attribute_sets_request_builder.rb +++ b/lib/directory/attribute_sets/attribute_sets_request_builder.rb @@ -38,7 +38,7 @@ def by_attribute_set_id(attribute_set_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/attributeSets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/attributeSets{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a list of the attributeSet objects and their properties. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttributeSetCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttributeSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attribute_sets_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttributeSetsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a list of the attributeSet objects and their properties. diff --git a/lib/directory/attribute_sets/count/count_request_builder.rb b/lib/directory/attribute_sets/count/count_request_builder.rb index c2dc14e458..265d8df505 100644 --- a/lib/directory/attribute_sets/count/count_request_builder.rb +++ b/lib/directory/attribute_sets/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/attributeSets/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directory/attributeSets/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory/attribute_sets/item/attribute_set_item_request_builder.rb b/lib/directory/attribute_sets/item/attribute_set_item_request_builder.rb index 073a645d6c..9eaf83874f 100644 --- a/lib/directory/attribute_sets/item/attribute_set_item_request_builder.rb +++ b/lib/directory/attribute_sets/item/attribute_set_item_request_builder.rb @@ -21,7 +21,7 @@ class AttributeSetItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBu ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/attributeSets/{attributeSet%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/attributeSets/{attributeSet%2Did}{?%24expand,%24select}") end ## ## Delete navigation property attributeSets for directory @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttributeSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttributeSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attribute_set_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttributeSetItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of an attributeSet object. diff --git a/lib/directory/custom_security_attribute_definitions/count/count_request_builder.rb b/lib/directory/custom_security_attribute_definitions/count/count_request_builder.rb index 0168acb18f..73bb8d4bcf 100644 --- a/lib/directory/custom_security_attribute_definitions/count/count_request_builder.rb +++ b/lib/directory/custom_security_attribute_definitions/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/customSecurityAttributeDefinitions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directory/customSecurityAttributeDefinitions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory/custom_security_attribute_definitions/custom_security_attribute_definitions_request_builder.rb b/lib/directory/custom_security_attribute_definitions/custom_security_attribute_definitions_request_builder.rb index 2c0c87a474..4dc5175fb0 100644 --- a/lib/directory/custom_security_attribute_definitions/custom_security_attribute_definitions_request_builder.rb +++ b/lib/directory/custom_security_attribute_definitions/custom_security_attribute_definitions_request_builder.rb @@ -38,7 +38,7 @@ def by_custom_security_attribute_definition_id(custom_security_attribute_definit ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/customSecurityAttributeDefinitions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/customSecurityAttributeDefinitions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a list of the customSecurityAttributeDefinition objects and their properties. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CustomSecurityAttributeDefinitionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CustomSecurityAttributeDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a custom_security_attribute_definitions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CustomSecurityAttributeDefinitionsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a list of the customSecurityAttributeDefinition objects and their properties. diff --git a/lib/directory/custom_security_attribute_definitions/item/allowed_values/allowed_values_request_builder.rb b/lib/directory/custom_security_attribute_definitions/item/allowed_values/allowed_values_request_builder.rb index 9425e286f5..6d4ae42ab5 100644 --- a/lib/directory/custom_security_attribute_definitions/item/allowed_values/allowed_values_request_builder.rb +++ b/lib/directory/custom_security_attribute_definitions/item/allowed_values/allowed_values_request_builder.rb @@ -42,7 +42,7 @@ def by_allowed_value_id(allowed_value_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/customSecurityAttributeDefinitions/{customSecurityAttributeDefinition%2Did}/allowedValues{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/customSecurityAttributeDefinitions/{customSecurityAttributeDefinition%2Did}/allowedValues{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a list of the allowedValue objects and their properties. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AllowedValueCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AllowedValue.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a allowed_values_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AllowedValuesRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a list of the allowedValue objects and their properties. diff --git a/lib/directory/custom_security_attribute_definitions/item/allowed_values/count/count_request_builder.rb b/lib/directory/custom_security_attribute_definitions/item/allowed_values/count/count_request_builder.rb index 7702fb0c41..13e62d98ed 100644 --- a/lib/directory/custom_security_attribute_definitions/item/allowed_values/count/count_request_builder.rb +++ b/lib/directory/custom_security_attribute_definitions/item/allowed_values/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/customSecurityAttributeDefinitions/{customSecurityAttributeDefinition%2Did}/allowedValues/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directory/customSecurityAttributeDefinitions/{customSecurityAttributeDefinition%2Did}/allowedValues/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory/custom_security_attribute_definitions/item/allowed_values/item/allowed_value_item_request_builder.rb b/lib/directory/custom_security_attribute_definitions/item/allowed_values/item/allowed_value_item_request_builder.rb index a9dbb76fc0..66c2544696 100644 --- a/lib/directory/custom_security_attribute_definitions/item/allowed_values/item/allowed_value_item_request_builder.rb +++ b/lib/directory/custom_security_attribute_definitions/item/allowed_values/item/allowed_value_item_request_builder.rb @@ -25,7 +25,7 @@ class AllowedValueItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBu ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/customSecurityAttributeDefinitions/{customSecurityAttributeDefinition%2Did}/allowedValues/{allowedValue%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/customSecurityAttributeDefinitions/{customSecurityAttributeDefinition%2Did}/allowedValues/{allowedValue%2Did}{?%24expand,%24select}") end ## ## Delete navigation property allowedValues for directory @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AllowedValue.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AllowedValue.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a allowed_value_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AllowedValueItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of an allowedValue object. diff --git a/lib/directory/custom_security_attribute_definitions/item/custom_security_attribute_definition_item_request_builder.rb b/lib/directory/custom_security_attribute_definitions/item/custom_security_attribute_definition_item_request_builder.rb index 45e99b7909..6eb3a72ef3 100644 --- a/lib/directory/custom_security_attribute_definitions/item/custom_security_attribute_definition_item_request_builder.rb +++ b/lib/directory/custom_security_attribute_definitions/item/custom_security_attribute_definition_item_request_builder.rb @@ -27,7 +27,7 @@ def allowed_values() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/customSecurityAttributeDefinitions/{customSecurityAttributeDefinition%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/customSecurityAttributeDefinitions/{customSecurityAttributeDefinition%2Did}{?%24expand,%24select}") end ## ## Delete navigation property customSecurityAttributeDefinitions for directory @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CustomSecurityAttributeDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CustomSecurityAttributeDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,13 +77,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,15 +94,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,17 +114,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a custom_security_attribute_definition_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CustomSecurityAttributeDefinitionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of a customSecurityAttributeDefinition object. diff --git a/lib/directory/deleted_items/count/count_request_builder.rb b/lib/directory/deleted_items/count/count_request_builder.rb index cdca2e51bd..556b526eac 100644 --- a/lib/directory/deleted_items/count/count_request_builder.rb +++ b/lib/directory/deleted_items/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory/deleted_items/deleted_items_request_builder.rb b/lib/directory/deleted_items/deleted_items_request_builder.rb index c1c597e034..af6601fc6b 100644 --- a/lib/directory/deleted_items/deleted_items_request_builder.rb +++ b/lib/directory/deleted_items/deleted_items_request_builder.rb @@ -1,12 +1,10 @@ require 'microsoft_kiota_abstractions' require_relative '../../microsoft_graph' -require_relative '../../models/directory_object' require_relative '../../models/directory_object_collection_response' require_relative '../../models/o_data_errors_o_data_error' require_relative '../directory' require_relative './count/count_request_builder' require_relative './deleted_items' -require_relative './delta/delta_request_builder' require_relative './get_available_extension_properties/get_available_extension_properties_request_builder' require_relative './get_by_ids/get_by_ids_request_builder' require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' @@ -31,11 +29,6 @@ def count() return MicrosoftGraph::Directory::DeletedItems::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## - # Provides operations to call the delta method. - def delta() - return MicrosoftGraph::Directory::DeletedItems::Delta::DeltaRequestBuilder.new(@path_parameters, @request_adapter) - end - ## # Provides operations to call the getAvailableExtensionProperties method. def get_available_extension_properties() return MicrosoftGraph::Directory::DeletedItems::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesRequestBuilder.new(@path_parameters, @request_adapter) @@ -98,7 +91,7 @@ def by_directory_object_id(directory_object_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. @@ -110,63 +103,35 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create new navigation property to deletedItems for directory - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of directory_object - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) - end - ## ## Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create new navigation property to deletedItems for directory - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a deleted_items_request_builder ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeletedItemsRequestBuilder.new(raw_url, @request_adapter) end ## diff --git a/lib/directory/deleted_items/delta/delta.rb b/lib/directory/deleted_items/delta/delta.rb deleted file mode 100644 index 0c348d20cb..0000000000 --- a/lib/directory/deleted_items/delta/delta.rb +++ /dev/null @@ -1 +0,0 @@ -require_relative 'delta_response' diff --git a/lib/directory/deleted_items/delta/delta_request_builder.rb b/lib/directory/deleted_items/delta/delta_request_builder.rb deleted file mode 100644 index 37b2ad1bc5..0000000000 --- a/lib/directory/deleted_items/delta/delta_request_builder.rb +++ /dev/null @@ -1,114 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/o_data_errors_o_data_error' -require_relative '../../directory' -require_relative '../deleted_items' -require_relative './delta' - -module MicrosoftGraph - module Directory - module DeletedItems - module Delta - ## - # Provides operations to call the delta method. - class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new DeltaRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") - end - ## - ## Invoke function delta - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response - ## - def get(request_configuration=nil) - request_info = self.to_get_request_information( - request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Directory::DeletedItems::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Invoke function delta - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_get_request_information(request_configuration=nil) - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) - request_info.add_request_options(request_configuration.options) - end - return request_info - end - - ## - # Invoke function delta - class DeltaRequestBuilderGetQueryParameters - - ## - # Include count of items - attr_accessor :count - ## - # Filter items by property values - attr_accessor :filter - ## - # Order items by property values - attr_accessor :orderby - ## - # Search items by search phrases - attr_accessor :search - ## - # Select properties to be returned - attr_accessor :select - ## - # Skip the first n items - attr_accessor :skip - ## - # Show only the first n items - attr_accessor :top - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "count" - return "%24count" - when "filter" - return "%24filter" - when "orderby" - return "%24orderby" - when "search" - return "%24search" - when "select" - return "%24select" - when "skip" - return "%24skip" - when "top" - return "%24top" - else - return original_name - end - end - end - end - end - end - end -end diff --git a/lib/directory/deleted_items/delta/delta_response.rb b/lib/directory/deleted_items/delta/delta_response.rb deleted file mode 100644 index ccb84f5dd4..0000000000 --- a/lib/directory/deleted_items/delta/delta_response.rb +++ /dev/null @@ -1,72 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_delta_function_response' -require_relative '../../../models/directory_object' -require_relative '../../directory' -require_relative '../deleted_items' -require_relative './delta' - -module MicrosoftGraph - module Directory - module DeletedItems - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/directory/deleted_items/get_available_extension_properties/get_available_extension_properties.rb b/lib/directory/deleted_items/get_available_extension_properties/get_available_extension_properties.rb index b6fee576bf..ce1b642cad 100644 --- a/lib/directory/deleted_items/get_available_extension_properties/get_available_extension_properties.rb +++ b/lib/directory/deleted_items/get_available_extension_properties/get_available_extension_properties.rb @@ -1,2 +1,2 @@ require_relative 'get_available_extension_properties_post_request_body' -require_relative 'get_available_extension_properties_response' +require_relative 'get_available_extension_properties_post_response' diff --git a/lib/directory/deleted_items/get_available_extension_properties/get_available_extension_properties_post_request_body.rb b/lib/directory/deleted_items/get_available_extension_properties/get_available_extension_properties_post_request_body.rb index aface386b0..68189df53b 100644 --- a/lib/directory/deleted_items/get_available_extension_properties/get_available_extension_properties_post_request_body.rb +++ b/lib/directory/deleted_items/get_available_extension_properties/get_available_extension_properties_post_request_body.rb @@ -17,22 +17,22 @@ class GetAvailableExtensionPropertiesPostRequestBody # The isSyncedFromOnPremises property @is_synced_from_on_premises ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getAvailableExtensionPropertiesPostRequestBody and sets the default values. + ## Instantiates a new GetAvailableExtensionPropertiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory/deleted_items/get_available_extension_properties/get_available_extension_properties_post_response.rb b/lib/directory/deleted_items/get_available_extension_properties/get_available_extension_properties_post_response.rb new file mode 100644 index 0000000000..24a1f0d520 --- /dev/null +++ b/lib/directory/deleted_items/get_available_extension_properties/get_available_extension_properties_post_response.rb @@ -0,0 +1,72 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../../models/extension_property' +require_relative '../../directory' +require_relative '../deleted_items' +require_relative './get_available_extension_properties' + +module MicrosoftGraph + module Directory + module DeletedItems + module GetAvailableExtensionProperties + class GetAvailableExtensionPropertiesPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetAvailableExtensionPropertiesPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_available_extension_properties_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetAvailableExtensionPropertiesPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a extension_property + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/directory/deleted_items/get_available_extension_properties/get_available_extension_properties_request_builder.rb b/lib/directory/deleted_items/get_available_extension_properties/get_available_extension_properties_request_builder.rb index f89e368de6..eb26ffd979 100644 --- a/lib/directory/deleted_items/get_available_extension_properties/get_available_extension_properties_request_builder.rb +++ b/lib/directory/deleted_items/get_available_extension_properties/get_available_extension_properties_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/getAvailableExtensionProperties") end ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_available_extension_properties_response + ## @return a Fiber of get_available_extension_properties_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Directory::DeletedItems::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Directory::DeletedItems::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_available_extension_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetAvailableExtensionPropertiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory/deleted_items/get_available_extension_properties/get_available_extension_properties_response.rb b/lib/directory/deleted_items/get_available_extension_properties/get_available_extension_properties_response.rb deleted file mode 100644 index 22443cbca6..0000000000 --- a/lib/directory/deleted_items/get_available_extension_properties/get_available_extension_properties_response.rb +++ /dev/null @@ -1,72 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../../models/extension_property' -require_relative '../../directory' -require_relative '../deleted_items' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module Directory - module DeletedItems - module GetAvailableExtensionProperties - class GetAvailableExtensionPropertiesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_available_extension_properties_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAvailableExtensionPropertiesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a extension_property - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/directory/deleted_items/get_by_ids/get_by_ids.rb b/lib/directory/deleted_items/get_by_ids/get_by_ids.rb index e4b0824834..131a179969 100644 --- a/lib/directory/deleted_items/get_by_ids/get_by_ids.rb +++ b/lib/directory/deleted_items/get_by_ids/get_by_ids.rb @@ -1,2 +1,2 @@ require_relative 'get_by_ids_post_request_body' -require_relative 'get_by_ids_response' +require_relative 'get_by_ids_post_response' diff --git a/lib/directory/deleted_items/get_by_ids/get_by_ids_post_request_body.rb b/lib/directory/deleted_items/get_by_ids/get_by_ids_post_request_body.rb index 2d365a4f6d..b9dfa8130f 100644 --- a/lib/directory/deleted_items/get_by_ids/get_by_ids_post_request_body.rb +++ b/lib/directory/deleted_items/get_by_ids/get_by_ids_post_request_body.rb @@ -20,22 +20,22 @@ class GetByIdsPostRequestBody # The types property @types ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getByIdsPostRequestBody and sets the default values. + ## Instantiates a new GetByIdsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory/deleted_items/get_by_ids/get_by_ids_post_response.rb b/lib/directory/deleted_items/get_by_ids/get_by_ids_post_response.rb new file mode 100644 index 0000000000..11d5f452bc --- /dev/null +++ b/lib/directory/deleted_items/get_by_ids/get_by_ids_post_response.rb @@ -0,0 +1,72 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../../models/directory_object' +require_relative '../../directory' +require_relative '../deleted_items' +require_relative './get_by_ids' + +module MicrosoftGraph + module Directory + module DeletedItems + module GetByIds + class GetByIdsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetByIdsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_by_ids_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetByIdsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a directory_object + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/directory/deleted_items/get_by_ids/get_by_ids_request_builder.rb b/lib/directory/deleted_items/get_by_ids/get_by_ids_request_builder.rb index 70f835359b..23cf758144 100644 --- a/lib/directory/deleted_items/get_by_ids/get_by_ids_request_builder.rb +++ b/lib/directory/deleted_items/get_by_ids/get_by_ids_request_builder.rb @@ -26,7 +26,7 @@ def initialize(path_parameters, request_adapter) ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_by_ids_response + ## @return a Fiber of get_by_ids_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,9 +34,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Directory::DeletedItems::GetByIds::GetByIdsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Directory::DeletedItems::GetByIds::GetByIdsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_by_ids_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetByIdsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory/deleted_items/get_by_ids/get_by_ids_response.rb b/lib/directory/deleted_items/get_by_ids/get_by_ids_response.rb deleted file mode 100644 index f8916a61e1..0000000000 --- a/lib/directory/deleted_items/get_by_ids/get_by_ids_response.rb +++ /dev/null @@ -1,72 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../../models/directory_object' -require_relative '../../directory' -require_relative '../deleted_items' -require_relative './get_by_ids' - -module MicrosoftGraph - module Directory - module DeletedItems - module GetByIds - class GetByIdsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getByIdsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_by_ids_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetByIdsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/directory/deleted_items/graph_administrative_unit/count/count_request_builder.rb b/lib/directory/deleted_items/graph_administrative_unit/count/count_request_builder.rb index d273472b29..44561868d3 100644 --- a/lib/directory/deleted_items/graph_administrative_unit/count/count_request_builder.rb +++ b/lib/directory/deleted_items/graph_administrative_unit/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.administrativeUnit/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.administrativeUnit/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory/deleted_items/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/directory/deleted_items/graph_administrative_unit/graph_administrative_unit_request_builder.rb index 9955c0dc6b..ae06e32fd3 100644 --- a/lib/directory/deleted_items/graph_administrative_unit/graph_administrative_unit_request_builder.rb +++ b/lib/directory/deleted_items/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -27,7 +27,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.administrativeUnit{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnitCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_administrative_unit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAdministrativeUnitRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection diff --git a/lib/directory/deleted_items/graph_application/count/count_request_builder.rb b/lib/directory/deleted_items/graph_application/count/count_request_builder.rb index bfeacc4722..60367bc2a6 100644 --- a/lib/directory/deleted_items/graph_application/count/count_request_builder.rb +++ b/lib/directory/deleted_items/graph_application/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.application/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.application/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory/deleted_items/graph_application/graph_application_request_builder.rb b/lib/directory/deleted_items/graph_application/graph_application_request_builder.rb index d620749cd5..fdc3ebbdb4 100644 --- a/lib/directory/deleted_items/graph_application/graph_application_request_builder.rb +++ b/lib/directory/deleted_items/graph_application/graph_application_request_builder.rb @@ -27,7 +27,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.application{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.application{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ApplicationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_application_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphApplicationRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection diff --git a/lib/directory/deleted_items/graph_device/count/count_request_builder.rb b/lib/directory/deleted_items/graph_device/count/count_request_builder.rb index 58cf7452cb..0b6e9438f6 100644 --- a/lib/directory/deleted_items/graph_device/count/count_request_builder.rb +++ b/lib/directory/deleted_items/graph_device/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.device/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.device/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory/deleted_items/graph_device/graph_device_request_builder.rb b/lib/directory/deleted_items/graph_device/graph_device_request_builder.rb index 477da35256..6fa64017f3 100644 --- a/lib/directory/deleted_items/graph_device/graph_device_request_builder.rb +++ b/lib/directory/deleted_items/graph_device/graph_device_request_builder.rb @@ -27,7 +27,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.device{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.device{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_device_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphDeviceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection diff --git a/lib/directory/deleted_items/graph_group/count/count_request_builder.rb b/lib/directory/deleted_items/graph_group/count/count_request_builder.rb index 0021cb88ee..36c9a3a65b 100644 --- a/lib/directory/deleted_items/graph_group/count/count_request_builder.rb +++ b/lib/directory/deleted_items/graph_group/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.group/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.group/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory/deleted_items/graph_group/graph_group_request_builder.rb b/lib/directory/deleted_items/graph_group/graph_group_request_builder.rb index 489eaf4d10..3f77ddcc30 100644 --- a/lib/directory/deleted_items/graph_group/graph_group_request_builder.rb +++ b/lib/directory/deleted_items/graph_group/graph_group_request_builder.rb @@ -27,10 +27,10 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.group{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection + ## 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. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of group_collection_response ## @@ -39,31 +39,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection + ## 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. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection + # 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. class GraphGroupRequestBuilderGetQueryParameters ## diff --git a/lib/directory/deleted_items/graph_service_principal/count/count_request_builder.rb b/lib/directory/deleted_items/graph_service_principal/count/count_request_builder.rb index 309a9c2b8f..91331709da 100644 --- a/lib/directory/deleted_items/graph_service_principal/count/count_request_builder.rb +++ b/lib/directory/deleted_items/graph_service_principal/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.servicePrincipal/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.servicePrincipal/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory/deleted_items/graph_service_principal/graph_service_principal_request_builder.rb b/lib/directory/deleted_items/graph_service_principal/graph_service_principal_request_builder.rb index ebfb3cad56..aa92aa4dcd 100644 --- a/lib/directory/deleted_items/graph_service_principal/graph_service_principal_request_builder.rb +++ b/lib/directory/deleted_items/graph_service_principal/graph_service_principal_request_builder.rb @@ -27,7 +27,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.servicePrincipal{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.servicePrincipal{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServicePrincipalCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_service_principal_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphServicePrincipalRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection diff --git a/lib/directory/deleted_items/graph_user/count/count_request_builder.rb b/lib/directory/deleted_items/graph_user/count/count_request_builder.rb index 842a338644..fb26bffb6b 100644 --- a/lib/directory/deleted_items/graph_user/count/count_request_builder.rb +++ b/lib/directory/deleted_items/graph_user/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.user/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.user/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory/deleted_items/graph_user/graph_user_request_builder.rb b/lib/directory/deleted_items/graph_user/graph_user_request_builder.rb index c392be0af2..bcafc6c2fd 100644 --- a/lib/directory/deleted_items/graph_user/graph_user_request_builder.rb +++ b/lib/directory/deleted_items/graph_user/graph_user_request_builder.rb @@ -27,7 +27,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.user{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/graph.user{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection diff --git a/lib/directory/deleted_items/item/check_member_groups/check_member_groups.rb b/lib/directory/deleted_items/item/check_member_groups/check_member_groups.rb index 938b908522..98148024fe 100644 --- a/lib/directory/deleted_items/item/check_member_groups/check_member_groups.rb +++ b/lib/directory/deleted_items/item/check_member_groups/check_member_groups.rb @@ -1,2 +1,2 @@ require_relative 'check_member_groups_post_request_body' -require_relative 'check_member_groups_response' +require_relative 'check_member_groups_post_response' diff --git a/lib/directory/deleted_items/item/check_member_groups/check_member_groups_post_request_body.rb b/lib/directory/deleted_items/item/check_member_groups/check_member_groups_post_request_body.rb index 340edb4929..4b34ba7efb 100644 --- a/lib/directory/deleted_items/item/check_member_groups/check_member_groups_post_request_body.rb +++ b/lib/directory/deleted_items/item/check_member_groups/check_member_groups_post_request_body.rb @@ -19,22 +19,22 @@ class CheckMemberGroupsPostRequestBody # The groupIds property @group_ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new checkMemberGroupsPostRequestBody and sets the default values. + ## Instantiates a new CheckMemberGroupsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory/deleted_items/item/check_member_groups/check_member_groups_post_response.rb b/lib/directory/deleted_items/item/check_member_groups/check_member_groups_post_response.rb new file mode 100644 index 0000000000..006ef00842 --- /dev/null +++ b/lib/directory/deleted_items/item/check_member_groups/check_member_groups_post_response.rb @@ -0,0 +1,74 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/base_collection_pagination_count_response' +require_relative '../../../directory' +require_relative '../../deleted_items' +require_relative '../item' +require_relative './check_member_groups' + +module MicrosoftGraph + module Directory + module DeletedItems + module Item + module CheckMemberGroups + class CheckMemberGroupsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new CheckMemberGroupsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a check_member_groups_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CheckMemberGroupsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/directory/deleted_items/item/check_member_groups/check_member_groups_request_builder.rb b/lib/directory/deleted_items/item/check_member_groups/check_member_groups_request_builder.rb index 2a4d2e97eb..cf27f5ca1c 100644 --- a/lib/directory/deleted_items/item/check_member_groups/check_member_groups_request_builder.rb +++ b/lib/directory/deleted_items/item/check_member_groups/check_member_groups_request_builder.rb @@ -25,10 +25,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/checkMemberGroups") end ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + ## Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_groups_response + ## @return a Fiber of check_member_groups_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -36,12 +36,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Directory::DeletedItems::Item::CheckMemberGroups::CheckMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Directory::DeletedItems::Item::CheckMemberGroups::CheckMemberGroupsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + ## Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -49,17 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a check_member_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CheckMemberGroupsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory/deleted_items/item/check_member_groups/check_member_groups_response.rb b/lib/directory/deleted_items/item/check_member_groups/check_member_groups_response.rb deleted file mode 100644 index bd7e173b4c..0000000000 --- a/lib/directory/deleted_items/item/check_member_groups/check_member_groups_response.rb +++ /dev/null @@ -1,74 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../directory' -require_relative '../../deleted_items' -require_relative '../item' -require_relative './check_member_groups' - -module MicrosoftGraph - module Directory - module DeletedItems - module Item - module CheckMemberGroups - class CheckMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/directory/deleted_items/item/check_member_objects/check_member_objects.rb b/lib/directory/deleted_items/item/check_member_objects/check_member_objects.rb index 67fbf971e7..1826285d49 100644 --- a/lib/directory/deleted_items/item/check_member_objects/check_member_objects.rb +++ b/lib/directory/deleted_items/item/check_member_objects/check_member_objects.rb @@ -1,2 +1,2 @@ require_relative 'check_member_objects_post_request_body' -require_relative 'check_member_objects_response' +require_relative 'check_member_objects_post_response' diff --git a/lib/directory/deleted_items/item/check_member_objects/check_member_objects_post_request_body.rb b/lib/directory/deleted_items/item/check_member_objects/check_member_objects_post_request_body.rb index d81280cfbd..4caa93ef4d 100644 --- a/lib/directory/deleted_items/item/check_member_objects/check_member_objects_post_request_body.rb +++ b/lib/directory/deleted_items/item/check_member_objects/check_member_objects_post_request_body.rb @@ -19,22 +19,22 @@ class CheckMemberObjectsPostRequestBody # The ids property @ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new checkMemberObjectsPostRequestBody and sets the default values. + ## Instantiates a new CheckMemberObjectsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory/deleted_items/item/check_member_objects/check_member_objects_post_response.rb b/lib/directory/deleted_items/item/check_member_objects/check_member_objects_post_response.rb new file mode 100644 index 0000000000..30200a368f --- /dev/null +++ b/lib/directory/deleted_items/item/check_member_objects/check_member_objects_post_response.rb @@ -0,0 +1,74 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/base_collection_pagination_count_response' +require_relative '../../../directory' +require_relative '../../deleted_items' +require_relative '../item' +require_relative './check_member_objects' + +module MicrosoftGraph + module Directory + module DeletedItems + module Item + module CheckMemberObjects + class CheckMemberObjectsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new CheckMemberObjectsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a check_member_objects_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CheckMemberObjectsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/directory/deleted_items/item/check_member_objects/check_member_objects_request_builder.rb b/lib/directory/deleted_items/item/check_member_objects/check_member_objects_request_builder.rb index a04a880ce5..1415d22259 100644 --- a/lib/directory/deleted_items/item/check_member_objects/check_member_objects_request_builder.rb +++ b/lib/directory/deleted_items/item/check_member_objects/check_member_objects_request_builder.rb @@ -28,7 +28,7 @@ def initialize(path_parameters, request_adapter) ## Invoke action checkMemberObjects ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_objects_response + ## @return a Fiber of check_member_objects_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -36,9 +36,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Directory::DeletedItems::Item::CheckMemberObjects::CheckMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Directory::DeletedItems::Item::CheckMemberObjects::CheckMemberObjectsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke action checkMemberObjects @@ -49,17 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a check_member_objects_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CheckMemberObjectsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory/deleted_items/item/check_member_objects/check_member_objects_response.rb b/lib/directory/deleted_items/item/check_member_objects/check_member_objects_response.rb deleted file mode 100644 index a66e54159e..0000000000 --- a/lib/directory/deleted_items/item/check_member_objects/check_member_objects_response.rb +++ /dev/null @@ -1,74 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../directory' -require_relative '../../deleted_items' -require_relative '../item' -require_relative './check_member_objects' - -module MicrosoftGraph - module Directory - module DeletedItems - module Item - module CheckMemberObjects - class CheckMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/directory/deleted_items/item/directory_object_item_request_builder.rb b/lib/directory/deleted_items/item/directory_object_item_request_builder.rb index 273d03ed1e..f9e6470770 100644 --- a/lib/directory/deleted_items/item/directory_object_item_request_builder.rb +++ b/lib/directory/deleted_items/item/directory_object_item_request_builder.rb @@ -87,7 +87,7 @@ def restore() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}{?%24expand,%24select}") end ## ## Permanently delete a recently deleted application, group, servicePrincipal, or user object from deleted items. After an item is permanently deleted, it cannot be restored. Administrative units cannot be permanently deleted by using the deletedItems API. Soft-deleted administrative units will be permanently deleted 30 days after initial deletion unless they are restored. @@ -99,8 +99,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -113,24 +112,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Update the navigation property deletedItems in directory - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of directory_object - ## - def patch(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_patch_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -140,13 +122,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -156,36 +139,25 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the navigation property deletedItems in directory - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directory_object_item_request_builder ## - def to_patch_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoryObjectItemRequestBuilder.new(raw_url, @request_adapter) end ## diff --git a/lib/directory/deleted_items/item/get_member_groups/get_member_groups.rb b/lib/directory/deleted_items/item/get_member_groups/get_member_groups.rb index 0a25b012ea..9190b99738 100644 --- a/lib/directory/deleted_items/item/get_member_groups/get_member_groups.rb +++ b/lib/directory/deleted_items/item/get_member_groups/get_member_groups.rb @@ -1,2 +1,2 @@ require_relative 'get_member_groups_post_request_body' -require_relative 'get_member_groups_response' +require_relative 'get_member_groups_post_response' diff --git a/lib/directory/deleted_items/item/get_member_groups/get_member_groups_post_request_body.rb b/lib/directory/deleted_items/item/get_member_groups/get_member_groups_post_request_body.rb index f682fbe1a4..51a1a01bc5 100644 --- a/lib/directory/deleted_items/item/get_member_groups/get_member_groups_post_request_body.rb +++ b/lib/directory/deleted_items/item/get_member_groups/get_member_groups_post_request_body.rb @@ -19,22 +19,22 @@ class GetMemberGroupsPostRequestBody # The securityEnabledOnly property @security_enabled_only ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getMemberGroupsPostRequestBody and sets the default values. + ## Instantiates a new GetMemberGroupsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory/deleted_items/item/get_member_groups/get_member_groups_post_response.rb b/lib/directory/deleted_items/item/get_member_groups/get_member_groups_post_response.rb new file mode 100644 index 0000000000..e523919f54 --- /dev/null +++ b/lib/directory/deleted_items/item/get_member_groups/get_member_groups_post_response.rb @@ -0,0 +1,74 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/base_collection_pagination_count_response' +require_relative '../../../directory' +require_relative '../../deleted_items' +require_relative '../item' +require_relative './get_member_groups' + +module MicrosoftGraph + module Directory + module DeletedItems + module Item + module GetMemberGroups + class GetMemberGroupsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetMemberGroupsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_member_groups_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetMemberGroupsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/directory/deleted_items/item/get_member_groups/get_member_groups_request_builder.rb b/lib/directory/deleted_items/item/get_member_groups/get_member_groups_request_builder.rb index 0dd8fb508f..f2e4359352 100644 --- a/lib/directory/deleted_items/item/get_member_groups/get_member_groups_request_builder.rb +++ b/lib/directory/deleted_items/item/get_member_groups/get_member_groups_request_builder.rb @@ -25,10 +25,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/getMemberGroups") end ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. + ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_groups_response + ## @return a Fiber of get_member_groups_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -36,12 +36,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Directory::DeletedItems::Item::GetMemberGroups::GetMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Directory::DeletedItems::Item::GetMemberGroups::GetMemberGroupsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. + ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -49,17 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_member_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetMemberGroupsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory/deleted_items/item/get_member_groups/get_member_groups_response.rb b/lib/directory/deleted_items/item/get_member_groups/get_member_groups_response.rb deleted file mode 100644 index 5c39d79408..0000000000 --- a/lib/directory/deleted_items/item/get_member_groups/get_member_groups_response.rb +++ /dev/null @@ -1,74 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../directory' -require_relative '../../deleted_items' -require_relative '../item' -require_relative './get_member_groups' - -module MicrosoftGraph - module Directory - module DeletedItems - module Item - module GetMemberGroups - class GetMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/directory/deleted_items/item/get_member_objects/get_member_objects.rb b/lib/directory/deleted_items/item/get_member_objects/get_member_objects.rb index 40edad6b9e..f7a486b0f9 100644 --- a/lib/directory/deleted_items/item/get_member_objects/get_member_objects.rb +++ b/lib/directory/deleted_items/item/get_member_objects/get_member_objects.rb @@ -1,2 +1,2 @@ require_relative 'get_member_objects_post_request_body' -require_relative 'get_member_objects_response' +require_relative 'get_member_objects_post_response' diff --git a/lib/directory/deleted_items/item/get_member_objects/get_member_objects_post_request_body.rb b/lib/directory/deleted_items/item/get_member_objects/get_member_objects_post_request_body.rb index 2b5f9208a5..57285576a4 100644 --- a/lib/directory/deleted_items/item/get_member_objects/get_member_objects_post_request_body.rb +++ b/lib/directory/deleted_items/item/get_member_objects/get_member_objects_post_request_body.rb @@ -19,22 +19,22 @@ class GetMemberObjectsPostRequestBody # The securityEnabledOnly property @security_enabled_only ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getMemberObjectsPostRequestBody and sets the default values. + ## Instantiates a new GetMemberObjectsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory/deleted_items/item/get_member_objects/get_member_objects_post_response.rb b/lib/directory/deleted_items/item/get_member_objects/get_member_objects_post_response.rb new file mode 100644 index 0000000000..921ec10ec7 --- /dev/null +++ b/lib/directory/deleted_items/item/get_member_objects/get_member_objects_post_response.rb @@ -0,0 +1,74 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/base_collection_pagination_count_response' +require_relative '../../../directory' +require_relative '../../deleted_items' +require_relative '../item' +require_relative './get_member_objects' + +module MicrosoftGraph + module Directory + module DeletedItems + module Item + module GetMemberObjects + class GetMemberObjectsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetMemberObjectsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_member_objects_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetMemberObjectsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/directory/deleted_items/item/get_member_objects/get_member_objects_request_builder.rb b/lib/directory/deleted_items/item/get_member_objects/get_member_objects_request_builder.rb index 24a4b0f25c..f6732b6875 100644 --- a/lib/directory/deleted_items/item/get_member_objects/get_member_objects_request_builder.rb +++ b/lib/directory/deleted_items/item/get_member_objects/get_member_objects_request_builder.rb @@ -25,10 +25,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/getMemberObjects") end ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + ## Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_objects_response + ## @return a Fiber of get_member_objects_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -36,12 +36,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Directory::DeletedItems::Item::GetMemberObjects::GetMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Directory::DeletedItems::Item::GetMemberObjects::GetMemberObjectsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + ## Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -49,17 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_member_objects_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetMemberObjectsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory/deleted_items/item/get_member_objects/get_member_objects_response.rb b/lib/directory/deleted_items/item/get_member_objects/get_member_objects_response.rb deleted file mode 100644 index 7339acb563..0000000000 --- a/lib/directory/deleted_items/item/get_member_objects/get_member_objects_response.rb +++ /dev/null @@ -1,74 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../directory' -require_relative '../../deleted_items' -require_relative '../item' -require_relative './get_member_objects' - -module MicrosoftGraph - module Directory - module DeletedItems - module Item - module GetMemberObjects - class GetMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/directory/deleted_items/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/directory/deleted_items/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb index 814608e89c..0da469da8d 100644 --- a/lib/directory/deleted_items/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +++ b/lib/directory/deleted_items/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -23,7 +23,7 @@ class GraphAdministrativeUnitRequestBuilder < MicrosoftKiotaAbstractions::BaseRe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.administrativeUnit{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,17 +45,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_administrative_unit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAdministrativeUnitRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit diff --git a/lib/directory/deleted_items/item/graph_application/graph_application_request_builder.rb b/lib/directory/deleted_items/item/graph_application/graph_application_request_builder.rb index 2a08283ef1..7c54449f4d 100644 --- a/lib/directory/deleted_items/item/graph_application/graph_application_request_builder.rb +++ b/lib/directory/deleted_items/item/graph_application/graph_application_request_builder.rb @@ -23,7 +23,7 @@ class GraphApplicationRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBu ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.application{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.application{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.application @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Application.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,17 +45,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_application_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphApplicationRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.application diff --git a/lib/directory/deleted_items/item/graph_device/graph_device_request_builder.rb b/lib/directory/deleted_items/item/graph_device/graph_device_request_builder.rb index 12671a530c..2580f90776 100644 --- a/lib/directory/deleted_items/item/graph_device/graph_device_request_builder.rb +++ b/lib/directory/deleted_items/item/graph_device/graph_device_request_builder.rb @@ -23,7 +23,7 @@ class GraphDeviceRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.device{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.device{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.device @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Device.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,17 +45,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_device_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphDeviceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.device diff --git a/lib/directory/deleted_items/item/graph_group/graph_group_request_builder.rb b/lib/directory/deleted_items/item/graph_group/graph_group_request_builder.rb index 9b82a7a02c..70d74215b3 100644 --- a/lib/directory/deleted_items/item/graph_group/graph_group_request_builder.rb +++ b/lib/directory/deleted_items/item/graph_group/graph_group_request_builder.rb @@ -23,10 +23,10 @@ class GraphGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.group{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.group{?%24expand,%24select}") end ## - ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.group + ## 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. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of group ## @@ -35,31 +35,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.group + ## 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. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the item of type microsoft.graph.directoryObject as microsoft.graph.group + # 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. class GraphGroupRequestBuilderGetQueryParameters ## diff --git a/lib/directory/deleted_items/item/graph_service_principal/graph_service_principal_request_builder.rb b/lib/directory/deleted_items/item/graph_service_principal/graph_service_principal_request_builder.rb index dae3aefef8..604d974722 100644 --- a/lib/directory/deleted_items/item/graph_service_principal/graph_service_principal_request_builder.rb +++ b/lib/directory/deleted_items/item/graph_service_principal/graph_service_principal_request_builder.rb @@ -23,7 +23,7 @@ class GraphServicePrincipalRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.servicePrincipal{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.servicePrincipal{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServicePrincipal.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,17 +45,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_service_principal_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphServicePrincipalRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal diff --git a/lib/directory/deleted_items/item/graph_user/graph_user_request_builder.rb b/lib/directory/deleted_items/item/graph_user/graph_user_request_builder.rb index 0594c67f8a..aa57e85363 100644 --- a/lib/directory/deleted_items/item/graph_user/graph_user_request_builder.rb +++ b/lib/directory/deleted_items/item/graph_user/graph_user_request_builder.rb @@ -23,7 +23,7 @@ class GraphUserRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.user{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.user{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.user @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,17 +45,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.user diff --git a/lib/directory/deleted_items/item/restore/restore_request_builder.rb b/lib/directory/deleted_items/item/restore/restore_request_builder.rb index 5786c28cbc..63d6a180fe 100644 --- a/lib/directory/deleted_items/item/restore/restore_request_builder.rb +++ b/lib/directory/deleted_items/item/restore/restore_request_builder.rb @@ -26,7 +26,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/restore") end ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object ## @@ -35,27 +35,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a restore_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RestoreRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory/deleted_items/validate_properties/validate_properties_post_request_body.rb b/lib/directory/deleted_items/validate_properties/validate_properties_post_request_body.rb index 42a4b8b16b..e47a5948ed 100644 --- a/lib/directory/deleted_items/validate_properties/validate_properties_post_request_body.rb +++ b/lib/directory/deleted_items/validate_properties/validate_properties_post_request_body.rb @@ -26,22 +26,22 @@ class ValidatePropertiesPostRequestBody # The onBehalfOfUserId property @on_behalf_of_user_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new validatePropertiesPostRequestBody and sets the default values. + ## Instantiates a new ValidatePropertiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory/deleted_items/validate_properties/validate_properties_request_builder.rb b/lib/directory/deleted_items/validate_properties/validate_properties_request_builder.rb index 5084d926ed..237aefcf9a 100644 --- a/lib/directory/deleted_items/validate_properties/validate_properties_request_builder.rb +++ b/lib/directory/deleted_items/validate_properties/validate_properties_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a validate_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ValidatePropertiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/me/insights/used/count/count.rb b/lib/directory/device_local_credentials/count/count.rb similarity index 100% rename from lib/me/insights/used/count/count.rb rename to lib/directory/device_local_credentials/count/count.rb diff --git a/lib/directory/device_local_credentials/count/count_request_builder.rb b/lib/directory/device_local_credentials/count/count_request_builder.rb new file mode 100644 index 0000000000..afe155775c --- /dev/null +++ b/lib/directory/device_local_credentials/count/count_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../directory' +require_relative '../device_local_credentials' +require_relative './count' + +module MicrosoftGraph + module Directory + module DeviceLocalCredentials + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/directory/deviceLocalCredentials/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/me/contact_folders/item/contacts/item/photo/value/value.rb b/lib/directory/device_local_credentials/device_local_credentials.rb similarity index 100% rename from lib/me/contact_folders/item/contacts/item/photo/value/value.rb rename to lib/directory/device_local_credentials/device_local_credentials.rb diff --git a/lib/directory/device_local_credentials/device_local_credentials_request_builder.rb b/lib/directory/device_local_credentials/device_local_credentials_request_builder.rb new file mode 100644 index 0000000000..a024bab150 --- /dev/null +++ b/lib/directory/device_local_credentials/device_local_credentials_request_builder.rb @@ -0,0 +1,179 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/device_local_credential_info' +require_relative '../../models/device_local_credential_info_collection_response' +require_relative '../../models/o_data_errors_o_data_error' +require_relative '../directory' +require_relative './count/count_request_builder' +require_relative './device_local_credentials' +require_relative './item/device_local_credential_info_item_request_builder' + +module MicrosoftGraph + module Directory + module DeviceLocalCredentials + ## + # Provides operations to manage the deviceLocalCredentials property of the microsoft.graph.directory entity. + class DeviceLocalCredentialsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Directory::DeviceLocalCredentials::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the deviceLocalCredentials property of the microsoft.graph.directory entity. + ## @param device_local_credential_info_id The unique identifier of deviceLocalCredentialInfo + ## @return a device_local_credential_info_item_request_builder + ## + def by_device_local_credential_info_id(device_local_credential_info_id) + raise StandardError, 'device_local_credential_info_id cannot be null' if device_local_credential_info_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["deviceLocalCredentialInfo%2Did"] = device_local_credential_info_id + return MicrosoftGraph::Directory::DeviceLocalCredentials::Item::DeviceLocalCredentialInfoItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new DeviceLocalCredentialsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/directory/deviceLocalCredentials{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get a list of the deviceLocalCredentialInfo objects and their properties, excluding the credentials property. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of device_local_credential_info_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceLocalCredentialInfoCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to deviceLocalCredentials for directory + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of device_local_credential_info + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceLocalCredentialInfo.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get a list of the deviceLocalCredentialInfo objects and their properties, excluding the credentials property. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to deviceLocalCredentials for directory + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_local_credentials_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceLocalCredentialsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get a list of the deviceLocalCredentialInfo objects and their properties, excluding the credentials property. + class DeviceLocalCredentialsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end +end diff --git a/lib/directory/device_local_credentials/item/device_local_credential_info_item_request_builder.rb b/lib/directory/device_local_credentials/item/device_local_credential_info_item_request_builder.rb new file mode 100644 index 0000000000..e39208c58d --- /dev/null +++ b/lib/directory/device_local_credentials/item/device_local_credential_info_item_request_builder.rb @@ -0,0 +1,163 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/device_local_credential_info' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../directory' +require_relative '../device_local_credentials' +require_relative './item' + +module MicrosoftGraph + module Directory + module DeviceLocalCredentials + module Item + ## + # Provides operations to manage the deviceLocalCredentials property of the microsoft.graph.directory entity. + class DeviceLocalCredentialInfoItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeviceLocalCredentialInfoItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/directory/deviceLocalCredentials/{deviceLocalCredentialInfo%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property deviceLocalCredentials for directory + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Retrieve the properties of a deviceLocalCredentialInfo for a specified device object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of device_local_credential_info + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceLocalCredentialInfo.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property deviceLocalCredentials in directory + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of device_local_credential_info + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceLocalCredentialInfo.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property deviceLocalCredentials for directory + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Retrieve the properties of a deviceLocalCredentialInfo for a specified device object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property deviceLocalCredentials in directory + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a device_local_credential_info_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeviceLocalCredentialInfoItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Retrieve the properties of a deviceLocalCredentialInfo for a specified device object. + class DeviceLocalCredentialInfoItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/me/events/item/instances/item/item.rb b/lib/directory/device_local_credentials/item/item.rb similarity index 100% rename from lib/me/events/item/instances/item/item.rb rename to lib/directory/device_local_credentials/item/item.rb diff --git a/lib/directory/directory_request_builder.rb b/lib/directory/directory_request_builder.rb index 685f79e863..c8f005ffa1 100644 --- a/lib/directory/directory_request_builder.rb +++ b/lib/directory/directory_request_builder.rb @@ -6,9 +6,12 @@ require_relative './attribute_sets/attribute_sets_request_builder' require_relative './custom_security_attribute_definitions/custom_security_attribute_definitions_request_builder' require_relative './deleted_items/deleted_items_request_builder' +require_relative './device_local_credentials/device_local_credentials_request_builder' require_relative './directory' require_relative './federation_configurations/federation_configurations_request_builder' require_relative './on_premises_synchronization/on_premises_synchronization_request_builder' +require_relative './subscriptions/subscriptions_request_builder' +require_relative './subscriptions_with_commerce_subscription_id/subscriptions_with_commerce_subscription_id_request_builder' module MicrosoftGraph module Directory @@ -37,6 +40,11 @@ def deleted_items() return MicrosoftGraph::Directory::DeletedItems::DeletedItemsRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to manage the deviceLocalCredentials property of the microsoft.graph.directory entity. + def device_local_credentials() + return MicrosoftGraph::Directory::DeviceLocalCredentials::DeviceLocalCredentialsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to manage the federationConfigurations property of the microsoft.graph.directory entity. def federation_configurations() return MicrosoftGraph::Directory::FederationConfigurations::FederationConfigurationsRequestBuilder.new(@path_parameters, @request_adapter) @@ -47,13 +55,18 @@ def on_premises_synchronization() return MicrosoftGraph::Directory::OnPremisesSynchronization::OnPremisesSynchronizationRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to manage the subscriptions property of the microsoft.graph.directory entity. + def subscriptions() + return MicrosoftGraph::Directory::Subscriptions::SubscriptionsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Instantiates a new DirectoryRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory{?%24expand,%24select}") end ## ## Get directory @@ -65,8 +78,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Directory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,26 +93,34 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Directory.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to manage the subscriptions property of the microsoft.graph.directory entity. + ## @param commerce_subscription_id Alternate key of companySubscription + ## @return a subscriptions_with_commerce_subscription_id_request_builder + ## + def subscriptions_with_commerce_subscription_id(commerce_subscription_id) + raise StandardError, 'commerce_subscription_id cannot be null' if commerce_subscription_id.nil? + return SubscriptionsWithCommerceSubscriptionIdRequestBuilder.new(@path_parameters, @request_adapter, commerceSubscriptionId) + end + ## ## Get directory ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +132,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directory_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoryRequestBuilder.new(raw_url, @request_adapter) + end ## # Get directory diff --git a/lib/directory/federation_configurations/available_provider_types/available_provider_types.rb b/lib/directory/federation_configurations/available_provider_types/available_provider_types.rb index 68984e83c5..2ad3288b41 100644 --- a/lib/directory/federation_configurations/available_provider_types/available_provider_types.rb +++ b/lib/directory/federation_configurations/available_provider_types/available_provider_types.rb @@ -1 +1 @@ -require_relative 'available_provider_types_response' +require_relative 'available_provider_types_get_response' diff --git a/lib/directory/federation_configurations/available_provider_types/available_provider_types_get_response.rb b/lib/directory/federation_configurations/available_provider_types/available_provider_types_get_response.rb new file mode 100644 index 0000000000..e52095a63e --- /dev/null +++ b/lib/directory/federation_configurations/available_provider_types/available_provider_types_get_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../directory' +require_relative '../federation_configurations' +require_relative './available_provider_types' + +module MicrosoftGraph + module Directory + module FederationConfigurations + module AvailableProviderTypes + class AvailableProviderTypesGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new AvailableProviderTypesGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a available_provider_types_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AvailableProviderTypesGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/directory/federation_configurations/available_provider_types/available_provider_types_request_builder.rb b/lib/directory/federation_configurations/available_provider_types/available_provider_types_request_builder.rb index 01d934006c..7d644ccc00 100644 --- a/lib/directory/federation_configurations/available_provider_types/available_provider_types_request_builder.rb +++ b/lib/directory/federation_configurations/available_provider_types/available_provider_types_request_builder.rb @@ -20,43 +20,51 @@ class AvailableProviderTypesRequestBuilder < MicrosoftKiotaAbstractions::BaseReq ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/federationConfigurations/availableProviderTypes(){?%24top,%24skip,%24search,%24filter,%24count}") + super(path_parameters, request_adapter, "{+baseurl}/directory/federationConfigurations/availableProviderTypes(){?%24count,%24filter,%24search,%24skip,%24top}") end ## - ## Invoke function availableProviderTypes + ## Get all identity providers supported in a directory. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of available_provider_types_response + ## @return a Fiber of available_provider_types_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Directory::FederationConfigurations::AvailableProviderTypes::AvailableProviderTypesResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Directory::FederationConfigurations::AvailableProviderTypes::AvailableProviderTypesGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function availableProviderTypes + ## Get all identity providers supported in a directory. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a available_provider_types_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AvailableProviderTypesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function availableProviderTypes + # Get all identity providers supported in a directory. class AvailableProviderTypesRequestBuilderGetQueryParameters ## diff --git a/lib/directory/federation_configurations/available_provider_types/available_provider_types_response.rb b/lib/directory/federation_configurations/available_provider_types/available_provider_types_response.rb deleted file mode 100644 index 7f9e902315..0000000000 --- a/lib/directory/federation_configurations/available_provider_types/available_provider_types_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../directory' -require_relative '../federation_configurations' -require_relative './available_provider_types' - -module MicrosoftGraph - module Directory - module FederationConfigurations - module AvailableProviderTypes - class AvailableProviderTypesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new availableProviderTypesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a available_provider_types_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return AvailableProviderTypesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/directory/federation_configurations/count/count_request_builder.rb b/lib/directory/federation_configurations/count/count_request_builder.rb index d2f0dca9c1..7308a2145f 100644 --- a/lib/directory/federation_configurations/count/count_request_builder.rb +++ b/lib/directory/federation_configurations/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/federationConfigurations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directory/federationConfigurations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory/federation_configurations/federation_configurations_request_builder.rb b/lib/directory/federation_configurations/federation_configurations_request_builder.rb index d4ee91e0b4..076393bb05 100644 --- a/lib/directory/federation_configurations/federation_configurations_request_builder.rb +++ b/lib/directory/federation_configurations/federation_configurations_request_builder.rb @@ -44,7 +44,7 @@ def by_identity_provider_base_id(identity_provider_base_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/federationConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/federationConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Configure domain federation with organizations whose identity provider (IdP) supports either the SAML or WS-Fed protocol. @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityProviderBaseCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,8 +71,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityProviderBase.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,15 +81,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,17 +101,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a federation_configurations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FederationConfigurationsRequestBuilder.new(raw_url, @request_adapter) + end ## # Configure domain federation with organizations whose identity provider (IdP) supports either the SAML or WS-Fed protocol. diff --git a/lib/directory/federation_configurations/item/identity_provider_base_item_request_builder.rb b/lib/directory/federation_configurations/item/identity_provider_base_item_request_builder.rb index 8271103a7d..841d38ba4b 100644 --- a/lib/directory/federation_configurations/item/identity_provider_base_item_request_builder.rb +++ b/lib/directory/federation_configurations/item/identity_provider_base_item_request_builder.rb @@ -21,7 +21,7 @@ class IdentityProviderBaseItemRequestBuilder < MicrosoftKiotaAbstractions::BaseR ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/federationConfigurations/{identityProviderBase%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/federationConfigurations/{identityProviderBase%2Did}{?%24expand,%24select}") end ## ## Delete a samlOrWsFedExternalDomainFederation object. @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityProviderBase.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityProviderBase.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a identity_provider_base_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IdentityProviderBaseItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Configure domain federation with organizations whose identity provider (IdP) supports either the SAML or WS-Fed protocol. diff --git a/lib/directory/on_premises_synchronization/count/count_request_builder.rb b/lib/directory/on_premises_synchronization/count/count_request_builder.rb index 849299d729..2066efa69f 100644 --- a/lib/directory/on_premises_synchronization/count/count_request_builder.rb +++ b/lib/directory/on_premises_synchronization/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/onPremisesSynchronization/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directory/onPremisesSynchronization/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory/on_premises_synchronization/item/on_premises_directory_synchronization_item_request_builder.rb b/lib/directory/on_premises_synchronization/item/on_premises_directory_synchronization_item_request_builder.rb index 1e2c1e7582..c6d84891cd 100644 --- a/lib/directory/on_premises_synchronization/item/on_premises_directory_synchronization_item_request_builder.rb +++ b/lib/directory/on_premises_synchronization/item/on_premises_directory_synchronization_item_request_builder.rb @@ -21,7 +21,7 @@ class OnPremisesDirectorySynchronizationItemRequestBuilder < MicrosoftKiotaAbstr ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/onPremisesSynchronization/{onPremisesDirectorySynchronization%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/onPremisesSynchronization/{onPremisesDirectorySynchronization%2Did}{?%24expand,%24select}") end ## ## Delete navigation property onPremisesSynchronization for directory @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnPremisesDirectorySynchronization.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnPremisesDirectorySynchronization.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a on_premises_directory_synchronization_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnPremisesDirectorySynchronizationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of an onPremisesDirectorySynchronization object. diff --git a/lib/directory/on_premises_synchronization/on_premises_synchronization_request_builder.rb b/lib/directory/on_premises_synchronization/on_premises_synchronization_request_builder.rb index 21103ebbe9..dbae48c415 100644 --- a/lib/directory/on_premises_synchronization/on_premises_synchronization_request_builder.rb +++ b/lib/directory/on_premises_synchronization/on_premises_synchronization_request_builder.rb @@ -38,7 +38,7 @@ def by_on_premises_directory_synchronization_id(on_premises_directory_synchroniz ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directory/onPremisesSynchronization{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directory/onPremisesSynchronization{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Read the properties and relationships of an onPremisesDirectorySynchronization object. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnPremisesDirectorySynchronizationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnPremisesDirectorySynchronization.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a on_premises_synchronization_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnPremisesSynchronizationRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of an onPremisesDirectorySynchronization object. diff --git a/lib/me/joined_teams/count/count.rb b/lib/directory/subscriptions/count/count.rb similarity index 100% rename from lib/me/joined_teams/count/count.rb rename to lib/directory/subscriptions/count/count.rb diff --git a/lib/directory/subscriptions/count/count_request_builder.rb b/lib/directory/subscriptions/count/count_request_builder.rb new file mode 100644 index 0000000000..1c0cc29219 --- /dev/null +++ b/lib/directory/subscriptions/count/count_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../directory' +require_relative '../subscriptions' +require_relative './count' + +module MicrosoftGraph + module Directory + module Subscriptions + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/directory/subscriptions/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/directory/subscriptions/item/company_subscription_item_request_builder.rb b/lib/directory/subscriptions/item/company_subscription_item_request_builder.rb new file mode 100644 index 0000000000..bad9c1452b --- /dev/null +++ b/lib/directory/subscriptions/item/company_subscription_item_request_builder.rb @@ -0,0 +1,163 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/company_subscription' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../directory' +require_relative '../subscriptions' +require_relative './item' + +module MicrosoftGraph + module Directory + module Subscriptions + module Item + ## + # Provides operations to manage the subscriptions property of the microsoft.graph.directory entity. + class CompanySubscriptionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CompanySubscriptionItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/directory/subscriptions/{companySubscription%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property subscriptions for directory + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Get a specific commercial subscription that an organization acquired. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of company_subscription + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CompanySubscription.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property subscriptions in directory + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of company_subscription + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CompanySubscription.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property subscriptions for directory + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Get a specific commercial subscription that an organization acquired. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property subscriptions in directory + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a company_subscription_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CompanySubscriptionItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get a specific commercial subscription that an organization acquired. + class CompanySubscriptionItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/me/events/item/item.rb b/lib/directory/subscriptions/item/item.rb similarity index 100% rename from lib/me/events/item/item.rb rename to lib/directory/subscriptions/item/item.rb diff --git a/lib/me/contacts/contacts.rb b/lib/directory/subscriptions/subscriptions.rb similarity index 100% rename from lib/me/contacts/contacts.rb rename to lib/directory/subscriptions/subscriptions.rb diff --git a/lib/directory/subscriptions/subscriptions_request_builder.rb b/lib/directory/subscriptions/subscriptions_request_builder.rb new file mode 100644 index 0000000000..fb74528e93 --- /dev/null +++ b/lib/directory/subscriptions/subscriptions_request_builder.rb @@ -0,0 +1,179 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/company_subscription' +require_relative '../../models/company_subscription_collection_response' +require_relative '../../models/o_data_errors_o_data_error' +require_relative '../directory' +require_relative './count/count_request_builder' +require_relative './item/company_subscription_item_request_builder' +require_relative './subscriptions' + +module MicrosoftGraph + module Directory + module Subscriptions + ## + # Provides operations to manage the subscriptions property of the microsoft.graph.directory entity. + class SubscriptionsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Directory::Subscriptions::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the subscriptions property of the microsoft.graph.directory entity. + ## @param company_subscription_id The unique identifier of companySubscription + ## @return a company_subscription_item_request_builder + ## + def by_company_subscription_id(company_subscription_id) + raise StandardError, 'company_subscription_id cannot be null' if company_subscription_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["companySubscription%2Did"] = company_subscription_id + return MicrosoftGraph::Directory::Subscriptions::Item::CompanySubscriptionItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new SubscriptionsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/directory/subscriptions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get the list of commercial subscriptions that an organization acquired. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of company_subscription_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CompanySubscriptionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to subscriptions for directory + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of company_subscription + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CompanySubscription.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the list of commercial subscriptions that an organization acquired. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to subscriptions for directory + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a subscriptions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SubscriptionsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the list of commercial subscriptions that an organization acquired. + class SubscriptionsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end +end diff --git a/lib/me/contacts/item/extensions/extensions.rb b/lib/directory/subscriptions_with_commerce_subscription_id/subscriptions_with_commerce_subscription_id.rb similarity index 100% rename from lib/me/contacts/item/extensions/extensions.rb rename to lib/directory/subscriptions_with_commerce_subscription_id/subscriptions_with_commerce_subscription_id.rb diff --git a/lib/directory/subscriptions_with_commerce_subscription_id/subscriptions_with_commerce_subscription_id_request_builder.rb b/lib/directory/subscriptions_with_commerce_subscription_id/subscriptions_with_commerce_subscription_id_request_builder.rb new file mode 100644 index 0000000000..8ab1addff9 --- /dev/null +++ b/lib/directory/subscriptions_with_commerce_subscription_id/subscriptions_with_commerce_subscription_id_request_builder.rb @@ -0,0 +1,161 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/company_subscription' +require_relative '../../models/o_data_errors_o_data_error' +require_relative '../directory' +require_relative './subscriptions_with_commerce_subscription_id' + +module MicrosoftGraph + module Directory + module SubscriptionsWithCommerceSubscriptionId + ## + # Provides operations to manage the subscriptions property of the microsoft.graph.directory entity. + class SubscriptionsWithCommerceSubscriptionIdRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SubscriptionsWithCommerceSubscriptionIdRequestBuilder and sets the default values. + ## @param commerce_subscription_id Alternate key of companySubscription + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, commerce_subscription_id=nil) + super(path_parameters, request_adapter, "{+baseurl}/directory/subscriptions(commerceSubscriptionId='{commerceSubscriptionId}'){?%24expand,%24select}") + end + ## + ## Delete navigation property subscriptions for directory + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Get a specific commercial subscription that an organization acquired. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of company_subscription + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CompanySubscription.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property subscriptions in directory + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of company_subscription + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CompanySubscription.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property subscriptions for directory + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Get a specific commercial subscription that an organization acquired. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property subscriptions in directory + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a subscriptions_with_commerce_subscription_id_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SubscriptionsWithCommerceSubscriptionIdRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get a specific commercial subscription that an organization acquired. + class SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end +end diff --git a/lib/directory_objects/count/count_request_builder.rb b/lib/directory_objects/count/count_request_builder.rb index d0ebad09f7..9a70fbc7fc 100644 --- a/lib/directory_objects/count/count_request_builder.rb +++ b/lib/directory_objects/count/count_request_builder.rb @@ -18,7 +18,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryObjects/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directoryObjects/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -30,8 +30,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -41,17 +40,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory_objects/delta/delta.rb b/lib/directory_objects/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/directory_objects/delta/delta.rb +++ b/lib/directory_objects/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/directory_objects/delta/delta_get_response.rb b/lib/directory_objects/delta/delta_get_response.rb new file mode 100644 index 0000000000..3d5897efdb --- /dev/null +++ b/lib/directory_objects/delta/delta_get_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_delta_function_response' +require_relative '../../models/directory_object' +require_relative '../directory_objects' +require_relative './delta' + +module MicrosoftGraph + module DirectoryObjects + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a directory_object + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/directory_objects/delta/delta_request_builder.rb b/lib/directory_objects/delta/delta_request_builder.rb index 739c719a73..1a947d0183 100644 --- a/lib/directory_objects/delta/delta_request_builder.rb +++ b/lib/directory_objects/delta/delta_request_builder.rb @@ -18,49 +18,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryObjects/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/directoryObjects/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryObjects::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryObjects::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # 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 ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -88,6 +99,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/directory_objects/delta/delta_response.rb b/lib/directory_objects/delta/delta_response.rb deleted file mode 100644 index b28296164c..0000000000 --- a/lib/directory_objects/delta/delta_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_delta_function_response' -require_relative '../../models/directory_object' -require_relative '../directory_objects' -require_relative './delta' - -module MicrosoftGraph - module DirectoryObjects - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/directory_objects/directory_objects_request_builder.rb b/lib/directory_objects/directory_objects_request_builder.rb index f72e83add2..5a6fead3d3 100644 --- a/lib/directory_objects/directory_objects_request_builder.rb +++ b/lib/directory_objects/directory_objects_request_builder.rb @@ -60,7 +60,7 @@ def by_directory_object_id(directory_object_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryObjects{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directoryObjects{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get entities from directoryObjects @@ -72,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,8 +87,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,15 +97,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -119,17 +117,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directory_objects_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoryObjectsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get entities from directoryObjects diff --git a/lib/directory_objects/get_available_extension_properties/get_available_extension_properties.rb b/lib/directory_objects/get_available_extension_properties/get_available_extension_properties.rb index b6fee576bf..ce1b642cad 100644 --- a/lib/directory_objects/get_available_extension_properties/get_available_extension_properties.rb +++ b/lib/directory_objects/get_available_extension_properties/get_available_extension_properties.rb @@ -1,2 +1,2 @@ require_relative 'get_available_extension_properties_post_request_body' -require_relative 'get_available_extension_properties_response' +require_relative 'get_available_extension_properties_post_response' diff --git a/lib/directory_objects/get_available_extension_properties/get_available_extension_properties_post_request_body.rb b/lib/directory_objects/get_available_extension_properties/get_available_extension_properties_post_request_body.rb index d3b3d2dbd7..b08429d49f 100644 --- a/lib/directory_objects/get_available_extension_properties/get_available_extension_properties_post_request_body.rb +++ b/lib/directory_objects/get_available_extension_properties/get_available_extension_properties_post_request_body.rb @@ -15,22 +15,22 @@ class GetAvailableExtensionPropertiesPostRequestBody # The isSyncedFromOnPremises property @is_synced_from_on_premises ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getAvailableExtensionPropertiesPostRequestBody and sets the default values. + ## Instantiates a new GetAvailableExtensionPropertiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory_objects/get_available_extension_properties/get_available_extension_properties_post_response.rb b/lib/directory_objects/get_available_extension_properties/get_available_extension_properties_post_response.rb new file mode 100644 index 0000000000..b04779f4c4 --- /dev/null +++ b/lib/directory_objects/get_available_extension_properties/get_available_extension_properties_post_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_collection_pagination_count_response' +require_relative '../../models/extension_property' +require_relative '../directory_objects' +require_relative './get_available_extension_properties' + +module MicrosoftGraph + module DirectoryObjects + module GetAvailableExtensionProperties + class GetAvailableExtensionPropertiesPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetAvailableExtensionPropertiesPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_available_extension_properties_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetAvailableExtensionPropertiesPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a extension_property + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/directory_objects/get_available_extension_properties/get_available_extension_properties_request_builder.rb b/lib/directory_objects/get_available_extension_properties/get_available_extension_properties_request_builder.rb index 207fe7bc0c..b77fd723fc 100644 --- a/lib/directory_objects/get_available_extension_properties/get_available_extension_properties_request_builder.rb +++ b/lib/directory_objects/get_available_extension_properties/get_available_extension_properties_request_builder.rb @@ -21,10 +21,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/directoryObjects/getAvailableExtensionProperties") end ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_available_extension_properties_response + ## @return a Fiber of get_available_extension_properties_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -32,12 +32,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryObjects::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryObjects::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -45,17 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_available_extension_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetAvailableExtensionPropertiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_objects/get_available_extension_properties/get_available_extension_properties_response.rb b/lib/directory_objects/get_available_extension_properties/get_available_extension_properties_response.rb deleted file mode 100644 index a4a1fa9b5f..0000000000 --- a/lib/directory_objects/get_available_extension_properties/get_available_extension_properties_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_collection_pagination_count_response' -require_relative '../../models/extension_property' -require_relative '../directory_objects' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module DirectoryObjects - module GetAvailableExtensionProperties - class GetAvailableExtensionPropertiesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_available_extension_properties_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAvailableExtensionPropertiesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a extension_property - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/directory_objects/get_by_ids/get_by_ids.rb b/lib/directory_objects/get_by_ids/get_by_ids.rb index e4b0824834..131a179969 100644 --- a/lib/directory_objects/get_by_ids/get_by_ids.rb +++ b/lib/directory_objects/get_by_ids/get_by_ids.rb @@ -1,2 +1,2 @@ require_relative 'get_by_ids_post_request_body' -require_relative 'get_by_ids_response' +require_relative 'get_by_ids_post_response' diff --git a/lib/directory_objects/get_by_ids/get_by_ids_post_request_body.rb b/lib/directory_objects/get_by_ids/get_by_ids_post_request_body.rb index 65c3295e8f..482b2f5544 100644 --- a/lib/directory_objects/get_by_ids/get_by_ids_post_request_body.rb +++ b/lib/directory_objects/get_by_ids/get_by_ids_post_request_body.rb @@ -18,22 +18,22 @@ class GetByIdsPostRequestBody # The types property @types ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getByIdsPostRequestBody and sets the default values. + ## Instantiates a new GetByIdsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory_objects/get_by_ids/get_by_ids_post_response.rb b/lib/directory_objects/get_by_ids/get_by_ids_post_response.rb new file mode 100644 index 0000000000..6bef5c5d5d --- /dev/null +++ b/lib/directory_objects/get_by_ids/get_by_ids_post_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_collection_pagination_count_response' +require_relative '../../models/directory_object' +require_relative '../directory_objects' +require_relative './get_by_ids' + +module MicrosoftGraph + module DirectoryObjects + module GetByIds + class GetByIdsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetByIdsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_by_ids_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetByIdsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a directory_object + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/directory_objects/get_by_ids/get_by_ids_request_builder.rb b/lib/directory_objects/get_by_ids/get_by_ids_request_builder.rb index 24dd342491..dff80eaa91 100644 --- a/lib/directory_objects/get_by_ids/get_by_ids_request_builder.rb +++ b/lib/directory_objects/get_by_ids/get_by_ids_request_builder.rb @@ -24,7 +24,7 @@ def initialize(path_parameters, request_adapter) ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_by_ids_response + ## @return a Fiber of get_by_ids_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -32,9 +32,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryObjects::GetByIds::GetByIdsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryObjects::GetByIds::GetByIdsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: @@ -45,17 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_by_ids_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetByIdsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_objects/get_by_ids/get_by_ids_response.rb b/lib/directory_objects/get_by_ids/get_by_ids_response.rb deleted file mode 100644 index a345502b8f..0000000000 --- a/lib/directory_objects/get_by_ids/get_by_ids_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_collection_pagination_count_response' -require_relative '../../models/directory_object' -require_relative '../directory_objects' -require_relative './get_by_ids' - -module MicrosoftGraph - module DirectoryObjects - module GetByIds - class GetByIdsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getByIdsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_by_ids_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetByIdsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/directory_objects/item/check_member_groups/check_member_groups.rb b/lib/directory_objects/item/check_member_groups/check_member_groups.rb index 938b908522..98148024fe 100644 --- a/lib/directory_objects/item/check_member_groups/check_member_groups.rb +++ b/lib/directory_objects/item/check_member_groups/check_member_groups.rb @@ -1,2 +1,2 @@ require_relative 'check_member_groups_post_request_body' -require_relative 'check_member_groups_response' +require_relative 'check_member_groups_post_response' diff --git a/lib/directory_objects/item/check_member_groups/check_member_groups_post_request_body.rb b/lib/directory_objects/item/check_member_groups/check_member_groups_post_request_body.rb index ffc53dc3f4..b9a86f23ad 100644 --- a/lib/directory_objects/item/check_member_groups/check_member_groups_post_request_body.rb +++ b/lib/directory_objects/item/check_member_groups/check_member_groups_post_request_body.rb @@ -17,22 +17,22 @@ class CheckMemberGroupsPostRequestBody # The groupIds property @group_ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new checkMemberGroupsPostRequestBody and sets the default values. + ## Instantiates a new CheckMemberGroupsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory_objects/item/check_member_groups/check_member_groups_post_response.rb b/lib/directory_objects/item/check_member_groups/check_member_groups_post_response.rb new file mode 100644 index 0000000000..a10dd62869 --- /dev/null +++ b/lib/directory_objects/item/check_member_groups/check_member_groups_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../directory_objects' +require_relative '../item' +require_relative './check_member_groups' + +module MicrosoftGraph + module DirectoryObjects + module Item + module CheckMemberGroups + class CheckMemberGroupsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new CheckMemberGroupsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a check_member_groups_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CheckMemberGroupsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/directory_objects/item/check_member_groups/check_member_groups_request_builder.rb b/lib/directory_objects/item/check_member_groups/check_member_groups_request_builder.rb index 9e9b6992a9..2d970111a4 100644 --- a/lib/directory_objects/item/check_member_groups/check_member_groups_request_builder.rb +++ b/lib/directory_objects/item/check_member_groups/check_member_groups_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/directoryObjects/{directoryObject%2Did}/checkMemberGroups") end ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + ## Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_groups_response + ## @return a Fiber of check_member_groups_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryObjects::Item::CheckMemberGroups::CheckMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryObjects::Item::CheckMemberGroups::CheckMemberGroupsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + ## Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a check_member_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CheckMemberGroupsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_objects/item/check_member_groups/check_member_groups_response.rb b/lib/directory_objects/item/check_member_groups/check_member_groups_response.rb deleted file mode 100644 index 71e23e634e..0000000000 --- a/lib/directory_objects/item/check_member_groups/check_member_groups_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../directory_objects' -require_relative '../item' -require_relative './check_member_groups' - -module MicrosoftGraph - module DirectoryObjects - module Item - module CheckMemberGroups - class CheckMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/directory_objects/item/check_member_objects/check_member_objects.rb b/lib/directory_objects/item/check_member_objects/check_member_objects.rb index 67fbf971e7..1826285d49 100644 --- a/lib/directory_objects/item/check_member_objects/check_member_objects.rb +++ b/lib/directory_objects/item/check_member_objects/check_member_objects.rb @@ -1,2 +1,2 @@ require_relative 'check_member_objects_post_request_body' -require_relative 'check_member_objects_response' +require_relative 'check_member_objects_post_response' diff --git a/lib/directory_objects/item/check_member_objects/check_member_objects_post_request_body.rb b/lib/directory_objects/item/check_member_objects/check_member_objects_post_request_body.rb index e3b10a9b0a..eae196ada1 100644 --- a/lib/directory_objects/item/check_member_objects/check_member_objects_post_request_body.rb +++ b/lib/directory_objects/item/check_member_objects/check_member_objects_post_request_body.rb @@ -17,22 +17,22 @@ class CheckMemberObjectsPostRequestBody # The ids property @ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new checkMemberObjectsPostRequestBody and sets the default values. + ## Instantiates a new CheckMemberObjectsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory_objects/item/check_member_objects/check_member_objects_post_response.rb b/lib/directory_objects/item/check_member_objects/check_member_objects_post_response.rb new file mode 100644 index 0000000000..1efe6d8bea --- /dev/null +++ b/lib/directory_objects/item/check_member_objects/check_member_objects_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../directory_objects' +require_relative '../item' +require_relative './check_member_objects' + +module MicrosoftGraph + module DirectoryObjects + module Item + module CheckMemberObjects + class CheckMemberObjectsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new CheckMemberObjectsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a check_member_objects_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CheckMemberObjectsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/directory_objects/item/check_member_objects/check_member_objects_request_builder.rb b/lib/directory_objects/item/check_member_objects/check_member_objects_request_builder.rb index 84cc2b9264..9d4d26fba9 100644 --- a/lib/directory_objects/item/check_member_objects/check_member_objects_request_builder.rb +++ b/lib/directory_objects/item/check_member_objects/check_member_objects_request_builder.rb @@ -26,7 +26,7 @@ def initialize(path_parameters, request_adapter) ## Invoke action checkMemberObjects ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_objects_response + ## @return a Fiber of check_member_objects_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,9 +34,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryObjects::Item::CheckMemberObjects::CheckMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryObjects::Item::CheckMemberObjects::CheckMemberObjectsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke action checkMemberObjects @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a check_member_objects_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CheckMemberObjectsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_objects/item/check_member_objects/check_member_objects_response.rb b/lib/directory_objects/item/check_member_objects/check_member_objects_response.rb deleted file mode 100644 index 8562f32f55..0000000000 --- a/lib/directory_objects/item/check_member_objects/check_member_objects_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../directory_objects' -require_relative '../item' -require_relative './check_member_objects' - -module MicrosoftGraph - module DirectoryObjects - module Item - module CheckMemberObjects - class CheckMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/directory_objects/item/directory_object_item_request_builder.rb b/lib/directory_objects/item/directory_object_item_request_builder.rb index 07a488a7f8..34cfa8a70c 100644 --- a/lib/directory_objects/item/directory_object_item_request_builder.rb +++ b/lib/directory_objects/item/directory_object_item_request_builder.rb @@ -49,7 +49,7 @@ def restore() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryObjects/{directoryObject%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directoryObjects/{directoryObject%2Did}{?%24expand,%24select}") end ## ## Delete a directory object, for example, a group, user, application, or service principal. @@ -61,8 +61,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -75,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,13 +99,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,15 +116,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,17 +136,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directory_object_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoryObjectItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of a directoryObject object. diff --git a/lib/directory_objects/item/get_member_groups/get_member_groups.rb b/lib/directory_objects/item/get_member_groups/get_member_groups.rb index 0a25b012ea..9190b99738 100644 --- a/lib/directory_objects/item/get_member_groups/get_member_groups.rb +++ b/lib/directory_objects/item/get_member_groups/get_member_groups.rb @@ -1,2 +1,2 @@ require_relative 'get_member_groups_post_request_body' -require_relative 'get_member_groups_response' +require_relative 'get_member_groups_post_response' diff --git a/lib/directory_objects/item/get_member_groups/get_member_groups_post_request_body.rb b/lib/directory_objects/item/get_member_groups/get_member_groups_post_request_body.rb index 59df718907..7405e357e2 100644 --- a/lib/directory_objects/item/get_member_groups/get_member_groups_post_request_body.rb +++ b/lib/directory_objects/item/get_member_groups/get_member_groups_post_request_body.rb @@ -17,22 +17,22 @@ class GetMemberGroupsPostRequestBody # The securityEnabledOnly property @security_enabled_only ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getMemberGroupsPostRequestBody and sets the default values. + ## Instantiates a new GetMemberGroupsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory_objects/item/get_member_groups/get_member_groups_post_response.rb b/lib/directory_objects/item/get_member_groups/get_member_groups_post_response.rb new file mode 100644 index 0000000000..012f00387c --- /dev/null +++ b/lib/directory_objects/item/get_member_groups/get_member_groups_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../directory_objects' +require_relative '../item' +require_relative './get_member_groups' + +module MicrosoftGraph + module DirectoryObjects + module Item + module GetMemberGroups + class GetMemberGroupsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetMemberGroupsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_member_groups_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetMemberGroupsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/directory_objects/item/get_member_groups/get_member_groups_request_builder.rb b/lib/directory_objects/item/get_member_groups/get_member_groups_request_builder.rb index 62521ce29a..b9c6b9b5c9 100644 --- a/lib/directory_objects/item/get_member_groups/get_member_groups_request_builder.rb +++ b/lib/directory_objects/item/get_member_groups/get_member_groups_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/directoryObjects/{directoryObject%2Did}/getMemberGroups") end ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. + ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_groups_response + ## @return a Fiber of get_member_groups_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryObjects::Item::GetMemberGroups::GetMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryObjects::Item::GetMemberGroups::GetMemberGroupsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. + ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_member_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetMemberGroupsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_objects/item/get_member_groups/get_member_groups_response.rb b/lib/directory_objects/item/get_member_groups/get_member_groups_response.rb deleted file mode 100644 index 38ba4e1ee8..0000000000 --- a/lib/directory_objects/item/get_member_groups/get_member_groups_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../directory_objects' -require_relative '../item' -require_relative './get_member_groups' - -module MicrosoftGraph - module DirectoryObjects - module Item - module GetMemberGroups - class GetMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/directory_objects/item/get_member_objects/get_member_objects.rb b/lib/directory_objects/item/get_member_objects/get_member_objects.rb index 40edad6b9e..f7a486b0f9 100644 --- a/lib/directory_objects/item/get_member_objects/get_member_objects.rb +++ b/lib/directory_objects/item/get_member_objects/get_member_objects.rb @@ -1,2 +1,2 @@ require_relative 'get_member_objects_post_request_body' -require_relative 'get_member_objects_response' +require_relative 'get_member_objects_post_response' diff --git a/lib/directory_objects/item/get_member_objects/get_member_objects_post_request_body.rb b/lib/directory_objects/item/get_member_objects/get_member_objects_post_request_body.rb index a4242eb623..030b4e6346 100644 --- a/lib/directory_objects/item/get_member_objects/get_member_objects_post_request_body.rb +++ b/lib/directory_objects/item/get_member_objects/get_member_objects_post_request_body.rb @@ -17,22 +17,22 @@ class GetMemberObjectsPostRequestBody # The securityEnabledOnly property @security_enabled_only ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getMemberObjectsPostRequestBody and sets the default values. + ## Instantiates a new GetMemberObjectsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory_objects/item/get_member_objects/get_member_objects_post_response.rb b/lib/directory_objects/item/get_member_objects/get_member_objects_post_response.rb new file mode 100644 index 0000000000..c120a39846 --- /dev/null +++ b/lib/directory_objects/item/get_member_objects/get_member_objects_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../directory_objects' +require_relative '../item' +require_relative './get_member_objects' + +module MicrosoftGraph + module DirectoryObjects + module Item + module GetMemberObjects + class GetMemberObjectsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetMemberObjectsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_member_objects_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetMemberObjectsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/directory_objects/item/get_member_objects/get_member_objects_request_builder.rb b/lib/directory_objects/item/get_member_objects/get_member_objects_request_builder.rb index 4c4025bb15..d549801d19 100644 --- a/lib/directory_objects/item/get_member_objects/get_member_objects_request_builder.rb +++ b/lib/directory_objects/item/get_member_objects/get_member_objects_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/directoryObjects/{directoryObject%2Did}/getMemberObjects") end ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + ## Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_objects_response + ## @return a Fiber of get_member_objects_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryObjects::Item::GetMemberObjects::GetMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryObjects::Item::GetMemberObjects::GetMemberObjectsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + ## Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_member_objects_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetMemberObjectsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_objects/item/get_member_objects/get_member_objects_response.rb b/lib/directory_objects/item/get_member_objects/get_member_objects_response.rb deleted file mode 100644 index b22b378938..0000000000 --- a/lib/directory_objects/item/get_member_objects/get_member_objects_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../directory_objects' -require_relative '../item' -require_relative './get_member_objects' - -module MicrosoftGraph - module DirectoryObjects - module Item - module GetMemberObjects - class GetMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/directory_objects/item/restore/restore_request_builder.rb b/lib/directory_objects/item/restore/restore_request_builder.rb index 289f19af46..4da26f7ae9 100644 --- a/lib/directory_objects/item/restore/restore_request_builder.rb +++ b/lib/directory_objects/item/restore/restore_request_builder.rb @@ -24,7 +24,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/directoryObjects/{directoryObject%2Did}/restore") end ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object ## @@ -33,27 +33,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a restore_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RestoreRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_objects/validate_properties/validate_properties_post_request_body.rb b/lib/directory_objects/validate_properties/validate_properties_post_request_body.rb index fd72c3c542..863c6f13c3 100644 --- a/lib/directory_objects/validate_properties/validate_properties_post_request_body.rb +++ b/lib/directory_objects/validate_properties/validate_properties_post_request_body.rb @@ -24,22 +24,22 @@ class ValidatePropertiesPostRequestBody # The onBehalfOfUserId property @on_behalf_of_user_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new validatePropertiesPostRequestBody and sets the default values. + ## Instantiates a new ValidatePropertiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory_objects/validate_properties/validate_properties_request_builder.rb b/lib/directory_objects/validate_properties/validate_properties_request_builder.rb index 8152a9b621..b728635689 100644 --- a/lib/directory_objects/validate_properties/validate_properties_request_builder.rb +++ b/lib/directory_objects/validate_properties/validate_properties_request_builder.rb @@ -32,8 +32,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,16 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a validate_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ValidatePropertiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_role_templates/count/count_request_builder.rb b/lib/directory_role_templates/count/count_request_builder.rb index a74a2353d1..39eaf17dbb 100644 --- a/lib/directory_role_templates/count/count_request_builder.rb +++ b/lib/directory_role_templates/count/count_request_builder.rb @@ -18,7 +18,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoleTemplates/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoleTemplates/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -30,8 +30,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -41,17 +40,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory_role_templates/delta/delta.rb b/lib/directory_role_templates/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/directory_role_templates/delta/delta.rb +++ b/lib/directory_role_templates/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/directory_role_templates/delta/delta_get_response.rb b/lib/directory_role_templates/delta/delta_get_response.rb new file mode 100644 index 0000000000..920d677b73 --- /dev/null +++ b/lib/directory_role_templates/delta/delta_get_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_delta_function_response' +require_relative '../../models/directory_object' +require_relative '../directory_role_templates' +require_relative './delta' + +module MicrosoftGraph + module DirectoryRoleTemplates + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a directory_object + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/directory_role_templates/delta/delta_request_builder.rb b/lib/directory_role_templates/delta/delta_request_builder.rb index 09342b0ab4..bcc3cf32b0 100644 --- a/lib/directory_role_templates/delta/delta_request_builder.rb +++ b/lib/directory_role_templates/delta/delta_request_builder.rb @@ -18,49 +18,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoleTemplates/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoleTemplates/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoleTemplates::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoleTemplates::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # 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 ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -88,6 +99,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/directory_role_templates/delta/delta_response.rb b/lib/directory_role_templates/delta/delta_response.rb deleted file mode 100644 index fe1ec75c7d..0000000000 --- a/lib/directory_role_templates/delta/delta_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_delta_function_response' -require_relative '../../models/directory_object' -require_relative '../directory_role_templates' -require_relative './delta' - -module MicrosoftGraph - module DirectoryRoleTemplates - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/directory_role_templates/directory_role_templates_request_builder.rb b/lib/directory_role_templates/directory_role_templates_request_builder.rb index 2f27f20438..a4db423e8a 100644 --- a/lib/directory_role_templates/directory_role_templates_request_builder.rb +++ b/lib/directory_role_templates/directory_role_templates_request_builder.rb @@ -60,7 +60,7 @@ def by_directory_role_template_id(directory_role_template_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoleTemplates{?%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoleTemplates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of directoryRoleTemplate objects. @@ -72,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryRoleTemplateCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,8 +87,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryRoleTemplate.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,15 +97,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -119,17 +117,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directory_role_templates_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoryRoleTemplatesRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of directoryRoleTemplate objects. @@ -157,6 +164,9 @@ class DirectoryRoleTemplatesRequestBuilderGetQueryParameters # Skip the first n items attr_accessor :skip ## + # Show only the first n items + attr_accessor :top + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -178,6 +188,8 @@ def get_query_parameter(original_name) return "%24select" when "skip" return "%24skip" + when "top" + return "%24top" else return original_name end diff --git a/lib/directory_role_templates/get_available_extension_properties/get_available_extension_properties.rb b/lib/directory_role_templates/get_available_extension_properties/get_available_extension_properties.rb index b6fee576bf..ce1b642cad 100644 --- a/lib/directory_role_templates/get_available_extension_properties/get_available_extension_properties.rb +++ b/lib/directory_role_templates/get_available_extension_properties/get_available_extension_properties.rb @@ -1,2 +1,2 @@ require_relative 'get_available_extension_properties_post_request_body' -require_relative 'get_available_extension_properties_response' +require_relative 'get_available_extension_properties_post_response' diff --git a/lib/directory_role_templates/get_available_extension_properties/get_available_extension_properties_post_request_body.rb b/lib/directory_role_templates/get_available_extension_properties/get_available_extension_properties_post_request_body.rb index 4854882445..f2e7adc0ef 100644 --- a/lib/directory_role_templates/get_available_extension_properties/get_available_extension_properties_post_request_body.rb +++ b/lib/directory_role_templates/get_available_extension_properties/get_available_extension_properties_post_request_body.rb @@ -15,22 +15,22 @@ class GetAvailableExtensionPropertiesPostRequestBody # The isSyncedFromOnPremises property @is_synced_from_on_premises ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getAvailableExtensionPropertiesPostRequestBody and sets the default values. + ## Instantiates a new GetAvailableExtensionPropertiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory_role_templates/get_available_extension_properties/get_available_extension_properties_post_response.rb b/lib/directory_role_templates/get_available_extension_properties/get_available_extension_properties_post_response.rb new file mode 100644 index 0000000000..7f5d74b86a --- /dev/null +++ b/lib/directory_role_templates/get_available_extension_properties/get_available_extension_properties_post_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_collection_pagination_count_response' +require_relative '../../models/extension_property' +require_relative '../directory_role_templates' +require_relative './get_available_extension_properties' + +module MicrosoftGraph + module DirectoryRoleTemplates + module GetAvailableExtensionProperties + class GetAvailableExtensionPropertiesPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetAvailableExtensionPropertiesPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_available_extension_properties_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetAvailableExtensionPropertiesPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a extension_property + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/directory_role_templates/get_available_extension_properties/get_available_extension_properties_request_builder.rb b/lib/directory_role_templates/get_available_extension_properties/get_available_extension_properties_request_builder.rb index f32ee95860..71a36a9557 100644 --- a/lib/directory_role_templates/get_available_extension_properties/get_available_extension_properties_request_builder.rb +++ b/lib/directory_role_templates/get_available_extension_properties/get_available_extension_properties_request_builder.rb @@ -21,10 +21,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/directoryRoleTemplates/getAvailableExtensionProperties") end ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_available_extension_properties_response + ## @return a Fiber of get_available_extension_properties_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -32,12 +32,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoleTemplates::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoleTemplates::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -45,17 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_available_extension_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetAvailableExtensionPropertiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_role_templates/get_available_extension_properties/get_available_extension_properties_response.rb b/lib/directory_role_templates/get_available_extension_properties/get_available_extension_properties_response.rb deleted file mode 100644 index 2844a91cbc..0000000000 --- a/lib/directory_role_templates/get_available_extension_properties/get_available_extension_properties_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_collection_pagination_count_response' -require_relative '../../models/extension_property' -require_relative '../directory_role_templates' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module DirectoryRoleTemplates - module GetAvailableExtensionProperties - class GetAvailableExtensionPropertiesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_available_extension_properties_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAvailableExtensionPropertiesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a extension_property - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/directory_role_templates/get_by_ids/get_by_ids.rb b/lib/directory_role_templates/get_by_ids/get_by_ids.rb index e4b0824834..131a179969 100644 --- a/lib/directory_role_templates/get_by_ids/get_by_ids.rb +++ b/lib/directory_role_templates/get_by_ids/get_by_ids.rb @@ -1,2 +1,2 @@ require_relative 'get_by_ids_post_request_body' -require_relative 'get_by_ids_response' +require_relative 'get_by_ids_post_response' diff --git a/lib/directory_role_templates/get_by_ids/get_by_ids_post_request_body.rb b/lib/directory_role_templates/get_by_ids/get_by_ids_post_request_body.rb index 93acca9dcc..15eb3d9e75 100644 --- a/lib/directory_role_templates/get_by_ids/get_by_ids_post_request_body.rb +++ b/lib/directory_role_templates/get_by_ids/get_by_ids_post_request_body.rb @@ -18,22 +18,22 @@ class GetByIdsPostRequestBody # The types property @types ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getByIdsPostRequestBody and sets the default values. + ## Instantiates a new GetByIdsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory_role_templates/get_by_ids/get_by_ids_post_response.rb b/lib/directory_role_templates/get_by_ids/get_by_ids_post_response.rb new file mode 100644 index 0000000000..41603c24da --- /dev/null +++ b/lib/directory_role_templates/get_by_ids/get_by_ids_post_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_collection_pagination_count_response' +require_relative '../../models/directory_object' +require_relative '../directory_role_templates' +require_relative './get_by_ids' + +module MicrosoftGraph + module DirectoryRoleTemplates + module GetByIds + class GetByIdsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetByIdsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_by_ids_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetByIdsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a directory_object + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/directory_role_templates/get_by_ids/get_by_ids_request_builder.rb b/lib/directory_role_templates/get_by_ids/get_by_ids_request_builder.rb index dda56daf33..d67bfb4788 100644 --- a/lib/directory_role_templates/get_by_ids/get_by_ids_request_builder.rb +++ b/lib/directory_role_templates/get_by_ids/get_by_ids_request_builder.rb @@ -24,7 +24,7 @@ def initialize(path_parameters, request_adapter) ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_by_ids_response + ## @return a Fiber of get_by_ids_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -32,9 +32,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoleTemplates::GetByIds::GetByIdsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoleTemplates::GetByIds::GetByIdsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: @@ -45,17 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_by_ids_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetByIdsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_role_templates/get_by_ids/get_by_ids_response.rb b/lib/directory_role_templates/get_by_ids/get_by_ids_response.rb deleted file mode 100644 index d133762b72..0000000000 --- a/lib/directory_role_templates/get_by_ids/get_by_ids_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_collection_pagination_count_response' -require_relative '../../models/directory_object' -require_relative '../directory_role_templates' -require_relative './get_by_ids' - -module MicrosoftGraph - module DirectoryRoleTemplates - module GetByIds - class GetByIdsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getByIdsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_by_ids_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetByIdsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/directory_role_templates/item/check_member_groups/check_member_groups.rb b/lib/directory_role_templates/item/check_member_groups/check_member_groups.rb index 938b908522..98148024fe 100644 --- a/lib/directory_role_templates/item/check_member_groups/check_member_groups.rb +++ b/lib/directory_role_templates/item/check_member_groups/check_member_groups.rb @@ -1,2 +1,2 @@ require_relative 'check_member_groups_post_request_body' -require_relative 'check_member_groups_response' +require_relative 'check_member_groups_post_response' diff --git a/lib/directory_role_templates/item/check_member_groups/check_member_groups_post_request_body.rb b/lib/directory_role_templates/item/check_member_groups/check_member_groups_post_request_body.rb index 2692222f6d..1fd2145e70 100644 --- a/lib/directory_role_templates/item/check_member_groups/check_member_groups_post_request_body.rb +++ b/lib/directory_role_templates/item/check_member_groups/check_member_groups_post_request_body.rb @@ -17,22 +17,22 @@ class CheckMemberGroupsPostRequestBody # The groupIds property @group_ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new checkMemberGroupsPostRequestBody and sets the default values. + ## Instantiates a new CheckMemberGroupsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory_role_templates/item/check_member_groups/check_member_groups_post_response.rb b/lib/directory_role_templates/item/check_member_groups/check_member_groups_post_response.rb new file mode 100644 index 0000000000..effcc0cf71 --- /dev/null +++ b/lib/directory_role_templates/item/check_member_groups/check_member_groups_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../directory_role_templates' +require_relative '../item' +require_relative './check_member_groups' + +module MicrosoftGraph + module DirectoryRoleTemplates + module Item + module CheckMemberGroups + class CheckMemberGroupsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new CheckMemberGroupsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a check_member_groups_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CheckMemberGroupsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/directory_role_templates/item/check_member_groups/check_member_groups_request_builder.rb b/lib/directory_role_templates/item/check_member_groups/check_member_groups_request_builder.rb index b878a8d7ab..ff31cfee7b 100644 --- a/lib/directory_role_templates/item/check_member_groups/check_member_groups_request_builder.rb +++ b/lib/directory_role_templates/item/check_member_groups/check_member_groups_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/checkMemberGroups") end ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + ## Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_groups_response + ## @return a Fiber of check_member_groups_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoleTemplates::Item::CheckMemberGroups::CheckMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoleTemplates::Item::CheckMemberGroups::CheckMemberGroupsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + ## Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a check_member_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CheckMemberGroupsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_role_templates/item/check_member_groups/check_member_groups_response.rb b/lib/directory_role_templates/item/check_member_groups/check_member_groups_response.rb deleted file mode 100644 index b77d5f0a59..0000000000 --- a/lib/directory_role_templates/item/check_member_groups/check_member_groups_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../directory_role_templates' -require_relative '../item' -require_relative './check_member_groups' - -module MicrosoftGraph - module DirectoryRoleTemplates - module Item - module CheckMemberGroups - class CheckMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/directory_role_templates/item/check_member_objects/check_member_objects.rb b/lib/directory_role_templates/item/check_member_objects/check_member_objects.rb index 67fbf971e7..1826285d49 100644 --- a/lib/directory_role_templates/item/check_member_objects/check_member_objects.rb +++ b/lib/directory_role_templates/item/check_member_objects/check_member_objects.rb @@ -1,2 +1,2 @@ require_relative 'check_member_objects_post_request_body' -require_relative 'check_member_objects_response' +require_relative 'check_member_objects_post_response' diff --git a/lib/directory_role_templates/item/check_member_objects/check_member_objects_post_request_body.rb b/lib/directory_role_templates/item/check_member_objects/check_member_objects_post_request_body.rb index 3234e14323..eaa547625c 100644 --- a/lib/directory_role_templates/item/check_member_objects/check_member_objects_post_request_body.rb +++ b/lib/directory_role_templates/item/check_member_objects/check_member_objects_post_request_body.rb @@ -17,22 +17,22 @@ class CheckMemberObjectsPostRequestBody # The ids property @ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new checkMemberObjectsPostRequestBody and sets the default values. + ## Instantiates a new CheckMemberObjectsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory_role_templates/item/check_member_objects/check_member_objects_post_response.rb b/lib/directory_role_templates/item/check_member_objects/check_member_objects_post_response.rb new file mode 100644 index 0000000000..b7df4588e0 --- /dev/null +++ b/lib/directory_role_templates/item/check_member_objects/check_member_objects_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../directory_role_templates' +require_relative '../item' +require_relative './check_member_objects' + +module MicrosoftGraph + module DirectoryRoleTemplates + module Item + module CheckMemberObjects + class CheckMemberObjectsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new CheckMemberObjectsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a check_member_objects_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CheckMemberObjectsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/directory_role_templates/item/check_member_objects/check_member_objects_request_builder.rb b/lib/directory_role_templates/item/check_member_objects/check_member_objects_request_builder.rb index 48df6299f5..5a0b0f3d08 100644 --- a/lib/directory_role_templates/item/check_member_objects/check_member_objects_request_builder.rb +++ b/lib/directory_role_templates/item/check_member_objects/check_member_objects_request_builder.rb @@ -26,7 +26,7 @@ def initialize(path_parameters, request_adapter) ## Invoke action checkMemberObjects ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_objects_response + ## @return a Fiber of check_member_objects_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,9 +34,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoleTemplates::Item::CheckMemberObjects::CheckMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoleTemplates::Item::CheckMemberObjects::CheckMemberObjectsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke action checkMemberObjects @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a check_member_objects_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CheckMemberObjectsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_role_templates/item/check_member_objects/check_member_objects_response.rb b/lib/directory_role_templates/item/check_member_objects/check_member_objects_response.rb deleted file mode 100644 index bda20bdbad..0000000000 --- a/lib/directory_role_templates/item/check_member_objects/check_member_objects_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../directory_role_templates' -require_relative '../item' -require_relative './check_member_objects' - -module MicrosoftGraph - module DirectoryRoleTemplates - module Item - module CheckMemberObjects - class CheckMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/directory_role_templates/item/directory_role_template_item_request_builder.rb b/lib/directory_role_templates/item/directory_role_template_item_request_builder.rb index ad230c5ecb..8b37f36345 100644 --- a/lib/directory_role_templates/item/directory_role_template_item_request_builder.rb +++ b/lib/directory_role_templates/item/directory_role_template_item_request_builder.rb @@ -49,7 +49,7 @@ def restore() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}{?%24expand,%24select}") end ## ## Delete entity from directoryRoleTemplates @@ -61,8 +61,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -75,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryRoleTemplate.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryRoleTemplate.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,13 +99,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,15 +116,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,17 +136,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directory_role_template_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoryRoleTemplateItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of a directoryroletemplate object. diff --git a/lib/directory_role_templates/item/get_member_groups/get_member_groups.rb b/lib/directory_role_templates/item/get_member_groups/get_member_groups.rb index 0a25b012ea..9190b99738 100644 --- a/lib/directory_role_templates/item/get_member_groups/get_member_groups.rb +++ b/lib/directory_role_templates/item/get_member_groups/get_member_groups.rb @@ -1,2 +1,2 @@ require_relative 'get_member_groups_post_request_body' -require_relative 'get_member_groups_response' +require_relative 'get_member_groups_post_response' diff --git a/lib/directory_role_templates/item/get_member_groups/get_member_groups_post_request_body.rb b/lib/directory_role_templates/item/get_member_groups/get_member_groups_post_request_body.rb index 4e9c4ac2ec..ddc012824c 100644 --- a/lib/directory_role_templates/item/get_member_groups/get_member_groups_post_request_body.rb +++ b/lib/directory_role_templates/item/get_member_groups/get_member_groups_post_request_body.rb @@ -17,22 +17,22 @@ class GetMemberGroupsPostRequestBody # The securityEnabledOnly property @security_enabled_only ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getMemberGroupsPostRequestBody and sets the default values. + ## Instantiates a new GetMemberGroupsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory_role_templates/item/get_member_groups/get_member_groups_post_response.rb b/lib/directory_role_templates/item/get_member_groups/get_member_groups_post_response.rb new file mode 100644 index 0000000000..b7a80a213c --- /dev/null +++ b/lib/directory_role_templates/item/get_member_groups/get_member_groups_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../directory_role_templates' +require_relative '../item' +require_relative './get_member_groups' + +module MicrosoftGraph + module DirectoryRoleTemplates + module Item + module GetMemberGroups + class GetMemberGroupsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetMemberGroupsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_member_groups_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetMemberGroupsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/directory_role_templates/item/get_member_groups/get_member_groups_request_builder.rb b/lib/directory_role_templates/item/get_member_groups/get_member_groups_request_builder.rb index 430df6d066..c422c54817 100644 --- a/lib/directory_role_templates/item/get_member_groups/get_member_groups_request_builder.rb +++ b/lib/directory_role_templates/item/get_member_groups/get_member_groups_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/getMemberGroups") end ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. + ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_groups_response + ## @return a Fiber of get_member_groups_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoleTemplates::Item::GetMemberGroups::GetMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoleTemplates::Item::GetMemberGroups::GetMemberGroupsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. + ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_member_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetMemberGroupsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_role_templates/item/get_member_groups/get_member_groups_response.rb b/lib/directory_role_templates/item/get_member_groups/get_member_groups_response.rb deleted file mode 100644 index 9b31631e04..0000000000 --- a/lib/directory_role_templates/item/get_member_groups/get_member_groups_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../directory_role_templates' -require_relative '../item' -require_relative './get_member_groups' - -module MicrosoftGraph - module DirectoryRoleTemplates - module Item - module GetMemberGroups - class GetMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/directory_role_templates/item/get_member_objects/get_member_objects.rb b/lib/directory_role_templates/item/get_member_objects/get_member_objects.rb index 40edad6b9e..f7a486b0f9 100644 --- a/lib/directory_role_templates/item/get_member_objects/get_member_objects.rb +++ b/lib/directory_role_templates/item/get_member_objects/get_member_objects.rb @@ -1,2 +1,2 @@ require_relative 'get_member_objects_post_request_body' -require_relative 'get_member_objects_response' +require_relative 'get_member_objects_post_response' diff --git a/lib/directory_role_templates/item/get_member_objects/get_member_objects_post_request_body.rb b/lib/directory_role_templates/item/get_member_objects/get_member_objects_post_request_body.rb index b7e80d4fbd..ccf2d32510 100644 --- a/lib/directory_role_templates/item/get_member_objects/get_member_objects_post_request_body.rb +++ b/lib/directory_role_templates/item/get_member_objects/get_member_objects_post_request_body.rb @@ -17,22 +17,22 @@ class GetMemberObjectsPostRequestBody # The securityEnabledOnly property @security_enabled_only ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getMemberObjectsPostRequestBody and sets the default values. + ## Instantiates a new GetMemberObjectsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory_role_templates/item/get_member_objects/get_member_objects_post_response.rb b/lib/directory_role_templates/item/get_member_objects/get_member_objects_post_response.rb new file mode 100644 index 0000000000..6b3ce260db --- /dev/null +++ b/lib/directory_role_templates/item/get_member_objects/get_member_objects_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../directory_role_templates' +require_relative '../item' +require_relative './get_member_objects' + +module MicrosoftGraph + module DirectoryRoleTemplates + module Item + module GetMemberObjects + class GetMemberObjectsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetMemberObjectsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_member_objects_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetMemberObjectsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/directory_role_templates/item/get_member_objects/get_member_objects_request_builder.rb b/lib/directory_role_templates/item/get_member_objects/get_member_objects_request_builder.rb index 7e1322631c..d8c48ffded 100644 --- a/lib/directory_role_templates/item/get_member_objects/get_member_objects_request_builder.rb +++ b/lib/directory_role_templates/item/get_member_objects/get_member_objects_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/getMemberObjects") end ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + ## Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_objects_response + ## @return a Fiber of get_member_objects_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoleTemplates::Item::GetMemberObjects::GetMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoleTemplates::Item::GetMemberObjects::GetMemberObjectsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + ## Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_member_objects_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetMemberObjectsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_role_templates/item/get_member_objects/get_member_objects_response.rb b/lib/directory_role_templates/item/get_member_objects/get_member_objects_response.rb deleted file mode 100644 index 5994ff778d..0000000000 --- a/lib/directory_role_templates/item/get_member_objects/get_member_objects_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../directory_role_templates' -require_relative '../item' -require_relative './get_member_objects' - -module MicrosoftGraph - module DirectoryRoleTemplates - module Item - module GetMemberObjects - class GetMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/directory_role_templates/item/restore/restore_request_builder.rb b/lib/directory_role_templates/item/restore/restore_request_builder.rb index 1e71fd2304..f5e81a887c 100644 --- a/lib/directory_role_templates/item/restore/restore_request_builder.rb +++ b/lib/directory_role_templates/item/restore/restore_request_builder.rb @@ -24,7 +24,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/restore") end ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object ## @@ -33,27 +33,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a restore_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RestoreRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_role_templates/validate_properties/validate_properties_post_request_body.rb b/lib/directory_role_templates/validate_properties/validate_properties_post_request_body.rb index 8f0d619e83..afe6f3f342 100644 --- a/lib/directory_role_templates/validate_properties/validate_properties_post_request_body.rb +++ b/lib/directory_role_templates/validate_properties/validate_properties_post_request_body.rb @@ -24,22 +24,22 @@ class ValidatePropertiesPostRequestBody # The onBehalfOfUserId property @on_behalf_of_user_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new validatePropertiesPostRequestBody and sets the default values. + ## Instantiates a new ValidatePropertiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory_role_templates/validate_properties/validate_properties_request_builder.rb b/lib/directory_role_templates/validate_properties/validate_properties_request_builder.rb index f949af7a55..7e7e5812d5 100644 --- a/lib/directory_role_templates/validate_properties/validate_properties_request_builder.rb +++ b/lib/directory_role_templates/validate_properties/validate_properties_request_builder.rb @@ -32,8 +32,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,16 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a validate_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ValidatePropertiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_roles/count/count_request_builder.rb b/lib/directory_roles/count/count_request_builder.rb index 7f42b66f25..aeeb1bdb83 100644 --- a/lib/directory_roles/count/count_request_builder.rb +++ b/lib/directory_roles/count/count_request_builder.rb @@ -18,7 +18,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -30,8 +30,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -41,17 +40,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory_roles/delta/delta.rb b/lib/directory_roles/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/directory_roles/delta/delta.rb +++ b/lib/directory_roles/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/directory_roles/delta/delta_get_response.rb b/lib/directory_roles/delta/delta_get_response.rb new file mode 100644 index 0000000000..374fa2deda --- /dev/null +++ b/lib/directory_roles/delta/delta_get_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_delta_function_response' +require_relative '../../models/directory_role' +require_relative '../directory_roles' +require_relative './delta' + +module MicrosoftGraph + module DirectoryRoles + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryRole.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a directory_role + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/directory_roles/delta/delta_request_builder.rb b/lib/directory_roles/delta/delta_request_builder.rb index 70a98b5a8b..733bb440a8 100644 --- a/lib/directory_roles/delta/delta_request_builder.rb +++ b/lib/directory_roles/delta/delta_request_builder.rb @@ -18,49 +18,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## Get newly created, updated, or deleted directory roles without having to perform a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoles::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoles::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## Get newly created, updated, or deleted directory roles without having to perform a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # Get newly created, updated, or deleted directory roles without having to perform a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. class DeltaRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -88,6 +99,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/directory_roles/delta/delta_response.rb b/lib/directory_roles/delta/delta_response.rb deleted file mode 100644 index aa20962281..0000000000 --- a/lib/directory_roles/delta/delta_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_delta_function_response' -require_relative '../../models/directory_role' -require_relative '../directory_roles' -require_relative './delta' - -module MicrosoftGraph - module DirectoryRoles - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryRole.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_role - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/directory_roles/directory_roles_request_builder.rb b/lib/directory_roles/directory_roles_request_builder.rb index e06433db5c..73dcfb2ba8 100644 --- a/lib/directory_roles/directory_roles_request_builder.rb +++ b/lib/directory_roles/directory_roles_request_builder.rb @@ -60,10 +60,10 @@ def by_directory_role_id(directory_role_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles{?%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Azure portal, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Azure AD, use List directoryRoleTemplates. + ## List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Microsoft Entra admin center, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Microsoft Entra ID, use List directoryRoleTemplates. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_role_collection_response ## @@ -72,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryRoleCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,26 +87,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryRole.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Azure portal, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Azure AD, use List directoryRoleTemplates. + ## List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Microsoft Entra admin center, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Microsoft Entra ID, use List directoryRoleTemplates. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -119,20 +117,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directory_roles_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoryRolesRequestBuilder.new(raw_url, @request_adapter) + end ## - # List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Azure portal, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Azure AD, use List directoryRoleTemplates. + # List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Microsoft Entra admin center, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Microsoft Entra ID, use List directoryRoleTemplates. class DirectoryRolesRequestBuilderGetQueryParameters ## @@ -157,6 +164,9 @@ class DirectoryRolesRequestBuilderGetQueryParameters # Skip the first n items attr_accessor :skip ## + # Show only the first n items + attr_accessor :top + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -178,6 +188,8 @@ def get_query_parameter(original_name) return "%24select" when "skip" return "%24skip" + when "top" + return "%24top" else return original_name end diff --git a/lib/directory_roles/get_available_extension_properties/get_available_extension_properties.rb b/lib/directory_roles/get_available_extension_properties/get_available_extension_properties.rb index b6fee576bf..ce1b642cad 100644 --- a/lib/directory_roles/get_available_extension_properties/get_available_extension_properties.rb +++ b/lib/directory_roles/get_available_extension_properties/get_available_extension_properties.rb @@ -1,2 +1,2 @@ require_relative 'get_available_extension_properties_post_request_body' -require_relative 'get_available_extension_properties_response' +require_relative 'get_available_extension_properties_post_response' diff --git a/lib/directory_roles/get_available_extension_properties/get_available_extension_properties_post_request_body.rb b/lib/directory_roles/get_available_extension_properties/get_available_extension_properties_post_request_body.rb index 5ce3bbe642..38ad2296a4 100644 --- a/lib/directory_roles/get_available_extension_properties/get_available_extension_properties_post_request_body.rb +++ b/lib/directory_roles/get_available_extension_properties/get_available_extension_properties_post_request_body.rb @@ -15,22 +15,22 @@ class GetAvailableExtensionPropertiesPostRequestBody # The isSyncedFromOnPremises property @is_synced_from_on_premises ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getAvailableExtensionPropertiesPostRequestBody and sets the default values. + ## Instantiates a new GetAvailableExtensionPropertiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory_roles/get_available_extension_properties/get_available_extension_properties_post_response.rb b/lib/directory_roles/get_available_extension_properties/get_available_extension_properties_post_response.rb new file mode 100644 index 0000000000..2f92aed3b8 --- /dev/null +++ b/lib/directory_roles/get_available_extension_properties/get_available_extension_properties_post_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_collection_pagination_count_response' +require_relative '../../models/extension_property' +require_relative '../directory_roles' +require_relative './get_available_extension_properties' + +module MicrosoftGraph + module DirectoryRoles + module GetAvailableExtensionProperties + class GetAvailableExtensionPropertiesPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetAvailableExtensionPropertiesPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_available_extension_properties_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetAvailableExtensionPropertiesPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a extension_property + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/directory_roles/get_available_extension_properties/get_available_extension_properties_request_builder.rb b/lib/directory_roles/get_available_extension_properties/get_available_extension_properties_request_builder.rb index 5fe0500375..c56f80af9d 100644 --- a/lib/directory_roles/get_available_extension_properties/get_available_extension_properties_request_builder.rb +++ b/lib/directory_roles/get_available_extension_properties/get_available_extension_properties_request_builder.rb @@ -21,10 +21,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/getAvailableExtensionProperties") end ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_available_extension_properties_response + ## @return a Fiber of get_available_extension_properties_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -32,12 +32,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoles::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoles::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -45,17 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_available_extension_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetAvailableExtensionPropertiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_roles/get_available_extension_properties/get_available_extension_properties_response.rb b/lib/directory_roles/get_available_extension_properties/get_available_extension_properties_response.rb deleted file mode 100644 index 406e7e08a5..0000000000 --- a/lib/directory_roles/get_available_extension_properties/get_available_extension_properties_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_collection_pagination_count_response' -require_relative '../../models/extension_property' -require_relative '../directory_roles' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module DirectoryRoles - module GetAvailableExtensionProperties - class GetAvailableExtensionPropertiesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_available_extension_properties_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAvailableExtensionPropertiesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a extension_property - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/directory_roles/get_by_ids/get_by_ids.rb b/lib/directory_roles/get_by_ids/get_by_ids.rb index e4b0824834..131a179969 100644 --- a/lib/directory_roles/get_by_ids/get_by_ids.rb +++ b/lib/directory_roles/get_by_ids/get_by_ids.rb @@ -1,2 +1,2 @@ require_relative 'get_by_ids_post_request_body' -require_relative 'get_by_ids_response' +require_relative 'get_by_ids_post_response' diff --git a/lib/directory_roles/get_by_ids/get_by_ids_post_request_body.rb b/lib/directory_roles/get_by_ids/get_by_ids_post_request_body.rb index 7f45aa8f06..639a92ed90 100644 --- a/lib/directory_roles/get_by_ids/get_by_ids_post_request_body.rb +++ b/lib/directory_roles/get_by_ids/get_by_ids_post_request_body.rb @@ -18,22 +18,22 @@ class GetByIdsPostRequestBody # The types property @types ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getByIdsPostRequestBody and sets the default values. + ## Instantiates a new GetByIdsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory_roles/get_by_ids/get_by_ids_post_response.rb b/lib/directory_roles/get_by_ids/get_by_ids_post_response.rb new file mode 100644 index 0000000000..43cbfd3daa --- /dev/null +++ b/lib/directory_roles/get_by_ids/get_by_ids_post_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_collection_pagination_count_response' +require_relative '../../models/directory_object' +require_relative '../directory_roles' +require_relative './get_by_ids' + +module MicrosoftGraph + module DirectoryRoles + module GetByIds + class GetByIdsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetByIdsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_by_ids_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetByIdsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a directory_object + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/directory_roles/get_by_ids/get_by_ids_request_builder.rb b/lib/directory_roles/get_by_ids/get_by_ids_request_builder.rb index 92a43be24c..c6b9b55fb1 100644 --- a/lib/directory_roles/get_by_ids/get_by_ids_request_builder.rb +++ b/lib/directory_roles/get_by_ids/get_by_ids_request_builder.rb @@ -24,7 +24,7 @@ def initialize(path_parameters, request_adapter) ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_by_ids_response + ## @return a Fiber of get_by_ids_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -32,9 +32,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoles::GetByIds::GetByIdsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoles::GetByIds::GetByIdsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: @@ -45,17 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_by_ids_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetByIdsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_roles/get_by_ids/get_by_ids_response.rb b/lib/directory_roles/get_by_ids/get_by_ids_response.rb deleted file mode 100644 index bef0472dfc..0000000000 --- a/lib/directory_roles/get_by_ids/get_by_ids_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_collection_pagination_count_response' -require_relative '../../models/directory_object' -require_relative '../directory_roles' -require_relative './get_by_ids' - -module MicrosoftGraph - module DirectoryRoles - module GetByIds - class GetByIdsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getByIdsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_by_ids_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetByIdsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/directory_roles/item/check_member_groups/check_member_groups.rb b/lib/directory_roles/item/check_member_groups/check_member_groups.rb index 938b908522..98148024fe 100644 --- a/lib/directory_roles/item/check_member_groups/check_member_groups.rb +++ b/lib/directory_roles/item/check_member_groups/check_member_groups.rb @@ -1,2 +1,2 @@ require_relative 'check_member_groups_post_request_body' -require_relative 'check_member_groups_response' +require_relative 'check_member_groups_post_response' diff --git a/lib/directory_roles/item/check_member_groups/check_member_groups_post_request_body.rb b/lib/directory_roles/item/check_member_groups/check_member_groups_post_request_body.rb index 4089662235..c5df884607 100644 --- a/lib/directory_roles/item/check_member_groups/check_member_groups_post_request_body.rb +++ b/lib/directory_roles/item/check_member_groups/check_member_groups_post_request_body.rb @@ -17,22 +17,22 @@ class CheckMemberGroupsPostRequestBody # The groupIds property @group_ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new checkMemberGroupsPostRequestBody and sets the default values. + ## Instantiates a new CheckMemberGroupsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory_roles/item/check_member_groups/check_member_groups_post_response.rb b/lib/directory_roles/item/check_member_groups/check_member_groups_post_response.rb new file mode 100644 index 0000000000..0f540d5b60 --- /dev/null +++ b/lib/directory_roles/item/check_member_groups/check_member_groups_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../directory_roles' +require_relative '../item' +require_relative './check_member_groups' + +module MicrosoftGraph + module DirectoryRoles + module Item + module CheckMemberGroups + class CheckMemberGroupsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new CheckMemberGroupsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a check_member_groups_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CheckMemberGroupsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/directory_roles/item/check_member_groups/check_member_groups_request_builder.rb b/lib/directory_roles/item/check_member_groups/check_member_groups_request_builder.rb index 644042ab65..29cd8c124a 100644 --- a/lib/directory_roles/item/check_member_groups/check_member_groups_request_builder.rb +++ b/lib/directory_roles/item/check_member_groups/check_member_groups_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/checkMemberGroups") end ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + ## Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_groups_response + ## @return a Fiber of check_member_groups_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoles::Item::CheckMemberGroups::CheckMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoles::Item::CheckMemberGroups::CheckMemberGroupsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + ## Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a check_member_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CheckMemberGroupsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_roles/item/check_member_groups/check_member_groups_response.rb b/lib/directory_roles/item/check_member_groups/check_member_groups_response.rb deleted file mode 100644 index 5e22162d5a..0000000000 --- a/lib/directory_roles/item/check_member_groups/check_member_groups_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../directory_roles' -require_relative '../item' -require_relative './check_member_groups' - -module MicrosoftGraph - module DirectoryRoles - module Item - module CheckMemberGroups - class CheckMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/directory_roles/item/check_member_objects/check_member_objects.rb b/lib/directory_roles/item/check_member_objects/check_member_objects.rb index 67fbf971e7..1826285d49 100644 --- a/lib/directory_roles/item/check_member_objects/check_member_objects.rb +++ b/lib/directory_roles/item/check_member_objects/check_member_objects.rb @@ -1,2 +1,2 @@ require_relative 'check_member_objects_post_request_body' -require_relative 'check_member_objects_response' +require_relative 'check_member_objects_post_response' diff --git a/lib/directory_roles/item/check_member_objects/check_member_objects_post_request_body.rb b/lib/directory_roles/item/check_member_objects/check_member_objects_post_request_body.rb index 82c631e9ce..8104c3f510 100644 --- a/lib/directory_roles/item/check_member_objects/check_member_objects_post_request_body.rb +++ b/lib/directory_roles/item/check_member_objects/check_member_objects_post_request_body.rb @@ -17,22 +17,22 @@ class CheckMemberObjectsPostRequestBody # The ids property @ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new checkMemberObjectsPostRequestBody and sets the default values. + ## Instantiates a new CheckMemberObjectsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory_roles/item/check_member_objects/check_member_objects_post_response.rb b/lib/directory_roles/item/check_member_objects/check_member_objects_post_response.rb new file mode 100644 index 0000000000..025fb955b6 --- /dev/null +++ b/lib/directory_roles/item/check_member_objects/check_member_objects_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../directory_roles' +require_relative '../item' +require_relative './check_member_objects' + +module MicrosoftGraph + module DirectoryRoles + module Item + module CheckMemberObjects + class CheckMemberObjectsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new CheckMemberObjectsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a check_member_objects_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CheckMemberObjectsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/directory_roles/item/check_member_objects/check_member_objects_request_builder.rb b/lib/directory_roles/item/check_member_objects/check_member_objects_request_builder.rb index 4fe8225fa5..c9b96b3be7 100644 --- a/lib/directory_roles/item/check_member_objects/check_member_objects_request_builder.rb +++ b/lib/directory_roles/item/check_member_objects/check_member_objects_request_builder.rb @@ -26,7 +26,7 @@ def initialize(path_parameters, request_adapter) ## Invoke action checkMemberObjects ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_objects_response + ## @return a Fiber of check_member_objects_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,9 +34,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoles::Item::CheckMemberObjects::CheckMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoles::Item::CheckMemberObjects::CheckMemberObjectsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke action checkMemberObjects @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a check_member_objects_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CheckMemberObjectsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_roles/item/check_member_objects/check_member_objects_response.rb b/lib/directory_roles/item/check_member_objects/check_member_objects_response.rb deleted file mode 100644 index 730228c019..0000000000 --- a/lib/directory_roles/item/check_member_objects/check_member_objects_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../directory_roles' -require_relative '../item' -require_relative './check_member_objects' - -module MicrosoftGraph - module DirectoryRoles - module Item - module CheckMemberObjects - class CheckMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/directory_roles/item/directory_role_item_request_builder.rb b/lib/directory_roles/item/directory_role_item_request_builder.rb index dc4f1d3f5d..c1ce52c6e5 100644 --- a/lib/directory_roles/item/directory_role_item_request_builder.rb +++ b/lib/directory_roles/item/directory_role_item_request_builder.rb @@ -61,7 +61,7 @@ def scoped_members() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}{?%24expand,%24select}") end ## ## Delete entity from directoryRoles @@ -73,12 +73,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + ## Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_role ## @@ -87,8 +86,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -103,8 +101,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -114,31 +111,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + ## Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -150,20 +148,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directory_role_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoryRoleItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + # Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. class DirectoryRoleItemRequestBuilderGetQueryParameters ## diff --git a/lib/directory_roles/item/get_member_groups/get_member_groups.rb b/lib/directory_roles/item/get_member_groups/get_member_groups.rb index 0a25b012ea..9190b99738 100644 --- a/lib/directory_roles/item/get_member_groups/get_member_groups.rb +++ b/lib/directory_roles/item/get_member_groups/get_member_groups.rb @@ -1,2 +1,2 @@ require_relative 'get_member_groups_post_request_body' -require_relative 'get_member_groups_response' +require_relative 'get_member_groups_post_response' diff --git a/lib/directory_roles/item/get_member_groups/get_member_groups_post_request_body.rb b/lib/directory_roles/item/get_member_groups/get_member_groups_post_request_body.rb index d76e839641..5ff121ca39 100644 --- a/lib/directory_roles/item/get_member_groups/get_member_groups_post_request_body.rb +++ b/lib/directory_roles/item/get_member_groups/get_member_groups_post_request_body.rb @@ -17,22 +17,22 @@ class GetMemberGroupsPostRequestBody # The securityEnabledOnly property @security_enabled_only ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getMemberGroupsPostRequestBody and sets the default values. + ## Instantiates a new GetMemberGroupsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory_roles/item/get_member_groups/get_member_groups_post_response.rb b/lib/directory_roles/item/get_member_groups/get_member_groups_post_response.rb new file mode 100644 index 0000000000..c33452218d --- /dev/null +++ b/lib/directory_roles/item/get_member_groups/get_member_groups_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../directory_roles' +require_relative '../item' +require_relative './get_member_groups' + +module MicrosoftGraph + module DirectoryRoles + module Item + module GetMemberGroups + class GetMemberGroupsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetMemberGroupsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_member_groups_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetMemberGroupsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/directory_roles/item/get_member_groups/get_member_groups_request_builder.rb b/lib/directory_roles/item/get_member_groups/get_member_groups_request_builder.rb index 6c3298c564..7bf380bb2d 100644 --- a/lib/directory_roles/item/get_member_groups/get_member_groups_request_builder.rb +++ b/lib/directory_roles/item/get_member_groups/get_member_groups_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/getMemberGroups") end ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. + ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_groups_response + ## @return a Fiber of get_member_groups_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoles::Item::GetMemberGroups::GetMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoles::Item::GetMemberGroups::GetMemberGroupsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. + ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_member_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetMemberGroupsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_roles/item/get_member_groups/get_member_groups_response.rb b/lib/directory_roles/item/get_member_groups/get_member_groups_response.rb deleted file mode 100644 index 594ca5b048..0000000000 --- a/lib/directory_roles/item/get_member_groups/get_member_groups_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../directory_roles' -require_relative '../item' -require_relative './get_member_groups' - -module MicrosoftGraph - module DirectoryRoles - module Item - module GetMemberGroups - class GetMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/directory_roles/item/get_member_objects/get_member_objects.rb b/lib/directory_roles/item/get_member_objects/get_member_objects.rb index 40edad6b9e..f7a486b0f9 100644 --- a/lib/directory_roles/item/get_member_objects/get_member_objects.rb +++ b/lib/directory_roles/item/get_member_objects/get_member_objects.rb @@ -1,2 +1,2 @@ require_relative 'get_member_objects_post_request_body' -require_relative 'get_member_objects_response' +require_relative 'get_member_objects_post_response' diff --git a/lib/directory_roles/item/get_member_objects/get_member_objects_post_request_body.rb b/lib/directory_roles/item/get_member_objects/get_member_objects_post_request_body.rb index fe4feecc0c..b0b535e45c 100644 --- a/lib/directory_roles/item/get_member_objects/get_member_objects_post_request_body.rb +++ b/lib/directory_roles/item/get_member_objects/get_member_objects_post_request_body.rb @@ -17,22 +17,22 @@ class GetMemberObjectsPostRequestBody # The securityEnabledOnly property @security_enabled_only ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getMemberObjectsPostRequestBody and sets the default values. + ## Instantiates a new GetMemberObjectsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory_roles/item/get_member_objects/get_member_objects_post_response.rb b/lib/directory_roles/item/get_member_objects/get_member_objects_post_response.rb new file mode 100644 index 0000000000..fe7b82158e --- /dev/null +++ b/lib/directory_roles/item/get_member_objects/get_member_objects_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../directory_roles' +require_relative '../item' +require_relative './get_member_objects' + +module MicrosoftGraph + module DirectoryRoles + module Item + module GetMemberObjects + class GetMemberObjectsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetMemberObjectsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_member_objects_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetMemberObjectsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/directory_roles/item/get_member_objects/get_member_objects_request_builder.rb b/lib/directory_roles/item/get_member_objects/get_member_objects_request_builder.rb index 9eca4d8b56..ecbd67ffad 100644 --- a/lib/directory_roles/item/get_member_objects/get_member_objects_request_builder.rb +++ b/lib/directory_roles/item/get_member_objects/get_member_objects_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/getMemberObjects") end ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + ## Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_objects_response + ## @return a Fiber of get_member_objects_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoles::Item::GetMemberObjects::GetMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::DirectoryRoles::Item::GetMemberObjects::GetMemberObjectsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + ## Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_member_objects_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetMemberObjectsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_roles/item/get_member_objects/get_member_objects_response.rb b/lib/directory_roles/item/get_member_objects/get_member_objects_response.rb deleted file mode 100644 index f50a9dfbf3..0000000000 --- a/lib/directory_roles/item/get_member_objects/get_member_objects_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../directory_roles' -require_relative '../item' -require_relative './get_member_objects' - -module MicrosoftGraph - module DirectoryRoles - module Item - module GetMemberObjects - class GetMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/directory_roles/item/members/count/count_request_builder.rb b/lib/directory_roles/item/members/count/count_request_builder.rb index 52c095a8cb..cc17ff575a 100644 --- a/lib/directory_roles/item/members/count/count_request_builder.rb +++ b/lib/directory_roles/item/members/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory_roles/item/members/graph_application/count/count_request_builder.rb b/lib/directory_roles/item/members/graph_application/count/count_request_builder.rb index 65ecad747c..f74739d9f4 100644 --- a/lib/directory_roles/item/members/graph_application/count/count_request_builder.rb +++ b/lib/directory_roles/item/members/graph_application/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.application/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.application/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory_roles/item/members/graph_application/graph_application_request_builder.rb b/lib/directory_roles/item/members/graph_application/graph_application_request_builder.rb index f4ff954f15..0ae143a675 100644 --- a/lib/directory_roles/item/members/graph_application/graph_application_request_builder.rb +++ b/lib/directory_roles/item/members/graph_application/graph_application_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.application{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.application{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ApplicationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_application_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphApplicationRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection diff --git a/lib/directory_roles/item/members/graph_device/count/count_request_builder.rb b/lib/directory_roles/item/members/graph_device/count/count_request_builder.rb index c30747c072..fbd34fc69e 100644 --- a/lib/directory_roles/item/members/graph_device/count/count_request_builder.rb +++ b/lib/directory_roles/item/members/graph_device/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.device/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.device/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory_roles/item/members/graph_device/graph_device_request_builder.rb b/lib/directory_roles/item/members/graph_device/graph_device_request_builder.rb index bf2808a633..6608da125b 100644 --- a/lib/directory_roles/item/members/graph_device/graph_device_request_builder.rb +++ b/lib/directory_roles/item/members/graph_device/graph_device_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.device{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.device{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_device_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphDeviceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection diff --git a/lib/directory_roles/item/members/graph_group/count/count_request_builder.rb b/lib/directory_roles/item/members/graph_group/count/count_request_builder.rb index f5f8a55308..38560a1be1 100644 --- a/lib/directory_roles/item/members/graph_group/count/count_request_builder.rb +++ b/lib/directory_roles/item/members/graph_group/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.group/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.group/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory_roles/item/members/graph_group/graph_group_request_builder.rb b/lib/directory_roles/item/members/graph_group/graph_group_request_builder.rb index f8af1dd76c..85a5dbf78b 100644 --- a/lib/directory_roles/item/members/graph_group/graph_group_request_builder.rb +++ b/lib/directory_roles/item/members/graph_group/graph_group_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.group{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection diff --git a/lib/directory_roles/item/members/graph_org_contact/count/count_request_builder.rb b/lib/directory_roles/item/members/graph_org_contact/count/count_request_builder.rb index 39abc3fc35..40a1cd54b0 100644 --- a/lib/directory_roles/item/members/graph_org_contact/count/count_request_builder.rb +++ b/lib/directory_roles/item/members/graph_org_contact/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.orgContact/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.orgContact/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory_roles/item/members/graph_org_contact/graph_org_contact_request_builder.rb b/lib/directory_roles/item/members/graph_org_contact/graph_org_contact_request_builder.rb index 61ac24c472..ca18b2447f 100644 --- a/lib/directory_roles/item/members/graph_org_contact/graph_org_contact_request_builder.rb +++ b/lib/directory_roles/item/members/graph_org_contact/graph_org_contact_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.orgContact{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.orgContact{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OrgContactCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_org_contact_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphOrgContactRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection diff --git a/lib/directory_roles/item/members/graph_service_principal/count/count_request_builder.rb b/lib/directory_roles/item/members/graph_service_principal/count/count_request_builder.rb index 6458350983..e003746062 100644 --- a/lib/directory_roles/item/members/graph_service_principal/count/count_request_builder.rb +++ b/lib/directory_roles/item/members/graph_service_principal/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.servicePrincipal/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.servicePrincipal/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory_roles/item/members/graph_service_principal/graph_service_principal_request_builder.rb b/lib/directory_roles/item/members/graph_service_principal/graph_service_principal_request_builder.rb index 751f813f10..c6b7023246 100644 --- a/lib/directory_roles/item/members/graph_service_principal/graph_service_principal_request_builder.rb +++ b/lib/directory_roles/item/members/graph_service_principal/graph_service_principal_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.servicePrincipal{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.servicePrincipal{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServicePrincipalCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_service_principal_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphServicePrincipalRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection diff --git a/lib/directory_roles/item/members/graph_user/count/count_request_builder.rb b/lib/directory_roles/item/members/graph_user/count/count_request_builder.rb index ae9a11281b..d361a91dad 100644 --- a/lib/directory_roles/item/members/graph_user/count/count_request_builder.rb +++ b/lib/directory_roles/item/members/graph_user/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.user/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.user/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory_roles/item/members/graph_user/graph_user_request_builder.rb b/lib/directory_roles/item/members/graph_user/graph_user_request_builder.rb index d32427e9e8..a45bc99c55 100644 --- a/lib/directory_roles/item/members/graph_user/graph_user_request_builder.rb +++ b/lib/directory_roles/item/members/graph_user/graph_user_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.user{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.user{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection diff --git a/lib/directory_roles/item/members/item/graph_application/graph_application_request_builder.rb b/lib/directory_roles/item/members/item/graph_application/graph_application_request_builder.rb index 24cab1eed4..af2f2f27b5 100644 --- a/lib/directory_roles/item/members/item/graph_application/graph_application_request_builder.rb +++ b/lib/directory_roles/item/members/item/graph_application/graph_application_request_builder.rb @@ -25,7 +25,7 @@ class GraphApplicationRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBu ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.application{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.application{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.application @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Application.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_application_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphApplicationRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.application diff --git a/lib/directory_roles/item/members/item/graph_device/graph_device_request_builder.rb b/lib/directory_roles/item/members/item/graph_device/graph_device_request_builder.rb index aa97d22feb..c0b2c18f2d 100644 --- a/lib/directory_roles/item/members/item/graph_device/graph_device_request_builder.rb +++ b/lib/directory_roles/item/members/item/graph_device/graph_device_request_builder.rb @@ -25,7 +25,7 @@ class GraphDeviceRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.device{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.device{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.device @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Device.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_device_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphDeviceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.device diff --git a/lib/directory_roles/item/members/item/graph_group/graph_group_request_builder.rb b/lib/directory_roles/item/members/item/graph_group/graph_group_request_builder.rb index cad3203c81..a59a884c74 100644 --- a/lib/directory_roles/item/members/item/graph_group/graph_group_request_builder.rb +++ b/lib/directory_roles/item/members/item/graph_group/graph_group_request_builder.rb @@ -25,7 +25,7 @@ class GraphGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.group{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.group{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.group @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.group diff --git a/lib/directory_roles/item/members/item/graph_org_contact/graph_org_contact_request_builder.rb b/lib/directory_roles/item/members/item/graph_org_contact/graph_org_contact_request_builder.rb index 33b1c3ca2b..88f6500831 100644 --- a/lib/directory_roles/item/members/item/graph_org_contact/graph_org_contact_request_builder.rb +++ b/lib/directory_roles/item/members/item/graph_org_contact/graph_org_contact_request_builder.rb @@ -25,7 +25,7 @@ class GraphOrgContactRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.orgContact{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.orgContact{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OrgContact.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_org_contact_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphOrgContactRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact diff --git a/lib/directory_roles/item/members/item/graph_service_principal/graph_service_principal_request_builder.rb b/lib/directory_roles/item/members/item/graph_service_principal/graph_service_principal_request_builder.rb index b3fa7e0c6f..645232ba2a 100644 --- a/lib/directory_roles/item/members/item/graph_service_principal/graph_service_principal_request_builder.rb +++ b/lib/directory_roles/item/members/item/graph_service_principal/graph_service_principal_request_builder.rb @@ -25,7 +25,7 @@ class GraphServicePrincipalRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.servicePrincipal{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.servicePrincipal{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServicePrincipal.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_service_principal_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphServicePrincipalRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal diff --git a/lib/directory_roles/item/members/item/graph_user/graph_user_request_builder.rb b/lib/directory_roles/item/members/item/graph_user/graph_user_request_builder.rb index 5d92cbae19..8afc35eed8 100644 --- a/lib/directory_roles/item/members/item/graph_user/graph_user_request_builder.rb +++ b/lib/directory_roles/item/members/item/graph_user/graph_user_request_builder.rb @@ -25,7 +25,7 @@ class GraphUserRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.user{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.user{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.user @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.user diff --git a/lib/directory_roles/item/members/item/ref/ref_request_builder.rb b/lib/directory_roles/item/members/item/ref/ref_request_builder.rb index 5fc6ee83cc..2a575bff89 100644 --- a/lib/directory_roles/item/members/item/ref/ref_request_builder.rb +++ b/lib/directory_roles/item/members/item/ref/ref_request_builder.rb @@ -24,10 +24,10 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/$ref") end ## - ## Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + ## Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -36,49 +36,34 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + ## Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/directory_roles/item/members/members_request_builder.rb b/lib/directory_roles/item/members/members_request_builder.rb index 31a10ded5a..4ff85d8c3a 100644 --- a/lib/directory_roles/item/members/members_request_builder.rb +++ b/lib/directory_roles/item/members/members_request_builder.rb @@ -65,7 +65,7 @@ def ref() end ## ## Gets an item from the MicrosoftGraph.directoryRoles.item.members.item collection - ## @param directory_object_id Unique identifier of the item + ## @param directory_object_id The unique identifier of directoryObject ## @return a directory_object_item_request_builder ## def by_directory_object_id(directory_object_id) @@ -81,10 +81,10 @@ def by_directory_object_id(directory_object_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Users that are members of this directory role. HTTP Methods: GET, POST, DELETE. Read-only. Nullable. Supports $expand. + ## Retrieve the list of principals that are assigned to the directory role. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object_collection_response ## @@ -93,31 +93,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Users that are members of this directory role. HTTP Methods: GET, POST, DELETE. Read-only. Nullable. Supports $expand. + ## Retrieve the list of principals that are assigned to the directory role. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a members_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MembersRequestBuilder.new(raw_url, @request_adapter) + end ## - # Users that are members of this directory role. HTTP Methods: GET, POST, DELETE. Read-only. Nullable. Supports $expand. + # Retrieve the list of principals that are assigned to the directory role. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. class MembersRequestBuilderGetQueryParameters ## diff --git a/lib/directory_roles/item/members/ref/ref_request_builder.rb b/lib/directory_roles/item/members/ref/ref_request_builder.rb index 29add70fae..f84e787b97 100644 --- a/lib/directory_roles/item/members/ref/ref_request_builder.rb +++ b/lib/directory_roles/item/members/ref/ref_request_builder.rb @@ -24,10 +24,23 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") end ## - ## Users that are members of this directory role. HTTP Methods: GET, POST, DELETE. Read-only. Nullable. Supports $expand. + ## Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Retrieve the list of principals that are assigned to the directory role. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of string_collection_response ## @@ -36,12 +49,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new directory role member. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + ## Create a new directory role member. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -52,30 +64,47 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Users that are members of this directory role. HTTP Methods: GET, POST, DELETE. Read-only. Nullable. Supports $expand. + ## Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/directoryRoles/{directoryRole%2Did}/members/$ref?@id={%40id}' request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Retrieve the list of principals that are assigned to the directory role. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/directoryRoles/{directoryRole%2Did}/members/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new directory role member. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + ## Create a new directory role member. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -83,19 +112,52 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/directoryRoles/{directoryRole%2Did}/members/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end ## - # Users that are members of this directory role. HTTP Methods: GET, POST, DELETE. Read-only. Nullable. Supports $expand. + # Retrieve the list of principals that are assigned to the directory role. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. class RefRequestBuilderGetQueryParameters ## diff --git a/lib/directory_roles/item/restore/restore_request_builder.rb b/lib/directory_roles/item/restore/restore_request_builder.rb index a6811b6bd0..25e98e03db 100644 --- a/lib/directory_roles/item/restore/restore_request_builder.rb +++ b/lib/directory_roles/item/restore/restore_request_builder.rb @@ -24,7 +24,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/restore") end ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object ## @@ -33,27 +33,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a restore_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RestoreRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_roles/item/scoped_members/count/count_request_builder.rb b/lib/directory_roles/item/scoped_members/count/count_request_builder.rb index ac7783f705..637ee9abff 100644 --- a/lib/directory_roles/item/scoped_members/count/count_request_builder.rb +++ b/lib/directory_roles/item/scoped_members/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/scopedMembers/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/scopedMembers/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/directory_roles/item/scoped_members/item/scoped_role_membership_item_request_builder.rb b/lib/directory_roles/item/scoped_members/item/scoped_role_membership_item_request_builder.rb index c5037d4ddb..a218cfc70e 100644 --- a/lib/directory_roles/item/scoped_members/item/scoped_role_membership_item_request_builder.rb +++ b/lib/directory_roles/item/scoped_members/item/scoped_role_membership_item_request_builder.rb @@ -23,7 +23,7 @@ class ScopedRoleMembershipItemRequestBuilder < MicrosoftKiotaAbstractions::BaseR ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/scopedMembers/{scopedRoleMembership%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/scopedMembers/{scopedRoleMembership%2Did}{?%24expand,%24select}") end ## ## Delete navigation property scopedMembers for directoryRoles @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ScopedRoleMembership.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ScopedRoleMembership.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a scoped_role_membership_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ScopedRoleMembershipItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Members of this directory role that are scoped to administrative units. Read-only. Nullable. diff --git a/lib/directory_roles/item/scoped_members/scoped_members_request_builder.rb b/lib/directory_roles/item/scoped_members/scoped_members_request_builder.rb index f33619eb80..e6990b4ab1 100644 --- a/lib/directory_roles/item/scoped_members/scoped_members_request_builder.rb +++ b/lib/directory_roles/item/scoped_members/scoped_members_request_builder.rb @@ -40,7 +40,7 @@ def by_scoped_role_membership_id(scoped_role_membership_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/scopedMembers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/scopedMembers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of scopedRoleMembership objects for a directory role. @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ScopedRoleMembershipCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ScopedRoleMembership.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,15 +77,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a scoped_members_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ScopedMembersRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of scopedRoleMembership objects for a directory role. diff --git a/lib/directory_roles/validate_properties/validate_properties_post_request_body.rb b/lib/directory_roles/validate_properties/validate_properties_post_request_body.rb index 573067132c..d39899a148 100644 --- a/lib/directory_roles/validate_properties/validate_properties_post_request_body.rb +++ b/lib/directory_roles/validate_properties/validate_properties_post_request_body.rb @@ -24,22 +24,22 @@ class ValidatePropertiesPostRequestBody # The onBehalfOfUserId property @on_behalf_of_user_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new validatePropertiesPostRequestBody and sets the default values. + ## Instantiates a new ValidatePropertiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/directory_roles/validate_properties/validate_properties_request_builder.rb b/lib/directory_roles/validate_properties/validate_properties_request_builder.rb index 6fd18fd554..436d82d978 100644 --- a/lib/directory_roles/validate_properties/validate_properties_request_builder.rb +++ b/lib/directory_roles/validate_properties/validate_properties_request_builder.rb @@ -32,8 +32,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,16 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a validate_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ValidatePropertiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/directory_roles_with_role_template_id/directory_roles_with_role_template_id_request_builder.rb b/lib/directory_roles_with_role_template_id/directory_roles_with_role_template_id_request_builder.rb index 208f5ff995..36862b9e1b 100644 --- a/lib/directory_roles_with_role_template_id/directory_roles_with_role_template_id_request_builder.rb +++ b/lib/directory_roles_with_role_template_id/directory_roles_with_role_template_id_request_builder.rb @@ -18,7 +18,7 @@ class DirectoryRolesWithRoleTemplateIdRequestBuilder < MicrosoftKiotaAbstraction ## @return a void ## def initialize(path_parameters, request_adapter, role_template_id=nil) - super(path_parameters, request_adapter, "{+baseurl}/directoryRoles(roleTemplateId='{roleTemplateId}'){?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/directoryRoles(roleTemplateId='{roleTemplateId}'){?%24expand,%24select}") end ## ## Delete entity from directoryRoles by roleTemplateId @@ -30,12 +30,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + ## Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_role ## @@ -44,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -60,8 +58,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,31 +68,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + ## Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -107,20 +105,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directory_roles_with_role_template_id_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoryRolesWithRoleTemplateIdRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + # Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. class DirectoryRolesWithRoleTemplateIdRequestBuilderGetQueryParameters ## diff --git a/lib/domain_dns_records/count/count_request_builder.rb b/lib/domain_dns_records/count/count_request_builder.rb index 7d7e1c1b98..7b56c5412c 100644 --- a/lib/domain_dns_records/count/count_request_builder.rb +++ b/lib/domain_dns_records/count/count_request_builder.rb @@ -18,7 +18,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/domainDnsRecords/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/domainDnsRecords/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -30,8 +30,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -41,17 +40,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/domain_dns_records/domain_dns_records_request_builder.rb b/lib/domain_dns_records/domain_dns_records_request_builder.rb index 49616edd48..0833bb885e 100644 --- a/lib/domain_dns_records/domain_dns_records_request_builder.rb +++ b/lib/domain_dns_records/domain_dns_records_request_builder.rb @@ -36,7 +36,7 @@ def by_domain_dns_record_id(domain_dns_record_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/domainDnsRecords{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/domainDnsRecords{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get entities from domainDnsRecords @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DomainDnsRecordCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,8 +63,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DomainDnsRecord.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,15 +73,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -95,17 +93,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a domain_dns_records_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DomainDnsRecordsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get entities from domainDnsRecords diff --git a/lib/domain_dns_records/item/domain_dns_record_item_request_builder.rb b/lib/domain_dns_records/item/domain_dns_record_item_request_builder.rb index 71cd05f10d..da08f1cfc2 100644 --- a/lib/domain_dns_records/item/domain_dns_record_item_request_builder.rb +++ b/lib/domain_dns_records/item/domain_dns_record_item_request_builder.rb @@ -19,7 +19,7 @@ class DomainDnsRecordItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReques ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/domainDnsRecords/{domainDnsRecord%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/domainDnsRecords/{domainDnsRecord%2Did}{?%24expand,%24select}") end ## ## Delete entity from domainDnsRecords @@ -31,8 +31,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DomainDnsRecord.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -61,8 +59,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DomainDnsRecord.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,13 +69,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -88,15 +86,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,17 +106,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a domain_dns_record_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DomainDnsRecordItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get entity from domainDnsRecords by key diff --git a/lib/domains/count/count_request_builder.rb b/lib/domains/count/count_request_builder.rb index fc4a63abad..b25eb1e821 100644 --- a/lib/domains/count/count_request_builder.rb +++ b/lib/domains/count/count_request_builder.rb @@ -18,7 +18,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/domains/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/domains/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -30,8 +30,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -41,17 +40,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/domains/domains_request_builder.rb b/lib/domains/domains_request_builder.rb index 5f8bb0ebe0..e16212a0b1 100644 --- a/lib/domains/domains_request_builder.rb +++ b/lib/domains/domains_request_builder.rb @@ -36,7 +36,7 @@ def by_domain_id(domain_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/domains{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/domains{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of domain objects. @@ -48,12 +48,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DomainCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Adds a domain to the tenant. Important: You cannot use an associated domain with your Azure AD tenant until ownership is verified. See List verificationDnsRecords for details. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. + ## Adds a domain to the tenant. Important: You cannot use an associated domain with your Microsoft Entra tenant until ownership is verified. See List verificationDnsRecords for details. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of domain @@ -64,8 +63,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Domain.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,19 +73,19 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Adds a domain to the tenant. Important: You cannot use an associated domain with your Azure AD tenant until ownership is verified. See List verificationDnsRecords for details. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. + ## Adds a domain to the tenant. Important: You cannot use an associated domain with your Microsoft Entra tenant until ownership is verified. See List verificationDnsRecords for details. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -95,17 +93,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a domains_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DomainsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of domain objects. diff --git a/lib/domains/item/domain_item_request_builder.rb b/lib/domains/item/domain_item_request_builder.rb index bbf18b9c8e..342aaaa940 100644 --- a/lib/domains/item/domain_item_request_builder.rb +++ b/lib/domains/item/domain_item_request_builder.rb @@ -8,6 +8,7 @@ require_relative './force_delete/force_delete_request_builder' require_relative './item' require_relative './promote/promote_request_builder' +require_relative './root_domain/root_domain_request_builder' require_relative './service_configuration_records/service_configuration_records_request_builder' require_relative './verification_dns_records/verification_dns_records_request_builder' require_relative './verify/verify_request_builder' @@ -40,6 +41,11 @@ def promote() return MicrosoftGraph::Domains::Item::Promote::PromoteRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to manage the rootDomain property of the microsoft.graph.domain entity. + def root_domain() + return MicrosoftGraph::Domains::Item::RootDomain::RootDomainRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to manage the serviceConfigurationRecords property of the microsoft.graph.domain entity. def service_configuration_records() return MicrosoftGraph::Domains::Item::ServiceConfigurationRecords::ServiceConfigurationRecordsRequestBuilder.new(@path_parameters, @request_adapter) @@ -61,10 +67,10 @@ def verify() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}{?%24expand,%24select}") end ## - ## Deletes a domain from a tenant. + ## Delete a domain from a tenant. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -73,8 +79,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -87,12 +92,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Domain.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of domain object. + ## Update the properties of domain object. Only verified domains can be updated. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of domain @@ -103,24 +107,24 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Domain.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Deletes a domain from a tenant. + ## Delete a domain from a tenant. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -130,19 +134,19 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of domain object. + ## Update the properties of domain object. Only verified domains can be updated. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -150,17 +154,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a domain_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DomainItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of domain object. diff --git a/lib/domains/item/domain_name_references/count/count_request_builder.rb b/lib/domains/item/domain_name_references/count/count_request_builder.rb index 28dd2caec5..eb36174da1 100644 --- a/lib/domains/item/domain_name_references/count/count_request_builder.rb +++ b/lib/domains/item/domain_name_references/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/domainNameReferences/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/domainNameReferences/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/domains/item/domain_name_references/domain_name_references_request_builder.rb b/lib/domains/item/domain_name_references/domain_name_references_request_builder.rb index b7653a0ddb..bf50aa703d 100644 --- a/lib/domains/item/domain_name_references/domain_name_references_request_builder.rb +++ b/lib/domains/item/domain_name_references/domain_name_references_request_builder.rb @@ -39,7 +39,7 @@ def by_directory_object_id(directory_object_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/domainNameReferences{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/domainNameReferences{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of directoryObject with a reference to the domain. The returned list will contain all directory objects that have a dependency on the domain. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a domain_name_references_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DomainNameReferencesRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of directoryObject with a reference to the domain. The returned list will contain all directory objects that have a dependency on the domain. diff --git a/lib/domains/item/domain_name_references/item/directory_object_item_request_builder.rb b/lib/domains/item/domain_name_references/item/directory_object_item_request_builder.rb index a2833c961c..76be14f318 100644 --- a/lib/domains/item/domain_name_references/item/directory_object_item_request_builder.rb +++ b/lib/domains/item/domain_name_references/item/directory_object_item_request_builder.rb @@ -23,10 +23,10 @@ class DirectoryObjectItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReques ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/domainNameReferences/{directoryObject%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/domainNameReferences/{directoryObject%2Did}{?%24expand,%24select}") end ## - ## The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. + ## The objects such as users and groups that reference the domain ID. Read-only, Nullable. Doesn't support $expand. Supports $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object ## @@ -35,31 +35,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. + ## The objects such as users and groups that reference the domain ID. Read-only, Nullable. Doesn't support $expand. Supports $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directory_object_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoryObjectItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. + # The objects such as users and groups that reference the domain ID. Read-only, Nullable. Doesn't support $expand. Supports $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. class DirectoryObjectItemRequestBuilderGetQueryParameters ## diff --git a/lib/domains/item/federation_configuration/count/count_request_builder.rb b/lib/domains/item/federation_configuration/count/count_request_builder.rb index 2b5ad252c8..64582a0a1b 100644 --- a/lib/domains/item/federation_configuration/count/count_request_builder.rb +++ b/lib/domains/item/federation_configuration/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/federationConfiguration/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/federationConfiguration/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/domains/item/federation_configuration/federation_configuration_request_builder.rb b/lib/domains/item/federation_configuration/federation_configuration_request_builder.rb index de91c3ee38..2c88f338de 100644 --- a/lib/domains/item/federation_configuration/federation_configuration_request_builder.rb +++ b/lib/domains/item/federation_configuration/federation_configuration_request_builder.rb @@ -40,10 +40,10 @@ def by_internal_domain_federation_id(internal_domain_federation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/federationConfiguration{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/federationConfiguration{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Read the properties and relationships of an internalDomainFederation object. + ## Read the properties of the internalDomainFederation objects for the domain. This API returns only one object in the collection. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of internal_domain_federation_collection_response ## @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::InternalDomainFederationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,26 +67,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::InternalDomainFederation.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Read the properties and relationships of an internalDomainFederation object. + ## Read the properties of the internalDomainFederation objects for the domain. This API returns only one object in the collection. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,20 +97,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a federation_configuration_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FederationConfigurationRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of an internalDomainFederation object. + # Read the properties of the internalDomainFederation objects for the domain. This API returns only one object in the collection. class FederationConfigurationRequestBuilderGetQueryParameters ## diff --git a/lib/domains/item/federation_configuration/item/internal_domain_federation_item_request_builder.rb b/lib/domains/item/federation_configuration/item/internal_domain_federation_item_request_builder.rb index a786000c8f..ea63fde9c6 100644 --- a/lib/domains/item/federation_configuration/item/internal_domain_federation_item_request_builder.rb +++ b/lib/domains/item/federation_configuration/item/internal_domain_federation_item_request_builder.rb @@ -23,7 +23,7 @@ class InternalDomainFederationItemRequestBuilder < MicrosoftKiotaAbstractions::B ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/federationConfiguration/{internalDomainFederation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/federationConfiguration/{internalDomainFederation%2Did}{?%24expand,%24select}") end ## ## Delete an internalDomainFederation object. @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::InternalDomainFederation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::InternalDomainFederation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a internal_domain_federation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InternalDomainFederationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of an internalDomainFederation object. diff --git a/lib/domains/item/force_delete/force_delete_post_request_body.rb b/lib/domains/item/force_delete/force_delete_post_request_body.rb index aefa772dfa..67e39dfac7 100644 --- a/lib/domains/item/force_delete/force_delete_post_request_body.rb +++ b/lib/domains/item/force_delete/force_delete_post_request_body.rb @@ -17,22 +17,22 @@ class ForceDeletePostRequestBody # The disableUserAccounts property @disable_user_accounts ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new forceDeletePostRequestBody and sets the default values. + ## Instantiates a new ForceDeletePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/domains/item/force_delete/force_delete_request_builder.rb b/lib/domains/item/force_delete/force_delete_request_builder.rb index 8cf1a1e3b4..c84994921f 100644 --- a/lib/domains/item/force_delete/force_delete_request_builder.rb +++ b/lib/domains/item/force_delete/force_delete_request_builder.rb @@ -23,7 +23,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/forceDelete") end ## - ## Deletes a domain using an asynchronous long-running operation. Prior to calling forceDelete, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain will return a HTTP 404 status code. To verify deletion of a domain, you can perform a get domain operation. + ## Delete a domain using an asynchronous long-running operation. Before performing this operation, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain return an HTTP 404 status code. To verify deletion of a domain, you can perform a get domain operation. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Deletes a domain using an asynchronous long-running operation. Prior to calling forceDelete, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain will return a HTTP 404 status code. To verify deletion of a domain, you can perform a get domain operation. + ## Delete a domain using an asynchronous long-running operation. Before performing this operation, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain return an HTTP 404 status code. To verify deletion of a domain, you can perform a get domain operation. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a force_delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ForceDeleteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/domains/item/promote/promote.rb b/lib/domains/item/promote/promote.rb index e308b7f5d2..5672eaa500 100644 --- a/lib/domains/item/promote/promote.rb +++ b/lib/domains/item/promote/promote.rb @@ -1 +1 @@ -require_relative 'promote_response' +require_relative 'promote_post_response' diff --git a/lib/domains/item/promote/promote_post_response.rb b/lib/domains/item/promote/promote_post_response.rb new file mode 100644 index 0000000000..d34b800303 --- /dev/null +++ b/lib/domains/item/promote/promote_post_response.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../domains' +require_relative '../item' +require_relative './promote' + +module MicrosoftGraph + module Domains + module Item + module Promote + class PromotePostResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new PromotePostResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a promote_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return PromotePostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a boolean + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/domains/item/promote/promote_request_builder.rb b/lib/domains/item/promote/promote_request_builder.rb index 031f7d2d88..a69dd860ae 100644 --- a/lib/domains/item/promote/promote_request_builder.rb +++ b/lib/domains/item/promote/promote_request_builder.rb @@ -25,16 +25,15 @@ def initialize(path_parameters, request_adapter) ## ## Promote a verified subdomain to the root domain. A verified domain has its isVerified property set to true. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of promote_response + ## @return a Fiber of promote_post_response ## def post(request_configuration=nil) request_info = self.to_post_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Domains::Item::Promote::PromoteResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Domains::Item::Promote::PromotePostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Promote a verified subdomain to the root domain. A verified domain has its isVerified property set to true. @@ -43,16 +42,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a promote_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PromoteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/domains/item/promote/promote_response.rb b/lib/domains/item/promote/promote_response.rb deleted file mode 100644 index c1f9c13a97..0000000000 --- a/lib/domains/item/promote/promote_response.rb +++ /dev/null @@ -1,88 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../domains' -require_relative '../item' -require_relative './promote' - -module MicrosoftGraph - module Domains - module Item - module Promote - class PromoteResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new promoteResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a promote_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return PromoteResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_boolean_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a boolean - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/me/contacts/item/photo/photo.rb b/lib/domains/item/root_domain/root_domain.rb similarity index 100% rename from lib/me/contacts/item/photo/photo.rb rename to lib/domains/item/root_domain/root_domain.rb diff --git a/lib/domains/item/root_domain/root_domain_request_builder.rb b/lib/domains/item/root_domain/root_domain_request_builder.rb new file mode 100644 index 0000000000..810df2b29c --- /dev/null +++ b/lib/domains/item/root_domain/root_domain_request_builder.rb @@ -0,0 +1,98 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/domain' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../domains' +require_relative '../item' +require_relative './root_domain' + +module MicrosoftGraph + module Domains + module Item + module RootDomain + ## + # Provides operations to manage the rootDomain property of the microsoft.graph.domain entity. + class RootDomainRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RootDomainRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/rootDomain{?%24expand,%24select}") + end + ## + ## Get the root domain of a subdomain. This API returns a single object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of domain + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Domain.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the root domain of a subdomain. This API returns a single object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a root_domain_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RootDomainRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the root domain of a subdomain. This API returns a single object. + class RootDomainRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/domains/item/service_configuration_records/count/count_request_builder.rb b/lib/domains/item/service_configuration_records/count/count_request_builder.rb index 6b246aacd9..e180987698 100644 --- a/lib/domains/item/service_configuration_records/count/count_request_builder.rb +++ b/lib/domains/item/service_configuration_records/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/serviceConfigurationRecords/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/serviceConfigurationRecords/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/domains/item/service_configuration_records/item/domain_dns_record_item_request_builder.rb b/lib/domains/item/service_configuration_records/item/domain_dns_record_item_request_builder.rb index 36b6f98052..0e37e9c717 100644 --- a/lib/domains/item/service_configuration_records/item/domain_dns_record_item_request_builder.rb +++ b/lib/domains/item/service_configuration_records/item/domain_dns_record_item_request_builder.rb @@ -23,7 +23,7 @@ class DomainDnsRecordItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReques ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/serviceConfigurationRecords/{domainDnsRecord%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/serviceConfigurationRecords/{domainDnsRecord%2Did}{?%24expand,%24select}") end ## ## Delete navigation property serviceConfigurationRecords for domains @@ -35,12 +35,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## DNS records the customer adds to the DNS zone file of the domain before the domain can be used by Microsoft Online services. Read-only, Nullable. Supports $expand. + ## DNS records the customer adds to the DNS zone file of the domain before the domain can be used by Microsoft Online services. Read-only, Nullable. Doesn't support $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of domain_dns_record ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DomainDnsRecord.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DomainDnsRecord.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,31 +73,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## DNS records the customer adds to the DNS zone file of the domain before the domain can be used by Microsoft Online services. Read-only, Nullable. Supports $expand. + ## DNS records the customer adds to the DNS zone file of the domain before the domain can be used by Microsoft Online services. Read-only, Nullable. Doesn't support $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,20 +110,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a domain_dns_record_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DomainDnsRecordItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # DNS records the customer adds to the DNS zone file of the domain before the domain can be used by Microsoft Online services. Read-only, Nullable. Supports $expand. + # DNS records the customer adds to the DNS zone file of the domain before the domain can be used by Microsoft Online services. Read-only, Nullable. Doesn't support $expand. class DomainDnsRecordItemRequestBuilderGetQueryParameters ## diff --git a/lib/domains/item/service_configuration_records/service_configuration_records_request_builder.rb b/lib/domains/item/service_configuration_records/service_configuration_records_request_builder.rb index 74e723c377..3d355ec6c6 100644 --- a/lib/domains/item/service_configuration_records/service_configuration_records_request_builder.rb +++ b/lib/domains/item/service_configuration_records/service_configuration_records_request_builder.rb @@ -40,7 +40,7 @@ def by_domain_dns_record_id(domain_dns_record_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/serviceConfigurationRecords{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/serviceConfigurationRecords{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieves a list of domainDnsRecord objects needed to enable services for the domain. Use the returned list to add records to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DomainDnsRecordCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DomainDnsRecord.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,15 +77,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_configuration_records_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceConfigurationRecordsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieves a list of domainDnsRecord objects needed to enable services for the domain. Use the returned list to add records to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. diff --git a/lib/domains/item/verification_dns_records/count/count_request_builder.rb b/lib/domains/item/verification_dns_records/count/count_request_builder.rb index 1739f96dd4..84d5321217 100644 --- a/lib/domains/item/verification_dns_records/count/count_request_builder.rb +++ b/lib/domains/item/verification_dns_records/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/verificationDnsRecords/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/verificationDnsRecords/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/domains/item/verification_dns_records/item/domain_dns_record_item_request_builder.rb b/lib/domains/item/verification_dns_records/item/domain_dns_record_item_request_builder.rb index 59790f8df7..5bfa67e457 100644 --- a/lib/domains/item/verification_dns_records/item/domain_dns_record_item_request_builder.rb +++ b/lib/domains/item/verification_dns_records/item/domain_dns_record_item_request_builder.rb @@ -23,7 +23,7 @@ class DomainDnsRecordItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReques ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/verificationDnsRecords/{domainDnsRecord%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/verificationDnsRecords/{domainDnsRecord%2Did}{?%24expand,%24select}") end ## ## Delete navigation property verificationDnsRecords for domains @@ -35,12 +35,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Azure AD. Read-only, Nullable. Supports $expand. + ## DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Doesn't support $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of domain_dns_record ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DomainDnsRecord.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DomainDnsRecord.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,31 +73,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Azure AD. Read-only, Nullable. Supports $expand. + ## DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Doesn't support $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,20 +110,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a domain_dns_record_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DomainDnsRecordItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Azure AD. Read-only, Nullable. Supports $expand. + # DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Doesn't support $expand. class DomainDnsRecordItemRequestBuilderGetQueryParameters ## diff --git a/lib/domains/item/verification_dns_records/verification_dns_records_request_builder.rb b/lib/domains/item/verification_dns_records/verification_dns_records_request_builder.rb index 0498417b40..200762f6aa 100644 --- a/lib/domains/item/verification_dns_records/verification_dns_records_request_builder.rb +++ b/lib/domains/item/verification_dns_records/verification_dns_records_request_builder.rb @@ -40,10 +40,10 @@ def by_domain_dns_record_id(domain_dns_record_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/verificationDnsRecords{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/domains/{domain%2Did}/verificationDnsRecords{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Azure AD tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. + ## Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Microsoft Entra tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of domain_dns_record_collection_response ## @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DomainDnsRecordCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,26 +67,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DomainDnsRecord.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Azure AD tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. + ## Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Microsoft Entra tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,20 +97,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a verification_dns_records_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VerificationDnsRecordsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Azure AD tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. + # Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Microsoft Entra tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. class VerificationDnsRecordsRequestBuilderGetQueryParameters ## diff --git a/lib/domains/item/verify/verify_request_builder.rb b/lib/domains/item/verify/verify_request_builder.rb index 137e1784a3..dd54aa07c4 100644 --- a/lib/domains/item/verify/verify_request_builder.rb +++ b/lib/domains/item/verify/verify_request_builder.rb @@ -33,8 +33,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Domain.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -44,16 +43,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a verify_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VerifyRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/drives_request_builder.rb b/lib/drives/drives_request_builder.rb index 9efdacb3c7..2003ccfc09 100644 --- a/lib/drives/drives_request_builder.rb +++ b/lib/drives/drives_request_builder.rb @@ -30,7 +30,7 @@ def by_drive_id(drive_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives{?%24top,%24skip,%24search,%24filter,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives{?%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get entities from drives @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,8 +57,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Drive.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,15 +67,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -89,17 +87,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a drives_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DrivesRequestBuilder.new(raw_url, @request_adapter) + end ## # Get entities from drives diff --git a/lib/drives/item/bundles/bundles_request_builder.rb b/lib/drives/item/bundles/bundles_request_builder.rb index 95c585cd64..f8ccc18bb4 100644 --- a/lib/drives/item/bundles/bundles_request_builder.rb +++ b/lib/drives/item/bundles/bundles_request_builder.rb @@ -40,10 +40,10 @@ def by_drive_item_id(drive_item_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/bundles{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/bundles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Collection of [bundles][bundle] (albums and multi-select-shared sets of items). Only in personal OneDrive. + ## Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of drive_item_collection_response ## @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItemCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,26 +67,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Collection of [bundles][bundle] (albums and multi-select-shared sets of items). Only in personal OneDrive. + ## Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,20 +97,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bundles_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BundlesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Collection of [bundles][bundle] (albums and multi-select-shared sets of items). Only in personal OneDrive. + # Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. class BundlesRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/bundles/count/count_request_builder.rb b/lib/drives/item/bundles/count/count_request_builder.rb index b4ee553945..4158adc4de 100644 --- a/lib/drives/item/bundles/count/count_request_builder.rb +++ b/lib/drives/item/bundles/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/bundles/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/bundles/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/bundles/item/content/content_request_builder.rb b/lib/drives/item/bundles/item/content/content_request_builder.rb index 3f1e2f4ce0..9803282ea2 100644 --- a/lib/drives/item/bundles/item/content/content_request_builder.rb +++ b/lib/drives/item/bundles/item/content/content_request_builder.rb @@ -25,7 +25,20 @@ class ContentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/bundles/{driveItem%2Did}/content") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/bundles/{driveItem%2Did}/content{?%24format*}") + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) end ## ## The content stream, if the item represents a file. @@ -37,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -53,8 +65,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,15 +73,34 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -82,17 +112,49 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The content stream, if the item represents a file. + class ContentRequestBuilderGetQueryParameters + + ## + # Format of the content + attr_accessor :format + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "format" + return "%24format" + else + return original_name + end + end + end end end end diff --git a/lib/drives/item/bundles/item/drive_item_item_request_builder.rb b/lib/drives/item/bundles/item/drive_item_item_request_builder.rb index 2b269855fe..81cf79e2d4 100644 --- a/lib/drives/item/bundles/item/drive_item_item_request_builder.rb +++ b/lib/drives/item/bundles/item/drive_item_item_request_builder.rb @@ -29,10 +29,10 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/bundles/{driveItem%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/bundles/{driveItem%2Did}{?%24expand,%24select}") end ## - ## Collection of [bundles][bundle] (albums and multi-select-shared sets of items). Only in personal OneDrive. + ## Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of drive_item ## @@ -41,31 +41,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Collection of [bundles][bundle] (albums and multi-select-shared sets of items). Only in personal OneDrive. + ## Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a drive_item_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DriveItemItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Collection of [bundles][bundle] (albums and multi-select-shared sets of items). Only in personal OneDrive. + # Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. class DriveItemItemRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/created_by_user/created_by_user_request_builder.rb b/lib/drives/item/created_by_user/created_by_user_request_builder.rb index 1f09bf9b52..6c8970e2a7 100644 --- a/lib/drives/item/created_by_user/created_by_user_request_builder.rb +++ b/lib/drives/item/created_by_user/created_by_user_request_builder.rb @@ -6,6 +6,7 @@ require_relative '../item' require_relative './created_by_user' require_relative './mailbox_settings/mailbox_settings_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' module MicrosoftGraph module Drives @@ -21,13 +22,18 @@ def mailbox_settings() return MicrosoftGraph::Drives::Item::CreatedByUser::MailboxSettings::MailboxSettingsRequestBuilder.new(@path_parameters, @request_adapter) end ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Drives::Item::CreatedByUser::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Instantiates a new CreatedByUserRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/createdByUser{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/createdByUser{?%24expand,%24select}") end ## ## Identity of the user who created the item. Read-only. @@ -39,8 +45,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +55,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a created_by_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreatedByUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Identity of the user who created the item. Read-only. diff --git a/lib/drives/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb b/lib/drives/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb index ffbd0072c5..778bffccb4 100644 --- a/lib/drives/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb +++ b/lib/drives/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb @@ -23,10 +23,10 @@ class MailboxSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/createdByUser/mailboxSettings{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}") end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of mailbox_settings ## @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -51,26 +50,25 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -82,20 +80,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mailbox_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MailboxSettingsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. class MailboxSettingsRequestBuilderGetQueryParameters ## diff --git a/lib/me/joined_teams/item/all_channels/count/count.rb b/lib/drives/item/created_by_user/service_provisioning_errors/count/count.rb similarity index 100% rename from lib/me/joined_teams/item/all_channels/count/count.rb rename to lib/drives/item/created_by_user/service_provisioning_errors/count/count.rb diff --git a/lib/drives/item/created_by_user/service_provisioning_errors/count/count_request_builder.rb b/lib/drives/item/created_by_user/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..0018fbda7b --- /dev/null +++ b/lib/drives/item/created_by_user/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../drives' +require_relative '../../../item' +require_relative '../../created_by_user' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Drives + module Item + module CreatedByUser + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/contacts/item/photo/value/value.rb b/lib/drives/item/created_by_user/service_provisioning_errors/service_provisioning_errors.rb similarity index 100% rename from lib/me/contacts/item/photo/value/value.rb rename to lib/drives/item/created_by_user/service_provisioning_errors/service_provisioning_errors.rb diff --git a/lib/drives/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/drives/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..62a3833908 --- /dev/null +++ b/lib/drives/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,137 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../../models/service_provisioning_error_collection_response' +require_relative '../../../drives' +require_relative '../../item' +require_relative '../created_by_user' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Drives + module Item + module CreatedByUser + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \drives\{drive-id}\createdByUser\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Drives::Item::CreatedByUser::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/drive_item_request_builder.rb b/lib/drives/item/drive_item_request_builder.rb index bb14f1c457..c80b4c8e7d 100644 --- a/lib/drives/item/drive_item_request_builder.rb +++ b/lib/drives/item/drive_item_request_builder.rb @@ -80,7 +80,7 @@ def special() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}{?%24expand,%24select}") end ## ## Delete entity from drives @@ -92,8 +92,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -106,8 +105,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Drive.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -122,8 +120,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Drive.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -142,13 +139,14 @@ def search_with_q(q) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -158,15 +156,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -178,17 +176,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a drive_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DriveItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get entity from drives by key diff --git a/lib/drives/item/following/count/count_request_builder.rb b/lib/drives/item/following/count/count_request_builder.rb index bfbed0c189..20d3a7f036 100644 --- a/lib/drives/item/following/count/count_request_builder.rb +++ b/lib/drives/item/following/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/following/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/following/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/following/following_request_builder.rb b/lib/drives/item/following/following_request_builder.rb index c1e999f2c0..dfc7daf0ec 100644 --- a/lib/drives/item/following/following_request_builder.rb +++ b/lib/drives/item/following/following_request_builder.rb @@ -39,10 +39,10 @@ def by_drive_item_id(drive_item_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/following{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/following{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List the items that have been followed by the signed in user.This collection includes items that are in the user's drive as well as items they have access to from other drives. + ## The list of items the user is following. Only in OneDrive for Business. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of drive_item_collection_response ## @@ -51,31 +51,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItemCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List the items that have been followed by the signed in user.This collection includes items that are in the user's drive as well as items they have access to from other drives. + ## The list of items the user is following. Only in OneDrive for Business. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a following_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FollowingRequestBuilder.new(raw_url, @request_adapter) + end ## - # List the items that have been followed by the signed in user.This collection includes items that are in the user's drive as well as items they have access to from other drives. + # The list of items the user is following. Only in OneDrive for Business. class FollowingRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/following/item/content/content_request_builder.rb b/lib/drives/item/following/item/content/content_request_builder.rb index 8ae560d817..06d7e80088 100644 --- a/lib/drives/item/following/item/content/content_request_builder.rb +++ b/lib/drives/item/following/item/content/content_request_builder.rb @@ -25,7 +25,20 @@ class ContentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/following/{driveItem%2Did}/content") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/following/{driveItem%2Did}/content{?%24format*}") + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) end ## ## The content stream, if the item represents a file. @@ -37,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -53,8 +65,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,15 +73,34 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -82,17 +112,49 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The content stream, if the item represents a file. + class ContentRequestBuilderGetQueryParameters + + ## + # Format of the content + attr_accessor :format + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "format" + return "%24format" + else + return original_name + end + end + end end end end diff --git a/lib/drives/item/following/item/drive_item_item_request_builder.rb b/lib/drives/item/following/item/drive_item_item_request_builder.rb index 00d933a6e6..9f3c354fa2 100644 --- a/lib/drives/item/following/item/drive_item_item_request_builder.rb +++ b/lib/drives/item/following/item/drive_item_item_request_builder.rb @@ -29,7 +29,7 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/following/{driveItem%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/following/{driveItem%2Did}{?%24expand,%24select}") end ## ## The list of items the user is following. Only in OneDrive for Business. @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a drive_item_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DriveItemItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The list of items the user is following. Only in OneDrive for Business. diff --git a/lib/drives/item/items/count/count_request_builder.rb b/lib/drives/item/items/count/count_request_builder.rb index 80f7bd89cd..e4af4c9cb1 100644 --- a/lib/drives/item/items/count/count_request_builder.rb +++ b/lib/drives/item/items/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/items/item/analytics/all_time/all_time_request_builder.rb b/lib/drives/item/items/item/analytics/all_time/all_time_request_builder.rb index fab148f265..714359c944 100644 --- a/lib/drives/item/items/item/analytics/all_time/all_time_request_builder.rb +++ b/lib/drives/item/items/item/analytics/all_time/all_time_request_builder.rb @@ -27,10 +27,10 @@ class AllTimeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/allTime{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/allTime{?%24expand,%24select}") end ## - ## Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the [getActivitiesByInterval][] API. + ## Get itemAnalytics about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the getActivitiesByInterval API. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of item_activity_stat ## @@ -39,31 +39,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the [getActivitiesByInterval][] API. + ## Get itemAnalytics about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the getActivitiesByInterval API. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a all_time_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AllTimeRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the [getActivitiesByInterval][] API. + # Get itemAnalytics about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the getActivitiesByInterval API. class AllTimeRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/analytics/analytics_request_builder.rb b/lib/drives/item/items/item/analytics/analytics_request_builder.rb index dce45e2803..6171d31255 100644 --- a/lib/drives/item/items/item/analytics/analytics_request_builder.rb +++ b/lib/drives/item/items/item/analytics/analytics_request_builder.rb @@ -43,7 +43,7 @@ def last_seven_days() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics{?%24expand,%24select}") end ## ## Delete navigation property analytics for drives @@ -55,8 +55,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -69,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemAnalytics.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,8 +83,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemAnalytics.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -96,13 +93,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,15 +110,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,17 +130,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a analytics_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AnalyticsRequestBuilder.new(raw_url, @request_adapter) + end ## # Analytics about the view activities that took place on this item. diff --git a/lib/drives/item/items/item/analytics/item_activity_stats/count/count_request_builder.rb b/lib/drives/item/items/item/analytics/item_activity_stats/count/count_request_builder.rb index a061533cdf..a40e5cbb66 100644 --- a/lib/drives/item/items/item/analytics/item_activity_stats/count/count_request_builder.rb +++ b/lib/drives/item/items/item/analytics/item_activity_stats/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/items/item/analytics/item_activity_stats/item/activities/activities_request_builder.rb b/lib/drives/item/items/item/analytics/item_activity_stats/item/activities/activities_request_builder.rb index a07a07e08f..4892eec634 100644 --- a/lib/drives/item/items/item/analytics/item_activity_stats/item/activities/activities_request_builder.rb +++ b/lib/drives/item/items/item/analytics/item_activity_stats/item/activities/activities_request_builder.rb @@ -50,7 +50,7 @@ def by_item_activity_id(item_activity_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Exposes the itemActivities represented in this itemActivityStat resource. @@ -62,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemActivityCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,8 +77,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemActivity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,15 +87,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -109,17 +107,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a activities_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ActivitiesRequestBuilder.new(raw_url, @request_adapter) + end ## # Exposes the itemActivities represented in this itemActivityStat resource. diff --git a/lib/drives/item/items/item/analytics/item_activity_stats/item/activities/count/count_request_builder.rb b/lib/drives/item/items/item/analytics/item_activity_stats/item/activities/count/count_request_builder.rb index a15689fe7b..fb09b6097e 100644 --- a/lib/drives/item/items/item/analytics/item_activity_stats/item/activities/count/count_request_builder.rb +++ b/lib/drives/item/items/item/analytics/item_activity_stats/item/activities/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/items/item/analytics/item_activity_stats/item/activities/item/drive_item/content/content_request_builder.rb b/lib/drives/item/items/item/analytics/item_activity_stats/item/activities/item/drive_item/content/content_request_builder.rb index b2c6b70121..823a370af3 100644 --- a/lib/drives/item/items/item/analytics/item_activity_stats/item/activities/item/drive_item/content/content_request_builder.rb +++ b/lib/drives/item/items/item/analytics/item_activity_stats/item/activities/item/drive_item/content/content_request_builder.rb @@ -37,7 +37,20 @@ class ContentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem/content") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem/content{?%24format*}") + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) end ## ## The content stream, if the item represents a file. @@ -49,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -65,8 +77,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,15 +85,34 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -94,17 +124,49 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The content stream, if the item represents a file. + class ContentRequestBuilderGetQueryParameters + + ## + # Format of the content + attr_accessor :format + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "format" + return "%24format" + else + return original_name + end + end + end end end end diff --git a/lib/drives/item/items/item/analytics/item_activity_stats/item/activities/item/drive_item/drive_item_request_builder.rb b/lib/drives/item/items/item/analytics/item_activity_stats/item/activities/item/drive_item/drive_item_request_builder.rb index 9d2b19df14..3145731dd7 100644 --- a/lib/drives/item/items/item/analytics/item_activity_stats/item/activities/item/drive_item/drive_item_request_builder.rb +++ b/lib/drives/item/items/item/analytics/item_activity_stats/item/activities/item/drive_item/drive_item_request_builder.rb @@ -41,7 +41,7 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem{?%24expand,%24select}") end ## ## Exposes the driveItem that was the target of this activity. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a drive_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DriveItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Exposes the driveItem that was the target of this activity. diff --git a/lib/drives/item/items/item/analytics/item_activity_stats/item/activities/item/item_activity_item_request_builder.rb b/lib/drives/item/items/item/analytics/item_activity_stats/item/activities/item/item_activity_item_request_builder.rb index 141295ecd5..e1ebf51310 100644 --- a/lib/drives/item/items/item/analytics/item_activity_stats/item/activities/item/item_activity_item_request_builder.rb +++ b/lib/drives/item/items/item/analytics/item_activity_stats/item/activities/item/item_activity_item_request_builder.rb @@ -39,7 +39,7 @@ def drive_item() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}{?%24expand,%24select}") end ## ## Delete navigation property activities for drives @@ -51,8 +51,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemActivity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemActivity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,13 +89,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,15 +106,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,17 +126,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a item_activity_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemActivityItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Exposes the itemActivities represented in this itemActivityStat resource. diff --git a/lib/drives/item/items/item/analytics/item_activity_stats/item/item_activity_stat_item_request_builder.rb b/lib/drives/item/items/item/analytics/item_activity_stats/item/item_activity_stat_item_request_builder.rb index 380893d821..1538c9d830 100644 --- a/lib/drives/item/items/item/analytics/item_activity_stats/item/item_activity_stat_item_request_builder.rb +++ b/lib/drives/item/items/item/analytics/item_activity_stats/item/item_activity_stat_item_request_builder.rb @@ -35,7 +35,7 @@ def activities() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}{?%24expand,%24select}") end ## ## Delete navigation property itemActivityStats for drives @@ -47,8 +47,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,13 +85,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -104,15 +102,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,17 +122,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a item_activity_stat_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemActivityStatItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get itemActivityStats from drives diff --git a/lib/drives/item/items/item/analytics/item_activity_stats/item_activity_stats_request_builder.rb b/lib/drives/item/items/item/analytics/item_activity_stats/item_activity_stats_request_builder.rb index 4f6ffa86a2..765b67c1a4 100644 --- a/lib/drives/item/items/item/analytics/item_activity_stats/item_activity_stats_request_builder.rb +++ b/lib/drives/item/items/item/analytics/item_activity_stats/item_activity_stats_request_builder.rb @@ -46,7 +46,7 @@ def by_item_activity_stat_id(item_activity_stat_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get itemActivityStats from drives @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemActivityStatCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,8 +73,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,15 +83,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,17 +103,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a item_activity_stats_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemActivityStatsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get itemActivityStats from drives diff --git a/lib/drives/item/items/item/analytics/last_seven_days/last_seven_days_request_builder.rb b/lib/drives/item/items/item/analytics/last_seven_days/last_seven_days_request_builder.rb index c47a0abd0c..bb03dd0b2a 100644 --- a/lib/drives/item/items/item/analytics/last_seven_days/last_seven_days_request_builder.rb +++ b/lib/drives/item/items/item/analytics/last_seven_days/last_seven_days_request_builder.rb @@ -27,7 +27,7 @@ class LastSevenDaysRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/lastSevenDays{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/lastSevenDays{?%24expand,%24select}") end ## ## Get lastSevenDays from drives @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_seven_days_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastSevenDaysRequestBuilder.new(raw_url, @request_adapter) + end ## # Get lastSevenDays from drives diff --git a/lib/drives/item/items/item/assign_sensitivity_label/assign_sensitivity_label_post_request_body.rb b/lib/drives/item/items/item/assign_sensitivity_label/assign_sensitivity_label_post_request_body.rb index 99c527caf2..737d51ae68 100644 --- a/lib/drives/item/items/item/assign_sensitivity_label/assign_sensitivity_label_post_request_body.rb +++ b/lib/drives/item/items/item/assign_sensitivity_label/assign_sensitivity_label_post_request_body.rb @@ -28,15 +28,15 @@ class AssignSensitivityLabelPostRequestBody # The sensitivityLabelId property @sensitivity_label_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -58,7 +58,7 @@ def assignment_method=(value) @assignment_method = value end ## - ## Instantiates a new assignSensitivityLabelPostRequestBody and sets the default values. + ## Instantiates a new AssignSensitivityLabelPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/assign_sensitivity_label/assign_sensitivity_label_request_builder.rb b/lib/drives/item/items/item/assign_sensitivity_label/assign_sensitivity_label_request_builder.rb index a2d96b5654..c8052f36ff 100644 --- a/lib/drives/item/items/item/assign_sensitivity_label/assign_sensitivity_label_request_builder.rb +++ b/lib/drives/item/items/item/assign_sensitivity_label/assign_sensitivity_label_request_builder.rb @@ -38,8 +38,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,16 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assign_sensitivity_label_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignSensitivityLabelRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/checkin/checkin_post_request_body.rb b/lib/drives/item/items/item/checkin/checkin_post_request_body.rb index 563a9a8244..a94aff52da 100644 --- a/lib/drives/item/items/item/checkin/checkin_post_request_body.rb +++ b/lib/drives/item/items/item/checkin/checkin_post_request_body.rb @@ -24,15 +24,15 @@ class CheckinPostRequestBody # The comment property @comment ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -69,7 +69,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new checkinPostRequestBody and sets the default values. + ## Instantiates a new CheckinPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/checkin/checkin_request_builder.rb b/lib/drives/item/items/item/checkin/checkin_request_builder.rb index 4271424eff..ea81e4d9e9 100644 --- a/lib/drives/item/items/item/checkin/checkin_request_builder.rb +++ b/lib/drives/item/items/item/checkin/checkin_request_builder.rb @@ -38,8 +38,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,16 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a checkin_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CheckinRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/checkout/checkout_request_builder.rb b/lib/drives/item/items/item/checkout/checkout_request_builder.rb index 21881883dd..5bd942772c 100644 --- a/lib/drives/item/items/item/checkout/checkout_request_builder.rb +++ b/lib/drives/item/items/item/checkout/checkout_request_builder.rb @@ -36,8 +36,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,15 +46,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a checkout_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CheckoutRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/children/children_request_builder.rb b/lib/drives/item/items/item/children/children_request_builder.rb index c90b1f2cde..e784024018 100644 --- a/lib/drives/item/items/item/children/children_request_builder.rb +++ b/lib/drives/item/items/item/children/children_request_builder.rb @@ -44,7 +44,7 @@ def by_drive_item_id1(drive_item_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Return a collection of DriveItems in the children relationship of a DriveItem. DriveItems with a non-null folder or package facet can have one or more child DriveItems. @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItemCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,8 +71,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,15 +81,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,17 +101,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a children_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChildrenRequestBuilder.new(raw_url, @request_adapter) + end ## # Return a collection of DriveItems in the children relationship of a DriveItem. DriveItems with a non-null folder or package facet can have one or more child DriveItems. diff --git a/lib/drives/item/items/item/children/count/count_request_builder.rb b/lib/drives/item/items/item/children/count/count_request_builder.rb index cf1ce4b7e4..be62b05f5e 100644 --- a/lib/drives/item/items/item/children/count/count_request_builder.rb +++ b/lib/drives/item/items/item/children/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/children/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/children/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/items/item/children/item/content/content_request_builder.rb b/lib/drives/item/items/item/children/item/content/content_request_builder.rb index 84476adc01..9eeddaaa25 100644 --- a/lib/drives/item/items/item/children/item/content/content_request_builder.rb +++ b/lib/drives/item/items/item/children/item/content/content_request_builder.rb @@ -29,7 +29,20 @@ class ContentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/children/{driveItem%2Did1}/content") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/children/{driveItem%2Did1}/content{?%24format*}") + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) end ## ## The content stream, if the item represents a file. @@ -41,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -57,8 +69,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,15 +77,34 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -86,17 +116,49 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The content stream, if the item represents a file. + class ContentRequestBuilderGetQueryParameters + + ## + # Format of the content + attr_accessor :format + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "format" + return "%24format" + else + return original_name + end + end + end end end end diff --git a/lib/drives/item/items/item/children/item/drive_item_item_request_builder.rb b/lib/drives/item/items/item/children/item/drive_item_item_request_builder.rb index 939f2b5de0..25f7e2684d 100644 --- a/lib/drives/item/items/item/children/item/drive_item_item_request_builder.rb +++ b/lib/drives/item/items/item/children/item/drive_item_item_request_builder.rb @@ -33,7 +33,7 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/children/{driveItem%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/children/{driveItem%2Did1}{?%24expand,%24select}") end ## ## Collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable. @@ -45,8 +45,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a drive_item_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DriveItemItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable. diff --git a/lib/drives/item/items/item/content/content_request_builder.rb b/lib/drives/item/items/item/content/content_request_builder.rb index d5a4492278..1b31edb903 100644 --- a/lib/drives/item/items/item/content/content_request_builder.rb +++ b/lib/drives/item/items/item/content/content_request_builder.rb @@ -25,7 +25,20 @@ class ContentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/content") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/content{?%24format*}") + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) end ## ## The content stream, if the item represents a file. @@ -37,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -53,8 +65,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,15 +73,34 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -82,17 +112,49 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The content stream, if the item represents a file. + class ContentRequestBuilderGetQueryParameters + + ## + # Format of the content + attr_accessor :format + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "format" + return "%24format" + else + return original_name + end + end + end end end end diff --git a/lib/drives/item/items/item/copy/copy_post_request_body.rb b/lib/drives/item/items/item/copy/copy_post_request_body.rb index dbfa2d66fd..c69fd9098b 100644 --- a/lib/drives/item/items/item/copy/copy_post_request_body.rb +++ b/lib/drives/item/items/item/copy/copy_post_request_body.rb @@ -25,22 +25,22 @@ class CopyPostRequestBody # The parentReference property @parent_reference ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyPostRequestBody and sets the default values. + ## Instantiates a new CopyPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/copy/copy_request_builder.rb b/lib/drives/item/items/item/copy/copy_request_builder.rb index ce5a5aab31..718861655b 100644 --- a/lib/drives/item/items/item/copy/copy_request_builder.rb +++ b/lib/drives/item/items/item/copy/copy_request_builder.rb @@ -28,7 +28,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/copy") end ## - ## Asynchronously creates a copy of an [driveItem][item-resource] (including any children), under a new parent item or with a new name. + ## Asynchronously creates a copy of an driveItem (including any children), under a new parent item or with a new name. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of drive_item @@ -39,12 +39,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Asynchronously creates a copy of an [driveItem][item-resource] (including any children), under a new parent item or with a new name. + ## Asynchronously creates a copy of an driveItem (including any children), under a new parent item or with a new name. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -52,17 +51,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/create_link/create_link_post_request_body.rb b/lib/drives/item/items/item/create_link/create_link_post_request_body.rb index aacc1d8c50..2d48fe30eb 100644 --- a/lib/drives/item/items/item/create_link/create_link_post_request_body.rb +++ b/lib/drives/item/items/item/create_link/create_link_post_request_body.rb @@ -1,6 +1,7 @@ require 'date' require 'microsoft_kiota_abstractions' require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/drive_recipient' require_relative '../../../../drives' require_relative '../../../item' require_relative '../../items' @@ -28,31 +29,37 @@ class CreateLinkPostRequestBody # The password property @password ## + # The recipients property + @recipients + ## # The retainInheritedPermissions property @retain_inherited_permissions ## # The scope property @scope ## + # The sendNotification property + @send_notification + ## # The type property @type ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new createLinkPostRequestBody and sets the default values. + ## Instantiates a new CreateLinkPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -91,8 +98,10 @@ def get_field_deserializers() "expirationDateTime" => lambda {|n| @expiration_date_time = n.get_date_time_value() }, "message" => lambda {|n| @message = n.get_string_value() }, "password" => lambda {|n| @password = n.get_string_value() }, + "recipients" => lambda {|n| @recipients = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DriveRecipient.create_from_discriminator_value(pn) }) }, "retainInheritedPermissions" => lambda {|n| @retain_inherited_permissions = n.get_boolean_value() }, "scope" => lambda {|n| @scope = n.get_string_value() }, + "sendNotification" => lambda {|n| @send_notification = n.get_boolean_value() }, "type" => lambda {|n| @type = n.get_string_value() }, } end @@ -127,6 +136,21 @@ def password=(value) @password = value end ## + ## Gets the recipients property value. The recipients property + ## @return a drive_recipient + ## + def recipients + return @recipients + end + ## + ## Sets the recipients property value. The recipients property + ## @param value Value to set for the recipients property. + ## @return a void + ## + def recipients=(value) + @recipients = value + end + ## ## Gets the retainInheritedPermissions property value. The retainInheritedPermissions property ## @return a boolean ## @@ -157,6 +181,21 @@ def scope=(value) @scope = value end ## + ## Gets the sendNotification property value. The sendNotification property + ## @return a boolean + ## + def send_notification + return @send_notification + end + ## + ## Sets the sendNotification property value. The sendNotification property + ## @param value Value to set for the sendNotification property. + ## @return a void + ## + def send_notification=(value) + @send_notification = value + end + ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void @@ -166,8 +205,10 @@ def serialize(writer) writer.write_date_time_value("expirationDateTime", @expiration_date_time) writer.write_string_value("message", @message) writer.write_string_value("password", @password) + writer.write_collection_of_object_values("recipients", @recipients) writer.write_boolean_value("retainInheritedPermissions", @retain_inherited_permissions) writer.write_string_value("scope", @scope) + writer.write_boolean_value("sendNotification", @send_notification) writer.write_string_value("type", @type) writer.write_additional_data(@additional_data) end diff --git a/lib/drives/item/items/item/create_link/create_link_request_builder.rb b/lib/drives/item/items/item/create_link/create_link_request_builder.rb index 424fd989b6..27b4118276 100644 --- a/lib/drives/item/items/item/create_link/create_link_request_builder.rb +++ b/lib/drives/item/items/item/create_link/create_link_request_builder.rb @@ -39,8 +39,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Permission.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a create_link_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreateLinkRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/create_upload_session/create_upload_session_post_request_body.rb b/lib/drives/item/items/item/create_upload_session/create_upload_session_post_request_body.rb index c8c5ab8f9a..d82eb773a3 100644 --- a/lib/drives/item/items/item/create_upload_session/create_upload_session_post_request_body.rb +++ b/lib/drives/item/items/item/create_upload_session/create_upload_session_post_request_body.rb @@ -22,22 +22,22 @@ class CreateUploadSessionPostRequestBody # The item property @item ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new createUploadSessionPostRequestBody and sets the default values. + ## Instantiates a new CreateUploadSessionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/create_upload_session/create_upload_session_request_builder.rb b/lib/drives/item/items/item/create_upload_session/create_upload_session_request_builder.rb index 6d9fe15967..f8fc166ef3 100644 --- a/lib/drives/item/items/item/create_upload_session/create_upload_session_request_builder.rb +++ b/lib/drives/item/items/item/create_upload_session/create_upload_session_request_builder.rb @@ -39,8 +39,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UploadSession.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a create_upload_session_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreateUploadSessionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/created_by_user/created_by_user_request_builder.rb b/lib/drives/item/items/item/created_by_user/created_by_user_request_builder.rb index 705ab9a95f..bfe9b898e5 100644 --- a/lib/drives/item/items/item/created_by_user/created_by_user_request_builder.rb +++ b/lib/drives/item/items/item/created_by_user/created_by_user_request_builder.rb @@ -8,6 +8,7 @@ require_relative '../item' require_relative './created_by_user' require_relative './mailbox_settings/mailbox_settings_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' module MicrosoftGraph module Drives @@ -25,13 +26,18 @@ def mailbox_settings() return MicrosoftGraph::Drives::Item::Items::Item::CreatedByUser::MailboxSettings::MailboxSettingsRequestBuilder.new(@path_parameters, @request_adapter) end ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Drives::Item::Items::Item::CreatedByUser::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Instantiates a new CreatedByUserRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/createdByUser{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/createdByUser{?%24expand,%24select}") end ## ## Identity of the user who created the item. Read-only. @@ -43,8 +49,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +59,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a created_by_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreatedByUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Identity of the user who created the item. Read-only. diff --git a/lib/drives/item/items/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb b/lib/drives/item/items/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb index 7cf3f31308..2d8f5073e3 100644 --- a/lib/drives/item/items/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb +++ b/lib/drives/item/items/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb @@ -27,10 +27,10 @@ class MailboxSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/createdByUser/mailboxSettings{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}") end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of mailbox_settings ## @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -55,26 +54,25 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -86,20 +84,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mailbox_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MailboxSettingsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. class MailboxSettingsRequestBuilderGetQueryParameters ## diff --git a/lib/me/joined_teams/item/channels/count/count.rb b/lib/drives/item/items/item/created_by_user/service_provisioning_errors/count/count.rb similarity index 100% rename from lib/me/joined_teams/item/channels/count/count.rb rename to lib/drives/item/items/item/created_by_user/service_provisioning_errors/count/count.rb diff --git a/lib/drives/item/items/item/created_by_user/service_provisioning_errors/count/count_request_builder.rb b/lib/drives/item/items/item/created_by_user/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..bc8eaba9ad --- /dev/null +++ b/lib/drives/item/items/item/created_by_user/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,109 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../drives' +require_relative '../../../../../item' +require_relative '../../../../items' +require_relative '../../../item' +require_relative '../../created_by_user' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module CreatedByUser + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/created_objects/created_objects.rb b/lib/drives/item/items/item/created_by_user/service_provisioning_errors/service_provisioning_errors.rb similarity index 100% rename from lib/me/created_objects/created_objects.rb rename to lib/drives/item/items/item/created_by_user/service_provisioning_errors/service_provisioning_errors.rb diff --git a/lib/drives/item/items/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/drives/item/items/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..7a1a9bbe68 --- /dev/null +++ b/lib/drives/item/items/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,143 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../models/service_provisioning_error_collection_response' +require_relative '../../../../../drives' +require_relative '../../../../item' +require_relative '../../../items' +require_relative '../../item' +require_relative '../created_by_user' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module CreatedByUser + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \drives\{drive-id}\items\{driveItem-id}\createdByUser\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Drives::Item::Items::Item::CreatedByUser::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/delta/delta.rb b/lib/drives/item/items/item/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/drives/item/items/item/delta/delta.rb +++ b/lib/drives/item/items/item/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/drives/item/items/item/delta/delta_get_response.rb b/lib/drives/item/items/item/delta/delta_get_response.rb new file mode 100644 index 0000000000..87eb530284 --- /dev/null +++ b/lib/drives/item/items/item/delta/delta_get_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_delta_function_response' +require_relative '../../../../../models/drive_item' +require_relative '../../../../drives' +require_relative '../../../item' +require_relative '../../items' +require_relative '../item' +require_relative './delta' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a drive_item + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/delta/delta_request_builder.rb b/lib/drives/item/items/item/delta/delta_request_builder.rb index c988fa086a..7ab4f63e07 100644 --- a/lib/drives/item/items/item/delta/delta_request_builder.rb +++ b/lib/drives/item/items/item/delta/delta_request_builder.rb @@ -24,49 +24,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## Track changes in a driveItem and its children over time. Your app begins by calling delta without any parameters.The service starts enumerating the drive's hierarchy, returning pages of items and either an @odata.nextLink or an @odata.deltaLink, as described below.Your app should continue calling with the @odata.nextLink until you no longer see an @odata.nextLink returned, or you see a response with an empty set of changes. After you have finished receiving all the changes, you may apply them to your local state.To check for changes in the future, call delta again with the @odata.deltaLink from the previous response. Deleted items are returned with the deleted facet.Items with this property set should be removed from your local state. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## Track changes in a driveItem and its children over time. Your app begins by calling delta without any parameters.The service starts enumerating the drive's hierarchy, returning pages of items and either an @odata.nextLink or an @odata.deltaLink, as described below.Your app should continue calling with the @odata.nextLink until you no longer see an @odata.nextLink returned, or you see a response with an empty set of changes. After you have finished receiving all the changes, you may apply them to your local state.To check for changes in the future, call delta again with the @odata.deltaLink from the previous response. Deleted items are returned with the deleted facet.Items with this property set should be removed from your local state. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # Track changes in a driveItem and its children over time. Your app begins by calling delta without any parameters.The service starts enumerating the drive's hierarchy, returning pages of items and either an @odata.nextLink or an @odata.deltaLink, as described below.Your app should continue calling with the @odata.nextLink until you no longer see an @odata.nextLink returned, or you see a response with an empty set of changes. After you have finished receiving all the changes, you may apply them to your local state.To check for changes in the future, call delta again with the @odata.deltaLink from the previous response. Deleted items are returned with the deleted facet.Items with this property set should be removed from your local state. class DeltaRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -94,6 +105,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/drives/item/items/item/delta/delta_response.rb b/lib/drives/item/items/item/delta/delta_response.rb deleted file mode 100644 index 3a4b2f72b8..0000000000 --- a/lib/drives/item/items/item/delta/delta_response.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_delta_function_response' -require_relative '../../../../../models/drive_item' -require_relative '../../../../drives' -require_relative '../../../item' -require_relative '../../items' -require_relative '../item' -require_relative './delta' - -module MicrosoftGraph - module Drives - module Item - module Items - module Item - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a drive_item - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/drives/item/items/item/delta_with_token/delta_with_token.rb b/lib/drives/item/items/item/delta_with_token/delta_with_token.rb index 5e0264d883..c470085280 100644 --- a/lib/drives/item/items/item/delta_with_token/delta_with_token.rb +++ b/lib/drives/item/items/item/delta_with_token/delta_with_token.rb @@ -1 +1 @@ -require_relative 'delta_with_token_response' +require_relative 'delta_with_token_get_response' diff --git a/lib/drives/item/items/item/delta_with_token/delta_with_token_get_response.rb b/lib/drives/item/items/item/delta_with_token/delta_with_token_get_response.rb new file mode 100644 index 0000000000..2a27b21af3 --- /dev/null +++ b/lib/drives/item/items/item/delta_with_token/delta_with_token_get_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_delta_function_response' +require_relative '../../../../../models/drive_item' +require_relative '../../../../drives' +require_relative '../../../item' +require_relative '../../items' +require_relative '../item' +require_relative './delta_with_token' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module DeltaWithToken + class DeltaWithTokenGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaWithTokenGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_with_token_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaWithTokenGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a drive_item + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/delta_with_token/delta_with_token_request_builder.rb b/lib/drives/item/items/item/delta_with_token/delta_with_token_request_builder.rb index 8b67bd7db1..d33cf956e8 100644 --- a/lib/drives/item/items/item/delta_with_token/delta_with_token_request_builder.rb +++ b/lib/drives/item/items/item/delta_with_token/delta_with_token_request_builder.rb @@ -25,21 +25,20 @@ class DeltaWithTokenRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter, token=nil) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/delta(token='{token}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/delta(token='{token}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Invoke function delta ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_with_token_response + ## @return a Fiber of delta_with_token_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::DeltaWithToken::DeltaWithTokenResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::DeltaWithToken::DeltaWithTokenGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function delta @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_with_token_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaWithTokenRequestBuilder.new(raw_url, @request_adapter) + end ## # Invoke function delta @@ -68,6 +76,9 @@ class DeltaWithTokenRequestBuilderGetQueryParameters # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -95,6 +106,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/drives/item/items/item/delta_with_token/delta_with_token_response.rb b/lib/drives/item/items/item/delta_with_token/delta_with_token_response.rb deleted file mode 100644 index 0c32286f9a..0000000000 --- a/lib/drives/item/items/item/delta_with_token/delta_with_token_response.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_delta_function_response' -require_relative '../../../../../models/drive_item' -require_relative '../../../../drives' -require_relative '../../../item' -require_relative '../../items' -require_relative '../item' -require_relative './delta_with_token' - -module MicrosoftGraph - module Drives - module Item - module Items - module Item - module DeltaWithToken - class DeltaWithTokenResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaWithTokenResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_with_token_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaWithTokenResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a drive_item - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/me/created_objects/graph_service_principal/graph_service_principal.rb b/lib/drives/item/items/item/discard_checkout/discard_checkout.rb similarity index 100% rename from lib/me/created_objects/graph_service_principal/graph_service_principal.rb rename to lib/drives/item/items/item/discard_checkout/discard_checkout.rb diff --git a/lib/drives/item/items/item/discard_checkout/discard_checkout_request_builder.rb b/lib/drives/item/items/item/discard_checkout/discard_checkout_request_builder.rb new file mode 100644 index 0000000000..06f7ee8639 --- /dev/null +++ b/lib/drives/item/items/item/discard_checkout/discard_checkout_request_builder.rb @@ -0,0 +1,74 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../drives' +require_relative '../../../item' +require_relative '../../items' +require_relative '../item' +require_relative './discard_checkout' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module DiscardCheckout + ## + # Provides operations to call the discardCheckout method. + class DiscardCheckoutRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DiscardCheckoutRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/discardCheckout") + end + ## + ## Discard the check out of a driveItem. This action releases a driveItem resource that was previously checked out. Any changes made to the item while it was checked out are discarded. The same user that performed the checkout must discard it. Another alternative is to use application permissions. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Discard the check out of a driveItem. This action releases a driveItem resource that was previously checked out. Any changes made to the item while it was checked out are discarded. The same user that performed the checkout must discard it. Another alternative is to use application permissions. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a discard_checkout_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DiscardCheckoutRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/drive_item_item_request_builder.rb b/lib/drives/item/items/item/drive_item_item_request_builder.rb index b9a8d1443a..e5fcbd5e7e 100644 --- a/lib/drives/item/items/item/drive_item_item_request_builder.rb +++ b/lib/drives/item/items/item/drive_item_item_request_builder.rb @@ -17,6 +17,7 @@ require_relative './create_upload_session/create_upload_session_request_builder' require_relative './delta/delta_request_builder' require_relative './delta_with_token/delta_with_token_request_builder' +require_relative './discard_checkout/discard_checkout_request_builder' require_relative './extract_sensitivity_labels/extract_sensitivity_labels_request_builder' require_relative './follow/follow_request_builder' require_relative './get_activities_by_interval/get_activities_by_interval_request_builder' @@ -29,6 +30,7 @@ require_relative './permissions/permissions_request_builder' require_relative './preview/preview_request_builder' require_relative './restore/restore_request_builder' +require_relative './retention_label/retention_label_request_builder' require_relative './search_with_q/search_with_q_request_builder' require_relative './subscriptions/subscriptions_request_builder' require_relative './thumbnails/thumbnails_request_builder' @@ -102,6 +104,11 @@ def delta() return MicrosoftGraph::Drives::Item::Items::Item::Delta::DeltaRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the discardCheckout method. + def discard_checkout() + return MicrosoftGraph::Drives::Item::Items::Item::DiscardCheckout::DiscardCheckoutRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to call the extractSensitivityLabels method. def extract_sensitivity_labels() return MicrosoftGraph::Drives::Item::Items::Item::ExtractSensitivityLabels::ExtractSensitivityLabelsRequestBuilder.new(@path_parameters, @request_adapter) @@ -152,6 +159,11 @@ def restore() return MicrosoftGraph::Drives::Item::Items::Item::Restore::RestoreRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to manage the retentionLabel property of the microsoft.graph.driveItem entity. + def retention_label() + return MicrosoftGraph::Drives::Item::Items::Item::RetentionLabel::RetentionLabelRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to manage the subscriptions property of the microsoft.graph.driveItem entity. def subscriptions() return MicrosoftGraph::Drives::Item::Items::Item::Subscriptions::SubscriptionsRequestBuilder.new(@path_parameters, @request_adapter) @@ -188,10 +200,10 @@ def workbook() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}{?%24expand,%24select}") end ## - ## Delete a DriveItem by using its ID or path.Note that deleting items using this method will move the items to the recycle bin instead of permanently deleting the item. + ## Delete navigation property items for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -200,8 +212,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -223,8 +234,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -241,7 +251,7 @@ def get_activities_by_interval_with_start_date_time_with_end_date_time_with_inte return GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.new(@path_parameters, @request_adapter, endDateTime, interval, startDateTime) end ## - ## Update the metadata for a driveItem by ID or path. You can also use update to move an item to another parent by updating the item's parentReference property. + ## Update the navigation property items in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of drive_item @@ -252,8 +262,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -266,19 +275,20 @@ def search_with_q(q) return SearchWithQRequestBuilder.new(@path_parameters, @request_adapter, q) end ## - ## Delete a DriveItem by using its ID or path.Note that deleting items using this method will move the items to the recycle bin instead of permanently deleting the item. + ## Delete navigation property items for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -288,19 +298,19 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the metadata for a driveItem by ID or path. You can also use update to move an item to another parent by updating the item's parentReference property. + ## Update the navigation property items in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -308,17 +318,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a drive_item_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DriveItemItemRequestBuilder.new(raw_url, @request_adapter) + end ## # All items contained in the drive. Read-only. Nullable. diff --git a/lib/drives/item/items/item/extract_sensitivity_labels/extract_sensitivity_labels_request_builder.rb b/lib/drives/item/items/item/extract_sensitivity_labels/extract_sensitivity_labels_request_builder.rb index 788f03b0b3..9ffe9dd5c0 100644 --- a/lib/drives/item/items/item/extract_sensitivity_labels/extract_sensitivity_labels_request_builder.rb +++ b/lib/drives/item/items/item/extract_sensitivity_labels/extract_sensitivity_labels_request_builder.rb @@ -37,8 +37,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExtractSensitivityLabelsResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,16 +47,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extract_sensitivity_labels_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtractSensitivityLabelsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/follow/follow_request_builder.rb b/lib/drives/item/items/item/follow/follow_request_builder.rb index 54fc8b6714..f4ccea9d97 100644 --- a/lib/drives/item/items/item/follow/follow_request_builder.rb +++ b/lib/drives/item/items/item/follow/follow_request_builder.rb @@ -37,8 +37,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,16 +47,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a follow_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FollowRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/get_activities_by_interval/get_activities_by_interval.rb b/lib/drives/item/items/item/get_activities_by_interval/get_activities_by_interval.rb index 392eb95c99..ab461e5b20 100644 --- a/lib/drives/item/items/item/get_activities_by_interval/get_activities_by_interval.rb +++ b/lib/drives/item/items/item/get_activities_by_interval/get_activities_by_interval.rb @@ -1 +1 @@ -require_relative 'get_activities_by_interval_response' +require_relative 'get_activities_by_interval_get_response' diff --git a/lib/drives/item/items/item/get_activities_by_interval/get_activities_by_interval_get_response.rb b/lib/drives/item/items/item/get_activities_by_interval/get_activities_by_interval_get_response.rb new file mode 100644 index 0000000000..a1956bd4f2 --- /dev/null +++ b/lib/drives/item/items/item/get_activities_by_interval/get_activities_by_interval_get_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../models/item_activity_stat' +require_relative '../../../../drives' +require_relative '../../../item' +require_relative '../../items' +require_relative '../item' +require_relative './get_activities_by_interval' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module GetActivitiesByInterval + class GetActivitiesByIntervalGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetActivitiesByIntervalGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_activities_by_interval_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetActivitiesByIntervalGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a item_activity_stat + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/get_activities_by_interval/get_activities_by_interval_request_builder.rb b/lib/drives/item/items/item/get_activities_by_interval/get_activities_by_interval_request_builder.rb index 0b7703cf26..36eca69260 100644 --- a/lib/drives/item/items/item/get_activities_by_interval/get_activities_by_interval_request_builder.rb +++ b/lib/drives/item/items/item/get_activities_by_interval/get_activities_by_interval_request_builder.rb @@ -24,49 +24,60 @@ class GetActivitiesByIntervalRequestBuilder < MicrosoftKiotaAbstractions::BaseRe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/getActivitiesByInterval(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/getActivitiesByInterval(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function getActivitiesByInterval + ## Get a collection of itemActivityStats resources for the activities that took place on this resource within the specified time interval. Analytics aggregates might not be available for all action types. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_activities_by_interval_response + ## @return a Fiber of get_activities_by_interval_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::GetActivitiesByInterval::GetActivitiesByIntervalResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::GetActivitiesByInterval::GetActivitiesByIntervalGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function getActivitiesByInterval + ## Get a collection of itemActivityStats resources for the activities that took place on this resource within the specified time interval. Analytics aggregates might not be available for all action types. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_activities_by_interval_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetActivitiesByIntervalRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function getActivitiesByInterval + # Get a collection of itemActivityStats resources for the activities that took place on this resource within the specified time interval. Analytics aggregates might not be available for all action types. class GetActivitiesByIntervalRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -94,6 +105,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/drives/item/items/item/get_activities_by_interval/get_activities_by_interval_response.rb b/lib/drives/item/items/item/get_activities_by_interval/get_activities_by_interval_response.rb deleted file mode 100644 index d11582aa25..0000000000 --- a/lib/drives/item/items/item/get_activities_by_interval/get_activities_by_interval_response.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../models/item_activity_stat' -require_relative '../../../../drives' -require_relative '../../../item' -require_relative '../../items' -require_relative '../item' -require_relative './get_activities_by_interval' - -module MicrosoftGraph - module Drives - module Item - module Items - module Item - module GetActivitiesByInterval - class GetActivitiesByIntervalResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getActivitiesByIntervalResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_activities_by_interval_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetActivitiesByIntervalResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a item_activity_stat - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/drives/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/dab1c2feb9ecf2d349721478e4ff8fe9c46b97a0c44110851b2b17a08d22383e.rb b/lib/drives/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/dab1c2feb9ecf2d349721478e4ff8fe9c46b97a0c44110851b2b17a08d22383e.rb index d75de3a279..1e598f8378 100644 --- a/lib/drives/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/dab1c2feb9ecf2d349721478e4ff8fe9c46b97a0c44110851b2b17a08d22383e.rb +++ b/lib/drives/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/dab1c2feb9ecf2d349721478e4ff8fe9c46b97a0c44110851b2b17a08d22383e.rb @@ -27,21 +27,20 @@ class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequest ## @return a void ## def initialize(path_parameters, request_adapter, end_date_time=nil, interval=nil, start_date_time=nil) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Invoke function getActivitiesByInterval ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response + ## @return a Fiber of get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval::GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval::GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function getActivitiesByInterval @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.new(raw_url, @request_adapter) + end ## # Invoke function getActivitiesByInterval @@ -70,6 +78,9 @@ class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequest # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -97,6 +108,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/drives/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval.rb b/lib/drives/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval.rb index a8604aeec9..d4ef65f826 100644 --- a/lib/drives/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval.rb +++ b/lib/drives/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval.rb @@ -1 +1 @@ -require_relative 'get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response' +require_relative 'get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response' diff --git a/lib/drives/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response.rb b/lib/drives/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response.rb new file mode 100644 index 0000000000..f6051b97ab --- /dev/null +++ b/lib/drives/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../models/item_activity_stat' +require_relative '../../../../drives' +require_relative '../../../item' +require_relative '../../items' +require_relative '../item' +require_relative './get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval + class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a item_activity_stat + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response.rb b/lib/drives/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response.rb deleted file mode 100644 index 92cd817441..0000000000 --- a/lib/drives/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../models/item_activity_stat' -require_relative '../../../../drives' -require_relative '../../../item' -require_relative '../../items' -require_relative '../item' -require_relative './get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval' - -module MicrosoftGraph - module Drives - module Item - module Items - module Item - module GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval - class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a item_activity_stat - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/drives/item/items/item/invite/invite.rb b/lib/drives/item/items/item/invite/invite.rb index 3611ac926a..9048e8907a 100644 --- a/lib/drives/item/items/item/invite/invite.rb +++ b/lib/drives/item/items/item/invite/invite.rb @@ -1,2 +1,2 @@ require_relative 'invite_post_request_body' -require_relative 'invite_response' +require_relative 'invite_post_response' diff --git a/lib/drives/item/items/item/invite/invite_post_request_body.rb b/lib/drives/item/items/item/invite/invite_post_request_body.rb index 10aae71a78..54b4ef5ca1 100644 --- a/lib/drives/item/items/item/invite/invite_post_request_body.rb +++ b/lib/drives/item/items/item/invite/invite_post_request_body.rb @@ -43,22 +43,22 @@ class InvitePostRequestBody # The sendInvitation property @send_invitation ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new invitePostRequestBody and sets the default values. + ## Instantiates a new InvitePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/invite/invite_post_response.rb b/lib/drives/item/items/item/invite/invite_post_response.rb new file mode 100644 index 0000000000..283c1c1c80 --- /dev/null +++ b/lib/drives/item/items/item/invite/invite_post_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../models/permission' +require_relative '../../../../drives' +require_relative '../../../item' +require_relative '../../items' +require_relative '../item' +require_relative './invite' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Invite + class InvitePostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new InvitePostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a invite_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InvitePostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Permission.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a permission + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/invite/invite_request_builder.rb b/lib/drives/item/items/item/invite/invite_request_builder.rb index e64ccf30dc..22cdd0dd8c 100644 --- a/lib/drives/item/items/item/invite/invite_request_builder.rb +++ b/lib/drives/item/items/item/invite/invite_request_builder.rb @@ -27,10 +27,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/invite") end ## - ## Sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends them an email with a [sharing link][]. + ## Sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends them an email with a sharing link. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of invite_response + ## @return a Fiber of invite_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -38,12 +38,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Invite::InviteResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Invite::InvitePostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends them an email with a [sharing link][]. + ## Sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends them an email with a sharing link. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -51,17 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a invite_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InviteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/invite/invite_response.rb b/lib/drives/item/items/item/invite/invite_response.rb deleted file mode 100644 index a0c2b6fa2f..0000000000 --- a/lib/drives/item/items/item/invite/invite_response.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../models/permission' -require_relative '../../../../drives' -require_relative '../../../item' -require_relative '../../items' -require_relative '../item' -require_relative './invite' - -module MicrosoftGraph - module Drives - module Item - module Items - module Item - module Invite - class InviteResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new inviteResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a invite_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return InviteResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Permission.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a permission - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/drives/item/items/item/last_modified_by_user/last_modified_by_user_request_builder.rb b/lib/drives/item/items/item/last_modified_by_user/last_modified_by_user_request_builder.rb index 1add1c4e74..95d966b41e 100644 --- a/lib/drives/item/items/item/last_modified_by_user/last_modified_by_user_request_builder.rb +++ b/lib/drives/item/items/item/last_modified_by_user/last_modified_by_user_request_builder.rb @@ -8,6 +8,7 @@ require_relative '../item' require_relative './last_modified_by_user' require_relative './mailbox_settings/mailbox_settings_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' module MicrosoftGraph module Drives @@ -25,13 +26,18 @@ def mailbox_settings() return MicrosoftGraph::Drives::Item::Items::Item::LastModifiedByUser::MailboxSettings::MailboxSettingsRequestBuilder.new(@path_parameters, @request_adapter) end ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Drives::Item::Items::Item::LastModifiedByUser::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/lastModifiedByUser{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/lastModifiedByUser{?%24expand,%24select}") end ## ## Identity of the user who last modified the item. Read-only. @@ -43,8 +49,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +59,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_modified_by_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastModifiedByUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Identity of the user who last modified the item. Read-only. diff --git a/lib/drives/item/items/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb b/lib/drives/item/items/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb index 3e9d8d6262..b25ea07bd2 100644 --- a/lib/drives/item/items/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb +++ b/lib/drives/item/items/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb @@ -27,10 +27,10 @@ class MailboxSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/lastModifiedByUser/mailboxSettings{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}") end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of mailbox_settings ## @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -55,26 +54,25 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -86,20 +84,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mailbox_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MailboxSettingsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. class MailboxSettingsRequestBuilderGetQueryParameters ## diff --git a/lib/me/joined_teams/item/channels/item/members/count/count.rb b/lib/drives/item/items/item/last_modified_by_user/service_provisioning_errors/count/count.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/members/count/count.rb rename to lib/drives/item/items/item/last_modified_by_user/service_provisioning_errors/count/count.rb diff --git a/lib/drives/item/items/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb b/lib/drives/item/items/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..45baa8d5e6 --- /dev/null +++ b/lib/drives/item/items/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,109 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../drives' +require_relative '../../../../../item' +require_relative '../../../../items' +require_relative '../../../item' +require_relative '../../last_modified_by_user' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module LastModifiedByUser + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/created_objects/item/graph_service_principal/graph_service_principal.rb b/lib/drives/item/items/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors.rb similarity index 100% rename from lib/me/created_objects/item/graph_service_principal/graph_service_principal.rb rename to lib/drives/item/items/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors.rb diff --git a/lib/drives/item/items/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/drives/item/items/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..1c9c8b0aed --- /dev/null +++ b/lib/drives/item/items/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,143 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../models/service_provisioning_error_collection_response' +require_relative '../../../../../drives' +require_relative '../../../../item' +require_relative '../../../items' +require_relative '../../item' +require_relative '../last_modified_by_user' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module LastModifiedByUser + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \drives\{drive-id}\items\{driveItem-id}\lastModifiedByUser\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Drives::Item::Items::Item::LastModifiedByUser::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/list_item/list_item_request_builder.rb b/lib/drives/item/items/item/list_item/list_item_request_builder.rb index 29b6b67b31..b0027c4529 100644 --- a/lib/drives/item/items/item/list_item/list_item_request_builder.rb +++ b/lib/drives/item/items/item/list_item/list_item_request_builder.rb @@ -25,7 +25,7 @@ class ListItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/listItem{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/listItem{?%24expand,%24select}") end ## ## For drives in SharePoint, the associated document library list item. Read-only. Nullable. @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ListItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a list_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ListItemRequestBuilder.new(raw_url, @request_adapter) + end ## # For drives in SharePoint, the associated document library list item. Read-only. Nullable. diff --git a/lib/drives/item/items/item/permanent_delete/permanent_delete_request_builder.rb b/lib/drives/item/items/item/permanent_delete/permanent_delete_request_builder.rb index 8cd50d4a84..9c5bf7e34e 100644 --- a/lib/drives/item/items/item/permanent_delete/permanent_delete_request_builder.rb +++ b/lib/drives/item/items/item/permanent_delete/permanent_delete_request_builder.rb @@ -36,8 +36,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,15 +46,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a permanent_delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PermanentDeleteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/permissions/count/count_request_builder.rb b/lib/drives/item/items/item/permissions/count/count_request_builder.rb index 712bffd510..973a0aea63 100644 --- a/lib/drives/item/items/item/permissions/count/count_request_builder.rb +++ b/lib/drives/item/items/item/permissions/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permissions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permissions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/items/item/permissions/item/grant/grant.rb b/lib/drives/item/items/item/permissions/item/grant/grant.rb index d6a3412e2b..5e12ada249 100644 --- a/lib/drives/item/items/item/permissions/item/grant/grant.rb +++ b/lib/drives/item/items/item/permissions/item/grant/grant.rb @@ -1,2 +1,2 @@ require_relative 'grant_post_request_body' -require_relative 'grant_response' +require_relative 'grant_post_response' diff --git a/lib/drives/item/items/item/permissions/item/grant/grant_post_request_body.rb b/lib/drives/item/items/item/permissions/item/grant/grant_post_request_body.rb index 859b7b551e..3ff133565a 100644 --- a/lib/drives/item/items/item/permissions/item/grant/grant_post_request_body.rb +++ b/lib/drives/item/items/item/permissions/item/grant/grant_post_request_body.rb @@ -29,22 +29,22 @@ class GrantPostRequestBody # The roles property @roles ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new grantPostRequestBody and sets the default values. + ## Instantiates a new GrantPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/permissions/item/grant/grant_post_response.rb b/lib/drives/item/items/item/permissions/item/grant/grant_post_response.rb new file mode 100644 index 0000000000..986835e14f --- /dev/null +++ b/lib/drives/item/items/item/permissions/item/grant/grant_post_response.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../../models/permission' +require_relative '../../../../../../drives' +require_relative '../../../../../item' +require_relative '../../../../items' +require_relative '../../../item' +require_relative '../../permissions' +require_relative '../item' +require_relative './grant' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Permissions + module Item + module Grant + class GrantPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GrantPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a grant_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GrantPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Permission.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a permission + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/permissions/item/grant/grant_request_builder.rb b/lib/drives/item/items/item/permissions/item/grant/grant_request_builder.rb index 55b97c2029..f49e7bf346 100644 --- a/lib/drives/item/items/item/permissions/item/grant/grant_request_builder.rb +++ b/lib/drives/item/items/item/permissions/item/grant/grant_request_builder.rb @@ -31,10 +31,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permissions/{permission%2Did}/grant") end ## - ## Grant users access to a link represented by a [permission][]. + ## Grant users access to a link represented by a permission. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of grant_response + ## @return a Fiber of grant_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -42,12 +42,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Permissions::Item::Grant::GrantResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Permissions::Item::Grant::GrantPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Grant users access to a link represented by a [permission][]. + ## Grant users access to a link represented by a permission. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -55,17 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a grant_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GrantRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/permissions/item/grant/grant_response.rb b/lib/drives/item/items/item/permissions/item/grant/grant_response.rb deleted file mode 100644 index 3d9072574c..0000000000 --- a/lib/drives/item/items/item/permissions/item/grant/grant_response.rb +++ /dev/null @@ -1,84 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../../../models/permission' -require_relative '../../../../../../drives' -require_relative '../../../../../item' -require_relative '../../../../items' -require_relative '../../../item' -require_relative '../../permissions' -require_relative '../item' -require_relative './grant' - -module MicrosoftGraph - module Drives - module Item - module Items - module Item - module Permissions - module Item - module Grant - class GrantResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new grantResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a grant_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GrantResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Permission.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a permission - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end -end diff --git a/lib/drives/item/items/item/permissions/item/permission_item_request_builder.rb b/lib/drives/item/items/item/permissions/item/permission_item_request_builder.rb index 11b122bf43..a28f3d2be1 100644 --- a/lib/drives/item/items/item/permissions/item/permission_item_request_builder.rb +++ b/lib/drives/item/items/item/permissions/item/permission_item_request_builder.rb @@ -33,10 +33,10 @@ def grant() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permissions/{permission%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permissions/{permission%2Did}{?%24expand,%24select}") end ## - ## Remove access to a DriveItem. Only sharing permissions that are not inherited can be deleted.The inheritedFrom property must be null. + ## Delete navigation property permissions for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -45,12 +45,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Return the effective sharing permission for a particular permission resource. Effective permissions of an item can come from two sources: permissions set directly on the item itself or permissions that are inherited from the item's ancestors. Callers can differentiate if the permission is inherited or not by checking the inheritedFrom property.This property is an ItemReference resource referencing the ancestor that the permission is inherited from. + ## The set of permissions for the item. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of permission ## @@ -59,12 +58,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Permission.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of a sharing permission by patching the permission resource. Only the roles property can be modified this way. + ## Update the navigation property permissions in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of permission @@ -75,46 +73,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Permission.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Remove access to a DriveItem. Only sharing permissions that are not inherited can be deleted.The inheritedFrom property must be null. + ## Delete navigation property permissions for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Return the effective sharing permission for a particular permission resource. Effective permissions of an item can come from two sources: permissions set directly on the item itself or permissions that are inherited from the item's ancestors. Callers can differentiate if the permission is inherited or not by checking the inheritedFrom property.This property is an ItemReference resource referencing the ancestor that the permission is inherited from. + ## The set of permissions for the item. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of a sharing permission by patching the permission resource. Only the roles property can be modified this way. + ## Update the navigation property permissions in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -122,20 +120,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a permission_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PermissionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Return the effective sharing permission for a particular permission resource. Effective permissions of an item can come from two sources: permissions set directly on the item itself or permissions that are inherited from the item's ancestors. Callers can differentiate if the permission is inherited or not by checking the inheritedFrom property.This property is an ItemReference resource referencing the ancestor that the permission is inherited from. + # The set of permissions for the item. Read-only. Nullable. class PermissionItemRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/permissions/permissions_request_builder.rb b/lib/drives/item/items/item/permissions/permissions_request_builder.rb index 0f272bc77f..b980560b25 100644 --- a/lib/drives/item/items/item/permissions/permissions_request_builder.rb +++ b/lib/drives/item/items/item/permissions/permissions_request_builder.rb @@ -44,10 +44,10 @@ def by_permission_id(permission_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permissions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List the effective sharing permissions on a driveItem. + ## The set of permissions for the item. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of permission_collection_response ## @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PermissionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,26 +71,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Permission.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List the effective sharing permissions on a driveItem. + ## The set of permissions for the item. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a permissions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PermissionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # List the effective sharing permissions on a driveItem. + # The set of permissions for the item. Read-only. Nullable. class PermissionsRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/preview/preview_post_request_body.rb b/lib/drives/item/items/item/preview/preview_post_request_body.rb index f47c83b654..183c56761f 100644 --- a/lib/drives/item/items/item/preview/preview_post_request_body.rb +++ b/lib/drives/item/items/item/preview/preview_post_request_body.rb @@ -24,22 +24,22 @@ class PreviewPostRequestBody # The zoom property @zoom ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new previewPostRequestBody and sets the default values. + ## Instantiates a new PreviewPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/preview/preview_request_builder.rb b/lib/drives/item/items/item/preview/preview_request_builder.rb index c03ca5af6c..e39fdd929c 100644 --- a/lib/drives/item/items/item/preview/preview_request_builder.rb +++ b/lib/drives/item/items/item/preview/preview_request_builder.rb @@ -39,8 +39,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemPreviewInfo.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a preview_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PreviewRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/restore/restore_post_request_body.rb b/lib/drives/item/items/item/restore/restore_post_request_body.rb index 1dfb6b4568..cc591d9626 100644 --- a/lib/drives/item/items/item/restore/restore_post_request_body.rb +++ b/lib/drives/item/items/item/restore/restore_post_request_body.rb @@ -25,22 +25,22 @@ class RestorePostRequestBody # The parentReference property @parent_reference ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new restorePostRequestBody and sets the default values. + ## Instantiates a new RestorePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/restore/restore_request_builder.rb b/lib/drives/item/items/item/restore/restore_request_builder.rb index 5c96ccbf8b..95e64a763d 100644 --- a/lib/drives/item/items/item/restore/restore_request_builder.rb +++ b/lib/drives/item/items/item/restore/restore_request_builder.rb @@ -39,8 +39,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a restore_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RestoreRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/me/device_management_troubleshooting_events/device_management_troubleshooting_events.rb b/lib/drives/item/items/item/retention_label/retention_label.rb similarity index 100% rename from lib/me/device_management_troubleshooting_events/device_management_troubleshooting_events.rb rename to lib/drives/item/items/item/retention_label/retention_label.rb diff --git a/lib/drives/item/items/item/retention_label/retention_label_request_builder.rb b/lib/drives/item/items/item/retention_label/retention_label_request_builder.rb new file mode 100644 index 0000000000..8375367aab --- /dev/null +++ b/lib/drives/item/items/item/retention_label/retention_label_request_builder.rb @@ -0,0 +1,169 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/item_retention_label' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../drives' +require_relative '../../../item' +require_relative '../../items' +require_relative '../item' +require_relative './retention_label' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module RetentionLabel + ## + # Provides operations to manage the retentionLabel property of the microsoft.graph.driveItem entity. + class RetentionLabelRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RetentionLabelRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/retentionLabel{?%24expand,%24select}") + end + ## + ## Remove a retention label from a driveItem. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Information about retention label and settings enforced on the driveItem. Read-write. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of item_retention_label + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemRetentionLabel.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of item_retention_label + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemRetentionLabel.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Remove a retention label from a driveItem. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Information about retention label and settings enforced on the driveItem. Read-write. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a retention_label_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RetentionLabelRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Information about retention label and settings enforced on the driveItem. Read-write. + class RetentionLabelRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/search_with_q/search_with_q.rb b/lib/drives/item/items/item/search_with_q/search_with_q.rb index e49209c0c2..4f6b6adf7d 100644 --- a/lib/drives/item/items/item/search_with_q/search_with_q.rb +++ b/lib/drives/item/items/item/search_with_q/search_with_q.rb @@ -1 +1 @@ -require_relative 'search_with_q_response' +require_relative 'search_with_q_get_response' diff --git a/lib/drives/item/items/item/search_with_q/search_with_q_get_response.rb b/lib/drives/item/items/item/search_with_q/search_with_q_get_response.rb new file mode 100644 index 0000000000..f2b4e17a82 --- /dev/null +++ b/lib/drives/item/items/item/search_with_q/search_with_q_get_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../models/drive_item' +require_relative '../../../../drives' +require_relative '../../../item' +require_relative '../../items' +require_relative '../item' +require_relative './search_with_q' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module SearchWithQ + class SearchWithQGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new SearchWithQGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a search_with_q_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return SearchWithQGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a drive_item + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/search_with_q/search_with_q_request_builder.rb b/lib/drives/item/items/item/search_with_q/search_with_q_request_builder.rb index 105e203af2..b1f7f9e79a 100644 --- a/lib/drives/item/items/item/search_with_q/search_with_q_request_builder.rb +++ b/lib/drives/item/items/item/search_with_q/search_with_q_request_builder.rb @@ -25,49 +25,60 @@ class SearchWithQRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter, q=nil) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/search(q='{q}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/search(q='{q}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function search + ## Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of search_with_q_response + ## @return a Fiber of search_with_q_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::SearchWithQ::SearchWithQResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::SearchWithQ::SearchWithQGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function search + ## Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a search_with_q_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SearchWithQRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function search + # Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. class SearchWithQRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -95,6 +106,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/drives/item/items/item/search_with_q/search_with_q_response.rb b/lib/drives/item/items/item/search_with_q/search_with_q_response.rb deleted file mode 100644 index 88e35cd6ed..0000000000 --- a/lib/drives/item/items/item/search_with_q/search_with_q_response.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../models/drive_item' -require_relative '../../../../drives' -require_relative '../../../item' -require_relative '../../items' -require_relative '../item' -require_relative './search_with_q' - -module MicrosoftGraph - module Drives - module Item - module Items - module Item - module SearchWithQ - class SearchWithQResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new searchWithQResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a search_with_q_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return SearchWithQResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a drive_item - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/drives/item/items/item/subscriptions/count/count_request_builder.rb b/lib/drives/item/items/item/subscriptions/count/count_request_builder.rb index ad3db10555..81d7097181 100644 --- a/lib/drives/item/items/item/subscriptions/count/count_request_builder.rb +++ b/lib/drives/item/items/item/subscriptions/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/subscriptions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/subscriptions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/items/item/subscriptions/item/reauthorize/reauthorize_request_builder.rb b/lib/drives/item/items/item/subscriptions/item/reauthorize/reauthorize_request_builder.rb index 5fd7884b03..b0fa6d69c7 100644 --- a/lib/drives/item/items/item/subscriptions/item/reauthorize/reauthorize_request_builder.rb +++ b/lib/drives/item/items/item/subscriptions/item/reauthorize/reauthorize_request_builder.rb @@ -40,8 +40,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,15 +50,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reauthorize_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReauthorizeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/subscriptions/item/subscription_item_request_builder.rb b/lib/drives/item/items/item/subscriptions/item/subscription_item_request_builder.rb index 892d6682f6..ff7236e397 100644 --- a/lib/drives/item/items/item/subscriptions/item/subscription_item_request_builder.rb +++ b/lib/drives/item/items/item/subscriptions/item/subscription_item_request_builder.rb @@ -33,7 +33,7 @@ def reauthorize() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/subscriptions/{subscription%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/subscriptions/{subscription%2Did}{?%24expand,%24select}") end ## ## Delete navigation property subscriptions for drives @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Subscription.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Subscription.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,13 +83,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -102,15 +100,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,17 +120,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a subscription_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SubscriptionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The set of subscriptions on the item. Only supported on the root of a drive. diff --git a/lib/drives/item/items/item/subscriptions/subscriptions_request_builder.rb b/lib/drives/item/items/item/subscriptions/subscriptions_request_builder.rb index 8c11c965aa..6dea35c353 100644 --- a/lib/drives/item/items/item/subscriptions/subscriptions_request_builder.rb +++ b/lib/drives/item/items/item/subscriptions/subscriptions_request_builder.rb @@ -44,7 +44,7 @@ def by_subscription_id(subscription_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/subscriptions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/subscriptions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The set of subscriptions on the item. Only supported on the root of a drive. @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SubscriptionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,8 +71,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Subscription.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,15 +81,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,17 +101,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a subscriptions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SubscriptionsRequestBuilder.new(raw_url, @request_adapter) + end ## # The set of subscriptions on the item. Only supported on the root of a drive. diff --git a/lib/drives/item/items/item/thumbnails/count/count_request_builder.rb b/lib/drives/item/items/item/thumbnails/count/count_request_builder.rb index 6b71fe866d..34ee4dfa70 100644 --- a/lib/drives/item/items/item/thumbnails/count/count_request_builder.rb +++ b/lib/drives/item/items/item/thumbnails/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/thumbnails/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/thumbnails/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/items/item/thumbnails/item/thumbnail_set_item_request_builder.rb b/lib/drives/item/items/item/thumbnails/item/thumbnail_set_item_request_builder.rb index 854d6a1a8d..29197fc91c 100644 --- a/lib/drives/item/items/item/thumbnails/item/thumbnail_set_item_request_builder.rb +++ b/lib/drives/item/items/item/thumbnails/item/thumbnail_set_item_request_builder.rb @@ -27,7 +27,7 @@ class ThumbnailSetItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBu ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/thumbnails/{thumbnailSet%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/thumbnails/{thumbnailSet%2Did}{?%24expand,%24select}") end ## ## Delete navigation property thumbnails for drives @@ -39,12 +39,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Collection containing [ThumbnailSet][] objects associated with the item. For more info, see [getting thumbnails][]. Read-only. Nullable. + ## Collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of thumbnail_set ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ThumbnailSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ThumbnailSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,31 +77,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Collection containing [ThumbnailSet][] objects associated with the item. For more info, see [getting thumbnails][]. Read-only. Nullable. + ## Collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,20 +114,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a thumbnail_set_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ThumbnailSetItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Collection containing [ThumbnailSet][] objects associated with the item. For more info, see [getting thumbnails][]. Read-only. Nullable. + # Collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. class ThumbnailSetItemRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/thumbnails/thumbnails_request_builder.rb b/lib/drives/item/items/item/thumbnails/thumbnails_request_builder.rb index 1068f84627..a98bf262f4 100644 --- a/lib/drives/item/items/item/thumbnails/thumbnails_request_builder.rb +++ b/lib/drives/item/items/item/thumbnails/thumbnails_request_builder.rb @@ -44,10 +44,10 @@ def by_thumbnail_set_id(thumbnail_set_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/thumbnails{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/thumbnails{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a collection of ThumbnailSet resources for a DriveItem resource. A DriveItem can be represented by zero or more ThumbnailSet resources.Each thumbnailSet can have one or more thumbnail objects, which are images that represent the item.For example, a thumbnailSet may include thumbnail objects, such as common ones including small, medium, or large. There are many ways to work with thumbnails on OneDrive.Here are the most common ones: + ## Collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of thumbnail_set_collection_response ## @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ThumbnailSetCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,26 +71,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ThumbnailSet.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a collection of ThumbnailSet resources for a DriveItem resource. A DriveItem can be represented by zero or more ThumbnailSet resources.Each thumbnailSet can have one or more thumbnail objects, which are images that represent the item.For example, a thumbnailSet may include thumbnail objects, such as common ones including small, medium, or large. There are many ways to work with thumbnails on OneDrive.Here are the most common ones: + ## Collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a thumbnails_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ThumbnailsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a collection of ThumbnailSet resources for a DriveItem resource. A DriveItem can be represented by zero or more ThumbnailSet resources.Each thumbnailSet can have one or more thumbnail objects, which are images that represent the item.For example, a thumbnailSet may include thumbnail objects, such as common ones including small, medium, or large. There are many ways to work with thumbnails on OneDrive.Here are the most common ones: + # Collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. class ThumbnailsRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/unfollow/unfollow_request_builder.rb b/lib/drives/item/items/item/unfollow/unfollow_request_builder.rb index 53358bfa1d..3a126dd5a2 100644 --- a/lib/drives/item/items/item/unfollow/unfollow_request_builder.rb +++ b/lib/drives/item/items/item/unfollow/unfollow_request_builder.rb @@ -36,8 +36,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,15 +46,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unfollow_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnfollowRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/validate_permission/validate_permission_post_request_body.rb b/lib/drives/item/items/item/validate_permission/validate_permission_post_request_body.rb index f539dda60f..9a73d5c1c8 100644 --- a/lib/drives/item/items/item/validate_permission/validate_permission_post_request_body.rb +++ b/lib/drives/item/items/item/validate_permission/validate_permission_post_request_body.rb @@ -24,15 +24,15 @@ class ValidatePermissionPostRequestBody # The password property @password ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -54,7 +54,7 @@ def challenge_token=(value) @challenge_token = value end ## - ## Instantiates a new validatePermissionPostRequestBody and sets the default values. + ## Instantiates a new ValidatePermissionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/validate_permission/validate_permission_request_builder.rb b/lib/drives/item/items/item/validate_permission/validate_permission_request_builder.rb index f98af781b5..4d33c479be 100644 --- a/lib/drives/item/items/item/validate_permission/validate_permission_request_builder.rb +++ b/lib/drives/item/items/item/validate_permission/validate_permission_request_builder.rb @@ -38,8 +38,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,16 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a validate_permission_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ValidatePermissionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/versions/count/count_request_builder.rb b/lib/drives/item/items/item/versions/count/count_request_builder.rb index a0170b0fb6..c130fb8191 100644 --- a/lib/drives/item/items/item/versions/count/count_request_builder.rb +++ b/lib/drives/item/items/item/versions/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/versions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/versions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/items/item/versions/item/content/content_request_builder.rb b/lib/drives/item/items/item/versions/item/content/content_request_builder.rb index 03df62db95..921bc08280 100644 --- a/lib/drives/item/items/item/versions/item/content/content_request_builder.rb +++ b/lib/drives/item/items/item/versions/item/content/content_request_builder.rb @@ -34,6 +34,19 @@ def initialize(path_parameters, request_adapter) ## ## The content stream for this version of the item. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The content stream for this version of the item. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## def get(request_configuration=nil) @@ -41,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -57,8 +69,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItemVersion.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,15 +77,33 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The content stream for this version of the item. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -86,17 +115,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/versions/item/drive_item_version_item_request_builder.rb b/lib/drives/item/items/item/versions/item/drive_item_version_item_request_builder.rb index 24471c49b5..e3fc3701ff 100644 --- a/lib/drives/item/items/item/versions/item/drive_item_version_item_request_builder.rb +++ b/lib/drives/item/items/item/versions/item/drive_item_version_item_request_builder.rb @@ -39,7 +39,7 @@ def restore_version() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/versions/{driveItemVersion%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/versions/{driveItemVersion%2Did}{?%24expand,%24select}") end ## ## Delete navigation property versions for drives @@ -51,12 +51,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the metadata for a specific version of a DriveItem. + ## The list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of drive_item_version ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItemVersion.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItemVersion.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,31 +89,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the metadata for a specific version of a DriveItem. + ## The list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,20 +126,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a drive_item_version_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DriveItemVersionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the metadata for a specific version of a DriveItem. + # The list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. class DriveItemVersionItemRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/versions/item/restore_version/restore_version_request_builder.rb b/lib/drives/item/items/item/versions/item/restore_version/restore_version_request_builder.rb index f60931178b..1e651bb42b 100644 --- a/lib/drives/item/items/item/versions/item/restore_version/restore_version_request_builder.rb +++ b/lib/drives/item/items/item/versions/item/restore_version/restore_version_request_builder.rb @@ -40,8 +40,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,15 +50,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a restore_version_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RestoreVersionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/versions/versions_request_builder.rb b/lib/drives/item/items/item/versions/versions_request_builder.rb index 86b73356c2..7c2ec9566a 100644 --- a/lib/drives/item/items/item/versions/versions_request_builder.rb +++ b/lib/drives/item/items/item/versions/versions_request_builder.rb @@ -44,10 +44,10 @@ def by_drive_item_version_id(drive_item_version_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/versions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/versions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## OneDrive and SharePoint can be configured to retain the history for files.Depending on the service and configuration, a new version can be created for each edit, each time the file is saved, manually, or never. Previous versions of a document may be retained for a finite period of time depending on admin settings which may be unique per user or location. + ## The list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of drive_item_version_collection_response ## @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItemVersionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,26 +71,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItemVersion.create_from_discriminator_value(pn) }, error_mapping) end ## - ## OneDrive and SharePoint can be configured to retain the history for files.Depending on the service and configuration, a new version can be created for each edit, each time the file is saved, manually, or never. Previous versions of a document may be retained for a finite period of time depending on admin settings which may be unique per user or location. + ## The list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a versions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VersionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # OneDrive and SharePoint can be configured to retain the history for files.Depending on the service and configuration, a new version can be created for each edit, each time the file is saved, manually, or never. Previous versions of a document may be retained for a finite period of time depending on admin settings which may be unique per user or location. + # The list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. class VersionsRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/application/application_request_builder.rb b/lib/drives/item/items/item/workbook/application/application_request_builder.rb index 60b1ee6a6f..2d01694e69 100644 --- a/lib/drives/item/items/item/workbook/application/application_request_builder.rb +++ b/lib/drives/item/items/item/workbook/application/application_request_builder.rb @@ -33,7 +33,7 @@ def calculate() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/application{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/application{?%24expand,%24select}") end ## ## Delete navigation property application for drives @@ -45,12 +45,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a workbookApplication object. + ## Get application from drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_application ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookApplication.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookApplication.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,31 +83,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a workbookApplication object. + ## Get application from drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,20 +120,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a application_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplicationRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a workbookApplication object. + # Get application from drives class ApplicationRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/application/calculate/calculate_post_request_body.rb b/lib/drives/item/items/item/workbook/application/calculate/calculate_post_request_body.rb index 088c72e055..489f3e88d8 100644 --- a/lib/drives/item/items/item/workbook/application/calculate/calculate_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/application/calculate/calculate_post_request_body.rb @@ -25,15 +25,15 @@ class CalculatePostRequestBody # The calculationType property @calculation_type ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -55,7 +55,7 @@ def calculation_type=(value) @calculation_type = value end ## - ## Instantiates a new calculatePostRequestBody and sets the default values. + ## Instantiates a new CalculatePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/application/calculate/calculate_request_builder.rb b/lib/drives/item/items/item/workbook/application/calculate/calculate_request_builder.rb index f6ac4e36ac..6d4625775d 100644 --- a/lib/drives/item/items/item/workbook/application/calculate/calculate_request_builder.rb +++ b/lib/drives/item/items/item/workbook/application/calculate/calculate_request_builder.rb @@ -42,8 +42,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,16 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a calculate_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CalculateRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/close_session/close_session_request_builder.rb b/lib/drives/item/items/item/workbook/close_session/close_session_request_builder.rb index 9ea459ca68..13141aa324 100644 --- a/lib/drives/item/items/item/workbook/close_session/close_session_request_builder.rb +++ b/lib/drives/item/items/item/workbook/close_session/close_session_request_builder.rb @@ -38,8 +38,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,15 +48,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a close_session_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CloseSessionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/comments/comments_request_builder.rb b/lib/drives/item/items/item/workbook/comments/comments_request_builder.rb index c7bbffb8db..39d996fd5c 100644 --- a/lib/drives/item/items/item/workbook/comments/comments_request_builder.rb +++ b/lib/drives/item/items/item/workbook/comments/comments_request_builder.rb @@ -46,7 +46,7 @@ def by_workbook_comment_id(workbook_comment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Represents a collection of comments in a workbook. @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookCommentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,8 +73,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookComment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,15 +83,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,17 +103,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a comments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CommentsRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents a collection of comments in a workbook. diff --git a/lib/drives/item/items/item/workbook/comments/count/count_request_builder.rb b/lib/drives/item/items/item/workbook/comments/count/count_request_builder.rb index da415ab066..d5d2e9f5d2 100644 --- a/lib/drives/item/items/item/workbook/comments/count/count_request_builder.rb +++ b/lib/drives/item/items/item/workbook/comments/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/items/item/workbook/comments/item/replies/count/count_request_builder.rb b/lib/drives/item/items/item/workbook/comments/item/replies/count/count_request_builder.rb index c476a302da..371ba6a2ca 100644 --- a/lib/drives/item/items/item/workbook/comments/item/replies/count/count_request_builder.rb +++ b/lib/drives/item/items/item/workbook/comments/item/replies/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/items/item/workbook/comments/item/replies/item/workbook_comment_reply_item_request_builder.rb b/lib/drives/item/items/item/workbook/comments/item/replies/item/workbook_comment_reply_item_request_builder.rb index dec61a2cc8..93da321069 100644 --- a/lib/drives/item/items/item/workbook/comments/item/replies/item/workbook_comment_reply_item_request_builder.rb +++ b/lib/drives/item/items/item/workbook/comments/item/replies/item/workbook_comment_reply_item_request_builder.rb @@ -33,7 +33,7 @@ class WorkbookCommentReplyItemRequestBuilder < MicrosoftKiotaAbstractions::BaseR ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}{?%24expand,%24select}") end ## ## Delete navigation property replies for drives @@ -45,12 +45,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of workbookCommentReply object. + ## The list of replies to the comment. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_comment_reply ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookCommentReply.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookCommentReply.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,31 +83,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of workbookCommentReply object. + ## The list of replies to the comment. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,20 +120,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a workbook_comment_reply_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorkbookCommentReplyItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of workbookCommentReply object. + # The list of replies to the comment. Read-only. Nullable. class WorkbookCommentReplyItemRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/comments/item/replies/replies_request_builder.rb b/lib/drives/item/items/item/workbook/comments/item/replies/replies_request_builder.rb index a35c1ff8a9..b357f83012 100644 --- a/lib/drives/item/items/item/workbook/comments/item/replies/replies_request_builder.rb +++ b/lib/drives/item/items/item/workbook/comments/item/replies/replies_request_builder.rb @@ -50,10 +50,10 @@ def by_workbook_comment_reply_id(workbook_comment_reply_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve the properties and relationships of workbookCommentReply object. + ## The list of replies to the comment. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_comment_reply_collection_response ## @@ -62,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookCommentReplyCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,26 +77,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookCommentReply.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve the properties and relationships of workbookCommentReply object. + ## The list of replies to the comment. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a replies_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RepliesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of workbookCommentReply object. + # The list of replies to the comment. Read-only. Nullable. class RepliesRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/comments/item/workbook_comment_item_request_builder.rb b/lib/drives/item/items/item/workbook/comments/item/workbook_comment_item_request_builder.rb index 5d3b962d36..648f319eb5 100644 --- a/lib/drives/item/items/item/workbook/comments/item/workbook_comment_item_request_builder.rb +++ b/lib/drives/item/items/item/workbook/comments/item/workbook_comment_item_request_builder.rb @@ -35,7 +35,7 @@ def replies() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}{?%24expand,%24select}") end ## ## Delete navigation property comments for drives @@ -47,8 +47,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookComment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookComment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,13 +85,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -104,15 +102,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,17 +122,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a workbook_comment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorkbookCommentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents a collection of comments in a workbook. diff --git a/lib/drives/item/items/item/workbook/create_session/create_session_post_request_body.rb b/lib/drives/item/items/item/workbook/create_session/create_session_post_request_body.rb index fa30ce6a4c..8689bbd5fe 100644 --- a/lib/drives/item/items/item/workbook/create_session/create_session_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/create_session/create_session_post_request_body.rb @@ -23,22 +23,22 @@ class CreateSessionPostRequestBody # The persistChanges property @persist_changes ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new createSessionPostRequestBody and sets the default values. + ## Instantiates a new CreateSessionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/create_session/create_session_request_builder.rb b/lib/drives/item/items/item/workbook/create_session/create_session_request_builder.rb index a5b9f1b1c9..5edcbde046 100644 --- a/lib/drives/item/items/item/workbook/create_session/create_session_request_builder.rb +++ b/lib/drives/item/items/item/workbook/create_session/create_session_request_builder.rb @@ -41,8 +41,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookSessionInfo.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a create_session_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreateSessionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/abs/abs_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/abs/abs_post_request_body.rb index 54c6125d7b..20da383954 100644 --- a/lib/drives/item/items/item/workbook/functions/abs/abs_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/abs/abs_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class AbsPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new absPostRequestBody and sets the default values. + ## Instantiates a new AbsPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/abs/abs_request_builder.rb b/lib/drives/item/items/item/workbook/functions/abs/abs_request_builder.rb index 1798e8429e..a98dce8c45 100644 --- a/lib/drives/item/items/item/workbook/functions/abs/abs_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/abs/abs_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a abs_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AbsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/accr_int/accr_int_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/accr_int/accr_int_post_request_body.rb index d4f31764e6..5b73762daa 100644 --- a/lib/drives/item/items/item/workbook/functions/accr_int/accr_int_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/accr_int/accr_int_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,76 +22,22 @@ class AccrIntPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The calcMethod property - @calc_method - ## - # The firstInterest property - @first_interest - ## - # The frequency property - @frequency - ## - # The issue property - @issue - ## - # The par property - @par - ## - # The rate property - @rate - ## - # The settlement property - @settlement - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Gets the calcMethod property value. The calcMethod property - ## @return a json - ## - def calc_method - return @calc_method - end - ## - ## Sets the calcMethod property value. The calcMethod property - ## @param value Value to set for the calcMethod property. - ## @return a void - ## - def calc_method=(value) - @calc_method = value - end - ## - ## Instantiates a new accrIntPostRequestBody and sets the default values. + ## Instantiates a new AccrIntPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -108,128 +53,22 @@ def self.create_from_discriminator_value(parse_node) return AccrIntPostRequestBody.new end ## - ## Gets the firstInterest property value. The firstInterest property - ## @return a json - ## - def first_interest - return @first_interest - end - ## - ## Sets the firstInterest property value. The firstInterest property - ## @param value Value to set for the firstInterest property. - ## @return a void - ## - def first_interest=(value) - @first_interest = value - end - ## - ## Gets the frequency property value. The frequency property - ## @return a json - ## - def frequency - return @frequency - end - ## - ## Sets the frequency property value. The frequency property - ## @param value Value to set for the frequency property. - ## @return a void - ## - def frequency=(value) - @frequency = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "calcMethod" => lambda {|n| @calc_method = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "firstInterest" => lambda {|n| @first_interest = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "frequency" => lambda {|n| @frequency = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "issue" => lambda {|n| @issue = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "par" => lambda {|n| @par = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the issue property value. The issue property - ## @return a json - ## - def issue - return @issue - end - ## - ## Sets the issue property value. The issue property - ## @param value Value to set for the issue property. - ## @return a void - ## - def issue=(value) - @issue = value - end - ## - ## Gets the par property value. The par property - ## @return a json - ## - def par - return @par - end - ## - ## Sets the par property value. The par property - ## @param value Value to set for the par property. - ## @return a void - ## - def par=(value) - @par = value - end - ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("calcMethod", @calc_method) - writer.write_object_value("firstInterest", @first_interest) - writer.write_object_value("frequency", @frequency) - writer.write_object_value("issue", @issue) - writer.write_object_value("par", @par) - writer.write_object_value("rate", @rate) - writer.write_object_value("settlement", @settlement) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/accr_int/accr_int_request_builder.rb b/lib/drives/item/items/item/workbook/functions/accr_int/accr_int_request_builder.rb index fd402027f3..9b24227dd7 100644 --- a/lib/drives/item/items/item/workbook/functions/accr_int/accr_int_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/accr_int/accr_int_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a accr_int_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccrIntRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/accr_int_m/accr_int_m_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/accr_int_m/accr_int_m_post_request_body.rb index 6143b4048d..c8f9a05711 100644 --- a/lib/drives/item/items/item/workbook/functions/accr_int_m/accr_int_m_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/accr_int_m/accr_int_m_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,52 +22,22 @@ class AccrIntMPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The issue property - @issue - ## - # The par property - @par - ## - # The rate property - @rate - ## - # The settlement property - @settlement - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new accrIntMPostRequestBody and sets the default values. + ## Instantiates a new AccrIntMPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -89,87 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "issue" => lambda {|n| @issue = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "par" => lambda {|n| @par = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the issue property value. The issue property - ## @return a json - ## - def issue - return @issue - end - ## - ## Sets the issue property value. The issue property - ## @param value Value to set for the issue property. - ## @return a void - ## - def issue=(value) - @issue = value - end - ## - ## Gets the par property value. The par property - ## @return a json - ## - def par - return @par - end - ## - ## Sets the par property value. The par property - ## @param value Value to set for the par property. - ## @return a void - ## - def par=(value) - @par = value - end - ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("issue", @issue) - writer.write_object_value("par", @par) - writer.write_object_value("rate", @rate) - writer.write_object_value("settlement", @settlement) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/accr_int_m/accr_int_m_request_builder.rb b/lib/drives/item/items/item/workbook/functions/accr_int_m/accr_int_m_request_builder.rb index 6006cfe032..24a9304cfd 100644 --- a/lib/drives/item/items/item/workbook/functions/accr_int_m/accr_int_m_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/accr_int_m/accr_int_m_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a accr_int_m_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccrIntMRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/acos/acos_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/acos/acos_post_request_body.rb index dc7ce1d61f..f28bb48b66 100644 --- a/lib/drives/item/items/item/workbook/functions/acos/acos_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/acos/acos_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class AcosPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new acosPostRequestBody and sets the default values. + ## Instantiates a new AcosPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/acos/acos_request_builder.rb b/lib/drives/item/items/item/workbook/functions/acos/acos_request_builder.rb index f35246b3a3..0ba0248679 100644 --- a/lib/drives/item/items/item/workbook/functions/acos/acos_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/acos/acos_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a acos_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AcosRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/acosh/acosh_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/acosh/acosh_post_request_body.rb index 859ceef0fb..4f58418f60 100644 --- a/lib/drives/item/items/item/workbook/functions/acosh/acosh_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/acosh/acosh_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class AcoshPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new acoshPostRequestBody and sets the default values. + ## Instantiates a new AcoshPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/acosh/acosh_request_builder.rb b/lib/drives/item/items/item/workbook/functions/acosh/acosh_request_builder.rb index 9a76039267..04dee35029 100644 --- a/lib/drives/item/items/item/workbook/functions/acosh/acosh_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/acosh/acosh_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a acosh_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AcoshRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/acot/acot_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/acot/acot_post_request_body.rb index d949dcaf9e..cf4263b92f 100644 --- a/lib/drives/item/items/item/workbook/functions/acot/acot_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/acot/acot_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class AcotPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new acotPostRequestBody and sets the default values. + ## Instantiates a new AcotPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/acot/acot_request_builder.rb b/lib/drives/item/items/item/workbook/functions/acot/acot_request_builder.rb index dd07961c71..eaca5e925c 100644 --- a/lib/drives/item/items/item/workbook/functions/acot/acot_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/acot/acot_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a acot_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AcotRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/acoth/acoth_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/acoth/acoth_post_request_body.rb index 3f1eef487e..5e1aeb5277 100644 --- a/lib/drives/item/items/item/workbook/functions/acoth/acoth_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/acoth/acoth_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class AcothPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new acothPostRequestBody and sets the default values. + ## Instantiates a new AcothPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/acoth/acoth_request_builder.rb b/lib/drives/item/items/item/workbook/functions/acoth/acoth_request_builder.rb index f86a275dfe..56009a4cbc 100644 --- a/lib/drives/item/items/item/workbook/functions/acoth/acoth_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/acoth/acoth_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a acoth_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AcothRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/amor_degrc/amor_degrc_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/amor_degrc/amor_degrc_post_request_body.rb index ab518ba158..7034ac2786 100644 --- a/lib/drives/item/items/item/workbook/functions/amor_degrc/amor_degrc_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/amor_degrc/amor_degrc_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,79 +22,28 @@ class AmorDegrcPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The cost property - @cost - ## - # The datePurchased property - @date_purchased - ## - # The firstPeriod property - @first_period - ## - # The period property - @period - ## - # The rate property - @rate - ## - # The salvage property - @salvage - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new amorDegrcPostRequestBody and sets the default values. + ## Instantiates a new AmorDegrcPostRequestBody and sets the default values. ## @return a void ## def initialize() @additional_data = Hash.new end ## - ## Gets the cost property value. The cost property - ## @return a json - ## - def cost - return @cost - end - ## - ## Sets the cost property value. The cost property - ## @param value Value to set for the cost property. - ## @return a void - ## - def cost=(value) - @cost = value - end - ## ## Creates a new instance of the appropriate class based on discriminator value ## @param parse_node The parse node to use to read the discriminator value and create the object ## @return a amor_degrc_post_request_body @@ -105,109 +53,20 @@ def self.create_from_discriminator_value(parse_node) return AmorDegrcPostRequestBody.new end ## - ## Gets the datePurchased property value. The datePurchased property - ## @return a json - ## - def date_purchased - return @date_purchased - end - ## - ## Sets the datePurchased property value. The datePurchased property - ## @param value Value to set for the datePurchased property. - ## @return a void - ## - def date_purchased=(value) - @date_purchased = value - end - ## - ## Gets the firstPeriod property value. The firstPeriod property - ## @return a json - ## - def first_period - return @first_period - end - ## - ## Sets the firstPeriod property value. The firstPeriod property - ## @param value Value to set for the firstPeriod property. - ## @return a void - ## - def first_period=(value) - @first_period = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "cost" => lambda {|n| @cost = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "datePurchased" => lambda {|n| @date_purchased = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "firstPeriod" => lambda {|n| @first_period = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "period" => lambda {|n| @period = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "salvage" => lambda {|n| @salvage = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the period property value. The period property - ## @return a json - ## - def period - return @period - end - ## - ## Sets the period property value. The period property - ## @param value Value to set for the period property. - ## @return a void - ## - def period=(value) - @period = value - end - ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## - ## Gets the salvage property value. The salvage property - ## @return a json - ## - def salvage - return @salvage - end - ## - ## Sets the salvage property value. The salvage property - ## @param value Value to set for the salvage property. - ## @return a void - ## - def salvage=(value) - @salvage = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("cost", @cost) - writer.write_object_value("datePurchased", @date_purchased) - writer.write_object_value("firstPeriod", @first_period) - writer.write_object_value("period", @period) - writer.write_object_value("rate", @rate) - writer.write_object_value("salvage", @salvage) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/amor_degrc/amor_degrc_request_builder.rb b/lib/drives/item/items/item/workbook/functions/amor_degrc/amor_degrc_request_builder.rb index efb5567f9f..1eee377647 100644 --- a/lib/drives/item/items/item/workbook/functions/amor_degrc/amor_degrc_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/amor_degrc/amor_degrc_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a amor_degrc_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AmorDegrcRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/amor_linc/amor_linc_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/amor_linc/amor_linc_post_request_body.rb index 3fcf79858c..cdb9709874 100644 --- a/lib/drives/item/items/item/workbook/functions/amor_linc/amor_linc_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/amor_linc/amor_linc_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,79 +22,28 @@ class AmorLincPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The cost property - @cost - ## - # The datePurchased property - @date_purchased - ## - # The firstPeriod property - @first_period - ## - # The period property - @period - ## - # The rate property - @rate - ## - # The salvage property - @salvage - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new amorLincPostRequestBody and sets the default values. + ## Instantiates a new AmorLincPostRequestBody and sets the default values. ## @return a void ## def initialize() @additional_data = Hash.new end ## - ## Gets the cost property value. The cost property - ## @return a json - ## - def cost - return @cost - end - ## - ## Sets the cost property value. The cost property - ## @param value Value to set for the cost property. - ## @return a void - ## - def cost=(value) - @cost = value - end - ## ## Creates a new instance of the appropriate class based on discriminator value ## @param parse_node The parse node to use to read the discriminator value and create the object ## @return a amor_linc_post_request_body @@ -105,109 +53,20 @@ def self.create_from_discriminator_value(parse_node) return AmorLincPostRequestBody.new end ## - ## Gets the datePurchased property value. The datePurchased property - ## @return a json - ## - def date_purchased - return @date_purchased - end - ## - ## Sets the datePurchased property value. The datePurchased property - ## @param value Value to set for the datePurchased property. - ## @return a void - ## - def date_purchased=(value) - @date_purchased = value - end - ## - ## Gets the firstPeriod property value. The firstPeriod property - ## @return a json - ## - def first_period - return @first_period - end - ## - ## Sets the firstPeriod property value. The firstPeriod property - ## @param value Value to set for the firstPeriod property. - ## @return a void - ## - def first_period=(value) - @first_period = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "cost" => lambda {|n| @cost = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "datePurchased" => lambda {|n| @date_purchased = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "firstPeriod" => lambda {|n| @first_period = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "period" => lambda {|n| @period = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "salvage" => lambda {|n| @salvage = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the period property value. The period property - ## @return a json - ## - def period - return @period - end - ## - ## Sets the period property value. The period property - ## @param value Value to set for the period property. - ## @return a void - ## - def period=(value) - @period = value - end - ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## - ## Gets the salvage property value. The salvage property - ## @return a json - ## - def salvage - return @salvage - end - ## - ## Sets the salvage property value. The salvage property - ## @param value Value to set for the salvage property. - ## @return a void - ## - def salvage=(value) - @salvage = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("cost", @cost) - writer.write_object_value("datePurchased", @date_purchased) - writer.write_object_value("firstPeriod", @first_period) - writer.write_object_value("period", @period) - writer.write_object_value("rate", @rate) - writer.write_object_value("salvage", @salvage) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/amor_linc/amor_linc_request_builder.rb b/lib/drives/item/items/item/workbook/functions/amor_linc/amor_linc_request_builder.rb index 7311b2e9ce..07eea2029b 100644 --- a/lib/drives/item/items/item/workbook/functions/amor_linc/amor_linc_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/amor_linc/amor_linc_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a amor_linc_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AmorLincRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/and_escaped/and_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/and_escaped/and_post_request_body.rb index c39603962d..4b6efa8400 100644 --- a/lib/drives/item/items/item/workbook/functions/and_escaped/and_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/and_escaped/and_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class AndPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new andPostRequestBody and sets the default values. + ## Instantiates a new AndPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/and_escaped/and_request_builder.rb b/lib/drives/item/items/item/workbook/functions/and_escaped/and_request_builder.rb index 9749a12656..296ce221bf 100644 --- a/lib/drives/item/items/item/workbook/functions/and_escaped/and_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/and_escaped/and_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a and_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AndRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/arabic/arabic_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/arabic/arabic_post_request_body.rb index 16e6ee6dd9..4a69bc9956 100644 --- a/lib/drives/item/items/item/workbook/functions/arabic/arabic_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/arabic/arabic_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ArabicPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The text property - @text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new arabicPostRequestBody and sets the default values. + ## Instantiates a new ArabicPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "text" => lambda {|n| @text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("text", @text) writer.write_additional_data(@additional_data) end - ## - ## Gets the text property value. The text property - ## @return a json - ## - def text - return @text - end - ## - ## Sets the text property value. The text property - ## @param value Value to set for the text property. - ## @return a void - ## - def text=(value) - @text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/arabic/arabic_request_builder.rb b/lib/drives/item/items/item/workbook/functions/arabic/arabic_request_builder.rb index 0047714393..180a8939cf 100644 --- a/lib/drives/item/items/item/workbook/functions/arabic/arabic_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/arabic/arabic_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a arabic_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ArabicRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/areas/areas_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/areas/areas_post_request_body.rb index 04ae9edf0e..01f81d2408 100644 --- a/lib/drives/item/items/item/workbook/functions/areas/areas_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/areas/areas_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class AreasPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The reference property - @reference - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new areasPostRequestBody and sets the default values. + ## Instantiates a new AreasPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "reference" => lambda {|n| @reference = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the reference property value. The reference property - ## @return a json - ## - def reference - return @reference - end - ## - ## Sets the reference property value. The reference property - ## @param value Value to set for the reference property. - ## @return a void - ## - def reference=(value) - @reference = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("reference", @reference) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/areas/areas_request_builder.rb b/lib/drives/item/items/item/workbook/functions/areas/areas_request_builder.rb index cc091e072e..865d832a58 100644 --- a/lib/drives/item/items/item/workbook/functions/areas/areas_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/areas/areas_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a areas_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AreasRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/asc/asc_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/asc/asc_post_request_body.rb index 2bd17dac68..1b6e7dc88e 100644 --- a/lib/drives/item/items/item/workbook/functions/asc/asc_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/asc/asc_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class AscPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The text property - @text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new ascPostRequestBody and sets the default values. + ## Instantiates a new AscPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "text" => lambda {|n| @text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("text", @text) writer.write_additional_data(@additional_data) end - ## - ## Gets the text property value. The text property - ## @return a json - ## - def text - return @text - end - ## - ## Sets the text property value. The text property - ## @param value Value to set for the text property. - ## @return a void - ## - def text=(value) - @text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/asc/asc_request_builder.rb b/lib/drives/item/items/item/workbook/functions/asc/asc_request_builder.rb index 997d10d9f4..24078c9ea3 100644 --- a/lib/drives/item/items/item/workbook/functions/asc/asc_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/asc/asc_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a asc_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AscRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/asin/asin_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/asin/asin_post_request_body.rb index 83c8c4f236..1428e7e99d 100644 --- a/lib/drives/item/items/item/workbook/functions/asin/asin_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/asin/asin_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class AsinPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new asinPostRequestBody and sets the default values. + ## Instantiates a new AsinPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/asin/asin_request_builder.rb b/lib/drives/item/items/item/workbook/functions/asin/asin_request_builder.rb index 53471a87fa..20eedcb3b5 100644 --- a/lib/drives/item/items/item/workbook/functions/asin/asin_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/asin/asin_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a asin_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AsinRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/asinh/asinh_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/asinh/asinh_post_request_body.rb index eac9e8c83f..e5be68be09 100644 --- a/lib/drives/item/items/item/workbook/functions/asinh/asinh_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/asinh/asinh_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class AsinhPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new asinhPostRequestBody and sets the default values. + ## Instantiates a new AsinhPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/asinh/asinh_request_builder.rb b/lib/drives/item/items/item/workbook/functions/asinh/asinh_request_builder.rb index 449fdb14a0..57e3c26eb8 100644 --- a/lib/drives/item/items/item/workbook/functions/asinh/asinh_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/asinh/asinh_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a asinh_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AsinhRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/atan/atan_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/atan/atan_post_request_body.rb index c7213ddf47..71241839a7 100644 --- a/lib/drives/item/items/item/workbook/functions/atan/atan_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/atan/atan_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class AtanPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new atanPostRequestBody and sets the default values. + ## Instantiates a new AtanPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/atan/atan_request_builder.rb b/lib/drives/item/items/item/workbook/functions/atan/atan_request_builder.rb index 71fb532352..db34e78002 100644 --- a/lib/drives/item/items/item/workbook/functions/atan/atan_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/atan/atan_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a atan_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AtanRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/atan2/atan2_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/atan2/atan2_post_request_body.rb index 3bb3776fa9..61c4e47f13 100644 --- a/lib/drives/item/items/item/workbook/functions/atan2/atan2_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/atan2/atan2_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class Atan2PostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The xNum property - @x_num - ## - # The yNum property - @y_num - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new atan2PostRequestBody and sets the default values. + ## Instantiates a new Atan2PostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,8 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "xNum" => lambda {|n| @x_num = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "yNum" => lambda {|n| @y_num = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -76,40 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("xNum", @x_num) - writer.write_object_value("yNum", @y_num) writer.write_additional_data(@additional_data) end - ## - ## Gets the xNum property value. The xNum property - ## @return a json - ## - def x_num - return @x_num - end - ## - ## Sets the xNum property value. The xNum property - ## @param value Value to set for the xNum property. - ## @return a void - ## - def x_num=(value) - @x_num = value - end - ## - ## Gets the yNum property value. The yNum property - ## @return a json - ## - def y_num - return @y_num - end - ## - ## Sets the yNum property value. The yNum property - ## @param value Value to set for the yNum property. - ## @return a void - ## - def y_num=(value) - @y_num = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/atan2/atan2_request_builder.rb b/lib/drives/item/items/item/workbook/functions/atan2/atan2_request_builder.rb index bb88974ca2..9709561a1d 100644 --- a/lib/drives/item/items/item/workbook/functions/atan2/atan2_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/atan2/atan2_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a atan2_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return Atan2RequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/atanh/atanh_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/atanh/atanh_post_request_body.rb index 1fb1588c18..7ce59b5d7b 100644 --- a/lib/drives/item/items/item/workbook/functions/atanh/atanh_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/atanh/atanh_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class AtanhPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new atanhPostRequestBody and sets the default values. + ## Instantiates a new AtanhPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/atanh/atanh_request_builder.rb b/lib/drives/item/items/item/workbook/functions/atanh/atanh_request_builder.rb index f6c3862a4c..baf0e550d0 100644 --- a/lib/drives/item/items/item/workbook/functions/atanh/atanh_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/atanh/atanh_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a atanh_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AtanhRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/ave_dev/ave_dev_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/ave_dev/ave_dev_post_request_body.rb index 5b5144f1a6..dc1698c8ac 100644 --- a/lib/drives/item/items/item/workbook/functions/ave_dev/ave_dev_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/ave_dev/ave_dev_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class AveDevPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new aveDevPostRequestBody and sets the default values. + ## Instantiates a new AveDevPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/ave_dev/ave_dev_request_builder.rb b/lib/drives/item/items/item/workbook/functions/ave_dev/ave_dev_request_builder.rb index f67a68d67b..f81e9b374e 100644 --- a/lib/drives/item/items/item/workbook/functions/ave_dev/ave_dev_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/ave_dev/ave_dev_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ave_dev_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AveDevRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/average/average_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/average/average_post_request_body.rb index c37cde6dc1..906f6ff3a2 100644 --- a/lib/drives/item/items/item/workbook/functions/average/average_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/average/average_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class AveragePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new averagePostRequestBody and sets the default values. + ## Instantiates a new AveragePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/average/average_request_builder.rb b/lib/drives/item/items/item/workbook/functions/average/average_request_builder.rb index 839166a5f3..0a98fc755a 100644 --- a/lib/drives/item/items/item/workbook/functions/average/average_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/average/average_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a average_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AverageRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/average_a/average_a_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/average_a/average_a_post_request_body.rb index 0000d9c054..35f1c45021 100644 --- a/lib/drives/item/items/item/workbook/functions/average_a/average_a_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/average_a/average_a_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class AverageAPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new averageAPostRequestBody and sets the default values. + ## Instantiates a new AverageAPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/average_a/average_a_request_builder.rb b/lib/drives/item/items/item/workbook/functions/average_a/average_a_request_builder.rb index 5b46ee8949..08f87aef24 100644 --- a/lib/drives/item/items/item/workbook/functions/average_a/average_a_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/average_a/average_a_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a average_a_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AverageARequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/average_if/average_if_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/average_if/average_if_post_request_body.rb index 42e777f8d8..d144e7aa8d 100644 --- a/lib/drives/item/items/item/workbook/functions/average_if/average_if_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/average_if/average_if_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,46 +22,22 @@ class AverageIfPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The averageRange property - @average_range - ## - # The criteria property - @criteria - ## - # The range property - @range - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the averageRange property value. The averageRange property - ## @return a json - ## - def average_range - return @average_range - end - ## - ## Sets the averageRange property value. The averageRange property - ## @param value Value to set for the averageRange property. - ## @return a void - ## - def average_range=(value) - @average_range = value - end - ## - ## Instantiates a new averageIfPostRequestBody and sets the default values. + ## Instantiates a new AverageIfPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -78,56 +53,20 @@ def self.create_from_discriminator_value(parse_node) return AverageIfPostRequestBody.new end ## - ## Gets the criteria property value. The criteria property - ## @return a json - ## - def criteria - return @criteria - end - ## - ## Sets the criteria property value. The criteria property - ## @param value Value to set for the criteria property. - ## @return a void - ## - def criteria=(value) - @criteria = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "averageRange" => lambda {|n| @average_range = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "criteria" => lambda {|n| @criteria = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "range" => lambda {|n| @range = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the range property value. The range property - ## @return a json - ## - def range - return @range - end - ## - ## Sets the range property value. The range property - ## @param value Value to set for the range property. - ## @return a void - ## - def range=(value) - @range = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("averageRange", @average_range) - writer.write_object_value("criteria", @criteria) - writer.write_object_value("range", @range) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/average_if/average_if_request_builder.rb b/lib/drives/item/items/item/workbook/functions/average_if/average_if_request_builder.rb index 35c1e9b2b3..c244ee0095 100644 --- a/lib/drives/item/items/item/workbook/functions/average_if/average_if_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/average_if/average_if_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a average_if_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AverageIfRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/average_ifs/average_ifs_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/average_ifs/average_ifs_post_request_body.rb index 1c6fea17b6..ab7d1eb83c 100644 --- a/lib/drives/item/items/item/workbook/functions/average_ifs/average_ifs_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/average_ifs/average_ifs_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,43 +22,22 @@ class AverageIfsPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The averageRange property - @average_range - ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the averageRange property value. The averageRange property - ## @return a json - ## - def average_range - return @average_range - end - ## - ## Sets the averageRange property value. The averageRange property - ## @param value Value to set for the averageRange property. - ## @return a void - ## - def average_range=(value) - @average_range = value - end - ## - ## Instantiates a new averageIfsPostRequestBody and sets the default values. + ## Instantiates a new AverageIfsPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -80,8 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "averageRange" => lambda {|n| @average_range = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -91,25 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("averageRange", @average_range) - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/average_ifs/average_ifs_request_builder.rb b/lib/drives/item/items/item/workbook/functions/average_ifs/average_ifs_request_builder.rb index 32bcbb178d..5aa3390e90 100644 --- a/lib/drives/item/items/item/workbook/functions/average_ifs/average_ifs_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/average_ifs/average_ifs_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a average_ifs_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AverageIfsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/baht_text/baht_text_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/baht_text/baht_text_post_request_body.rb index 0f3dffd922..91907e7fc5 100644 --- a/lib/drives/item/items/item/workbook/functions/baht_text/baht_text_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/baht_text/baht_text_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class BahtTextPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new bahtTextPostRequestBody and sets the default values. + ## Instantiates a new BahtTextPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/baht_text/baht_text_request_builder.rb b/lib/drives/item/items/item/workbook/functions/baht_text/baht_text_request_builder.rb index 8f28166b38..434f5784bd 100644 --- a/lib/drives/item/items/item/workbook/functions/baht_text/baht_text_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/baht_text/baht_text_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a baht_text_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BahtTextRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/base/base_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/base/base_post_request_body.rb index 22c85977ad..e5b3d2c084 100644 --- a/lib/drives/item/items/item/workbook/functions/base/base_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/base/base_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class BasePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The minLength property - @min_length - ## - # The number property - @number - ## - # The radix property - @radix - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new basePostRequestBody and sets the default values. + ## Instantiates a new BasePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -68,66 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "minLength" => lambda {|n| @min_length = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "radix" => lambda {|n| @radix = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the minLength property value. The minLength property - ## @return a json - ## - def min_length - return @min_length - end - ## - ## Sets the minLength property value. The minLength property - ## @param value Value to set for the minLength property. - ## @return a void - ## - def min_length=(value) - @min_length = value - end - ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## - ## Gets the radix property value. The radix property - ## @return a json - ## - def radix - return @radix - end - ## - ## Sets the radix property value. The radix property - ## @param value Value to set for the radix property. - ## @return a void - ## - def radix=(value) - @radix = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("minLength", @min_length) - writer.write_object_value("number", @number) - writer.write_object_value("radix", @radix) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/base/base_request_builder_escaped.rb b/lib/drives/item/items/item/workbook/functions/base/base_request_builder_escaped.rb index 619f66e6ed..1d629844b8 100644 --- a/lib/drives/item/items/item/workbook/functions/base/base_request_builder_escaped.rb +++ b/lib/drives/item/items/item/workbook/functions/base/base_request_builder_escaped.rb @@ -23,7 +23,7 @@ module Base class BaseRequestBuilder_escaped < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new BaseRequestBuilder and sets the default values. + ## Instantiates a new BaseRequestBuilder_escaped and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a base_request_builder_escaped + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BaseRequestBuilder_escaped.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/bessel_i/bessel_i_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/bessel_i/bessel_i_post_request_body.rb index 6a4925a565..31a4ae0592 100644 --- a/lib/drives/item/items/item/workbook/functions/bessel_i/bessel_i_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/bessel_i/bessel_i_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class BesselIPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The n property - @n - ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new besselIPostRequestBody and sets the default values. + ## Instantiates a new BesselIPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,51 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "n" => lambda {|n| @n = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the n property value. The n property - ## @return a json - ## - def n - return @n - end - ## - ## Sets the n property value. The n property - ## @param value Value to set for the n property. - ## @return a void - ## - def n=(value) - @n = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("n", @n) - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/bessel_i/bessel_i_request_builder.rb b/lib/drives/item/items/item/workbook/functions/bessel_i/bessel_i_request_builder.rb index 61c122cf1a..c491555a17 100644 --- a/lib/drives/item/items/item/workbook/functions/bessel_i/bessel_i_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/bessel_i/bessel_i_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bessel_i_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BesselIRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/bessel_j/bessel_j_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/bessel_j/bessel_j_post_request_body.rb index 0921a0d1b7..d45a335b8c 100644 --- a/lib/drives/item/items/item/workbook/functions/bessel_j/bessel_j_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/bessel_j/bessel_j_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class BesselJPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The n property - @n - ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new besselJPostRequestBody and sets the default values. + ## Instantiates a new BesselJPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,51 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "n" => lambda {|n| @n = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the n property value. The n property - ## @return a json - ## - def n - return @n - end - ## - ## Sets the n property value. The n property - ## @param value Value to set for the n property. - ## @return a void - ## - def n=(value) - @n = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("n", @n) - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/bessel_j/bessel_j_request_builder.rb b/lib/drives/item/items/item/workbook/functions/bessel_j/bessel_j_request_builder.rb index 2e79232746..0841b20a08 100644 --- a/lib/drives/item/items/item/workbook/functions/bessel_j/bessel_j_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/bessel_j/bessel_j_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bessel_j_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BesselJRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/bessel_k/bessel_k_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/bessel_k/bessel_k_post_request_body.rb index 2e28336649..74dc7055e7 100644 --- a/lib/drives/item/items/item/workbook/functions/bessel_k/bessel_k_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/bessel_k/bessel_k_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class BesselKPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The n property - @n - ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new besselKPostRequestBody and sets the default values. + ## Instantiates a new BesselKPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,51 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "n" => lambda {|n| @n = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the n property value. The n property - ## @return a json - ## - def n - return @n - end - ## - ## Sets the n property value. The n property - ## @param value Value to set for the n property. - ## @return a void - ## - def n=(value) - @n = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("n", @n) - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/bessel_k/bessel_k_request_builder.rb b/lib/drives/item/items/item/workbook/functions/bessel_k/bessel_k_request_builder.rb index c156a41aab..3a8ff55688 100644 --- a/lib/drives/item/items/item/workbook/functions/bessel_k/bessel_k_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/bessel_k/bessel_k_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bessel_k_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BesselKRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/bessel_y/bessel_y_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/bessel_y/bessel_y_post_request_body.rb index b877f44be5..fec4d6fbd7 100644 --- a/lib/drives/item/items/item/workbook/functions/bessel_y/bessel_y_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/bessel_y/bessel_y_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class BesselYPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The n property - @n - ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new besselYPostRequestBody and sets the default values. + ## Instantiates a new BesselYPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,51 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "n" => lambda {|n| @n = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the n property value. The n property - ## @return a json - ## - def n - return @n - end - ## - ## Sets the n property value. The n property - ## @param value Value to set for the n property. - ## @return a void - ## - def n=(value) - @n = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("n", @n) - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/bessel_y/bessel_y_request_builder.rb b/lib/drives/item/items/item/workbook/functions/bessel_y/bessel_y_request_builder.rb index c47875fa26..ffa3a36547 100644 --- a/lib/drives/item/items/item/workbook/functions/bessel_y/bessel_y_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/bessel_y/bessel_y_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bessel_y_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BesselYRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/beta_dist/beta_dist_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/beta_dist/beta_dist_post_request_body.rb index a2c9f2e4ea..0be2b50d28 100644 --- a/lib/drives/item/items/item/workbook/functions/beta_dist/beta_dist_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/beta_dist/beta_dist_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -20,102 +19,24 @@ module Beta_Dist class BetaDistPostRequestBody include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable ## - # The A property - @a - ## # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The alpha property - @alpha - ## - # The B property - @b - ## - # The beta property - @beta - ## - # The cumulative property - @cumulative - ## - # The x property - @x - ## - ## Gets the A property value. The A property - ## @return a json - ## - def a - return @a - end - ## - ## Sets the A property value. The A property - ## @param value Value to set for the A property. - ## @return a void - ## - def a=(value) - @a = value - end - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the alpha property value. The alpha property - ## @return a json - ## - def alpha - return @alpha - end - ## - ## Sets the alpha property value. The alpha property - ## @param value Value to set for the alpha property. - ## @return a void - ## - def alpha=(value) - @alpha = value - end - ## - ## Gets the B property value. The B property - ## @return a json - ## - def b - return @b - end - ## - ## Sets the B property value. The B property - ## @param value Value to set for the B property. - ## @return a void - ## - def b=(value) - @b = value - end - ## - ## Gets the beta property value. The beta property - ## @return a json - ## - def beta - return @beta - end - ## - ## Sets the beta property value. The beta property - ## @param value Value to set for the beta property. - ## @return a void - ## - def beta=(value) - @beta = value - end - ## ## Instantiates a new BetaDistPostRequestBody and sets the default values. ## @return a void ## @@ -132,32 +53,11 @@ def self.create_from_discriminator_value(parse_node) return BetaDistPostRequestBody.new end ## - ## Gets the cumulative property value. The cumulative property - ## @return a json - ## - def cumulative - return @cumulative - end - ## - ## Sets the cumulative property value. The cumulative property - ## @param value Value to set for the cumulative property. - ## @return a void - ## - def cumulative=(value) - @cumulative = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "A" => lambda {|n| @a = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "alpha" => lambda {|n| @alpha = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "B" => lambda {|n| @b = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "beta" => lambda {|n| @beta = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "cumulative" => lambda {|n| @cumulative = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -167,29 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("A", @a) - writer.write_object_value("alpha", @alpha) - writer.write_object_value("B", @b) - writer.write_object_value("beta", @beta) - writer.write_object_value("cumulative", @cumulative) - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/beta_dist/beta_dist_request_builder.rb b/lib/drives/item/items/item/workbook/functions/beta_dist/beta_dist_request_builder.rb index 452b5ae1a0..96b1ceab73 100644 --- a/lib/drives/item/items/item/workbook/functions/beta_dist/beta_dist_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/beta_dist/beta_dist_request_builder.rb @@ -23,7 +23,7 @@ module Beta_Dist class BetaDistRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Beta_DistRequestBuilder and sets the default values. + ## Instantiates a new BetaDistRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a beta_dist_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BetaDistRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/beta_inv/beta_inv_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/beta_inv/beta_inv_post_request_body.rb index 480eda0876..1b8a1fb3dd 100644 --- a/lib/drives/item/items/item/workbook/functions/beta_inv/beta_inv_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/beta_inv/beta_inv_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -20,99 +19,24 @@ module Beta_Inv class BetaInvPostRequestBody include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable ## - # The A property - @a - ## # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The alpha property - @alpha - ## - # The B property - @b - ## - # The beta property - @beta - ## - # The probability property - @probability - ## - ## Gets the A property value. The A property - ## @return a json - ## - def a - return @a - end - ## - ## Sets the A property value. The A property - ## @param value Value to set for the A property. - ## @return a void - ## - def a=(value) - @a = value - end - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the alpha property value. The alpha property - ## @return a json - ## - def alpha - return @alpha - end - ## - ## Sets the alpha property value. The alpha property - ## @param value Value to set for the alpha property. - ## @return a void - ## - def alpha=(value) - @alpha = value - end - ## - ## Gets the B property value. The B property - ## @return a json - ## - def b - return @b - end - ## - ## Sets the B property value. The B property - ## @param value Value to set for the B property. - ## @return a void - ## - def b=(value) - @b = value - end - ## - ## Gets the beta property value. The beta property - ## @return a json - ## - def beta - return @beta - end - ## - ## Sets the beta property value. The beta property - ## @param value Value to set for the beta property. - ## @return a void - ## - def beta=(value) - @beta = value - end - ## ## Instantiates a new BetaInvPostRequestBody and sets the default values. ## @return a void ## @@ -134,40 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "A" => lambda {|n| @a = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "alpha" => lambda {|n| @alpha = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "B" => lambda {|n| @b = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "beta" => lambda {|n| @beta = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "probability" => lambda {|n| @probability = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the probability property value. The probability property - ## @return a json - ## - def probability - return @probability - end - ## - ## Sets the probability property value. The probability property - ## @param value Value to set for the probability property. - ## @return a void - ## - def probability=(value) - @probability = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("A", @a) - writer.write_object_value("alpha", @alpha) - writer.write_object_value("B", @b) - writer.write_object_value("beta", @beta) - writer.write_object_value("probability", @probability) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/beta_inv/beta_inv_request_builder.rb b/lib/drives/item/items/item/workbook/functions/beta_inv/beta_inv_request_builder.rb index c8014777d6..76bd42b8d1 100644 --- a/lib/drives/item/items/item/workbook/functions/beta_inv/beta_inv_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/beta_inv/beta_inv_request_builder.rb @@ -23,7 +23,7 @@ module Beta_Inv class BetaInvRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Beta_InvRequestBuilder and sets the default values. + ## Instantiates a new BetaInvRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a beta_inv_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BetaInvRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/bin2_dec/bin2_dec_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/bin2_dec/bin2_dec_post_request_body.rb index b0773fea01..e17164dc33 100644 --- a/lib/drives/item/items/item/workbook/functions/bin2_dec/bin2_dec_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/bin2_dec/bin2_dec_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class Bin2DecPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new bin2DecPostRequestBody and sets the default values. + ## Instantiates a new Bin2DecPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/bin2_dec/bin2_dec_request_builder.rb b/lib/drives/item/items/item/workbook/functions/bin2_dec/bin2_dec_request_builder.rb index 2456ab5fa3..e603f19176 100644 --- a/lib/drives/item/items/item/workbook/functions/bin2_dec/bin2_dec_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/bin2_dec/bin2_dec_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bin2_dec_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return Bin2DecRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/bin2_hex/bin2_hex_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/bin2_hex/bin2_hex_post_request_body.rb index df724e4b09..cd3498213a 100644 --- a/lib/drives/item/items/item/workbook/functions/bin2_hex/bin2_hex_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/bin2_hex/bin2_hex_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class Bin2HexPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The places property - @places - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new bin2HexPostRequestBody and sets the default values. + ## Instantiates a new Bin2HexPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "places" => lambda {|n| @places = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## - ## Gets the places property value. The places property - ## @return a json - ## - def places - return @places - end - ## - ## Sets the places property value. The places property - ## @param value Value to set for the places property. - ## @return a void - ## - def places=(value) - @places = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("places", @places) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/bin2_hex/bin2_hex_request_builder.rb b/lib/drives/item/items/item/workbook/functions/bin2_hex/bin2_hex_request_builder.rb index ae404a433b..0213f36b10 100644 --- a/lib/drives/item/items/item/workbook/functions/bin2_hex/bin2_hex_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/bin2_hex/bin2_hex_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bin2_hex_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return Bin2HexRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/bin2_oct/bin2_oct_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/bin2_oct/bin2_oct_post_request_body.rb index 2f1e04ef17..06ccd794fc 100644 --- a/lib/drives/item/items/item/workbook/functions/bin2_oct/bin2_oct_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/bin2_oct/bin2_oct_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class Bin2OctPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The places property - @places - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new bin2OctPostRequestBody and sets the default values. + ## Instantiates a new Bin2OctPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "places" => lambda {|n| @places = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## - ## Gets the places property value. The places property - ## @return a json - ## - def places - return @places - end - ## - ## Sets the places property value. The places property - ## @param value Value to set for the places property. - ## @return a void - ## - def places=(value) - @places = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("places", @places) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/bin2_oct/bin2_oct_request_builder.rb b/lib/drives/item/items/item/workbook/functions/bin2_oct/bin2_oct_request_builder.rb index 4210c3eedf..8688955b0e 100644 --- a/lib/drives/item/items/item/workbook/functions/bin2_oct/bin2_oct_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/bin2_oct/bin2_oct_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bin2_oct_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return Bin2OctRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/binom_dist/binom_dist_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/binom_dist/binom_dist_post_request_body.rb index 34cc364aed..3febcfce3d 100644 --- a/lib/drives/item/items/item/workbook/functions/binom_dist/binom_dist_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/binom_dist/binom_dist_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,27 +22,15 @@ class BinomDistPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The cumulative property - @cumulative - ## - # The numberS property - @number_s - ## - # The probabilityS property - @probability_s - ## - # The trials property - @trials - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -66,90 +53,22 @@ def self.create_from_discriminator_value(parse_node) return BinomDistPostRequestBody.new end ## - ## Gets the cumulative property value. The cumulative property - ## @return a json - ## - def cumulative - return @cumulative - end - ## - ## Sets the cumulative property value. The cumulative property - ## @param value Value to set for the cumulative property. - ## @return a void - ## - def cumulative=(value) - @cumulative = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "cumulative" => lambda {|n| @cumulative = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "numberS" => lambda {|n| @number_s = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "probabilityS" => lambda {|n| @probability_s = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "trials" => lambda {|n| @trials = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the numberS property value. The numberS property - ## @return a json - ## - def number_s - return @number_s - end - ## - ## Sets the numberS property value. The numberS property - ## @param value Value to set for the numberS property. - ## @return a void - ## - def number_s=(value) - @number_s = value - end - ## - ## Gets the probabilityS property value. The probabilityS property - ## @return a json - ## - def probability_s - return @probability_s - end - ## - ## Sets the probabilityS property value. The probabilityS property - ## @param value Value to set for the probabilityS property. - ## @return a void - ## - def probability_s=(value) - @probability_s = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("cumulative", @cumulative) - writer.write_object_value("numberS", @number_s) - writer.write_object_value("probabilityS", @probability_s) - writer.write_object_value("trials", @trials) writer.write_additional_data(@additional_data) end - ## - ## Gets the trials property value. The trials property - ## @return a json - ## - def trials - return @trials - end - ## - ## Sets the trials property value. The trials property - ## @param value Value to set for the trials property. - ## @return a void - ## - def trials=(value) - @trials = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/binom_dist/binom_dist_request_builder.rb b/lib/drives/item/items/item/workbook/functions/binom_dist/binom_dist_request_builder.rb index bcc43263e7..81bdb4fb86 100644 --- a/lib/drives/item/items/item/workbook/functions/binom_dist/binom_dist_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/binom_dist/binom_dist_request_builder.rb @@ -23,7 +23,7 @@ module Binom_Dist class BinomDistRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Binom_DistRequestBuilder and sets the default values. + ## Instantiates a new BinomDistRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a binom_dist_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BinomDistRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/binom_dist_range/binom_dist_range_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/binom_dist_range/binom_dist_range_post_request_body.rb index cb08158166..b0956992f1 100644 --- a/lib/drives/item/items/item/workbook/functions/binom_dist_range/binom_dist_range_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/binom_dist_range/binom_dist_range_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,27 +22,15 @@ class BinomDistRangePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The numberS property - @number_s - ## - # The numberS2 property - @number_s2 - ## - # The probabilityS property - @probability_s - ## - # The trials property - @trials - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -71,85 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "numberS" => lambda {|n| @number_s = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "numberS2" => lambda {|n| @number_s2 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "probabilityS" => lambda {|n| @probability_s = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "trials" => lambda {|n| @trials = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the numberS property value. The numberS property - ## @return a json - ## - def number_s - return @number_s - end - ## - ## Sets the numberS property value. The numberS property - ## @param value Value to set for the numberS property. - ## @return a void - ## - def number_s=(value) - @number_s = value - end - ## - ## Gets the numberS2 property value. The numberS2 property - ## @return a json - ## - def number_s2 - return @number_s2 - end - ## - ## Sets the numberS2 property value. The numberS2 property - ## @param value Value to set for the numberS2 property. - ## @return a void - ## - def number_s2=(value) - @number_s2 = value - end - ## - ## Gets the probabilityS property value. The probabilityS property - ## @return a json - ## - def probability_s - return @probability_s - end - ## - ## Sets the probabilityS property value. The probabilityS property - ## @param value Value to set for the probabilityS property. - ## @return a void - ## - def probability_s=(value) - @probability_s = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("numberS", @number_s) - writer.write_object_value("numberS2", @number_s2) - writer.write_object_value("probabilityS", @probability_s) - writer.write_object_value("trials", @trials) writer.write_additional_data(@additional_data) end - ## - ## Gets the trials property value. The trials property - ## @return a json - ## - def trials - return @trials - end - ## - ## Sets the trials property value. The trials property - ## @param value Value to set for the trials property. - ## @return a void - ## - def trials=(value) - @trials = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/binom_dist_range/binom_dist_range_request_builder.rb b/lib/drives/item/items/item/workbook/functions/binom_dist_range/binom_dist_range_request_builder.rb index 7e119cb788..6d0c2dd031 100644 --- a/lib/drives/item/items/item/workbook/functions/binom_dist_range/binom_dist_range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/binom_dist_range/binom_dist_range_request_builder.rb @@ -23,7 +23,7 @@ module Binom_Dist_Range class BinomDistRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Binom_Dist_RangeRequestBuilder and sets the default values. + ## Instantiates a new BinomDistRangeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a binom_dist_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BinomDistRangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/binom_inv/binom_inv_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/binom_inv/binom_inv_post_request_body.rb index ba2f52faa6..805f4fced9 100644 --- a/lib/drives/item/items/item/workbook/functions/binom_inv/binom_inv_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/binom_inv/binom_inv_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,45 +22,21 @@ class BinomInvPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The alpha property - @alpha - ## - # The probabilityS property - @probability_s - ## - # The trials property - @trials - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the alpha property value. The alpha property - ## @return a json - ## - def alpha - return @alpha - end - ## - ## Sets the alpha property value. The alpha property - ## @param value Value to set for the alpha property. - ## @return a void - ## - def alpha=(value) - @alpha = value - end - ## ## Instantiates a new BinomInvPostRequestBody and sets the default values. ## @return a void ## @@ -83,53 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "alpha" => lambda {|n| @alpha = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "probabilityS" => lambda {|n| @probability_s = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "trials" => lambda {|n| @trials = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the probabilityS property value. The probabilityS property - ## @return a json - ## - def probability_s - return @probability_s - end - ## - ## Sets the probabilityS property value. The probabilityS property - ## @param value Value to set for the probabilityS property. - ## @return a void - ## - def probability_s=(value) - @probability_s = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("alpha", @alpha) - writer.write_object_value("probabilityS", @probability_s) - writer.write_object_value("trials", @trials) writer.write_additional_data(@additional_data) end - ## - ## Gets the trials property value. The trials property - ## @return a json - ## - def trials - return @trials - end - ## - ## Sets the trials property value. The trials property - ## @param value Value to set for the trials property. - ## @return a void - ## - def trials=(value) - @trials = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/binom_inv/binom_inv_request_builder.rb b/lib/drives/item/items/item/workbook/functions/binom_inv/binom_inv_request_builder.rb index 78de4c334e..298eb71b2f 100644 --- a/lib/drives/item/items/item/workbook/functions/binom_inv/binom_inv_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/binom_inv/binom_inv_request_builder.rb @@ -23,7 +23,7 @@ module Binom_Inv class BinomInvRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Binom_InvRequestBuilder and sets the default values. + ## Instantiates a new BinomInvRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a binom_inv_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BinomInvRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/bitand/bitand_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/bitand/bitand_post_request_body.rb index 1d7c37413e..8c93c73e6f 100644 --- a/lib/drives/item/items/item/workbook/functions/bitand/bitand_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/bitand/bitand_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class BitandPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number1 property - @number1 - ## - # The number2 property - @number2 - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new bitandPostRequestBody and sets the default values. + ## Instantiates a new BitandPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number1" => lambda {|n| @number1 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "number2" => lambda {|n| @number2 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number1 property value. The number1 property - ## @return a json - ## - def number1 - return @number1 - end - ## - ## Sets the number1 property value. The number1 property - ## @param value Value to set for the number1 property. - ## @return a void - ## - def number1=(value) - @number1 = value - end - ## - ## Gets the number2 property value. The number2 property - ## @return a json - ## - def number2 - return @number2 - end - ## - ## Sets the number2 property value. The number2 property - ## @param value Value to set for the number2 property. - ## @return a void - ## - def number2=(value) - @number2 = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number1", @number1) - writer.write_object_value("number2", @number2) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/bitand/bitand_request_builder.rb b/lib/drives/item/items/item/workbook/functions/bitand/bitand_request_builder.rb index a1a0d62b45..35ff1b5945 100644 --- a/lib/drives/item/items/item/workbook/functions/bitand/bitand_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/bitand/bitand_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bitand_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BitandRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/bitlshift/bitlshift_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/bitlshift/bitlshift_post_request_body.rb index d27f5d7113..bbdde571b6 100644 --- a/lib/drives/item/items/item/workbook/functions/bitlshift/bitlshift_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/bitlshift/bitlshift_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class BitlshiftPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The shiftAmount property - @shift_amount - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new bitlshiftPostRequestBody and sets the default values. + ## Instantiates a new BitlshiftPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,51 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "shiftAmount" => lambda {|n| @shift_amount = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("shiftAmount", @shift_amount) writer.write_additional_data(@additional_data) end - ## - ## Gets the shiftAmount property value. The shiftAmount property - ## @return a json - ## - def shift_amount - return @shift_amount - end - ## - ## Sets the shiftAmount property value. The shiftAmount property - ## @param value Value to set for the shiftAmount property. - ## @return a void - ## - def shift_amount=(value) - @shift_amount = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/bitlshift/bitlshift_request_builder.rb b/lib/drives/item/items/item/workbook/functions/bitlshift/bitlshift_request_builder.rb index 69efe409da..3eabfaeb10 100644 --- a/lib/drives/item/items/item/workbook/functions/bitlshift/bitlshift_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/bitlshift/bitlshift_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bitlshift_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BitlshiftRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/bitor/bitor_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/bitor/bitor_post_request_body.rb index 1aa7eff388..357acb91af 100644 --- a/lib/drives/item/items/item/workbook/functions/bitor/bitor_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/bitor/bitor_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class BitorPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number1 property - @number1 - ## - # The number2 property - @number2 - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new bitorPostRequestBody and sets the default values. + ## Instantiates a new BitorPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number1" => lambda {|n| @number1 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "number2" => lambda {|n| @number2 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number1 property value. The number1 property - ## @return a json - ## - def number1 - return @number1 - end - ## - ## Sets the number1 property value. The number1 property - ## @param value Value to set for the number1 property. - ## @return a void - ## - def number1=(value) - @number1 = value - end - ## - ## Gets the number2 property value. The number2 property - ## @return a json - ## - def number2 - return @number2 - end - ## - ## Sets the number2 property value. The number2 property - ## @param value Value to set for the number2 property. - ## @return a void - ## - def number2=(value) - @number2 = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number1", @number1) - writer.write_object_value("number2", @number2) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/bitor/bitor_request_builder.rb b/lib/drives/item/items/item/workbook/functions/bitor/bitor_request_builder.rb index 0bc26e35b9..ff63e2449f 100644 --- a/lib/drives/item/items/item/workbook/functions/bitor/bitor_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/bitor/bitor_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bitor_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BitorRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/bitrshift/bitrshift_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/bitrshift/bitrshift_post_request_body.rb index 830609b6cb..1b35ab2b37 100644 --- a/lib/drives/item/items/item/workbook/functions/bitrshift/bitrshift_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/bitrshift/bitrshift_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class BitrshiftPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The shiftAmount property - @shift_amount - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new bitrshiftPostRequestBody and sets the default values. + ## Instantiates a new BitrshiftPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,51 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "shiftAmount" => lambda {|n| @shift_amount = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("shiftAmount", @shift_amount) writer.write_additional_data(@additional_data) end - ## - ## Gets the shiftAmount property value. The shiftAmount property - ## @return a json - ## - def shift_amount - return @shift_amount - end - ## - ## Sets the shiftAmount property value. The shiftAmount property - ## @param value Value to set for the shiftAmount property. - ## @return a void - ## - def shift_amount=(value) - @shift_amount = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/bitrshift/bitrshift_request_builder.rb b/lib/drives/item/items/item/workbook/functions/bitrshift/bitrshift_request_builder.rb index b56b0af656..d9acaeb605 100644 --- a/lib/drives/item/items/item/workbook/functions/bitrshift/bitrshift_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/bitrshift/bitrshift_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bitrshift_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BitrshiftRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/bitxor/bitxor_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/bitxor/bitxor_post_request_body.rb index 8d549b951a..46c34bcbab 100644 --- a/lib/drives/item/items/item/workbook/functions/bitxor/bitxor_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/bitxor/bitxor_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class BitxorPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number1 property - @number1 - ## - # The number2 property - @number2 - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new bitxorPostRequestBody and sets the default values. + ## Instantiates a new BitxorPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number1" => lambda {|n| @number1 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "number2" => lambda {|n| @number2 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number1 property value. The number1 property - ## @return a json - ## - def number1 - return @number1 - end - ## - ## Sets the number1 property value. The number1 property - ## @param value Value to set for the number1 property. - ## @return a void - ## - def number1=(value) - @number1 = value - end - ## - ## Gets the number2 property value. The number2 property - ## @return a json - ## - def number2 - return @number2 - end - ## - ## Sets the number2 property value. The number2 property - ## @param value Value to set for the number2 property. - ## @return a void - ## - def number2=(value) - @number2 = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number1", @number1) - writer.write_object_value("number2", @number2) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/bitxor/bitxor_request_builder.rb b/lib/drives/item/items/item/workbook/functions/bitxor/bitxor_request_builder.rb index bcc8dd64cf..9250667434 100644 --- a/lib/drives/item/items/item/workbook/functions/bitxor/bitxor_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/bitxor/bitxor_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bitxor_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BitxorRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/ceiling_math/ceiling_math_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/ceiling_math/ceiling_math_post_request_body.rb index b75e6fbf5c..c6b0584b4d 100644 --- a/lib/drives/item/items/item/workbook/functions/ceiling_math/ceiling_math_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/ceiling_math/ceiling_math_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,24 +22,15 @@ class CeilingMathPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The mode property - @mode - ## - # The number property - @number - ## - # The significance property - @significance - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -68,68 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "mode" => lambda {|n| @mode = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "significance" => lambda {|n| @significance = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the mode property value. The mode property - ## @return a json - ## - def mode - return @mode - end - ## - ## Sets the mode property value. The mode property - ## @param value Value to set for the mode property. - ## @return a void - ## - def mode=(value) - @mode = value - end - ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("mode", @mode) - writer.write_object_value("number", @number) - writer.write_object_value("significance", @significance) writer.write_additional_data(@additional_data) end - ## - ## Gets the significance property value. The significance property - ## @return a json - ## - def significance - return @significance - end - ## - ## Sets the significance property value. The significance property - ## @param value Value to set for the significance property. - ## @return a void - ## - def significance=(value) - @significance = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/ceiling_math/ceiling_math_request_builder.rb b/lib/drives/item/items/item/workbook/functions/ceiling_math/ceiling_math_request_builder.rb index eaae27cf46..62f50451d3 100644 --- a/lib/drives/item/items/item/workbook/functions/ceiling_math/ceiling_math_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/ceiling_math/ceiling_math_request_builder.rb @@ -23,7 +23,7 @@ module Ceiling_Math class CeilingMathRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Ceiling_MathRequestBuilder and sets the default values. + ## Instantiates a new CeilingMathRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ceiling_math_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CeilingMathRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/ceiling_precise/ceiling_precise_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/ceiling_precise/ceiling_precise_post_request_body.rb index b6e22721e7..ee7b6ecff7 100644 --- a/lib/drives/item/items/item/workbook/functions/ceiling_precise/ceiling_precise_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/ceiling_precise/ceiling_precise_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,21 +22,15 @@ class CeilingPrecisePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The significance property - @significance - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -65,51 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "significance" => lambda {|n| @significance = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("significance", @significance) writer.write_additional_data(@additional_data) end - ## - ## Gets the significance property value. The significance property - ## @return a json - ## - def significance - return @significance - end - ## - ## Sets the significance property value. The significance property - ## @param value Value to set for the significance property. - ## @return a void - ## - def significance=(value) - @significance = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/ceiling_precise/ceiling_precise_request_builder.rb b/lib/drives/item/items/item/workbook/functions/ceiling_precise/ceiling_precise_request_builder.rb index 02a783f718..a2b11e0e62 100644 --- a/lib/drives/item/items/item/workbook/functions/ceiling_precise/ceiling_precise_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/ceiling_precise/ceiling_precise_request_builder.rb @@ -23,7 +23,7 @@ module Ceiling_Precise class CeilingPreciseRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Ceiling_PreciseRequestBuilder and sets the default values. + ## Instantiates a new CeilingPreciseRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ceiling_precise_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CeilingPreciseRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/char/char_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/char/char_post_request_body.rb index 3a93326dd3..537e87ef7e 100644 --- a/lib/drives/item/items/item/workbook/functions/char/char_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/char/char_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class CharPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new charPostRequestBody and sets the default values. + ## Instantiates a new CharPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/char/char_request_builder.rb b/lib/drives/item/items/item/workbook/functions/char/char_request_builder.rb index de6d305f80..b082eb35b4 100644 --- a/lib/drives/item/items/item/workbook/functions/char/char_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/char/char_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a char_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CharRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/chi_sq_dist/chi_sq_dist_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/chi_sq_dist/chi_sq_dist_post_request_body.rb index ce18bc5b86..d0d70e1e19 100644 --- a/lib/drives/item/items/item/workbook/functions/chi_sq_dist/chi_sq_dist_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/chi_sq_dist/chi_sq_dist_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,24 +22,15 @@ class ChiSqDistPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The cumulative property - @cumulative - ## - # The degFreedom property - @deg_freedom - ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -63,44 +53,11 @@ def self.create_from_discriminator_value(parse_node) return ChiSqDistPostRequestBody.new end ## - ## Gets the cumulative property value. The cumulative property - ## @return a json - ## - def cumulative - return @cumulative - end - ## - ## Sets the cumulative property value. The cumulative property - ## @param value Value to set for the cumulative property. - ## @return a void - ## - def cumulative=(value) - @cumulative = value - end - ## - ## Gets the degFreedom property value. The degFreedom property - ## @return a json - ## - def deg_freedom - return @deg_freedom - end - ## - ## Sets the degFreedom property value. The degFreedom property - ## @param value Value to set for the degFreedom property. - ## @return a void - ## - def deg_freedom=(value) - @deg_freedom = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "cumulative" => lambda {|n| @cumulative = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "degFreedom" => lambda {|n| @deg_freedom = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -110,26 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("cumulative", @cumulative) - writer.write_object_value("degFreedom", @deg_freedom) - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/chi_sq_dist/chi_sq_dist_request_builder.rb b/lib/drives/item/items/item/workbook/functions/chi_sq_dist/chi_sq_dist_request_builder.rb index 68bd61199d..5a9341ea62 100644 --- a/lib/drives/item/items/item/workbook/functions/chi_sq_dist/chi_sq_dist_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/chi_sq_dist/chi_sq_dist_request_builder.rb @@ -23,7 +23,7 @@ module ChiSq_Dist class ChiSqDistRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new ChiSq_DistRequestBuilder and sets the default values. + ## Instantiates a new ChiSqDistRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a chi_sq_dist_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChiSqDistRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/chi_sq_dist_r_t/chi_sq_dist_r_t_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/chi_sq_dist_r_t/chi_sq_dist_r_t_post_request_body.rb index ddee5dcb2b..1fbb3a9f48 100644 --- a/lib/drives/item/items/item/workbook/functions/chi_sq_dist_r_t/chi_sq_dist_r_t_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/chi_sq_dist_r_t/chi_sq_dist_r_t_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,21 +22,15 @@ class ChiSqDistRTPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The degFreedom property - @deg_freedom - ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -60,28 +53,11 @@ def self.create_from_discriminator_value(parse_node) return ChiSqDistRTPostRequestBody.new end ## - ## Gets the degFreedom property value. The degFreedom property - ## @return a json - ## - def deg_freedom - return @deg_freedom - end - ## - ## Sets the degFreedom property value. The degFreedom property - ## @param value Value to set for the degFreedom property. - ## @return a void - ## - def deg_freedom=(value) - @deg_freedom = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "degFreedom" => lambda {|n| @deg_freedom = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -91,25 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("degFreedom", @deg_freedom) - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/chi_sq_dist_r_t/chi_sq_dist_r_t_request_builder.rb b/lib/drives/item/items/item/workbook/functions/chi_sq_dist_r_t/chi_sq_dist_r_t_request_builder.rb index ad2f299857..8269189e8a 100644 --- a/lib/drives/item/items/item/workbook/functions/chi_sq_dist_r_t/chi_sq_dist_r_t_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/chi_sq_dist_r_t/chi_sq_dist_r_t_request_builder.rb @@ -23,7 +23,7 @@ module ChiSq_Dist_RT class ChiSqDistRTRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new ChiSq_Dist_RTRequestBuilder and sets the default values. + ## Instantiates a new ChiSqDistRTRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a chi_sq_dist_r_t_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChiSqDistRTRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/chi_sq_inv/chi_sq_inv_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/chi_sq_inv/chi_sq_inv_post_request_body.rb index 825523baaa..e6d17ff6b5 100644 --- a/lib/drives/item/items/item/workbook/functions/chi_sq_inv/chi_sq_inv_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/chi_sq_inv/chi_sq_inv_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,21 +22,15 @@ class ChiSqInvPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The degFreedom property - @deg_freedom - ## - # The probability property - @probability - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -60,54 +53,20 @@ def self.create_from_discriminator_value(parse_node) return ChiSqInvPostRequestBody.new end ## - ## Gets the degFreedom property value. The degFreedom property - ## @return a json - ## - def deg_freedom - return @deg_freedom - end - ## - ## Sets the degFreedom property value. The degFreedom property - ## @param value Value to set for the degFreedom property. - ## @return a void - ## - def deg_freedom=(value) - @deg_freedom = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "degFreedom" => lambda {|n| @deg_freedom = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "probability" => lambda {|n| @probability = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the probability property value. The probability property - ## @return a json - ## - def probability - return @probability - end - ## - ## Sets the probability property value. The probability property - ## @param value Value to set for the probability property. - ## @return a void - ## - def probability=(value) - @probability = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("degFreedom", @deg_freedom) - writer.write_object_value("probability", @probability) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/chi_sq_inv/chi_sq_inv_request_builder.rb b/lib/drives/item/items/item/workbook/functions/chi_sq_inv/chi_sq_inv_request_builder.rb index cad55a745a..85b5839b4e 100644 --- a/lib/drives/item/items/item/workbook/functions/chi_sq_inv/chi_sq_inv_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/chi_sq_inv/chi_sq_inv_request_builder.rb @@ -23,7 +23,7 @@ module ChiSq_Inv class ChiSqInvRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new ChiSq_InvRequestBuilder and sets the default values. + ## Instantiates a new ChiSqInvRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a chi_sq_inv_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChiSqInvRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/chi_sq_inv_r_t/chi_sq_inv_r_t_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/chi_sq_inv_r_t/chi_sq_inv_r_t_post_request_body.rb index eec3bc6f7e..b53e9b669a 100644 --- a/lib/drives/item/items/item/workbook/functions/chi_sq_inv_r_t/chi_sq_inv_r_t_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/chi_sq_inv_r_t/chi_sq_inv_r_t_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,21 +22,15 @@ class ChiSqInvRTPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The degFreedom property - @deg_freedom - ## - # The probability property - @probability - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -60,54 +53,20 @@ def self.create_from_discriminator_value(parse_node) return ChiSqInvRTPostRequestBody.new end ## - ## Gets the degFreedom property value. The degFreedom property - ## @return a json - ## - def deg_freedom - return @deg_freedom - end - ## - ## Sets the degFreedom property value. The degFreedom property - ## @param value Value to set for the degFreedom property. - ## @return a void - ## - def deg_freedom=(value) - @deg_freedom = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "degFreedom" => lambda {|n| @deg_freedom = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "probability" => lambda {|n| @probability = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the probability property value. The probability property - ## @return a json - ## - def probability - return @probability - end - ## - ## Sets the probability property value. The probability property - ## @param value Value to set for the probability property. - ## @return a void - ## - def probability=(value) - @probability = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("degFreedom", @deg_freedom) - writer.write_object_value("probability", @probability) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/chi_sq_inv_r_t/chi_sq_inv_r_t_request_builder.rb b/lib/drives/item/items/item/workbook/functions/chi_sq_inv_r_t/chi_sq_inv_r_t_request_builder.rb index 8c6063baa6..ad8744c47e 100644 --- a/lib/drives/item/items/item/workbook/functions/chi_sq_inv_r_t/chi_sq_inv_r_t_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/chi_sq_inv_r_t/chi_sq_inv_r_t_request_builder.rb @@ -23,7 +23,7 @@ module ChiSq_Inv_RT class ChiSqInvRTRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new ChiSq_Inv_RTRequestBuilder and sets the default values. + ## Instantiates a new ChiSqInvRTRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a chi_sq_inv_r_t_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChiSqInvRTRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/choose/choose_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/choose/choose_post_request_body.rb index c851f29c74..d145d26ca4 100644 --- a/lib/drives/item/items/item/workbook/functions/choose/choose_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/choose/choose_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class ChoosePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The indexNum property - @index_num - ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new choosePostRequestBody and sets the default values. + ## Instantiates a new ChoosePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,51 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "indexNum" => lambda {|n| @index_num = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the indexNum property value. The indexNum property - ## @return a json - ## - def index_num - return @index_num - end - ## - ## Sets the indexNum property value. The indexNum property - ## @param value Value to set for the indexNum property. - ## @return a void - ## - def index_num=(value) - @index_num = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("indexNum", @index_num) - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/choose/choose_request_builder.rb b/lib/drives/item/items/item/workbook/functions/choose/choose_request_builder.rb index 74489fe3e6..7402347e83 100644 --- a/lib/drives/item/items/item/workbook/functions/choose/choose_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/choose/choose_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a choose_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChooseRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/clean/clean_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/clean/clean_post_request_body.rb index bdfd8948d4..75673216f0 100644 --- a/lib/drives/item/items/item/workbook/functions/clean/clean_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/clean/clean_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class CleanPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The text property - @text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new cleanPostRequestBody and sets the default values. + ## Instantiates a new CleanPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "text" => lambda {|n| @text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("text", @text) writer.write_additional_data(@additional_data) end - ## - ## Gets the text property value. The text property - ## @return a json - ## - def text - return @text - end - ## - ## Sets the text property value. The text property - ## @param value Value to set for the text property. - ## @return a void - ## - def text=(value) - @text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/clean/clean_request_builder.rb b/lib/drives/item/items/item/workbook/functions/clean/clean_request_builder.rb index 853e02aa68..2417017513 100644 --- a/lib/drives/item/items/item/workbook/functions/clean/clean_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/clean/clean_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clean_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CleanRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/code/code_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/code/code_post_request_body.rb index 0de22cf510..40587f17b8 100644 --- a/lib/drives/item/items/item/workbook/functions/code/code_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/code/code_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class CodePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The text property - @text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new codePostRequestBody and sets the default values. + ## Instantiates a new CodePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "text" => lambda {|n| @text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("text", @text) writer.write_additional_data(@additional_data) end - ## - ## Gets the text property value. The text property - ## @return a json - ## - def text - return @text - end - ## - ## Sets the text property value. The text property - ## @param value Value to set for the text property. - ## @return a void - ## - def text=(value) - @text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/code/code_request_builder.rb b/lib/drives/item/items/item/workbook/functions/code/code_request_builder.rb index cb75e388fe..29c4a13396 100644 --- a/lib/drives/item/items/item/workbook/functions/code/code_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/code/code_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a code_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CodeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/columns/columns_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/columns/columns_post_request_body.rb index cdbec0019e..d9eca9c1e3 100644 --- a/lib/drives/item/items/item/workbook/functions/columns/columns_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/columns/columns_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,40 +22,22 @@ class ColumnsPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The array property - @array - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the array property value. The array property - ## @return a json - ## - def array - return @array - end - ## - ## Sets the array property value. The array property - ## @param value Value to set for the array property. - ## @return a void - ## - def array=(value) - @array = value - end - ## - ## Instantiates a new columnsPostRequestBody and sets the default values. + ## Instantiates a new ColumnsPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -77,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "array" => lambda {|n| @array = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -87,7 +67,6 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("array", @array) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/columns/columns_request_builder.rb b/lib/drives/item/items/item/workbook/functions/columns/columns_request_builder.rb index f6a741d236..56f215cf74 100644 --- a/lib/drives/item/items/item/workbook/functions/columns/columns_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/columns/columns_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/combin/combin_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/combin/combin_post_request_body.rb index 8253fa69bd..57829ba955 100644 --- a/lib/drives/item/items/item/workbook/functions/combin/combin_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/combin/combin_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class CombinPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The numberChosen property - @number_chosen - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new combinPostRequestBody and sets the default values. + ## Instantiates a new CombinPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "numberChosen" => lambda {|n| @number_chosen = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## - ## Gets the numberChosen property value. The numberChosen property - ## @return a json - ## - def number_chosen - return @number_chosen - end - ## - ## Sets the numberChosen property value. The numberChosen property - ## @param value Value to set for the numberChosen property. - ## @return a void - ## - def number_chosen=(value) - @number_chosen = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("numberChosen", @number_chosen) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/combin/combin_request_builder.rb b/lib/drives/item/items/item/workbook/functions/combin/combin_request_builder.rb index afaae20bbc..2982a0a4fb 100644 --- a/lib/drives/item/items/item/workbook/functions/combin/combin_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/combin/combin_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a combin_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CombinRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/combina/combina_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/combina/combina_post_request_body.rb index c23d8e419a..cd643ada55 100644 --- a/lib/drives/item/items/item/workbook/functions/combina/combina_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/combina/combina_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class CombinaPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The numberChosen property - @number_chosen - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new combinaPostRequestBody and sets the default values. + ## Instantiates a new CombinaPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "numberChosen" => lambda {|n| @number_chosen = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## - ## Gets the numberChosen property value. The numberChosen property - ## @return a json - ## - def number_chosen - return @number_chosen - end - ## - ## Sets the numberChosen property value. The numberChosen property - ## @param value Value to set for the numberChosen property. - ## @return a void - ## - def number_chosen=(value) - @number_chosen = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("numberChosen", @number_chosen) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/combina/combina_request_builder.rb b/lib/drives/item/items/item/workbook/functions/combina/combina_request_builder.rb index eff10cb072..0977ce9678 100644 --- a/lib/drives/item/items/item/workbook/functions/combina/combina_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/combina/combina_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a combina_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CombinaRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/complex/complex_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/complex/complex_post_request_body.rb index a5bf946b38..8c30fc3c81 100644 --- a/lib/drives/item/items/item/workbook/functions/complex/complex_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/complex/complex_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class ComplexPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The iNum property - @i_num - ## - # The realNum property - @real_num - ## - # The suffix property - @suffix - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new complexPostRequestBody and sets the default values. + ## Instantiates a new ComplexPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -68,68 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "iNum" => lambda {|n| @i_num = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "realNum" => lambda {|n| @real_num = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "suffix" => lambda {|n| @suffix = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the iNum property value. The iNum property - ## @return a json - ## - def i_num - return @i_num - end - ## - ## Sets the iNum property value. The iNum property - ## @param value Value to set for the iNum property. - ## @return a void - ## - def i_num=(value) - @i_num = value - end - ## - ## Gets the realNum property value. The realNum property - ## @return a json - ## - def real_num - return @real_num - end - ## - ## Sets the realNum property value. The realNum property - ## @param value Value to set for the realNum property. - ## @return a void - ## - def real_num=(value) - @real_num = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("iNum", @i_num) - writer.write_object_value("realNum", @real_num) - writer.write_object_value("suffix", @suffix) writer.write_additional_data(@additional_data) end - ## - ## Gets the suffix property value. The suffix property - ## @return a json - ## - def suffix - return @suffix - end - ## - ## Sets the suffix property value. The suffix property - ## @param value Value to set for the suffix property. - ## @return a void - ## - def suffix=(value) - @suffix = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/complex/complex_request_builder.rb b/lib/drives/item/items/item/workbook/functions/complex/complex_request_builder.rb index 1d9608acc1..b0e58929a5 100644 --- a/lib/drives/item/items/item/workbook/functions/complex/complex_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/complex/complex_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a complex_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ComplexRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/concatenate/concatenate_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/concatenate/concatenate_post_request_body.rb index 4b56c6d266..1c24ada5af 100644 --- a/lib/drives/item/items/item/workbook/functions/concatenate/concatenate_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/concatenate/concatenate_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ConcatenatePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new concatenatePostRequestBody and sets the default values. + ## Instantiates a new ConcatenatePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/concatenate/concatenate_request_builder.rb b/lib/drives/item/items/item/workbook/functions/concatenate/concatenate_request_builder.rb index ffe4bdb600..912bcd0853 100644 --- a/lib/drives/item/items/item/workbook/functions/concatenate/concatenate_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/concatenate/concatenate_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a concatenate_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConcatenateRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/confidence_norm/confidence_norm_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/confidence_norm/confidence_norm_post_request_body.rb index 8e6328ab65..9f496b024b 100644 --- a/lib/drives/item/items/item/workbook/functions/confidence_norm/confidence_norm_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/confidence_norm/confidence_norm_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,45 +22,21 @@ class ConfidenceNormPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The alpha property - @alpha - ## - # The size property - @size - ## - # The standardDev property - @standard_dev - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the alpha property value. The alpha property - ## @return a json - ## - def alpha - return @alpha - end - ## - ## Sets the alpha property value. The alpha property - ## @param value Value to set for the alpha property. - ## @return a void - ## - def alpha=(value) - @alpha = value - end - ## ## Instantiates a new ConfidenceNormPostRequestBody and sets the default values. ## @return a void ## @@ -83,9 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "alpha" => lambda {|n| @alpha = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "size" => lambda {|n| @size = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "standardDev" => lambda {|n| @standard_dev = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -95,41 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("alpha", @alpha) - writer.write_object_value("size", @size) - writer.write_object_value("standardDev", @standard_dev) writer.write_additional_data(@additional_data) end - ## - ## Gets the size property value. The size property - ## @return a json - ## - def size - return @size - end - ## - ## Sets the size property value. The size property - ## @param value Value to set for the size property. - ## @return a void - ## - def size=(value) - @size = value - end - ## - ## Gets the standardDev property value. The standardDev property - ## @return a json - ## - def standard_dev - return @standard_dev - end - ## - ## Sets the standardDev property value. The standardDev property - ## @param value Value to set for the standardDev property. - ## @return a void - ## - def standard_dev=(value) - @standard_dev = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/confidence_norm/confidence_norm_request_builder.rb b/lib/drives/item/items/item/workbook/functions/confidence_norm/confidence_norm_request_builder.rb index ce064d96b4..e93a8957ec 100644 --- a/lib/drives/item/items/item/workbook/functions/confidence_norm/confidence_norm_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/confidence_norm/confidence_norm_request_builder.rb @@ -23,7 +23,7 @@ module Confidence_Norm class ConfidenceNormRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Confidence_NormRequestBuilder and sets the default values. + ## Instantiates a new ConfidenceNormRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a confidence_norm_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConfidenceNormRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/confidence_t/confidence_t_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/confidence_t/confidence_t_post_request_body.rb index 4ca4d3ecf3..df12720df6 100644 --- a/lib/drives/item/items/item/workbook/functions/confidence_t/confidence_t_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/confidence_t/confidence_t_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,45 +22,21 @@ class ConfidenceTPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The alpha property - @alpha - ## - # The size property - @size - ## - # The standardDev property - @standard_dev - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the alpha property value. The alpha property - ## @return a json - ## - def alpha - return @alpha - end - ## - ## Sets the alpha property value. The alpha property - ## @param value Value to set for the alpha property. - ## @return a void - ## - def alpha=(value) - @alpha = value - end - ## ## Instantiates a new ConfidenceTPostRequestBody and sets the default values. ## @return a void ## @@ -83,9 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "alpha" => lambda {|n| @alpha = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "size" => lambda {|n| @size = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "standardDev" => lambda {|n| @standard_dev = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -95,41 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("alpha", @alpha) - writer.write_object_value("size", @size) - writer.write_object_value("standardDev", @standard_dev) writer.write_additional_data(@additional_data) end - ## - ## Gets the size property value. The size property - ## @return a json - ## - def size - return @size - end - ## - ## Sets the size property value. The size property - ## @param value Value to set for the size property. - ## @return a void - ## - def size=(value) - @size = value - end - ## - ## Gets the standardDev property value. The standardDev property - ## @return a json - ## - def standard_dev - return @standard_dev - end - ## - ## Sets the standardDev property value. The standardDev property - ## @param value Value to set for the standardDev property. - ## @return a void - ## - def standard_dev=(value) - @standard_dev = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/confidence_t/confidence_t_request_builder.rb b/lib/drives/item/items/item/workbook/functions/confidence_t/confidence_t_request_builder.rb index efb2b1dc33..51c9e3322f 100644 --- a/lib/drives/item/items/item/workbook/functions/confidence_t/confidence_t_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/confidence_t/confidence_t_request_builder.rb @@ -23,7 +23,7 @@ module Confidence_T class ConfidenceTRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Confidence_TRequestBuilder and sets the default values. + ## Instantiates a new ConfidenceTRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a confidence_t_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConfidenceTRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/convert/convert_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/convert/convert_post_request_body.rb index aac5d7ef46..7b6419077c 100644 --- a/lib/drives/item/items/item/workbook/functions/convert/convert_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/convert/convert_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class ConvertPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The fromUnit property - @from_unit - ## - # The number property - @number - ## - # The toUnit property - @to_unit - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new convertPostRequestBody and sets the default values. + ## Instantiates a new ConvertPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,73 +53,22 @@ def self.create_from_discriminator_value(parse_node) return ConvertPostRequestBody.new end ## - ## Gets the fromUnit property value. The fromUnit property - ## @return a json - ## - def from_unit - return @from_unit - end - ## - ## Sets the fromUnit property value. The fromUnit property - ## @param value Value to set for the fromUnit property. - ## @return a void - ## - def from_unit=(value) - @from_unit = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "fromUnit" => lambda {|n| @from_unit = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "toUnit" => lambda {|n| @to_unit = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("fromUnit", @from_unit) - writer.write_object_value("number", @number) - writer.write_object_value("toUnit", @to_unit) writer.write_additional_data(@additional_data) end - ## - ## Gets the toUnit property value. The toUnit property - ## @return a json - ## - def to_unit - return @to_unit - end - ## - ## Sets the toUnit property value. The toUnit property - ## @param value Value to set for the toUnit property. - ## @return a void - ## - def to_unit=(value) - @to_unit = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/convert/convert_request_builder.rb b/lib/drives/item/items/item/workbook/functions/convert/convert_request_builder.rb index 5571a127f9..e6419e60bf 100644 --- a/lib/drives/item/items/item/workbook/functions/convert/convert_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/convert/convert_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a convert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConvertRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/cos/cos_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/cos/cos_post_request_body.rb index fafc0c9789..6f93da7518 100644 --- a/lib/drives/item/items/item/workbook/functions/cos/cos_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/cos/cos_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class CosPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new cosPostRequestBody and sets the default values. + ## Instantiates a new CosPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/cos/cos_request_builder.rb b/lib/drives/item/items/item/workbook/functions/cos/cos_request_builder.rb index 0a45150080..43e415ab23 100644 --- a/lib/drives/item/items/item/workbook/functions/cos/cos_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/cos/cos_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cos_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CosRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/cosh/cosh_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/cosh/cosh_post_request_body.rb index 681bdd230d..7af1f544b2 100644 --- a/lib/drives/item/items/item/workbook/functions/cosh/cosh_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/cosh/cosh_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class CoshPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new coshPostRequestBody and sets the default values. + ## Instantiates a new CoshPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/cosh/cosh_request_builder.rb b/lib/drives/item/items/item/workbook/functions/cosh/cosh_request_builder.rb index 6259ad54ea..8aafd1aa13 100644 --- a/lib/drives/item/items/item/workbook/functions/cosh/cosh_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/cosh/cosh_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cosh_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CoshRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/cot/cot_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/cot/cot_post_request_body.rb index 088e27fb89..c83ae58576 100644 --- a/lib/drives/item/items/item/workbook/functions/cot/cot_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/cot/cot_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class CotPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new cotPostRequestBody and sets the default values. + ## Instantiates a new CotPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/cot/cot_request_builder.rb b/lib/drives/item/items/item/workbook/functions/cot/cot_request_builder.rb index efdede22da..addda47857 100644 --- a/lib/drives/item/items/item/workbook/functions/cot/cot_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/cot/cot_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cot_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CotRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/coth/coth_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/coth/coth_post_request_body.rb index a70acd2cb6..e8dee7de3e 100644 --- a/lib/drives/item/items/item/workbook/functions/coth/coth_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/coth/coth_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class CothPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new cothPostRequestBody and sets the default values. + ## Instantiates a new CothPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/coth/coth_request_builder.rb b/lib/drives/item/items/item/workbook/functions/coth/coth_request_builder.rb index 1c51c92d80..96e563d48c 100644 --- a/lib/drives/item/items/item/workbook/functions/coth/coth_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/coth/coth_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a coth_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CothRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/count/count_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/count/count_post_request_body.rb index 87de7fd5bf..77cbc95c7a 100644 --- a/lib/drives/item/items/item/workbook/functions/count/count_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/count/count_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class CountPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new countPostRequestBody and sets the default values. + ## Instantiates a new CountPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/count/count_request_builder.rb b/lib/drives/item/items/item/workbook/functions/count/count_request_builder.rb index 35133f2879..ed20154359 100644 --- a/lib/drives/item/items/item/workbook/functions/count/count_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/count/count_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/count_a/count_a_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/count_a/count_a_post_request_body.rb index 314e11fc5c..d2d5f78436 100644 --- a/lib/drives/item/items/item/workbook/functions/count_a/count_a_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/count_a/count_a_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class CountAPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new countAPostRequestBody and sets the default values. + ## Instantiates a new CountAPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/count_a/count_a_request_builder.rb b/lib/drives/item/items/item/workbook/functions/count_a/count_a_request_builder.rb index c9827b339f..fbfc566b7c 100644 --- a/lib/drives/item/items/item/workbook/functions/count_a/count_a_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/count_a/count_a_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_a_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountARequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/count_blank/count_blank_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/count_blank/count_blank_post_request_body.rb index 48c666d01d..4f54ae79ee 100644 --- a/lib/drives/item/items/item/workbook/functions/count_blank/count_blank_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/count_blank/count_blank_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class CountBlankPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The range property - @range - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new countBlankPostRequestBody and sets the default values. + ## Instantiates a new CountBlankPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "range" => lambda {|n| @range = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the range property value. The range property - ## @return a json - ## - def range - return @range - end - ## - ## Sets the range property value. The range property - ## @param value Value to set for the range property. - ## @return a void - ## - def range=(value) - @range = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("range", @range) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/count_blank/count_blank_request_builder.rb b/lib/drives/item/items/item/workbook/functions/count_blank/count_blank_request_builder.rb index 0d3fa84768..68b469c36b 100644 --- a/lib/drives/item/items/item/workbook/functions/count_blank/count_blank_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/count_blank/count_blank_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_blank_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountBlankRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/count_if/count_if_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/count_if/count_if_post_request_body.rb index 537d702aaa..7dfe8cbf92 100644 --- a/lib/drives/item/items/item/workbook/functions/count_if/count_if_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/count_if/count_if_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class CountIfPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The criteria property - @criteria - ## - # The range property - @range - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new countIfPostRequestBody and sets the default values. + ## Instantiates a new CountIfPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -60,54 +53,20 @@ def self.create_from_discriminator_value(parse_node) return CountIfPostRequestBody.new end ## - ## Gets the criteria property value. The criteria property - ## @return a json - ## - def criteria - return @criteria - end - ## - ## Sets the criteria property value. The criteria property - ## @param value Value to set for the criteria property. - ## @return a void - ## - def criteria=(value) - @criteria = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "criteria" => lambda {|n| @criteria = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "range" => lambda {|n| @range = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the range property value. The range property - ## @return a json - ## - def range - return @range - end - ## - ## Sets the range property value. The range property - ## @param value Value to set for the range property. - ## @return a void - ## - def range=(value) - @range = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("criteria", @criteria) - writer.write_object_value("range", @range) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/count_if/count_if_request_builder.rb b/lib/drives/item/items/item/workbook/functions/count_if/count_if_request_builder.rb index e26e22080a..2aacd8b215 100644 --- a/lib/drives/item/items/item/workbook/functions/count_if/count_if_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/count_if/count_if_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_if_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountIfRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/count_ifs/count_ifs_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/count_ifs/count_ifs_post_request_body.rb index 96cf7e44fa..d5997e9930 100644 --- a/lib/drives/item/items/item/workbook/functions/count_ifs/count_ifs_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/count_ifs/count_ifs_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class CountIfsPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new countIfsPostRequestBody and sets the default values. + ## Instantiates a new CountIfsPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/count_ifs/count_ifs_request_builder.rb b/lib/drives/item/items/item/workbook/functions/count_ifs/count_ifs_request_builder.rb index 8f7d0ad1bd..5048014f0c 100644 --- a/lib/drives/item/items/item/workbook/functions/count_ifs/count_ifs_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/count_ifs/count_ifs_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_ifs_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountIfsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/coup_day_bs/coup_day_bs_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/coup_day_bs/coup_day_bs_post_request_body.rb index f38d0b833f..c56eb19121 100644 --- a/lib/drives/item/items/item/workbook/functions/coup_day_bs/coup_day_bs_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/coup_day_bs/coup_day_bs_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,49 +22,22 @@ class CoupDayBsPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The frequency property - @frequency - ## - # The maturity property - @maturity - ## - # The settlement property - @settlement - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new coupDayBsPostRequestBody and sets the default values. + ## Instantiates a new CoupDayBsPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -81,75 +53,22 @@ def self.create_from_discriminator_value(parse_node) return CoupDayBsPostRequestBody.new end ## - ## Gets the frequency property value. The frequency property - ## @return a json - ## - def frequency - return @frequency - end - ## - ## Sets the frequency property value. The frequency property - ## @param value Value to set for the frequency property. - ## @return a void - ## - def frequency=(value) - @frequency = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "frequency" => lambda {|n| @frequency = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("frequency", @frequency) - writer.write_object_value("maturity", @maturity) - writer.write_object_value("settlement", @settlement) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/coup_day_bs/coup_day_bs_request_builder.rb b/lib/drives/item/items/item/workbook/functions/coup_day_bs/coup_day_bs_request_builder.rb index b52fdf13c7..8b1db7b541 100644 --- a/lib/drives/item/items/item/workbook/functions/coup_day_bs/coup_day_bs_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/coup_day_bs/coup_day_bs_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a coup_day_bs_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CoupDayBsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/coup_days/coup_days_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/coup_days/coup_days_post_request_body.rb index bfe43b0272..3794ba6a1d 100644 --- a/lib/drives/item/items/item/workbook/functions/coup_days/coup_days_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/coup_days/coup_days_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,49 +22,22 @@ class CoupDaysPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The frequency property - @frequency - ## - # The maturity property - @maturity - ## - # The settlement property - @settlement - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new coupDaysPostRequestBody and sets the default values. + ## Instantiates a new CoupDaysPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -81,75 +53,22 @@ def self.create_from_discriminator_value(parse_node) return CoupDaysPostRequestBody.new end ## - ## Gets the frequency property value. The frequency property - ## @return a json - ## - def frequency - return @frequency - end - ## - ## Sets the frequency property value. The frequency property - ## @param value Value to set for the frequency property. - ## @return a void - ## - def frequency=(value) - @frequency = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "frequency" => lambda {|n| @frequency = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("frequency", @frequency) - writer.write_object_value("maturity", @maturity) - writer.write_object_value("settlement", @settlement) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/coup_days/coup_days_request_builder.rb b/lib/drives/item/items/item/workbook/functions/coup_days/coup_days_request_builder.rb index c407ab2953..44f7235437 100644 --- a/lib/drives/item/items/item/workbook/functions/coup_days/coup_days_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/coup_days/coup_days_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a coup_days_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CoupDaysRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/coup_days_nc/coup_days_nc_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/coup_days_nc/coup_days_nc_post_request_body.rb index c9f8e5fc76..fa3e4375e9 100644 --- a/lib/drives/item/items/item/workbook/functions/coup_days_nc/coup_days_nc_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/coup_days_nc/coup_days_nc_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,49 +22,22 @@ class CoupDaysNcPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The frequency property - @frequency - ## - # The maturity property - @maturity - ## - # The settlement property - @settlement - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new coupDaysNcPostRequestBody and sets the default values. + ## Instantiates a new CoupDaysNcPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -81,75 +53,22 @@ def self.create_from_discriminator_value(parse_node) return CoupDaysNcPostRequestBody.new end ## - ## Gets the frequency property value. The frequency property - ## @return a json - ## - def frequency - return @frequency - end - ## - ## Sets the frequency property value. The frequency property - ## @param value Value to set for the frequency property. - ## @return a void - ## - def frequency=(value) - @frequency = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "frequency" => lambda {|n| @frequency = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("frequency", @frequency) - writer.write_object_value("maturity", @maturity) - writer.write_object_value("settlement", @settlement) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/coup_days_nc/coup_days_nc_request_builder.rb b/lib/drives/item/items/item/workbook/functions/coup_days_nc/coup_days_nc_request_builder.rb index 66ce95872a..7dfda24f8d 100644 --- a/lib/drives/item/items/item/workbook/functions/coup_days_nc/coup_days_nc_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/coup_days_nc/coup_days_nc_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a coup_days_nc_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CoupDaysNcRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/coup_ncd/coup_ncd_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/coup_ncd/coup_ncd_post_request_body.rb index fb6c3fa1df..bc93c063c5 100644 --- a/lib/drives/item/items/item/workbook/functions/coup_ncd/coup_ncd_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/coup_ncd/coup_ncd_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,49 +22,22 @@ class CoupNcdPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The frequency property - @frequency - ## - # The maturity property - @maturity - ## - # The settlement property - @settlement - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new coupNcdPostRequestBody and sets the default values. + ## Instantiates a new CoupNcdPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -81,75 +53,22 @@ def self.create_from_discriminator_value(parse_node) return CoupNcdPostRequestBody.new end ## - ## Gets the frequency property value. The frequency property - ## @return a json - ## - def frequency - return @frequency - end - ## - ## Sets the frequency property value. The frequency property - ## @param value Value to set for the frequency property. - ## @return a void - ## - def frequency=(value) - @frequency = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "frequency" => lambda {|n| @frequency = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("frequency", @frequency) - writer.write_object_value("maturity", @maturity) - writer.write_object_value("settlement", @settlement) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/coup_ncd/coup_ncd_request_builder.rb b/lib/drives/item/items/item/workbook/functions/coup_ncd/coup_ncd_request_builder.rb index 4bb33c95a7..7839bdd5c7 100644 --- a/lib/drives/item/items/item/workbook/functions/coup_ncd/coup_ncd_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/coup_ncd/coup_ncd_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a coup_ncd_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CoupNcdRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/coup_num/coup_num_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/coup_num/coup_num_post_request_body.rb index 61f9745d25..8ad5f6ac70 100644 --- a/lib/drives/item/items/item/workbook/functions/coup_num/coup_num_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/coup_num/coup_num_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,49 +22,22 @@ class CoupNumPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The frequency property - @frequency - ## - # The maturity property - @maturity - ## - # The settlement property - @settlement - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new coupNumPostRequestBody and sets the default values. + ## Instantiates a new CoupNumPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -81,75 +53,22 @@ def self.create_from_discriminator_value(parse_node) return CoupNumPostRequestBody.new end ## - ## Gets the frequency property value. The frequency property - ## @return a json - ## - def frequency - return @frequency - end - ## - ## Sets the frequency property value. The frequency property - ## @param value Value to set for the frequency property. - ## @return a void - ## - def frequency=(value) - @frequency = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "frequency" => lambda {|n| @frequency = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("frequency", @frequency) - writer.write_object_value("maturity", @maturity) - writer.write_object_value("settlement", @settlement) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/coup_num/coup_num_request_builder.rb b/lib/drives/item/items/item/workbook/functions/coup_num/coup_num_request_builder.rb index 80b6740dac..24a6237159 100644 --- a/lib/drives/item/items/item/workbook/functions/coup_num/coup_num_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/coup_num/coup_num_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a coup_num_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CoupNumRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/coup_pcd/coup_pcd_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/coup_pcd/coup_pcd_post_request_body.rb index f91355569f..a780ac8d8c 100644 --- a/lib/drives/item/items/item/workbook/functions/coup_pcd/coup_pcd_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/coup_pcd/coup_pcd_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,49 +22,22 @@ class CoupPcdPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The frequency property - @frequency - ## - # The maturity property - @maturity - ## - # The settlement property - @settlement - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new coupPcdPostRequestBody and sets the default values. + ## Instantiates a new CoupPcdPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -81,75 +53,22 @@ def self.create_from_discriminator_value(parse_node) return CoupPcdPostRequestBody.new end ## - ## Gets the frequency property value. The frequency property - ## @return a json - ## - def frequency - return @frequency - end - ## - ## Sets the frequency property value. The frequency property - ## @param value Value to set for the frequency property. - ## @return a void - ## - def frequency=(value) - @frequency = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "frequency" => lambda {|n| @frequency = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("frequency", @frequency) - writer.write_object_value("maturity", @maturity) - writer.write_object_value("settlement", @settlement) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/coup_pcd/coup_pcd_request_builder.rb b/lib/drives/item/items/item/workbook/functions/coup_pcd/coup_pcd_request_builder.rb index cd51794116..434ef984fa 100644 --- a/lib/drives/item/items/item/workbook/functions/coup_pcd/coup_pcd_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/coup_pcd/coup_pcd_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a coup_pcd_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CoupPcdRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/csc/csc_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/csc/csc_post_request_body.rb index add906113e..50a963755d 100644 --- a/lib/drives/item/items/item/workbook/functions/csc/csc_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/csc/csc_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class CscPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new cscPostRequestBody and sets the default values. + ## Instantiates a new CscPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/csc/csc_request_builder.rb b/lib/drives/item/items/item/workbook/functions/csc/csc_request_builder.rb index 4dea6ff604..3a48654d1b 100644 --- a/lib/drives/item/items/item/workbook/functions/csc/csc_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/csc/csc_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a csc_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CscRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/csch/csch_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/csch/csch_post_request_body.rb index 309b05ab4d..db0e6cdf94 100644 --- a/lib/drives/item/items/item/workbook/functions/csch/csch_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/csch/csch_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class CschPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new cschPostRequestBody and sets the default values. + ## Instantiates a new CschPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/csch/csch_request_builder.rb b/lib/drives/item/items/item/workbook/functions/csch/csch_request_builder.rb index 0c3944e993..27a1ff3384 100644 --- a/lib/drives/item/items/item/workbook/functions/csch/csch_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/csch/csch_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a csch_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CschRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/cum_i_pmt/cum_i_pmt_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/cum_i_pmt/cum_i_pmt_post_request_body.rb index 8d0f2a7f1f..a5060ecb4c 100644 --- a/lib/drives/item/items/item/workbook/functions/cum_i_pmt/cum_i_pmt_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/cum_i_pmt/cum_i_pmt_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,40 +22,22 @@ class CumIPmtPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The endPeriod property - @end_period - ## - # The nper property - @nper - ## - # The pv property - @pv - ## - # The rate property - @rate - ## - # The startPeriod property - @start_period - ## - # The type property - @type - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new cumIPmtPostRequestBody and sets the default values. + ## Instantiates a new CumIPmtPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -72,124 +53,22 @@ def self.create_from_discriminator_value(parse_node) return CumIPmtPostRequestBody.new end ## - ## Gets the endPeriod property value. The endPeriod property - ## @return a json - ## - def end_period - return @end_period - end - ## - ## Sets the endPeriod property value. The endPeriod property - ## @param value Value to set for the endPeriod property. - ## @return a void - ## - def end_period=(value) - @end_period = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "endPeriod" => lambda {|n| @end_period = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "nper" => lambda {|n| @nper = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "pv" => lambda {|n| @pv = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "startPeriod" => lambda {|n| @start_period = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "type" => lambda {|n| @type = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the nper property value. The nper property - ## @return a json - ## - def nper - return @nper - end - ## - ## Sets the nper property value. The nper property - ## @param value Value to set for the nper property. - ## @return a void - ## - def nper=(value) - @nper = value - end - ## - ## Gets the pv property value. The pv property - ## @return a json - ## - def pv - return @pv - end - ## - ## Sets the pv property value. The pv property - ## @param value Value to set for the pv property. - ## @return a void - ## - def pv=(value) - @pv = value - end - ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("endPeriod", @end_period) - writer.write_object_value("nper", @nper) - writer.write_object_value("pv", @pv) - writer.write_object_value("rate", @rate) - writer.write_object_value("startPeriod", @start_period) - writer.write_object_value("type", @type) writer.write_additional_data(@additional_data) end - ## - ## Gets the startPeriod property value. The startPeriod property - ## @return a json - ## - def start_period - return @start_period - end - ## - ## Sets the startPeriod property value. The startPeriod property - ## @param value Value to set for the startPeriod property. - ## @return a void - ## - def start_period=(value) - @start_period = value - end - ## - ## Gets the type property value. The type property - ## @return a json - ## - def type - return @type - end - ## - ## Sets the type property value. The type property - ## @param value Value to set for the type property. - ## @return a void - ## - def type=(value) - @type = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/cum_i_pmt/cum_i_pmt_request_builder.rb b/lib/drives/item/items/item/workbook/functions/cum_i_pmt/cum_i_pmt_request_builder.rb index 4ae8a5aaf6..1a6f80f25a 100644 --- a/lib/drives/item/items/item/workbook/functions/cum_i_pmt/cum_i_pmt_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/cum_i_pmt/cum_i_pmt_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cum_i_pmt_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CumIPmtRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/cum_princ/cum_princ_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/cum_princ/cum_princ_post_request_body.rb index ec1d686561..43ea846091 100644 --- a/lib/drives/item/items/item/workbook/functions/cum_princ/cum_princ_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/cum_princ/cum_princ_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,40 +22,22 @@ class CumPrincPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The endPeriod property - @end_period - ## - # The nper property - @nper - ## - # The pv property - @pv - ## - # The rate property - @rate - ## - # The startPeriod property - @start_period - ## - # The type property - @type - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new cumPrincPostRequestBody and sets the default values. + ## Instantiates a new CumPrincPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -72,124 +53,22 @@ def self.create_from_discriminator_value(parse_node) return CumPrincPostRequestBody.new end ## - ## Gets the endPeriod property value. The endPeriod property - ## @return a json - ## - def end_period - return @end_period - end - ## - ## Sets the endPeriod property value. The endPeriod property - ## @param value Value to set for the endPeriod property. - ## @return a void - ## - def end_period=(value) - @end_period = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "endPeriod" => lambda {|n| @end_period = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "nper" => lambda {|n| @nper = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "pv" => lambda {|n| @pv = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "startPeriod" => lambda {|n| @start_period = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "type" => lambda {|n| @type = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the nper property value. The nper property - ## @return a json - ## - def nper - return @nper - end - ## - ## Sets the nper property value. The nper property - ## @param value Value to set for the nper property. - ## @return a void - ## - def nper=(value) - @nper = value - end - ## - ## Gets the pv property value. The pv property - ## @return a json - ## - def pv - return @pv - end - ## - ## Sets the pv property value. The pv property - ## @param value Value to set for the pv property. - ## @return a void - ## - def pv=(value) - @pv = value - end - ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("endPeriod", @end_period) - writer.write_object_value("nper", @nper) - writer.write_object_value("pv", @pv) - writer.write_object_value("rate", @rate) - writer.write_object_value("startPeriod", @start_period) - writer.write_object_value("type", @type) writer.write_additional_data(@additional_data) end - ## - ## Gets the startPeriod property value. The startPeriod property - ## @return a json - ## - def start_period - return @start_period - end - ## - ## Sets the startPeriod property value. The startPeriod property - ## @param value Value to set for the startPeriod property. - ## @return a void - ## - def start_period=(value) - @start_period = value - end - ## - ## Gets the type property value. The type property - ## @return a json - ## - def type - return @type - end - ## - ## Sets the type property value. The type property - ## @param value Value to set for the type property. - ## @return a void - ## - def type=(value) - @type = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/cum_princ/cum_princ_request_builder.rb b/lib/drives/item/items/item/workbook/functions/cum_princ/cum_princ_request_builder.rb index c91a54bb29..2b617f05da 100644 --- a/lib/drives/item/items/item/workbook/functions/cum_princ/cum_princ_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/cum_princ/cum_princ_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cum_princ_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CumPrincRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/date/date_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/date/date_post_request_body.rb index 0d26c3eab5..2d991b8e2c 100644 --- a/lib/drives/item/items/item/workbook/functions/date/date_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/date/date_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class DatePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The day property - @day - ## - # The month property - @month - ## - # The year property - @year - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new datePostRequestBody and sets the default values. + ## Instantiates a new DatePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,73 +53,22 @@ def self.create_from_discriminator_value(parse_node) return DatePostRequestBody.new end ## - ## Gets the day property value. The day property - ## @return a json - ## - def day - return @day - end - ## - ## Sets the day property value. The day property - ## @param value Value to set for the day property. - ## @return a void - ## - def day=(value) - @day = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "day" => lambda {|n| @day = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "month" => lambda {|n| @month = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "year" => lambda {|n| @year = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the month property value. The month property - ## @return a json - ## - def month - return @month - end - ## - ## Sets the month property value. The month property - ## @param value Value to set for the month property. - ## @return a void - ## - def month=(value) - @month = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("day", @day) - writer.write_object_value("month", @month) - writer.write_object_value("year", @year) writer.write_additional_data(@additional_data) end - ## - ## Gets the year property value. The year property - ## @return a json - ## - def year - return @year - end - ## - ## Sets the year property value. The year property - ## @param value Value to set for the year property. - ## @return a void - ## - def year=(value) - @year = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/date/date_request_builder.rb b/lib/drives/item/items/item/workbook/functions/date/date_request_builder.rb index 524d0fcb2b..7e3b88b071 100644 --- a/lib/drives/item/items/item/workbook/functions/date/date_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/date/date_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a date_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DateRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/datevalue/datevalue_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/datevalue/datevalue_post_request_body.rb index 47607386f1..11f65ffdcc 100644 --- a/lib/drives/item/items/item/workbook/functions/datevalue/datevalue_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/datevalue/datevalue_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class DatevaluePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The dateText property - @date_text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new datevaluePostRequestBody and sets the default values. + ## Instantiates a new DatevaluePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -57,27 +53,11 @@ def self.create_from_discriminator_value(parse_node) return DatevaluePostRequestBody.new end ## - ## Gets the dateText property value. The dateText property - ## @return a json - ## - def date_text - return @date_text - end - ## - ## Sets the dateText property value. The dateText property - ## @param value Value to set for the dateText property. - ## @return a void - ## - def date_text=(value) - @date_text = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "dateText" => lambda {|n| @date_text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -87,7 +67,6 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("dateText", @date_text) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/datevalue/datevalue_request_builder.rb b/lib/drives/item/items/item/workbook/functions/datevalue/datevalue_request_builder.rb index 4e5ff38905..74cfefd0ff 100644 --- a/lib/drives/item/items/item/workbook/functions/datevalue/datevalue_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/datevalue/datevalue_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a datevalue_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DatevalueRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/daverage/daverage_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/daverage/daverage_post_request_body.rb index 9e8a970e80..76b4b3ff11 100644 --- a/lib/drives/item/items/item/workbook/functions/daverage/daverage_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/daverage/daverage_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class DaveragePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The criteria property - @criteria - ## - # The database property - @database - ## - # The field property - @field - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new daveragePostRequestBody and sets the default values. + ## Instantiates a new DaveragePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,59 +53,11 @@ def self.create_from_discriminator_value(parse_node) return DaveragePostRequestBody.new end ## - ## Gets the criteria property value. The criteria property - ## @return a json - ## - def criteria - return @criteria - end - ## - ## Sets the criteria property value. The criteria property - ## @param value Value to set for the criteria property. - ## @return a void - ## - def criteria=(value) - @criteria = value - end - ## - ## Gets the database property value. The database property - ## @return a json - ## - def database - return @database - end - ## - ## Sets the database property value. The database property - ## @param value Value to set for the database property. - ## @return a void - ## - def database=(value) - @database = value - end - ## - ## Gets the field property value. The field property - ## @return a json - ## - def field - return @field - end - ## - ## Sets the field property value. The field property - ## @param value Value to set for the field property. - ## @return a void - ## - def field=(value) - @field = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "criteria" => lambda {|n| @criteria = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "database" => lambda {|n| @database = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "field" => lambda {|n| @field = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -125,9 +67,6 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("criteria", @criteria) - writer.write_object_value("database", @database) - writer.write_object_value("field", @field) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/daverage/daverage_request_builder.rb b/lib/drives/item/items/item/workbook/functions/daverage/daverage_request_builder.rb index 3102b6e9a4..5cfda55cb7 100644 --- a/lib/drives/item/items/item/workbook/functions/daverage/daverage_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/daverage/daverage_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a daverage_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DaverageRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/day/day_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/day/day_post_request_body.rb index a4408e8362..d9b772ed2d 100644 --- a/lib/drives/item/items/item/workbook/functions/day/day_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/day/day_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class DayPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The serialNumber property - @serial_number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new dayPostRequestBody and sets the default values. + ## Instantiates a new DayPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "serialNumber" => lambda {|n| @serial_number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the serialNumber property value. The serialNumber property - ## @return a json - ## - def serial_number - return @serial_number - end - ## - ## Sets the serialNumber property value. The serialNumber property - ## @param value Value to set for the serialNumber property. - ## @return a void - ## - def serial_number=(value) - @serial_number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("serialNumber", @serial_number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/day/day_request_builder.rb b/lib/drives/item/items/item/workbook/functions/day/day_request_builder.rb index 2293a98b03..d609854ee2 100644 --- a/lib/drives/item/items/item/workbook/functions/day/day_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/day/day_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a day_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DayRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/days/days_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/days/days_post_request_body.rb index a294e308cd..1e68ee944a 100644 --- a/lib/drives/item/items/item/workbook/functions/days/days_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/days/days_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class DaysPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The endDate property - @end_date - ## - # The startDate property - @start_date - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new daysPostRequestBody and sets the default values. + ## Instantiates a new DaysPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -60,28 +53,11 @@ def self.create_from_discriminator_value(parse_node) return DaysPostRequestBody.new end ## - ## Gets the endDate property value. The endDate property - ## @return a json - ## - def end_date - return @end_date - end - ## - ## Sets the endDate property value. The endDate property - ## @param value Value to set for the endDate property. - ## @return a void - ## - def end_date=(value) - @end_date = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "endDate" => lambda {|n| @end_date = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "startDate" => lambda {|n| @start_date = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -91,25 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("endDate", @end_date) - writer.write_object_value("startDate", @start_date) writer.write_additional_data(@additional_data) end - ## - ## Gets the startDate property value. The startDate property - ## @return a json - ## - def start_date - return @start_date - end - ## - ## Sets the startDate property value. The startDate property - ## @param value Value to set for the startDate property. - ## @return a void - ## - def start_date=(value) - @start_date = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/days/days_request_builder.rb b/lib/drives/item/items/item/workbook/functions/days/days_request_builder.rb index 24210c4a96..c74047eec2 100644 --- a/lib/drives/item/items/item/workbook/functions/days/days_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/days/days_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a days_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DaysRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/days360/days360_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/days360/days360_post_request_body.rb index 86c378f3dd..29b4498c82 100644 --- a/lib/drives/item/items/item/workbook/functions/days360/days360_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/days360/days360_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class Days360PostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The endDate property - @end_date - ## - # The method property - @method - ## - # The startDate property - @start_date - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new days360PostRequestBody and sets the default values. + ## Instantiates a new Days360PostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,73 +53,22 @@ def self.create_from_discriminator_value(parse_node) return Days360PostRequestBody.new end ## - ## Gets the endDate property value. The endDate property - ## @return a json - ## - def end_date - return @end_date - end - ## - ## Sets the endDate property value. The endDate property - ## @param value Value to set for the endDate property. - ## @return a void - ## - def end_date=(value) - @end_date = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "endDate" => lambda {|n| @end_date = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "method" => lambda {|n| @method = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "startDate" => lambda {|n| @start_date = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the method property value. The method property - ## @return a json - ## - def method - return @method - end - ## - ## Sets the method property value. The method property - ## @param value Value to set for the method property. - ## @return a void - ## - def method=(value) - @method = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("endDate", @end_date) - writer.write_object_value("method", @method) - writer.write_object_value("startDate", @start_date) writer.write_additional_data(@additional_data) end - ## - ## Gets the startDate property value. The startDate property - ## @return a json - ## - def start_date - return @start_date - end - ## - ## Sets the startDate property value. The startDate property - ## @param value Value to set for the startDate property. - ## @return a void - ## - def start_date=(value) - @start_date = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/days360/days360_request_builder.rb b/lib/drives/item/items/item/workbook/functions/days360/days360_request_builder.rb index e75c988b76..70bdcf27d3 100644 --- a/lib/drives/item/items/item/workbook/functions/days360/days360_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/days360/days360_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a days360_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return Days360RequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/db/db_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/db/db_post_request_body.rb index fad3614618..7e806ba4c6 100644 --- a/lib/drives/item/items/item/workbook/functions/db/db_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/db/db_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,58 +22,28 @@ class DbPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The cost property - @cost - ## - # The life property - @life - ## - # The month property - @month - ## - # The period property - @period - ## - # The salvage property - @salvage - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new dbPostRequestBody and sets the default values. + ## Instantiates a new DbPostRequestBody and sets the default values. ## @return a void ## def initialize() @additional_data = Hash.new end ## - ## Gets the cost property value. The cost property - ## @return a json - ## - def cost - return @cost - end - ## - ## Sets the cost property value. The cost property - ## @param value Value to set for the cost property. - ## @return a void - ## - def cost=(value) - @cost = value - end - ## ## Creates a new instance of the appropriate class based on discriminator value ## @param parse_node The parse node to use to read the discriminator value and create the object ## @return a db_post_request_body @@ -89,85 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "cost" => lambda {|n| @cost = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "life" => lambda {|n| @life = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "month" => lambda {|n| @month = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "period" => lambda {|n| @period = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "salvage" => lambda {|n| @salvage = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the life property value. The life property - ## @return a json - ## - def life - return @life - end - ## - ## Sets the life property value. The life property - ## @param value Value to set for the life property. - ## @return a void - ## - def life=(value) - @life = value - end - ## - ## Gets the month property value. The month property - ## @return a json - ## - def month - return @month - end - ## - ## Sets the month property value. The month property - ## @param value Value to set for the month property. - ## @return a void - ## - def month=(value) - @month = value - end - ## - ## Gets the period property value. The period property - ## @return a json - ## - def period - return @period - end - ## - ## Sets the period property value. The period property - ## @param value Value to set for the period property. - ## @return a void - ## - def period=(value) - @period = value - end - ## - ## Gets the salvage property value. The salvage property - ## @return a json - ## - def salvage - return @salvage - end - ## - ## Sets the salvage property value. The salvage property - ## @param value Value to set for the salvage property. - ## @return a void - ## - def salvage=(value) - @salvage = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("cost", @cost) - writer.write_object_value("life", @life) - writer.write_object_value("month", @month) - writer.write_object_value("period", @period) - writer.write_object_value("salvage", @salvage) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/db/db_request_builder.rb b/lib/drives/item/items/item/workbook/functions/db/db_request_builder.rb index 546a418836..6e6e2ae663 100644 --- a/lib/drives/item/items/item/workbook/functions/db/db_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/db/db_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a db_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DbRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/dbcs/dbcs_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/dbcs/dbcs_post_request_body.rb index b0c85bd06c..4056117d69 100644 --- a/lib/drives/item/items/item/workbook/functions/dbcs/dbcs_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/dbcs/dbcs_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class DbcsPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The text property - @text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new dbcsPostRequestBody and sets the default values. + ## Instantiates a new DbcsPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "text" => lambda {|n| @text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("text", @text) writer.write_additional_data(@additional_data) end - ## - ## Gets the text property value. The text property - ## @return a json - ## - def text - return @text - end - ## - ## Sets the text property value. The text property - ## @param value Value to set for the text property. - ## @return a void - ## - def text=(value) - @text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/dbcs/dbcs_request_builder.rb b/lib/drives/item/items/item/workbook/functions/dbcs/dbcs_request_builder.rb index c5909ceff6..81d2d77363 100644 --- a/lib/drives/item/items/item/workbook/functions/dbcs/dbcs_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/dbcs/dbcs_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dbcs_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DbcsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/dcount/dcount_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/dcount/dcount_post_request_body.rb index 450e495aa1..289683e638 100644 --- a/lib/drives/item/items/item/workbook/functions/dcount/dcount_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/dcount/dcount_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class DcountPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The criteria property - @criteria - ## - # The database property - @database - ## - # The field property - @field - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new dcountPostRequestBody and sets the default values. + ## Instantiates a new DcountPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,59 +53,11 @@ def self.create_from_discriminator_value(parse_node) return DcountPostRequestBody.new end ## - ## Gets the criteria property value. The criteria property - ## @return a json - ## - def criteria - return @criteria - end - ## - ## Sets the criteria property value. The criteria property - ## @param value Value to set for the criteria property. - ## @return a void - ## - def criteria=(value) - @criteria = value - end - ## - ## Gets the database property value. The database property - ## @return a json - ## - def database - return @database - end - ## - ## Sets the database property value. The database property - ## @param value Value to set for the database property. - ## @return a void - ## - def database=(value) - @database = value - end - ## - ## Gets the field property value. The field property - ## @return a json - ## - def field - return @field - end - ## - ## Sets the field property value. The field property - ## @param value Value to set for the field property. - ## @return a void - ## - def field=(value) - @field = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "criteria" => lambda {|n| @criteria = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "database" => lambda {|n| @database = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "field" => lambda {|n| @field = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -125,9 +67,6 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("criteria", @criteria) - writer.write_object_value("database", @database) - writer.write_object_value("field", @field) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/dcount/dcount_request_builder.rb b/lib/drives/item/items/item/workbook/functions/dcount/dcount_request_builder.rb index 86ae803b3e..c463539fb5 100644 --- a/lib/drives/item/items/item/workbook/functions/dcount/dcount_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/dcount/dcount_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dcount_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DcountRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/dcount_a/dcount_a_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/dcount_a/dcount_a_post_request_body.rb index e43cb2e6f9..7057c6fdbc 100644 --- a/lib/drives/item/items/item/workbook/functions/dcount_a/dcount_a_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/dcount_a/dcount_a_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class DcountAPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The criteria property - @criteria - ## - # The database property - @database - ## - # The field property - @field - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new dcountAPostRequestBody and sets the default values. + ## Instantiates a new DcountAPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,59 +53,11 @@ def self.create_from_discriminator_value(parse_node) return DcountAPostRequestBody.new end ## - ## Gets the criteria property value. The criteria property - ## @return a json - ## - def criteria - return @criteria - end - ## - ## Sets the criteria property value. The criteria property - ## @param value Value to set for the criteria property. - ## @return a void - ## - def criteria=(value) - @criteria = value - end - ## - ## Gets the database property value. The database property - ## @return a json - ## - def database - return @database - end - ## - ## Sets the database property value. The database property - ## @param value Value to set for the database property. - ## @return a void - ## - def database=(value) - @database = value - end - ## - ## Gets the field property value. The field property - ## @return a json - ## - def field - return @field - end - ## - ## Sets the field property value. The field property - ## @param value Value to set for the field property. - ## @return a void - ## - def field=(value) - @field = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "criteria" => lambda {|n| @criteria = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "database" => lambda {|n| @database = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "field" => lambda {|n| @field = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -125,9 +67,6 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("criteria", @criteria) - writer.write_object_value("database", @database) - writer.write_object_value("field", @field) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/dcount_a/dcount_a_request_builder.rb b/lib/drives/item/items/item/workbook/functions/dcount_a/dcount_a_request_builder.rb index e5db317d3a..4e5897172f 100644 --- a/lib/drives/item/items/item/workbook/functions/dcount_a/dcount_a_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/dcount_a/dcount_a_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dcount_a_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DcountARequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/ddb/ddb_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/ddb/ddb_post_request_body.rb index 2b4ccafec6..30013924dc 100644 --- a/lib/drives/item/items/item/workbook/functions/ddb/ddb_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/ddb/ddb_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,58 +22,28 @@ class DdbPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The cost property - @cost - ## - # The factor property - @factor - ## - # The life property - @life - ## - # The period property - @period - ## - # The salvage property - @salvage - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new ddbPostRequestBody and sets the default values. + ## Instantiates a new DdbPostRequestBody and sets the default values. ## @return a void ## def initialize() @additional_data = Hash.new end ## - ## Gets the cost property value. The cost property - ## @return a json - ## - def cost - return @cost - end - ## - ## Sets the cost property value. The cost property - ## @param value Value to set for the cost property. - ## @return a void - ## - def cost=(value) - @cost = value - end - ## ## Creates a new instance of the appropriate class based on discriminator value ## @param parse_node The parse node to use to read the discriminator value and create the object ## @return a ddb_post_request_body @@ -84,90 +53,20 @@ def self.create_from_discriminator_value(parse_node) return DdbPostRequestBody.new end ## - ## Gets the factor property value. The factor property - ## @return a json - ## - def factor - return @factor - end - ## - ## Sets the factor property value. The factor property - ## @param value Value to set for the factor property. - ## @return a void - ## - def factor=(value) - @factor = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "cost" => lambda {|n| @cost = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "factor" => lambda {|n| @factor = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "life" => lambda {|n| @life = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "period" => lambda {|n| @period = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "salvage" => lambda {|n| @salvage = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the life property value. The life property - ## @return a json - ## - def life - return @life - end - ## - ## Sets the life property value. The life property - ## @param value Value to set for the life property. - ## @return a void - ## - def life=(value) - @life = value - end - ## - ## Gets the period property value. The period property - ## @return a json - ## - def period - return @period - end - ## - ## Sets the period property value. The period property - ## @param value Value to set for the period property. - ## @return a void - ## - def period=(value) - @period = value - end - ## - ## Gets the salvage property value. The salvage property - ## @return a json - ## - def salvage - return @salvage - end - ## - ## Sets the salvage property value. The salvage property - ## @param value Value to set for the salvage property. - ## @return a void - ## - def salvage=(value) - @salvage = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("cost", @cost) - writer.write_object_value("factor", @factor) - writer.write_object_value("life", @life) - writer.write_object_value("period", @period) - writer.write_object_value("salvage", @salvage) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/ddb/ddb_request_builder.rb b/lib/drives/item/items/item/workbook/functions/ddb/ddb_request_builder.rb index 4bfefb29b9..d284f2e0cd 100644 --- a/lib/drives/item/items/item/workbook/functions/ddb/ddb_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/ddb/ddb_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ddb_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DdbRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/dec2_bin/dec2_bin_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/dec2_bin/dec2_bin_post_request_body.rb index 142b26623b..5a1933c2ea 100644 --- a/lib/drives/item/items/item/workbook/functions/dec2_bin/dec2_bin_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/dec2_bin/dec2_bin_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class Dec2BinPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The places property - @places - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new dec2BinPostRequestBody and sets the default values. + ## Instantiates a new Dec2BinPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "places" => lambda {|n| @places = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## - ## Gets the places property value. The places property - ## @return a json - ## - def places - return @places - end - ## - ## Sets the places property value. The places property - ## @param value Value to set for the places property. - ## @return a void - ## - def places=(value) - @places = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("places", @places) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/dec2_bin/dec2_bin_request_builder.rb b/lib/drives/item/items/item/workbook/functions/dec2_bin/dec2_bin_request_builder.rb index f7b7cd66b1..a1fec09d88 100644 --- a/lib/drives/item/items/item/workbook/functions/dec2_bin/dec2_bin_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/dec2_bin/dec2_bin_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dec2_bin_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return Dec2BinRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/dec2_hex/dec2_hex_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/dec2_hex/dec2_hex_post_request_body.rb index 7a6da824de..1a461fd0e3 100644 --- a/lib/drives/item/items/item/workbook/functions/dec2_hex/dec2_hex_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/dec2_hex/dec2_hex_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class Dec2HexPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The places property - @places - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new dec2HexPostRequestBody and sets the default values. + ## Instantiates a new Dec2HexPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "places" => lambda {|n| @places = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## - ## Gets the places property value. The places property - ## @return a json - ## - def places - return @places - end - ## - ## Sets the places property value. The places property - ## @param value Value to set for the places property. - ## @return a void - ## - def places=(value) - @places = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("places", @places) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/dec2_hex/dec2_hex_request_builder.rb b/lib/drives/item/items/item/workbook/functions/dec2_hex/dec2_hex_request_builder.rb index bd06e814f3..5b4665cfda 100644 --- a/lib/drives/item/items/item/workbook/functions/dec2_hex/dec2_hex_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/dec2_hex/dec2_hex_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dec2_hex_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return Dec2HexRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/dec2_oct/dec2_oct_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/dec2_oct/dec2_oct_post_request_body.rb index 8eb6669ae7..f4d0a75c1c 100644 --- a/lib/drives/item/items/item/workbook/functions/dec2_oct/dec2_oct_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/dec2_oct/dec2_oct_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class Dec2OctPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The places property - @places - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new dec2OctPostRequestBody and sets the default values. + ## Instantiates a new Dec2OctPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "places" => lambda {|n| @places = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## - ## Gets the places property value. The places property - ## @return a json - ## - def places - return @places - end - ## - ## Sets the places property value. The places property - ## @param value Value to set for the places property. - ## @return a void - ## - def places=(value) - @places = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("places", @places) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/dec2_oct/dec2_oct_request_builder.rb b/lib/drives/item/items/item/workbook/functions/dec2_oct/dec2_oct_request_builder.rb index 8ebe1df05b..cc5902938c 100644 --- a/lib/drives/item/items/item/workbook/functions/dec2_oct/dec2_oct_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/dec2_oct/dec2_oct_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dec2_oct_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return Dec2OctRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/decimal/decimal_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/decimal/decimal_post_request_body.rb index cc9631f8f8..702eaae808 100644 --- a/lib/drives/item/items/item/workbook/functions/decimal/decimal_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/decimal/decimal_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class DecimalPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The radix property - @radix - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new decimalPostRequestBody and sets the default values. + ## Instantiates a new DecimalPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "radix" => lambda {|n| @radix = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## - ## Gets the radix property value. The radix property - ## @return a json - ## - def radix - return @radix - end - ## - ## Sets the radix property value. The radix property - ## @param value Value to set for the radix property. - ## @return a void - ## - def radix=(value) - @radix = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("radix", @radix) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/decimal/decimal_request_builder.rb b/lib/drives/item/items/item/workbook/functions/decimal/decimal_request_builder.rb index e29137f5d1..23c43f1555 100644 --- a/lib/drives/item/items/item/workbook/functions/decimal/decimal_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/decimal/decimal_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a decimal_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DecimalRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/degrees/degrees_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/degrees/degrees_post_request_body.rb index 7d97d2761d..625669d533 100644 --- a/lib/drives/item/items/item/workbook/functions/degrees/degrees_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/degrees/degrees_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,40 +22,22 @@ class DegreesPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The angle property - @angle - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the angle property value. The angle property - ## @return a json - ## - def angle - return @angle - end - ## - ## Sets the angle property value. The angle property - ## @param value Value to set for the angle property. - ## @return a void - ## - def angle=(value) - @angle = value - end - ## - ## Instantiates a new degreesPostRequestBody and sets the default values. + ## Instantiates a new DegreesPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -77,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "angle" => lambda {|n| @angle = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -87,7 +67,6 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("angle", @angle) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/degrees/degrees_request_builder.rb b/lib/drives/item/items/item/workbook/functions/degrees/degrees_request_builder.rb index f0b49fefb2..27b5524794 100644 --- a/lib/drives/item/items/item/workbook/functions/degrees/degrees_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/degrees/degrees_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a degrees_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DegreesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/delta/delta_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/delta/delta_post_request_body.rb index f8a466fe0c..bb8d874cf3 100644 --- a/lib/drives/item/items/item/workbook/functions/delta/delta_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/delta/delta_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class DeltaPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number1 property - @number1 - ## - # The number2 property - @number2 - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new deltaPostRequestBody and sets the default values. + ## Instantiates a new DeltaPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number1" => lambda {|n| @number1 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "number2" => lambda {|n| @number2 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number1 property value. The number1 property - ## @return a json - ## - def number1 - return @number1 - end - ## - ## Sets the number1 property value. The number1 property - ## @param value Value to set for the number1 property. - ## @return a void - ## - def number1=(value) - @number1 = value - end - ## - ## Gets the number2 property value. The number2 property - ## @return a json - ## - def number2 - return @number2 - end - ## - ## Sets the number2 property value. The number2 property - ## @param value Value to set for the number2 property. - ## @return a void - ## - def number2=(value) - @number2 = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number1", @number1) - writer.write_object_value("number2", @number2) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/delta/delta_request_builder.rb b/lib/drives/item/items/item/workbook/functions/delta/delta_request_builder.rb index 4a41c39ffd..3dcf8be8d0 100644 --- a/lib/drives/item/items/item/workbook/functions/delta/delta_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/delta/delta_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/dev_sq/dev_sq_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/dev_sq/dev_sq_post_request_body.rb index 3c856d6331..d50f2a5a05 100644 --- a/lib/drives/item/items/item/workbook/functions/dev_sq/dev_sq_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/dev_sq/dev_sq_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class DevSqPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new devSqPostRequestBody and sets the default values. + ## Instantiates a new DevSqPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/dev_sq/dev_sq_request_builder.rb b/lib/drives/item/items/item/workbook/functions/dev_sq/dev_sq_request_builder.rb index e4107b22fc..aa6d9b60c3 100644 --- a/lib/drives/item/items/item/workbook/functions/dev_sq/dev_sq_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/dev_sq/dev_sq_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dev_sq_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DevSqRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/dget/dget_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/dget/dget_post_request_body.rb index a169a8de75..cc0151f6e1 100644 --- a/lib/drives/item/items/item/workbook/functions/dget/dget_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/dget/dget_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class DgetPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The criteria property - @criteria - ## - # The database property - @database - ## - # The field property - @field - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new dgetPostRequestBody and sets the default values. + ## Instantiates a new DgetPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,59 +53,11 @@ def self.create_from_discriminator_value(parse_node) return DgetPostRequestBody.new end ## - ## Gets the criteria property value. The criteria property - ## @return a json - ## - def criteria - return @criteria - end - ## - ## Sets the criteria property value. The criteria property - ## @param value Value to set for the criteria property. - ## @return a void - ## - def criteria=(value) - @criteria = value - end - ## - ## Gets the database property value. The database property - ## @return a json - ## - def database - return @database - end - ## - ## Sets the database property value. The database property - ## @param value Value to set for the database property. - ## @return a void - ## - def database=(value) - @database = value - end - ## - ## Gets the field property value. The field property - ## @return a json - ## - def field - return @field - end - ## - ## Sets the field property value. The field property - ## @param value Value to set for the field property. - ## @return a void - ## - def field=(value) - @field = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "criteria" => lambda {|n| @criteria = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "database" => lambda {|n| @database = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "field" => lambda {|n| @field = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -125,9 +67,6 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("criteria", @criteria) - writer.write_object_value("database", @database) - writer.write_object_value("field", @field) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/dget/dget_request_builder.rb b/lib/drives/item/items/item/workbook/functions/dget/dget_request_builder.rb index d5eae844d4..25e95f15d1 100644 --- a/lib/drives/item/items/item/workbook/functions/dget/dget_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/dget/dget_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dget_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DgetRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/disc/disc_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/disc/disc_post_request_body.rb index fae70b2e8c..e7ff46ecf4 100644 --- a/lib/drives/item/items/item/workbook/functions/disc/disc_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/disc/disc_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,52 +22,22 @@ class DiscPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The maturity property - @maturity - ## - # The pr property - @pr - ## - # The redemption property - @redemption - ## - # The settlement property - @settlement - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new discPostRequestBody and sets the default values. + ## Instantiates a new DiscPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -89,87 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "pr" => lambda {|n| @pr = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "redemption" => lambda {|n| @redemption = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## - ## Gets the pr property value. The pr property - ## @return a json - ## - def pr - return @pr - end - ## - ## Sets the pr property value. The pr property - ## @param value Value to set for the pr property. - ## @return a void - ## - def pr=(value) - @pr = value - end - ## - ## Gets the redemption property value. The redemption property - ## @return a json - ## - def redemption - return @redemption - end - ## - ## Sets the redemption property value. The redemption property - ## @param value Value to set for the redemption property. - ## @return a void - ## - def redemption=(value) - @redemption = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("maturity", @maturity) - writer.write_object_value("pr", @pr) - writer.write_object_value("redemption", @redemption) - writer.write_object_value("settlement", @settlement) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/disc/disc_request_builder.rb b/lib/drives/item/items/item/workbook/functions/disc/disc_request_builder.rb index e6ebf11909..c5facd7613 100644 --- a/lib/drives/item/items/item/workbook/functions/disc/disc_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/disc/disc_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a disc_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DiscRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/dmax/dmax_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/dmax/dmax_post_request_body.rb index a9971307ab..a86bc635c9 100644 --- a/lib/drives/item/items/item/workbook/functions/dmax/dmax_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/dmax/dmax_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class DmaxPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The criteria property - @criteria - ## - # The database property - @database - ## - # The field property - @field - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new dmaxPostRequestBody and sets the default values. + ## Instantiates a new DmaxPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,59 +53,11 @@ def self.create_from_discriminator_value(parse_node) return DmaxPostRequestBody.new end ## - ## Gets the criteria property value. The criteria property - ## @return a json - ## - def criteria - return @criteria - end - ## - ## Sets the criteria property value. The criteria property - ## @param value Value to set for the criteria property. - ## @return a void - ## - def criteria=(value) - @criteria = value - end - ## - ## Gets the database property value. The database property - ## @return a json - ## - def database - return @database - end - ## - ## Sets the database property value. The database property - ## @param value Value to set for the database property. - ## @return a void - ## - def database=(value) - @database = value - end - ## - ## Gets the field property value. The field property - ## @return a json - ## - def field - return @field - end - ## - ## Sets the field property value. The field property - ## @param value Value to set for the field property. - ## @return a void - ## - def field=(value) - @field = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "criteria" => lambda {|n| @criteria = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "database" => lambda {|n| @database = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "field" => lambda {|n| @field = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -125,9 +67,6 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("criteria", @criteria) - writer.write_object_value("database", @database) - writer.write_object_value("field", @field) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/dmax/dmax_request_builder.rb b/lib/drives/item/items/item/workbook/functions/dmax/dmax_request_builder.rb index 34d37f50e1..8647bee280 100644 --- a/lib/drives/item/items/item/workbook/functions/dmax/dmax_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/dmax/dmax_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dmax_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DmaxRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/dmin/dmin_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/dmin/dmin_post_request_body.rb index c9c8546fcf..f100ebe461 100644 --- a/lib/drives/item/items/item/workbook/functions/dmin/dmin_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/dmin/dmin_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class DminPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The criteria property - @criteria - ## - # The database property - @database - ## - # The field property - @field - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new dminPostRequestBody and sets the default values. + ## Instantiates a new DminPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,59 +53,11 @@ def self.create_from_discriminator_value(parse_node) return DminPostRequestBody.new end ## - ## Gets the criteria property value. The criteria property - ## @return a json - ## - def criteria - return @criteria - end - ## - ## Sets the criteria property value. The criteria property - ## @param value Value to set for the criteria property. - ## @return a void - ## - def criteria=(value) - @criteria = value - end - ## - ## Gets the database property value. The database property - ## @return a json - ## - def database - return @database - end - ## - ## Sets the database property value. The database property - ## @param value Value to set for the database property. - ## @return a void - ## - def database=(value) - @database = value - end - ## - ## Gets the field property value. The field property - ## @return a json - ## - def field - return @field - end - ## - ## Sets the field property value. The field property - ## @param value Value to set for the field property. - ## @return a void - ## - def field=(value) - @field = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "criteria" => lambda {|n| @criteria = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "database" => lambda {|n| @database = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "field" => lambda {|n| @field = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -125,9 +67,6 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("criteria", @criteria) - writer.write_object_value("database", @database) - writer.write_object_value("field", @field) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/dmin/dmin_request_builder.rb b/lib/drives/item/items/item/workbook/functions/dmin/dmin_request_builder.rb index c172f5febb..3df20c596a 100644 --- a/lib/drives/item/items/item/workbook/functions/dmin/dmin_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/dmin/dmin_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dmin_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DminRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/dollar/dollar_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/dollar/dollar_post_request_body.rb index e215c4ebd5..c3a557187f 100644 --- a/lib/drives/item/items/item/workbook/functions/dollar/dollar_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/dollar/dollar_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class DollarPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The decimals property - @decimals - ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new dollarPostRequestBody and sets the default values. + ## Instantiates a new DollarPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -60,54 +53,20 @@ def self.create_from_discriminator_value(parse_node) return DollarPostRequestBody.new end ## - ## Gets the decimals property value. The decimals property - ## @return a json - ## - def decimals - return @decimals - end - ## - ## Sets the decimals property value. The decimals property - ## @param value Value to set for the decimals property. - ## @return a void - ## - def decimals=(value) - @decimals = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "decimals" => lambda {|n| @decimals = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("decimals", @decimals) - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/dollar/dollar_request_builder.rb b/lib/drives/item/items/item/workbook/functions/dollar/dollar_request_builder.rb index 04e4673fba..268bf6dbef 100644 --- a/lib/drives/item/items/item/workbook/functions/dollar/dollar_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/dollar/dollar_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dollar_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DollarRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/dollar_de/dollar_de_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/dollar_de/dollar_de_post_request_body.rb index e0ec442b9d..39a8992a39 100644 --- a/lib/drives/item/items/item/workbook/functions/dollar_de/dollar_de_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/dollar_de/dollar_de_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class DollarDePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The fraction property - @fraction - ## - # The fractionalDollar property - @fractional_dollar - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new dollarDePostRequestBody and sets the default values. + ## Instantiates a new DollarDePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -60,43 +53,11 @@ def self.create_from_discriminator_value(parse_node) return DollarDePostRequestBody.new end ## - ## Gets the fraction property value. The fraction property - ## @return a json - ## - def fraction - return @fraction - end - ## - ## Sets the fraction property value. The fraction property - ## @param value Value to set for the fraction property. - ## @return a void - ## - def fraction=(value) - @fraction = value - end - ## - ## Gets the fractionalDollar property value. The fractionalDollar property - ## @return a json - ## - def fractional_dollar - return @fractional_dollar - end - ## - ## Sets the fractionalDollar property value. The fractionalDollar property - ## @param value Value to set for the fractionalDollar property. - ## @return a void - ## - def fractional_dollar=(value) - @fractional_dollar = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "fraction" => lambda {|n| @fraction = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "fractionalDollar" => lambda {|n| @fractional_dollar = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -106,8 +67,6 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("fraction", @fraction) - writer.write_object_value("fractionalDollar", @fractional_dollar) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/dollar_de/dollar_de_request_builder.rb b/lib/drives/item/items/item/workbook/functions/dollar_de/dollar_de_request_builder.rb index c1bf551678..3d82958ac8 100644 --- a/lib/drives/item/items/item/workbook/functions/dollar_de/dollar_de_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/dollar_de/dollar_de_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dollar_de_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DollarDeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/dollar_fr/dollar_fr_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/dollar_fr/dollar_fr_post_request_body.rb index 5fd4359003..262e487960 100644 --- a/lib/drives/item/items/item/workbook/functions/dollar_fr/dollar_fr_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/dollar_fr/dollar_fr_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class DollarFrPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The decimalDollar property - @decimal_dollar - ## - # The fraction property - @fraction - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new dollarFrPostRequestBody and sets the default values. + ## Instantiates a new DollarFrPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -60,43 +53,11 @@ def self.create_from_discriminator_value(parse_node) return DollarFrPostRequestBody.new end ## - ## Gets the decimalDollar property value. The decimalDollar property - ## @return a json - ## - def decimal_dollar - return @decimal_dollar - end - ## - ## Sets the decimalDollar property value. The decimalDollar property - ## @param value Value to set for the decimalDollar property. - ## @return a void - ## - def decimal_dollar=(value) - @decimal_dollar = value - end - ## - ## Gets the fraction property value. The fraction property - ## @return a json - ## - def fraction - return @fraction - end - ## - ## Sets the fraction property value. The fraction property - ## @param value Value to set for the fraction property. - ## @return a void - ## - def fraction=(value) - @fraction = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "decimalDollar" => lambda {|n| @decimal_dollar = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "fraction" => lambda {|n| @fraction = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -106,8 +67,6 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("decimalDollar", @decimal_dollar) - writer.write_object_value("fraction", @fraction) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/dollar_fr/dollar_fr_request_builder.rb b/lib/drives/item/items/item/workbook/functions/dollar_fr/dollar_fr_request_builder.rb index 244d7f0efe..a7829f3af4 100644 --- a/lib/drives/item/items/item/workbook/functions/dollar_fr/dollar_fr_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/dollar_fr/dollar_fr_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dollar_fr_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DollarFrRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/dproduct/dproduct_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/dproduct/dproduct_post_request_body.rb index 36274a2036..2c96ffe89b 100644 --- a/lib/drives/item/items/item/workbook/functions/dproduct/dproduct_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/dproduct/dproduct_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class DproductPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The criteria property - @criteria - ## - # The database property - @database - ## - # The field property - @field - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new dproductPostRequestBody and sets the default values. + ## Instantiates a new DproductPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,59 +53,11 @@ def self.create_from_discriminator_value(parse_node) return DproductPostRequestBody.new end ## - ## Gets the criteria property value. The criteria property - ## @return a json - ## - def criteria - return @criteria - end - ## - ## Sets the criteria property value. The criteria property - ## @param value Value to set for the criteria property. - ## @return a void - ## - def criteria=(value) - @criteria = value - end - ## - ## Gets the database property value. The database property - ## @return a json - ## - def database - return @database - end - ## - ## Sets the database property value. The database property - ## @param value Value to set for the database property. - ## @return a void - ## - def database=(value) - @database = value - end - ## - ## Gets the field property value. The field property - ## @return a json - ## - def field - return @field - end - ## - ## Sets the field property value. The field property - ## @param value Value to set for the field property. - ## @return a void - ## - def field=(value) - @field = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "criteria" => lambda {|n| @criteria = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "database" => lambda {|n| @database = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "field" => lambda {|n| @field = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -125,9 +67,6 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("criteria", @criteria) - writer.write_object_value("database", @database) - writer.write_object_value("field", @field) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/dproduct/dproduct_request_builder.rb b/lib/drives/item/items/item/workbook/functions/dproduct/dproduct_request_builder.rb index fdb3c33179..7424368478 100644 --- a/lib/drives/item/items/item/workbook/functions/dproduct/dproduct_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/dproduct/dproduct_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dproduct_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DproductRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/dst_dev/dst_dev_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/dst_dev/dst_dev_post_request_body.rb index 9b34cd3f8b..ec224ad327 100644 --- a/lib/drives/item/items/item/workbook/functions/dst_dev/dst_dev_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/dst_dev/dst_dev_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class DstDevPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The criteria property - @criteria - ## - # The database property - @database - ## - # The field property - @field - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new dstDevPostRequestBody and sets the default values. + ## Instantiates a new DstDevPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,59 +53,11 @@ def self.create_from_discriminator_value(parse_node) return DstDevPostRequestBody.new end ## - ## Gets the criteria property value. The criteria property - ## @return a json - ## - def criteria - return @criteria - end - ## - ## Sets the criteria property value. The criteria property - ## @param value Value to set for the criteria property. - ## @return a void - ## - def criteria=(value) - @criteria = value - end - ## - ## Gets the database property value. The database property - ## @return a json - ## - def database - return @database - end - ## - ## Sets the database property value. The database property - ## @param value Value to set for the database property. - ## @return a void - ## - def database=(value) - @database = value - end - ## - ## Gets the field property value. The field property - ## @return a json - ## - def field - return @field - end - ## - ## Sets the field property value. The field property - ## @param value Value to set for the field property. - ## @return a void - ## - def field=(value) - @field = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "criteria" => lambda {|n| @criteria = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "database" => lambda {|n| @database = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "field" => lambda {|n| @field = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -125,9 +67,6 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("criteria", @criteria) - writer.write_object_value("database", @database) - writer.write_object_value("field", @field) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/dst_dev/dst_dev_request_builder.rb b/lib/drives/item/items/item/workbook/functions/dst_dev/dst_dev_request_builder.rb index 90dce6008e..c501b0129a 100644 --- a/lib/drives/item/items/item/workbook/functions/dst_dev/dst_dev_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/dst_dev/dst_dev_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dst_dev_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DstDevRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/dst_dev_p/dst_dev_p_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/dst_dev_p/dst_dev_p_post_request_body.rb index a35c71d267..4426774b5a 100644 --- a/lib/drives/item/items/item/workbook/functions/dst_dev_p/dst_dev_p_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/dst_dev_p/dst_dev_p_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class DstDevPPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The criteria property - @criteria - ## - # The database property - @database - ## - # The field property - @field - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new dstDevPPostRequestBody and sets the default values. + ## Instantiates a new DstDevPPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,59 +53,11 @@ def self.create_from_discriminator_value(parse_node) return DstDevPPostRequestBody.new end ## - ## Gets the criteria property value. The criteria property - ## @return a json - ## - def criteria - return @criteria - end - ## - ## Sets the criteria property value. The criteria property - ## @param value Value to set for the criteria property. - ## @return a void - ## - def criteria=(value) - @criteria = value - end - ## - ## Gets the database property value. The database property - ## @return a json - ## - def database - return @database - end - ## - ## Sets the database property value. The database property - ## @param value Value to set for the database property. - ## @return a void - ## - def database=(value) - @database = value - end - ## - ## Gets the field property value. The field property - ## @return a json - ## - def field - return @field - end - ## - ## Sets the field property value. The field property - ## @param value Value to set for the field property. - ## @return a void - ## - def field=(value) - @field = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "criteria" => lambda {|n| @criteria = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "database" => lambda {|n| @database = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "field" => lambda {|n| @field = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -125,9 +67,6 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("criteria", @criteria) - writer.write_object_value("database", @database) - writer.write_object_value("field", @field) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/dst_dev_p/dst_dev_p_request_builder.rb b/lib/drives/item/items/item/workbook/functions/dst_dev_p/dst_dev_p_request_builder.rb index a15593b1db..03520a5a30 100644 --- a/lib/drives/item/items/item/workbook/functions/dst_dev_p/dst_dev_p_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/dst_dev_p/dst_dev_p_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dst_dev_p_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DstDevPRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/dsum/dsum_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/dsum/dsum_post_request_body.rb index 62b696b195..5a9722facd 100644 --- a/lib/drives/item/items/item/workbook/functions/dsum/dsum_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/dsum/dsum_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class DsumPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The criteria property - @criteria - ## - # The database property - @database - ## - # The field property - @field - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new dsumPostRequestBody and sets the default values. + ## Instantiates a new DsumPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,59 +53,11 @@ def self.create_from_discriminator_value(parse_node) return DsumPostRequestBody.new end ## - ## Gets the criteria property value. The criteria property - ## @return a json - ## - def criteria - return @criteria - end - ## - ## Sets the criteria property value. The criteria property - ## @param value Value to set for the criteria property. - ## @return a void - ## - def criteria=(value) - @criteria = value - end - ## - ## Gets the database property value. The database property - ## @return a json - ## - def database - return @database - end - ## - ## Sets the database property value. The database property - ## @param value Value to set for the database property. - ## @return a void - ## - def database=(value) - @database = value - end - ## - ## Gets the field property value. The field property - ## @return a json - ## - def field - return @field - end - ## - ## Sets the field property value. The field property - ## @param value Value to set for the field property. - ## @return a void - ## - def field=(value) - @field = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "criteria" => lambda {|n| @criteria = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "database" => lambda {|n| @database = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "field" => lambda {|n| @field = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -125,9 +67,6 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("criteria", @criteria) - writer.write_object_value("database", @database) - writer.write_object_value("field", @field) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/dsum/dsum_request_builder.rb b/lib/drives/item/items/item/workbook/functions/dsum/dsum_request_builder.rb index 279989ebcb..520bc8a0d0 100644 --- a/lib/drives/item/items/item/workbook/functions/dsum/dsum_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/dsum/dsum_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dsum_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DsumRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/duration/duration_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/duration/duration_post_request_body.rb index 2bdce4471f..72f19dbf81 100644 --- a/lib/drives/item/items/item/workbook/functions/duration/duration_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/duration/duration_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,76 +22,28 @@ class DurationPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The coupon property - @coupon - ## - # The frequency property - @frequency - ## - # The maturity property - @maturity - ## - # The settlement property - @settlement - ## - # The yld property - @yld - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new durationPostRequestBody and sets the default values. + ## Instantiates a new DurationPostRequestBody and sets the default values. ## @return a void ## def initialize() @additional_data = Hash.new end ## - ## Gets the coupon property value. The coupon property - ## @return a json - ## - def coupon - return @coupon - end - ## - ## Sets the coupon property value. The coupon property - ## @param value Value to set for the coupon property. - ## @return a void - ## - def coupon=(value) - @coupon = value - end - ## ## Creates a new instance of the appropriate class based on discriminator value ## @param parse_node The parse node to use to read the discriminator value and create the object ## @return a duration_post_request_body @@ -102,94 +53,22 @@ def self.create_from_discriminator_value(parse_node) return DurationPostRequestBody.new end ## - ## Gets the frequency property value. The frequency property - ## @return a json - ## - def frequency - return @frequency - end - ## - ## Sets the frequency property value. The frequency property - ## @param value Value to set for the frequency property. - ## @return a void - ## - def frequency=(value) - @frequency = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "coupon" => lambda {|n| @coupon = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "frequency" => lambda {|n| @frequency = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "yld" => lambda {|n| @yld = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("coupon", @coupon) - writer.write_object_value("frequency", @frequency) - writer.write_object_value("maturity", @maturity) - writer.write_object_value("settlement", @settlement) - writer.write_object_value("yld", @yld) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end - ## - ## Gets the yld property value. The yld property - ## @return a json - ## - def yld - return @yld - end - ## - ## Sets the yld property value. The yld property - ## @param value Value to set for the yld property. - ## @return a void - ## - def yld=(value) - @yld = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/duration/duration_request_builder.rb b/lib/drives/item/items/item/workbook/functions/duration/duration_request_builder.rb index b5dc15d82b..1e857330ea 100644 --- a/lib/drives/item/items/item/workbook/functions/duration/duration_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/duration/duration_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a duration_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DurationRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/dvar/dvar_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/dvar/dvar_post_request_body.rb index eed6eb5a0d..4e07fa8d23 100644 --- a/lib/drives/item/items/item/workbook/functions/dvar/dvar_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/dvar/dvar_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class DvarPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The criteria property - @criteria - ## - # The database property - @database - ## - # The field property - @field - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new dvarPostRequestBody and sets the default values. + ## Instantiates a new DvarPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,59 +53,11 @@ def self.create_from_discriminator_value(parse_node) return DvarPostRequestBody.new end ## - ## Gets the criteria property value. The criteria property - ## @return a json - ## - def criteria - return @criteria - end - ## - ## Sets the criteria property value. The criteria property - ## @param value Value to set for the criteria property. - ## @return a void - ## - def criteria=(value) - @criteria = value - end - ## - ## Gets the database property value. The database property - ## @return a json - ## - def database - return @database - end - ## - ## Sets the database property value. The database property - ## @param value Value to set for the database property. - ## @return a void - ## - def database=(value) - @database = value - end - ## - ## Gets the field property value. The field property - ## @return a json - ## - def field - return @field - end - ## - ## Sets the field property value. The field property - ## @param value Value to set for the field property. - ## @return a void - ## - def field=(value) - @field = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "criteria" => lambda {|n| @criteria = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "database" => lambda {|n| @database = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "field" => lambda {|n| @field = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -125,9 +67,6 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("criteria", @criteria) - writer.write_object_value("database", @database) - writer.write_object_value("field", @field) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/dvar/dvar_request_builder.rb b/lib/drives/item/items/item/workbook/functions/dvar/dvar_request_builder.rb index d2fe788a77..11bf6f41bc 100644 --- a/lib/drives/item/items/item/workbook/functions/dvar/dvar_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/dvar/dvar_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dvar_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DvarRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/dvar_p/dvar_p_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/dvar_p/dvar_p_post_request_body.rb index f8aa0e75dc..c3cf9b3199 100644 --- a/lib/drives/item/items/item/workbook/functions/dvar_p/dvar_p_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/dvar_p/dvar_p_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class DvarPPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The criteria property - @criteria - ## - # The database property - @database - ## - # The field property - @field - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new dvarPPostRequestBody and sets the default values. + ## Instantiates a new DvarPPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,59 +53,11 @@ def self.create_from_discriminator_value(parse_node) return DvarPPostRequestBody.new end ## - ## Gets the criteria property value. The criteria property - ## @return a json - ## - def criteria - return @criteria - end - ## - ## Sets the criteria property value. The criteria property - ## @param value Value to set for the criteria property. - ## @return a void - ## - def criteria=(value) - @criteria = value - end - ## - ## Gets the database property value. The database property - ## @return a json - ## - def database - return @database - end - ## - ## Sets the database property value. The database property - ## @param value Value to set for the database property. - ## @return a void - ## - def database=(value) - @database = value - end - ## - ## Gets the field property value. The field property - ## @return a json - ## - def field - return @field - end - ## - ## Sets the field property value. The field property - ## @param value Value to set for the field property. - ## @return a void - ## - def field=(value) - @field = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "criteria" => lambda {|n| @criteria = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "database" => lambda {|n| @database = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "field" => lambda {|n| @field = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -125,9 +67,6 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("criteria", @criteria) - writer.write_object_value("database", @database) - writer.write_object_value("field", @field) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/dvar_p/dvar_p_request_builder.rb b/lib/drives/item/items/item/workbook/functions/dvar_p/dvar_p_request_builder.rb index b334b428c6..4f0f967ff8 100644 --- a/lib/drives/item/items/item/workbook/functions/dvar_p/dvar_p_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/dvar_p/dvar_p_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dvar_p_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DvarPRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/ecma_ceiling/ecma_ceiling_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/ecma_ceiling/ecma_ceiling_post_request_body.rb index de9d2b9b4e..e115928ecb 100644 --- a/lib/drives/item/items/item/workbook/functions/ecma_ceiling/ecma_ceiling_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/ecma_ceiling/ecma_ceiling_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,21 +22,15 @@ class EcmaCeilingPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The significance property - @significance - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -65,51 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "significance" => lambda {|n| @significance = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("significance", @significance) writer.write_additional_data(@additional_data) end - ## - ## Gets the significance property value. The significance property - ## @return a json - ## - def significance - return @significance - end - ## - ## Sets the significance property value. The significance property - ## @param value Value to set for the significance property. - ## @return a void - ## - def significance=(value) - @significance = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/ecma_ceiling/ecma_ceiling_request_builder.rb b/lib/drives/item/items/item/workbook/functions/ecma_ceiling/ecma_ceiling_request_builder.rb index d1d793050f..5f3bb0941b 100644 --- a/lib/drives/item/items/item/workbook/functions/ecma_ceiling/ecma_ceiling_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/ecma_ceiling/ecma_ceiling_request_builder.rb @@ -23,7 +23,7 @@ module Ecma_Ceiling class EcmaCeilingRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Ecma_CeilingRequestBuilder and sets the default values. + ## Instantiates a new EcmaCeilingRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ecma_ceiling_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EcmaCeilingRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/edate/edate_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/edate/edate_post_request_body.rb index ca8655f4fd..b3b1cb43cf 100644 --- a/lib/drives/item/items/item/workbook/functions/edate/edate_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/edate/edate_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class EdatePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The months property - @months - ## - # The startDate property - @start_date - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new edatePostRequestBody and sets the default values. + ## Instantiates a new EdatePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,51 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "months" => lambda {|n| @months = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "startDate" => lambda {|n| @start_date = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the months property value. The months property - ## @return a json - ## - def months - return @months - end - ## - ## Sets the months property value. The months property - ## @param value Value to set for the months property. - ## @return a void - ## - def months=(value) - @months = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("months", @months) - writer.write_object_value("startDate", @start_date) writer.write_additional_data(@additional_data) end - ## - ## Gets the startDate property value. The startDate property - ## @return a json - ## - def start_date - return @start_date - end - ## - ## Sets the startDate property value. The startDate property - ## @param value Value to set for the startDate property. - ## @return a void - ## - def start_date=(value) - @start_date = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/edate/edate_request_builder.rb b/lib/drives/item/items/item/workbook/functions/edate/edate_request_builder.rb index 4990e75391..dd6a53bf9e 100644 --- a/lib/drives/item/items/item/workbook/functions/edate/edate_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/edate/edate_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a edate_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EdateRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/effect/effect_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/effect/effect_post_request_body.rb index e2a00ad070..3c4df837c7 100644 --- a/lib/drives/item/items/item/workbook/functions/effect/effect_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/effect/effect_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class EffectPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The nominalRate property - @nominal_rate - ## - # The npery property - @npery - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new effectPostRequestBody and sets the default values. + ## Instantiates a new EffectPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "nominalRate" => lambda {|n| @nominal_rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "npery" => lambda {|n| @npery = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the nominalRate property value. The nominalRate property - ## @return a json - ## - def nominal_rate - return @nominal_rate - end - ## - ## Sets the nominalRate property value. The nominalRate property - ## @param value Value to set for the nominalRate property. - ## @return a void - ## - def nominal_rate=(value) - @nominal_rate = value - end - ## - ## Gets the npery property value. The npery property - ## @return a json - ## - def npery - return @npery - end - ## - ## Sets the npery property value. The npery property - ## @param value Value to set for the npery property. - ## @return a void - ## - def npery=(value) - @npery = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("nominalRate", @nominal_rate) - writer.write_object_value("npery", @npery) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/effect/effect_request_builder.rb b/lib/drives/item/items/item/workbook/functions/effect/effect_request_builder.rb index 1eb30fe5c1..74f5183efc 100644 --- a/lib/drives/item/items/item/workbook/functions/effect/effect_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/effect/effect_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a effect_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EffectRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/eo_month/eo_month_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/eo_month/eo_month_post_request_body.rb index 4973556e31..f4897040cb 100644 --- a/lib/drives/item/items/item/workbook/functions/eo_month/eo_month_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/eo_month/eo_month_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class EoMonthPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The months property - @months - ## - # The startDate property - @start_date - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new eoMonthPostRequestBody and sets the default values. + ## Instantiates a new EoMonthPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,51 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "months" => lambda {|n| @months = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "startDate" => lambda {|n| @start_date = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the months property value. The months property - ## @return a json - ## - def months - return @months - end - ## - ## Sets the months property value. The months property - ## @param value Value to set for the months property. - ## @return a void - ## - def months=(value) - @months = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("months", @months) - writer.write_object_value("startDate", @start_date) writer.write_additional_data(@additional_data) end - ## - ## Gets the startDate property value. The startDate property - ## @return a json - ## - def start_date - return @start_date - end - ## - ## Sets the startDate property value. The startDate property - ## @param value Value to set for the startDate property. - ## @return a void - ## - def start_date=(value) - @start_date = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/eo_month/eo_month_request_builder.rb b/lib/drives/item/items/item/workbook/functions/eo_month/eo_month_request_builder.rb index 4f95c7ae41..7eda170d24 100644 --- a/lib/drives/item/items/item/workbook/functions/eo_month/eo_month_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/eo_month/eo_month_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a eo_month_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EoMonthRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/erf/erf_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/erf/erf_post_request_body.rb index 7b5e1ae34a..57291ccea1 100644 --- a/lib/drives/item/items/item/workbook/functions/erf/erf_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/erf/erf_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class ErfPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The lowerLimit property - @lower_limit - ## - # The upperLimit property - @upper_limit - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new erfPostRequestBody and sets the default values. + ## Instantiates a new ErfPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,51 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "lowerLimit" => lambda {|n| @lower_limit = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "upperLimit" => lambda {|n| @upper_limit = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the lowerLimit property value. The lowerLimit property - ## @return a json - ## - def lower_limit - return @lower_limit - end - ## - ## Sets the lowerLimit property value. The lowerLimit property - ## @param value Value to set for the lowerLimit property. - ## @return a void - ## - def lower_limit=(value) - @lower_limit = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("lowerLimit", @lower_limit) - writer.write_object_value("upperLimit", @upper_limit) writer.write_additional_data(@additional_data) end - ## - ## Gets the upperLimit property value. The upperLimit property - ## @return a json - ## - def upper_limit - return @upper_limit - end - ## - ## Sets the upperLimit property value. The upperLimit property - ## @param value Value to set for the upperLimit property. - ## @return a void - ## - def upper_limit=(value) - @upper_limit = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/erf/erf_request_builder.rb b/lib/drives/item/items/item/workbook/functions/erf/erf_request_builder.rb index 30e71cd2dd..a23f496647 100644 --- a/lib/drives/item/items/item/workbook/functions/erf/erf_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/erf/erf_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a erf_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ErfRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/erf_c/erf_c_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/erf_c/erf_c_post_request_body.rb index fa5b3ef2f4..4f6091ba29 100644 --- a/lib/drives/item/items/item/workbook/functions/erf_c/erf_c_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/erf_c/erf_c_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ErfCPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new erfCPostRequestBody and sets the default values. + ## Instantiates a new ErfCPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/erf_c/erf_c_request_builder.rb b/lib/drives/item/items/item/workbook/functions/erf_c/erf_c_request_builder.rb index 4dd623a5fa..9e85af99c8 100644 --- a/lib/drives/item/items/item/workbook/functions/erf_c/erf_c_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/erf_c/erf_c_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a erf_c_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ErfCRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/erf_c_precise/erf_c_precise_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/erf_c_precise/erf_c_precise_post_request_body.rb index 1170315aea..5dc3ee393f 100644 --- a/lib/drives/item/items/item/workbook/functions/erf_c_precise/erf_c_precise_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/erf_c_precise/erf_c_precise_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,18 +22,15 @@ class ErfCPrecisePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The X property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "X" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("X", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the X property value. The X property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the X property value. The X property - ## @param value Value to set for the X property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/erf_c_precise/erf_c_precise_request_builder.rb b/lib/drives/item/items/item/workbook/functions/erf_c_precise/erf_c_precise_request_builder.rb index 9c56755feb..708fc569ed 100644 --- a/lib/drives/item/items/item/workbook/functions/erf_c_precise/erf_c_precise_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/erf_c_precise/erf_c_precise_request_builder.rb @@ -23,7 +23,7 @@ module ErfC_Precise class ErfCPreciseRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new ErfC_PreciseRequestBuilder and sets the default values. + ## Instantiates a new ErfCPreciseRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a erf_c_precise_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ErfCPreciseRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/erf_precise/erf_precise_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/erf_precise/erf_precise_post_request_body.rb index 5fd32824ed..05b8a7ddd8 100644 --- a/lib/drives/item/items/item/workbook/functions/erf_precise/erf_precise_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/erf_precise/erf_precise_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,18 +22,15 @@ class ErfPrecisePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The X property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "X" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("X", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the X property value. The X property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the X property value. The X property - ## @param value Value to set for the X property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/erf_precise/erf_precise_request_builder.rb b/lib/drives/item/items/item/workbook/functions/erf_precise/erf_precise_request_builder.rb index c8be4dc7bf..726105c666 100644 --- a/lib/drives/item/items/item/workbook/functions/erf_precise/erf_precise_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/erf_precise/erf_precise_request_builder.rb @@ -23,7 +23,7 @@ module Erf_Precise class ErfPreciseRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Erf_PreciseRequestBuilder and sets the default values. + ## Instantiates a new ErfPreciseRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a erf_precise_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ErfPreciseRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/error_type/error_type_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/error_type/error_type_post_request_body.rb index 8a109a8fc5..0a9755825a 100644 --- a/lib/drives/item/items/item/workbook/functions/error_type/error_type_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/error_type/error_type_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,18 +22,15 @@ class ErrorTypePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The errorVal property - @error_val - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -57,27 +53,11 @@ def self.create_from_discriminator_value(parse_node) return ErrorTypePostRequestBody.new end ## - ## Gets the errorVal property value. The errorVal property - ## @return a json - ## - def error_val - return @error_val - end - ## - ## Sets the errorVal property value. The errorVal property - ## @param value Value to set for the errorVal property. - ## @return a void - ## - def error_val=(value) - @error_val = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "errorVal" => lambda {|n| @error_val = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -87,7 +67,6 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("errorVal", @error_val) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/error_type/error_type_request_builder.rb b/lib/drives/item/items/item/workbook/functions/error_type/error_type_request_builder.rb index 6d01d4e8dd..66c05b44b9 100644 --- a/lib/drives/item/items/item/workbook/functions/error_type/error_type_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/error_type/error_type_request_builder.rb @@ -23,7 +23,7 @@ module Error_Type class ErrorTypeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Error_TypeRequestBuilder and sets the default values. + ## Instantiates a new ErrorTypeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a error_type_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ErrorTypeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/even/even_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/even/even_post_request_body.rb index bcec9b00b3..f48ce55f77 100644 --- a/lib/drives/item/items/item/workbook/functions/even/even_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/even/even_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class EvenPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new evenPostRequestBody and sets the default values. + ## Instantiates a new EvenPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/even/even_request_builder.rb b/lib/drives/item/items/item/workbook/functions/even/even_request_builder.rb index b8e6a1dd62..f6d8769c8e 100644 --- a/lib/drives/item/items/item/workbook/functions/even/even_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/even/even_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a even_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EvenRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/exact/exact_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/exact/exact_post_request_body.rb index d84a73ad16..95b65ef554 100644 --- a/lib/drives/item/items/item/workbook/functions/exact/exact_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/exact/exact_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class ExactPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The text1 property - @text1 - ## - # The text2 property - @text2 - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new exactPostRequestBody and sets the default values. + ## Instantiates a new ExactPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,8 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "text1" => lambda {|n| @text1 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "text2" => lambda {|n| @text2 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -76,40 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("text1", @text1) - writer.write_object_value("text2", @text2) writer.write_additional_data(@additional_data) end - ## - ## Gets the text1 property value. The text1 property - ## @return a json - ## - def text1 - return @text1 - end - ## - ## Sets the text1 property value. The text1 property - ## @param value Value to set for the text1 property. - ## @return a void - ## - def text1=(value) - @text1 = value - end - ## - ## Gets the text2 property value. The text2 property - ## @return a json - ## - def text2 - return @text2 - end - ## - ## Sets the text2 property value. The text2 property - ## @param value Value to set for the text2 property. - ## @return a void - ## - def text2=(value) - @text2 = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/exact/exact_request_builder.rb b/lib/drives/item/items/item/workbook/functions/exact/exact_request_builder.rb index 1564464e1e..2b58aa5034 100644 --- a/lib/drives/item/items/item/workbook/functions/exact/exact_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/exact/exact_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a exact_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExactRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/exp/exp_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/exp/exp_post_request_body.rb index 9161ba8986..f7bea8bc84 100644 --- a/lib/drives/item/items/item/workbook/functions/exp/exp_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/exp/exp_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ExpPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new expPostRequestBody and sets the default values. + ## Instantiates a new ExpPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/exp/exp_request_builder.rb b/lib/drives/item/items/item/workbook/functions/exp/exp_request_builder.rb index 137770b98a..3af666cd60 100644 --- a/lib/drives/item/items/item/workbook/functions/exp/exp_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/exp/exp_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a exp_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExpRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/expon_dist/expon_dist_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/expon_dist/expon_dist_post_request_body.rb index 0e56fde42f..2fc54393fd 100644 --- a/lib/drives/item/items/item/workbook/functions/expon_dist/expon_dist_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/expon_dist/expon_dist_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,24 +22,15 @@ class ExponDistPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The cumulative property - @cumulative - ## - # The lambda property - @lambda - ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -63,73 +53,22 @@ def self.create_from_discriminator_value(parse_node) return ExponDistPostRequestBody.new end ## - ## Gets the cumulative property value. The cumulative property - ## @return a json - ## - def cumulative - return @cumulative - end - ## - ## Sets the cumulative property value. The cumulative property - ## @param value Value to set for the cumulative property. - ## @return a void - ## - def cumulative=(value) - @cumulative = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "cumulative" => lambda {|n| @cumulative = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "lambda" => lambda {|n| @lambda = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the lambda property value. The lambda property - ## @return a json - ## - def lambda - return @lambda - end - ## - ## Sets the lambda property value. The lambda property - ## @param value Value to set for the lambda property. - ## @return a void - ## - def lambda=(value) - @lambda = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("cumulative", @cumulative) - writer.write_object_value("lambda", @lambda) - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/expon_dist/expon_dist_request_builder.rb b/lib/drives/item/items/item/workbook/functions/expon_dist/expon_dist_request_builder.rb index 8a7ec891d4..a2a5e497d4 100644 --- a/lib/drives/item/items/item/workbook/functions/expon_dist/expon_dist_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/expon_dist/expon_dist_request_builder.rb @@ -23,7 +23,7 @@ module Expon_Dist class ExponDistRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Expon_DistRequestBuilder and sets the default values. + ## Instantiates a new ExponDistRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a expon_dist_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExponDistRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/f_dist/f_dist_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/f_dist/f_dist_post_request_body.rb index b30db0fc82..da0adf6f71 100644 --- a/lib/drives/item/items/item/workbook/functions/f_dist/f_dist_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/f_dist/f_dist_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,27 +22,15 @@ class FDistPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The cumulative property - @cumulative - ## - # The degFreedom1 property - @deg_freedom1 - ## - # The degFreedom2 property - @deg_freedom2 - ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -66,60 +53,11 @@ def self.create_from_discriminator_value(parse_node) return FDistPostRequestBody.new end ## - ## Gets the cumulative property value. The cumulative property - ## @return a json - ## - def cumulative - return @cumulative - end - ## - ## Sets the cumulative property value. The cumulative property - ## @param value Value to set for the cumulative property. - ## @return a void - ## - def cumulative=(value) - @cumulative = value - end - ## - ## Gets the degFreedom1 property value. The degFreedom1 property - ## @return a json - ## - def deg_freedom1 - return @deg_freedom1 - end - ## - ## Sets the degFreedom1 property value. The degFreedom1 property - ## @param value Value to set for the degFreedom1 property. - ## @return a void - ## - def deg_freedom1=(value) - @deg_freedom1 = value - end - ## - ## Gets the degFreedom2 property value. The degFreedom2 property - ## @return a json - ## - def deg_freedom2 - return @deg_freedom2 - end - ## - ## Sets the degFreedom2 property value. The degFreedom2 property - ## @param value Value to set for the degFreedom2 property. - ## @return a void - ## - def deg_freedom2=(value) - @deg_freedom2 = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "cumulative" => lambda {|n| @cumulative = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "degFreedom1" => lambda {|n| @deg_freedom1 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "degFreedom2" => lambda {|n| @deg_freedom2 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -129,27 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("cumulative", @cumulative) - writer.write_object_value("degFreedom1", @deg_freedom1) - writer.write_object_value("degFreedom2", @deg_freedom2) - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/f_dist/f_dist_request_builder.rb b/lib/drives/item/items/item/workbook/functions/f_dist/f_dist_request_builder.rb index 6cae52b5d0..3dc5224809 100644 --- a/lib/drives/item/items/item/workbook/functions/f_dist/f_dist_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/f_dist/f_dist_request_builder.rb @@ -23,7 +23,7 @@ module F_Dist class FDistRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new F_DistRequestBuilder and sets the default values. + ## Instantiates a new FDistRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a f_dist_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FDistRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/f_dist_r_t/f_dist_r_t_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/f_dist_r_t/f_dist_r_t_post_request_body.rb index 80a5aa6437..71601069fb 100644 --- a/lib/drives/item/items/item/workbook/functions/f_dist_r_t/f_dist_r_t_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/f_dist_r_t/f_dist_r_t_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,24 +22,15 @@ class FDistRTPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The degFreedom1 property - @deg_freedom1 - ## - # The degFreedom2 property - @deg_freedom2 - ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -63,44 +53,11 @@ def self.create_from_discriminator_value(parse_node) return FDistRTPostRequestBody.new end ## - ## Gets the degFreedom1 property value. The degFreedom1 property - ## @return a json - ## - def deg_freedom1 - return @deg_freedom1 - end - ## - ## Sets the degFreedom1 property value. The degFreedom1 property - ## @param value Value to set for the degFreedom1 property. - ## @return a void - ## - def deg_freedom1=(value) - @deg_freedom1 = value - end - ## - ## Gets the degFreedom2 property value. The degFreedom2 property - ## @return a json - ## - def deg_freedom2 - return @deg_freedom2 - end - ## - ## Sets the degFreedom2 property value. The degFreedom2 property - ## @param value Value to set for the degFreedom2 property. - ## @return a void - ## - def deg_freedom2=(value) - @deg_freedom2 = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "degFreedom1" => lambda {|n| @deg_freedom1 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "degFreedom2" => lambda {|n| @deg_freedom2 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -110,26 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("degFreedom1", @deg_freedom1) - writer.write_object_value("degFreedom2", @deg_freedom2) - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/f_dist_r_t/f_dist_r_t_request_builder.rb b/lib/drives/item/items/item/workbook/functions/f_dist_r_t/f_dist_r_t_request_builder.rb index d816a5cff1..2ebe1d5b2b 100644 --- a/lib/drives/item/items/item/workbook/functions/f_dist_r_t/f_dist_r_t_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/f_dist_r_t/f_dist_r_t_request_builder.rb @@ -23,7 +23,7 @@ module F_Dist_RT class FDistRTRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new F_Dist_RTRequestBuilder and sets the default values. + ## Instantiates a new FDistRTRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a f_dist_r_t_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FDistRTRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/f_inv/f_inv_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/f_inv/f_inv_post_request_body.rb index 912172ba2b..d0a8021c0f 100644 --- a/lib/drives/item/items/item/workbook/functions/f_inv/f_inv_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/f_inv/f_inv_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,24 +22,15 @@ class FInvPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The degFreedom1 property - @deg_freedom1 - ## - # The degFreedom2 property - @deg_freedom2 - ## - # The probability property - @probability - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -63,71 +53,20 @@ def self.create_from_discriminator_value(parse_node) return FInvPostRequestBody.new end ## - ## Gets the degFreedom1 property value. The degFreedom1 property - ## @return a json - ## - def deg_freedom1 - return @deg_freedom1 - end - ## - ## Sets the degFreedom1 property value. The degFreedom1 property - ## @param value Value to set for the degFreedom1 property. - ## @return a void - ## - def deg_freedom1=(value) - @deg_freedom1 = value - end - ## - ## Gets the degFreedom2 property value. The degFreedom2 property - ## @return a json - ## - def deg_freedom2 - return @deg_freedom2 - end - ## - ## Sets the degFreedom2 property value. The degFreedom2 property - ## @param value Value to set for the degFreedom2 property. - ## @return a void - ## - def deg_freedom2=(value) - @deg_freedom2 = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "degFreedom1" => lambda {|n| @deg_freedom1 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "degFreedom2" => lambda {|n| @deg_freedom2 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "probability" => lambda {|n| @probability = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the probability property value. The probability property - ## @return a json - ## - def probability - return @probability - end - ## - ## Sets the probability property value. The probability property - ## @param value Value to set for the probability property. - ## @return a void - ## - def probability=(value) - @probability = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("degFreedom1", @deg_freedom1) - writer.write_object_value("degFreedom2", @deg_freedom2) - writer.write_object_value("probability", @probability) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/f_inv/f_inv_request_builder.rb b/lib/drives/item/items/item/workbook/functions/f_inv/f_inv_request_builder.rb index 14e1bd053e..205f5f9b1a 100644 --- a/lib/drives/item/items/item/workbook/functions/f_inv/f_inv_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/f_inv/f_inv_request_builder.rb @@ -23,7 +23,7 @@ module F_Inv class FInvRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new F_InvRequestBuilder and sets the default values. + ## Instantiates a new FInvRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a f_inv_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FInvRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/f_inv_r_t/f_inv_r_t_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/f_inv_r_t/f_inv_r_t_post_request_body.rb index 358e2fe389..134f3c8bb6 100644 --- a/lib/drives/item/items/item/workbook/functions/f_inv_r_t/f_inv_r_t_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/f_inv_r_t/f_inv_r_t_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,24 +22,15 @@ class FInvRTPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The degFreedom1 property - @deg_freedom1 - ## - # The degFreedom2 property - @deg_freedom2 - ## - # The probability property - @probability - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -63,71 +53,20 @@ def self.create_from_discriminator_value(parse_node) return FInvRTPostRequestBody.new end ## - ## Gets the degFreedom1 property value. The degFreedom1 property - ## @return a json - ## - def deg_freedom1 - return @deg_freedom1 - end - ## - ## Sets the degFreedom1 property value. The degFreedom1 property - ## @param value Value to set for the degFreedom1 property. - ## @return a void - ## - def deg_freedom1=(value) - @deg_freedom1 = value - end - ## - ## Gets the degFreedom2 property value. The degFreedom2 property - ## @return a json - ## - def deg_freedom2 - return @deg_freedom2 - end - ## - ## Sets the degFreedom2 property value. The degFreedom2 property - ## @param value Value to set for the degFreedom2 property. - ## @return a void - ## - def deg_freedom2=(value) - @deg_freedom2 = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "degFreedom1" => lambda {|n| @deg_freedom1 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "degFreedom2" => lambda {|n| @deg_freedom2 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "probability" => lambda {|n| @probability = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the probability property value. The probability property - ## @return a json - ## - def probability - return @probability - end - ## - ## Sets the probability property value. The probability property - ## @param value Value to set for the probability property. - ## @return a void - ## - def probability=(value) - @probability = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("degFreedom1", @deg_freedom1) - writer.write_object_value("degFreedom2", @deg_freedom2) - writer.write_object_value("probability", @probability) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/f_inv_r_t/f_inv_r_t_request_builder.rb b/lib/drives/item/items/item/workbook/functions/f_inv_r_t/f_inv_r_t_request_builder.rb index 979f9e63d7..5ffd7e61f1 100644 --- a/lib/drives/item/items/item/workbook/functions/f_inv_r_t/f_inv_r_t_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/f_inv_r_t/f_inv_r_t_request_builder.rb @@ -23,7 +23,7 @@ module F_Inv_RT class FInvRTRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new F_Inv_RTRequestBuilder and sets the default values. + ## Instantiates a new FInvRTRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a f_inv_r_t_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FInvRTRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/fact/fact_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/fact/fact_post_request_body.rb index 9db6c7f73b..535fab4ed8 100644 --- a/lib/drives/item/items/item/workbook/functions/fact/fact_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/fact/fact_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class FactPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new factPostRequestBody and sets the default values. + ## Instantiates a new FactPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/fact/fact_request_builder.rb b/lib/drives/item/items/item/workbook/functions/fact/fact_request_builder.rb index 100aaa03d1..e31d5f0026 100644 --- a/lib/drives/item/items/item/workbook/functions/fact/fact_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/fact/fact_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a fact_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FactRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/fact_double/fact_double_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/fact_double/fact_double_post_request_body.rb index 96e9e5403f..888bee4463 100644 --- a/lib/drives/item/items/item/workbook/functions/fact_double/fact_double_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/fact_double/fact_double_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class FactDoublePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new factDoublePostRequestBody and sets the default values. + ## Instantiates a new FactDoublePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/fact_double/fact_double_request_builder.rb b/lib/drives/item/items/item/workbook/functions/fact_double/fact_double_request_builder.rb index d4d98931e5..343733df2a 100644 --- a/lib/drives/item/items/item/workbook/functions/fact_double/fact_double_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/fact_double/fact_double_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a fact_double_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FactDoubleRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/false_escaped/false_request_builder.rb b/lib/drives/item/items/item/workbook/functions/false_escaped/false_request_builder.rb index ca71d3ba9a..10072ffc3e 100644 --- a/lib/drives/item/items/item/workbook/functions/false_escaped/false_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/false_escaped/false_request_builder.rb @@ -41,8 +41,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,16 +51,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a false_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FalseRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/find/find_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/find/find_post_request_body.rb index abb0cf09b5..d479381673 100644 --- a/lib/drives/item/items/item/workbook/functions/find/find_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/find/find_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class FindPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The findText property - @find_text - ## - # The startNum property - @start_num - ## - # The withinText property - @within_text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new findPostRequestBody and sets the default values. + ## Instantiates a new FindPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,29 +53,11 @@ def self.create_from_discriminator_value(parse_node) return FindPostRequestBody.new end ## - ## Gets the findText property value. The findText property - ## @return a json - ## - def find_text - return @find_text - end - ## - ## Sets the findText property value. The findText property - ## @param value Value to set for the findText property. - ## @return a void - ## - def find_text=(value) - @find_text = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "findText" => lambda {|n| @find_text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "startNum" => lambda {|n| @start_num = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "withinText" => lambda {|n| @within_text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -95,41 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("findText", @find_text) - writer.write_object_value("startNum", @start_num) - writer.write_object_value("withinText", @within_text) writer.write_additional_data(@additional_data) end - ## - ## Gets the startNum property value. The startNum property - ## @return a json - ## - def start_num - return @start_num - end - ## - ## Sets the startNum property value. The startNum property - ## @param value Value to set for the startNum property. - ## @return a void - ## - def start_num=(value) - @start_num = value - end - ## - ## Gets the withinText property value. The withinText property - ## @return a json - ## - def within_text - return @within_text - end - ## - ## Sets the withinText property value. The withinText property - ## @param value Value to set for the withinText property. - ## @return a void - ## - def within_text=(value) - @within_text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/find/find_request_builder.rb b/lib/drives/item/items/item/workbook/functions/find/find_request_builder.rb index 551bde321f..ee820a733a 100644 --- a/lib/drives/item/items/item/workbook/functions/find/find_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/find/find_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a find_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FindRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/find_b/find_b_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/find_b/find_b_post_request_body.rb index 567ac6c667..d5365a986e 100644 --- a/lib/drives/item/items/item/workbook/functions/find_b/find_b_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/find_b/find_b_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class FindBPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The findText property - @find_text - ## - # The startNum property - @start_num - ## - # The withinText property - @within_text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new findBPostRequestBody and sets the default values. + ## Instantiates a new FindBPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,29 +53,11 @@ def self.create_from_discriminator_value(parse_node) return FindBPostRequestBody.new end ## - ## Gets the findText property value. The findText property - ## @return a json - ## - def find_text - return @find_text - end - ## - ## Sets the findText property value. The findText property - ## @param value Value to set for the findText property. - ## @return a void - ## - def find_text=(value) - @find_text = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "findText" => lambda {|n| @find_text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "startNum" => lambda {|n| @start_num = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "withinText" => lambda {|n| @within_text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -95,41 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("findText", @find_text) - writer.write_object_value("startNum", @start_num) - writer.write_object_value("withinText", @within_text) writer.write_additional_data(@additional_data) end - ## - ## Gets the startNum property value. The startNum property - ## @return a json - ## - def start_num - return @start_num - end - ## - ## Sets the startNum property value. The startNum property - ## @param value Value to set for the startNum property. - ## @return a void - ## - def start_num=(value) - @start_num = value - end - ## - ## Gets the withinText property value. The withinText property - ## @return a json - ## - def within_text - return @within_text - end - ## - ## Sets the withinText property value. The withinText property - ## @param value Value to set for the withinText property. - ## @return a void - ## - def within_text=(value) - @within_text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/find_b/find_b_request_builder.rb b/lib/drives/item/items/item/workbook/functions/find_b/find_b_request_builder.rb index 02855810fa..7a08863ad5 100644 --- a/lib/drives/item/items/item/workbook/functions/find_b/find_b_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/find_b/find_b_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a find_b_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FindBRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/fisher/fisher_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/fisher/fisher_post_request_body.rb index e778bf9c65..e745ef0256 100644 --- a/lib/drives/item/items/item/workbook/functions/fisher/fisher_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/fisher/fisher_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class FisherPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new fisherPostRequestBody and sets the default values. + ## Instantiates a new FisherPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/fisher/fisher_request_builder.rb b/lib/drives/item/items/item/workbook/functions/fisher/fisher_request_builder.rb index a64ed2cfc9..41cf27fe63 100644 --- a/lib/drives/item/items/item/workbook/functions/fisher/fisher_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/fisher/fisher_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a fisher_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FisherRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/fisher_inv/fisher_inv_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/fisher_inv/fisher_inv_post_request_body.rb index 35175868fa..8b7939deb4 100644 --- a/lib/drives/item/items/item/workbook/functions/fisher_inv/fisher_inv_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/fisher_inv/fisher_inv_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class FisherInvPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The y property - @y - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new fisherInvPostRequestBody and sets the default values. + ## Instantiates a new FisherInvPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "y" => lambda {|n| @y = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("y", @y) writer.write_additional_data(@additional_data) end - ## - ## Gets the y property value. The y property - ## @return a json - ## - def y - return @y - end - ## - ## Sets the y property value. The y property - ## @param value Value to set for the y property. - ## @return a void - ## - def y=(value) - @y = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/fisher_inv/fisher_inv_request_builder.rb b/lib/drives/item/items/item/workbook/functions/fisher_inv/fisher_inv_request_builder.rb index 6229c0e593..b1dcf6663d 100644 --- a/lib/drives/item/items/item/workbook/functions/fisher_inv/fisher_inv_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/fisher_inv/fisher_inv_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a fisher_inv_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FisherInvRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/fixed/fixed_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/fixed/fixed_post_request_body.rb index f67c329892..da4f40b175 100644 --- a/lib/drives/item/items/item/workbook/functions/fixed/fixed_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/fixed/fixed_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class FixedPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The decimals property - @decimals - ## - # The noCommas property - @no_commas - ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new fixedPostRequestBody and sets the default values. + ## Instantiates a new FixedPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,71 +53,20 @@ def self.create_from_discriminator_value(parse_node) return FixedPostRequestBody.new end ## - ## Gets the decimals property value. The decimals property - ## @return a json - ## - def decimals - return @decimals - end - ## - ## Sets the decimals property value. The decimals property - ## @param value Value to set for the decimals property. - ## @return a void - ## - def decimals=(value) - @decimals = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "decimals" => lambda {|n| @decimals = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "noCommas" => lambda {|n| @no_commas = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the noCommas property value. The noCommas property - ## @return a json - ## - def no_commas - return @no_commas - end - ## - ## Sets the noCommas property value. The noCommas property - ## @param value Value to set for the noCommas property. - ## @return a void - ## - def no_commas=(value) - @no_commas = value - end - ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("decimals", @decimals) - writer.write_object_value("noCommas", @no_commas) - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/fixed/fixed_request_builder.rb b/lib/drives/item/items/item/workbook/functions/fixed/fixed_request_builder.rb index d48900cc5a..07c79d72a7 100644 --- a/lib/drives/item/items/item/workbook/functions/fixed/fixed_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/fixed/fixed_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a fixed_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FixedRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/floor_math/floor_math_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/floor_math/floor_math_post_request_body.rb index 5f47f0346a..83262b8ba7 100644 --- a/lib/drives/item/items/item/workbook/functions/floor_math/floor_math_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/floor_math/floor_math_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,24 +22,15 @@ class FloorMathPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The mode property - @mode - ## - # The number property - @number - ## - # The significance property - @significance - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -68,68 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "mode" => lambda {|n| @mode = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "significance" => lambda {|n| @significance = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the mode property value. The mode property - ## @return a json - ## - def mode - return @mode - end - ## - ## Sets the mode property value. The mode property - ## @param value Value to set for the mode property. - ## @return a void - ## - def mode=(value) - @mode = value - end - ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("mode", @mode) - writer.write_object_value("number", @number) - writer.write_object_value("significance", @significance) writer.write_additional_data(@additional_data) end - ## - ## Gets the significance property value. The significance property - ## @return a json - ## - def significance - return @significance - end - ## - ## Sets the significance property value. The significance property - ## @param value Value to set for the significance property. - ## @return a void - ## - def significance=(value) - @significance = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/floor_math/floor_math_request_builder.rb b/lib/drives/item/items/item/workbook/functions/floor_math/floor_math_request_builder.rb index 43b8ca6177..6595b94316 100644 --- a/lib/drives/item/items/item/workbook/functions/floor_math/floor_math_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/floor_math/floor_math_request_builder.rb @@ -23,7 +23,7 @@ module Floor_Math class FloorMathRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Floor_MathRequestBuilder and sets the default values. + ## Instantiates a new FloorMathRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a floor_math_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FloorMathRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/floor_precise/floor_precise_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/floor_precise/floor_precise_post_request_body.rb index a579d7e617..71e5f43104 100644 --- a/lib/drives/item/items/item/workbook/functions/floor_precise/floor_precise_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/floor_precise/floor_precise_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,21 +22,15 @@ class FloorPrecisePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The significance property - @significance - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -65,51 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "significance" => lambda {|n| @significance = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("significance", @significance) writer.write_additional_data(@additional_data) end - ## - ## Gets the significance property value. The significance property - ## @return a json - ## - def significance - return @significance - end - ## - ## Sets the significance property value. The significance property - ## @param value Value to set for the significance property. - ## @return a void - ## - def significance=(value) - @significance = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/floor_precise/floor_precise_request_builder.rb b/lib/drives/item/items/item/workbook/functions/floor_precise/floor_precise_request_builder.rb index e4e468f29b..0cb303ed16 100644 --- a/lib/drives/item/items/item/workbook/functions/floor_precise/floor_precise_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/floor_precise/floor_precise_request_builder.rb @@ -23,7 +23,7 @@ module Floor_Precise class FloorPreciseRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Floor_PreciseRequestBuilder and sets the default values. + ## Instantiates a new FloorPreciseRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a floor_precise_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FloorPreciseRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/functions_request_builder.rb b/lib/drives/item/items/item/workbook/functions/functions_request_builder.rb index 8a474a6652..6f52c0bfaa 100644 --- a/lib/drives/item/items/item/workbook/functions/functions_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/functions_request_builder.rb @@ -2223,7 +2223,7 @@ def z_test() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions{?%24expand,%24select}") end ## ## Delete navigation property functions for drives @@ -2235,8 +2235,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -2249,8 +2248,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctions.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -2265,8 +2263,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctions.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -2276,13 +2273,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -2292,15 +2290,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -2312,17 +2310,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a functions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FunctionsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get functions from drives diff --git a/lib/drives/item/items/item/workbook/functions/fv/fv_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/fv/fv_post_request_body.rb index 6ad5e03062..18828b02ab 100644 --- a/lib/drives/item/items/item/workbook/functions/fv/fv_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/fv/fv_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,37 +22,22 @@ class FvPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The nper property - @nper - ## - # The pmt property - @pmt - ## - # The pv property - @pv - ## - # The rate property - @rate - ## - # The type property - @type - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new fvPostRequestBody and sets the default values. + ## Instantiates a new FvPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -74,102 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "nper" => lambda {|n| @nper = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "pmt" => lambda {|n| @pmt = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "pv" => lambda {|n| @pv = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "type" => lambda {|n| @type = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the nper property value. The nper property - ## @return a json - ## - def nper - return @nper - end - ## - ## Sets the nper property value. The nper property - ## @param value Value to set for the nper property. - ## @return a void - ## - def nper=(value) - @nper = value - end - ## - ## Gets the pmt property value. The pmt property - ## @return a json - ## - def pmt - return @pmt - end - ## - ## Sets the pmt property value. The pmt property - ## @param value Value to set for the pmt property. - ## @return a void - ## - def pmt=(value) - @pmt = value - end - ## - ## Gets the pv property value. The pv property - ## @return a json - ## - def pv - return @pv - end - ## - ## Sets the pv property value. The pv property - ## @param value Value to set for the pv property. - ## @return a void - ## - def pv=(value) - @pv = value - end - ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("nper", @nper) - writer.write_object_value("pmt", @pmt) - writer.write_object_value("pv", @pv) - writer.write_object_value("rate", @rate) - writer.write_object_value("type", @type) writer.write_additional_data(@additional_data) end - ## - ## Gets the type property value. The type property - ## @return a json - ## - def type - return @type - end - ## - ## Sets the type property value. The type property - ## @param value Value to set for the type property. - ## @return a void - ## - def type=(value) - @type = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/fv/fv_request_builder.rb b/lib/drives/item/items/item/workbook/functions/fv/fv_request_builder.rb index 40e7532d19..1cfe7af809 100644 --- a/lib/drives/item/items/item/workbook/functions/fv/fv_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/fv/fv_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a fv_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FvRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/fvschedule/fvschedule_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/fvschedule/fvschedule_post_request_body.rb index b03f1d609c..83478fb8fd 100644 --- a/lib/drives/item/items/item/workbook/functions/fvschedule/fvschedule_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/fvschedule/fvschedule_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class FvschedulePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The principal property - @principal - ## - # The schedule property - @schedule - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new fvschedulePostRequestBody and sets the default values. + ## Instantiates a new FvschedulePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "principal" => lambda {|n| @principal = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "schedule" => lambda {|n| @schedule = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the principal property value. The principal property - ## @return a json - ## - def principal - return @principal - end - ## - ## Sets the principal property value. The principal property - ## @param value Value to set for the principal property. - ## @return a void - ## - def principal=(value) - @principal = value - end - ## - ## Gets the schedule property value. The schedule property - ## @return a json - ## - def schedule - return @schedule - end - ## - ## Sets the schedule property value. The schedule property - ## @param value Value to set for the schedule property. - ## @return a void - ## - def schedule=(value) - @schedule = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("principal", @principal) - writer.write_object_value("schedule", @schedule) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/fvschedule/fvschedule_request_builder.rb b/lib/drives/item/items/item/workbook/functions/fvschedule/fvschedule_request_builder.rb index bbf9da7685..452b2467b4 100644 --- a/lib/drives/item/items/item/workbook/functions/fvschedule/fvschedule_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/fvschedule/fvschedule_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a fvschedule_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FvscheduleRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/gamma/gamma_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/gamma/gamma_post_request_body.rb index 2463964a19..5e5d579743 100644 --- a/lib/drives/item/items/item/workbook/functions/gamma/gamma_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/gamma/gamma_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class GammaPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new gammaPostRequestBody and sets the default values. + ## Instantiates a new GammaPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/gamma/gamma_request_builder.rb b/lib/drives/item/items/item/workbook/functions/gamma/gamma_request_builder.rb index 73c5138d56..453c721f0a 100644 --- a/lib/drives/item/items/item/workbook/functions/gamma/gamma_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/gamma/gamma_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a gamma_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GammaRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/gamma_dist/gamma_dist_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/gamma_dist/gamma_dist_post_request_body.rb index 88555e5f89..e7e2306f02 100644 --- a/lib/drives/item/items/item/workbook/functions/gamma_dist/gamma_dist_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/gamma_dist/gamma_dist_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,63 +22,21 @@ class GammaDistPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The alpha property - @alpha - ## - # The beta property - @beta - ## - # The cumulative property - @cumulative - ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the alpha property value. The alpha property - ## @return a json - ## - def alpha - return @alpha - end - ## - ## Sets the alpha property value. The alpha property - ## @param value Value to set for the alpha property. - ## @return a void - ## - def alpha=(value) - @alpha = value - end - ## - ## Gets the beta property value. The beta property - ## @return a json - ## - def beta - return @beta - end - ## - ## Sets the beta property value. The beta property - ## @param value Value to set for the beta property. - ## @return a void - ## - def beta=(value) - @beta = value - end - ## ## Instantiates a new GammaDistPostRequestBody and sets the default values. ## @return a void ## @@ -96,30 +53,11 @@ def self.create_from_discriminator_value(parse_node) return GammaDistPostRequestBody.new end ## - ## Gets the cumulative property value. The cumulative property - ## @return a json - ## - def cumulative - return @cumulative - end - ## - ## Sets the cumulative property value. The cumulative property - ## @param value Value to set for the cumulative property. - ## @return a void - ## - def cumulative=(value) - @cumulative = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "alpha" => lambda {|n| @alpha = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "beta" => lambda {|n| @beta = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "cumulative" => lambda {|n| @cumulative = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -129,27 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("alpha", @alpha) - writer.write_object_value("beta", @beta) - writer.write_object_value("cumulative", @cumulative) - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/gamma_dist/gamma_dist_request_builder.rb b/lib/drives/item/items/item/workbook/functions/gamma_dist/gamma_dist_request_builder.rb index 2e79b99a9d..639cab02f9 100644 --- a/lib/drives/item/items/item/workbook/functions/gamma_dist/gamma_dist_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/gamma_dist/gamma_dist_request_builder.rb @@ -23,7 +23,7 @@ module Gamma_Dist class GammaDistRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Gamma_DistRequestBuilder and sets the default values. + ## Instantiates a new GammaDistRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a gamma_dist_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GammaDistRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/gamma_inv/gamma_inv_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/gamma_inv/gamma_inv_post_request_body.rb index ea6414adea..63da466b49 100644 --- a/lib/drives/item/items/item/workbook/functions/gamma_inv/gamma_inv_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/gamma_inv/gamma_inv_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,60 +22,21 @@ class GammaInvPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The alpha property - @alpha - ## - # The beta property - @beta - ## - # The probability property - @probability - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the alpha property value. The alpha property - ## @return a json - ## - def alpha - return @alpha - end - ## - ## Sets the alpha property value. The alpha property - ## @param value Value to set for the alpha property. - ## @return a void - ## - def alpha=(value) - @alpha = value - end - ## - ## Gets the beta property value. The beta property - ## @return a json - ## - def beta - return @beta - end - ## - ## Sets the beta property value. The beta property - ## @param value Value to set for the beta property. - ## @return a void - ## - def beta=(value) - @beta = value - end - ## ## Instantiates a new GammaInvPostRequestBody and sets the default values. ## @return a void ## @@ -98,36 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "alpha" => lambda {|n| @alpha = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "beta" => lambda {|n| @beta = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "probability" => lambda {|n| @probability = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the probability property value. The probability property - ## @return a json - ## - def probability - return @probability - end - ## - ## Sets the probability property value. The probability property - ## @param value Value to set for the probability property. - ## @return a void - ## - def probability=(value) - @probability = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("alpha", @alpha) - writer.write_object_value("beta", @beta) - writer.write_object_value("probability", @probability) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/gamma_inv/gamma_inv_request_builder.rb b/lib/drives/item/items/item/workbook/functions/gamma_inv/gamma_inv_request_builder.rb index 9796dff044..c5cb99417b 100644 --- a/lib/drives/item/items/item/workbook/functions/gamma_inv/gamma_inv_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/gamma_inv/gamma_inv_request_builder.rb @@ -23,7 +23,7 @@ module Gamma_Inv class GammaInvRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Gamma_InvRequestBuilder and sets the default values. + ## Instantiates a new GammaInvRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a gamma_inv_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GammaInvRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/gamma_ln/gamma_ln_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/gamma_ln/gamma_ln_post_request_body.rb index afa2b207a8..29baa7aeb3 100644 --- a/lib/drives/item/items/item/workbook/functions/gamma_ln/gamma_ln_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/gamma_ln/gamma_ln_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class GammaLnPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new gammaLnPostRequestBody and sets the default values. + ## Instantiates a new GammaLnPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/gamma_ln/gamma_ln_request_builder.rb b/lib/drives/item/items/item/workbook/functions/gamma_ln/gamma_ln_request_builder.rb index bdfee784bd..c0954ef7b2 100644 --- a/lib/drives/item/items/item/workbook/functions/gamma_ln/gamma_ln_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/gamma_ln/gamma_ln_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a gamma_ln_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GammaLnRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/gamma_ln_precise/gamma_ln_precise_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/gamma_ln_precise/gamma_ln_precise_post_request_body.rb index 2f51e66666..4ff9199c2f 100644 --- a/lib/drives/item/items/item/workbook/functions/gamma_ln_precise/gamma_ln_precise_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/gamma_ln_precise/gamma_ln_precise_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,18 +22,15 @@ class GammaLnPrecisePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/gamma_ln_precise/gamma_ln_precise_request_builder.rb b/lib/drives/item/items/item/workbook/functions/gamma_ln_precise/gamma_ln_precise_request_builder.rb index 09a73a01e8..7b180efe04 100644 --- a/lib/drives/item/items/item/workbook/functions/gamma_ln_precise/gamma_ln_precise_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/gamma_ln_precise/gamma_ln_precise_request_builder.rb @@ -23,7 +23,7 @@ module GammaLn_Precise class GammaLnPreciseRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new GammaLn_PreciseRequestBuilder and sets the default values. + ## Instantiates a new GammaLnPreciseRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a gamma_ln_precise_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GammaLnPreciseRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/gauss/gauss_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/gauss/gauss_post_request_body.rb index c3937e35d6..879dd338f8 100644 --- a/lib/drives/item/items/item/workbook/functions/gauss/gauss_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/gauss/gauss_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class GaussPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new gaussPostRequestBody and sets the default values. + ## Instantiates a new GaussPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/gauss/gauss_request_builder.rb b/lib/drives/item/items/item/workbook/functions/gauss/gauss_request_builder.rb index f1ce681934..761d512ace 100644 --- a/lib/drives/item/items/item/workbook/functions/gauss/gauss_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/gauss/gauss_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a gauss_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GaussRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/gcd/gcd_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/gcd/gcd_post_request_body.rb index c41d2c42bb..60380f8956 100644 --- a/lib/drives/item/items/item/workbook/functions/gcd/gcd_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/gcd/gcd_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class GcdPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new gcdPostRequestBody and sets the default values. + ## Instantiates a new GcdPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/gcd/gcd_request_builder.rb b/lib/drives/item/items/item/workbook/functions/gcd/gcd_request_builder.rb index 4850d4a2ff..408b768070 100644 --- a/lib/drives/item/items/item/workbook/functions/gcd/gcd_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/gcd/gcd_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a gcd_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GcdRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/ge_step/ge_step_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/ge_step/ge_step_post_request_body.rb index a7035d76e2..2e9f67112c 100644 --- a/lib/drives/item/items/item/workbook/functions/ge_step/ge_step_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/ge_step/ge_step_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class GeStepPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The step property - @step - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new geStepPostRequestBody and sets the default values. + ## Instantiates a new GeStepPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,51 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "step" => lambda {|n| @step = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("step", @step) writer.write_additional_data(@additional_data) end - ## - ## Gets the step property value. The step property - ## @return a json - ## - def step - return @step - end - ## - ## Sets the step property value. The step property - ## @param value Value to set for the step property. - ## @return a void - ## - def step=(value) - @step = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/ge_step/ge_step_request_builder.rb b/lib/drives/item/items/item/workbook/functions/ge_step/ge_step_request_builder.rb index d89ebf57a7..17ff404f51 100644 --- a/lib/drives/item/items/item/workbook/functions/ge_step/ge_step_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/ge_step/ge_step_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ge_step_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GeStepRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/geo_mean/geo_mean_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/geo_mean/geo_mean_post_request_body.rb index 974fae66f5..5009726d3b 100644 --- a/lib/drives/item/items/item/workbook/functions/geo_mean/geo_mean_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/geo_mean/geo_mean_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class GeoMeanPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new geoMeanPostRequestBody and sets the default values. + ## Instantiates a new GeoMeanPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/geo_mean/geo_mean_request_builder.rb b/lib/drives/item/items/item/workbook/functions/geo_mean/geo_mean_request_builder.rb index 07bb4916cb..579abea325 100644 --- a/lib/drives/item/items/item/workbook/functions/geo_mean/geo_mean_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/geo_mean/geo_mean_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a geo_mean_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GeoMeanRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/har_mean/har_mean_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/har_mean/har_mean_post_request_body.rb index 0f21e40391..3a783c81f6 100644 --- a/lib/drives/item/items/item/workbook/functions/har_mean/har_mean_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/har_mean/har_mean_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class HarMeanPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new harMeanPostRequestBody and sets the default values. + ## Instantiates a new HarMeanPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/har_mean/har_mean_request_builder.rb b/lib/drives/item/items/item/workbook/functions/har_mean/har_mean_request_builder.rb index 71e0eb70d3..ccd5f85e32 100644 --- a/lib/drives/item/items/item/workbook/functions/har_mean/har_mean_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/har_mean/har_mean_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a har_mean_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HarMeanRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/hex2_bin/hex2_bin_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/hex2_bin/hex2_bin_post_request_body.rb index 3ddace6227..1c4b410bf5 100644 --- a/lib/drives/item/items/item/workbook/functions/hex2_bin/hex2_bin_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/hex2_bin/hex2_bin_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class Hex2BinPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The places property - @places - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new hex2BinPostRequestBody and sets the default values. + ## Instantiates a new Hex2BinPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "places" => lambda {|n| @places = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## - ## Gets the places property value. The places property - ## @return a json - ## - def places - return @places - end - ## - ## Sets the places property value. The places property - ## @param value Value to set for the places property. - ## @return a void - ## - def places=(value) - @places = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("places", @places) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/hex2_bin/hex2_bin_request_builder.rb b/lib/drives/item/items/item/workbook/functions/hex2_bin/hex2_bin_request_builder.rb index 1459c416ff..82267d46d3 100644 --- a/lib/drives/item/items/item/workbook/functions/hex2_bin/hex2_bin_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/hex2_bin/hex2_bin_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a hex2_bin_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return Hex2BinRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/hex2_dec/hex2_dec_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/hex2_dec/hex2_dec_post_request_body.rb index 7164836a63..52d7ea3408 100644 --- a/lib/drives/item/items/item/workbook/functions/hex2_dec/hex2_dec_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/hex2_dec/hex2_dec_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class Hex2DecPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new hex2DecPostRequestBody and sets the default values. + ## Instantiates a new Hex2DecPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/hex2_dec/hex2_dec_request_builder.rb b/lib/drives/item/items/item/workbook/functions/hex2_dec/hex2_dec_request_builder.rb index 9ff2380a4f..e0842c80a1 100644 --- a/lib/drives/item/items/item/workbook/functions/hex2_dec/hex2_dec_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/hex2_dec/hex2_dec_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a hex2_dec_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return Hex2DecRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/hex2_oct/hex2_oct_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/hex2_oct/hex2_oct_post_request_body.rb index 44be50b69a..b611df7b5f 100644 --- a/lib/drives/item/items/item/workbook/functions/hex2_oct/hex2_oct_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/hex2_oct/hex2_oct_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class Hex2OctPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The places property - @places - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new hex2OctPostRequestBody and sets the default values. + ## Instantiates a new Hex2OctPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "places" => lambda {|n| @places = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## - ## Gets the places property value. The places property - ## @return a json - ## - def places - return @places - end - ## - ## Sets the places property value. The places property - ## @param value Value to set for the places property. - ## @return a void - ## - def places=(value) - @places = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("places", @places) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/hex2_oct/hex2_oct_request_builder.rb b/lib/drives/item/items/item/workbook/functions/hex2_oct/hex2_oct_request_builder.rb index 6697e0f1e0..6c34c237d1 100644 --- a/lib/drives/item/items/item/workbook/functions/hex2_oct/hex2_oct_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/hex2_oct/hex2_oct_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a hex2_oct_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return Hex2OctRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/hlookup/hlookup_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/hlookup/hlookup_post_request_body.rb index f3a8b4faea..2ce90a7bd7 100644 --- a/lib/drives/item/items/item/workbook/functions/hlookup/hlookup_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/hlookup/hlookup_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,34 +22,22 @@ class HlookupPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The lookupValue property - @lookup_value - ## - # The rangeLookup property - @range_lookup - ## - # The rowIndexNum property - @row_index_num - ## - # The tableArray property - @table_array - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new hlookupPostRequestBody and sets the default values. + ## Instantiates a new HlookupPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -71,85 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "lookupValue" => lambda {|n| @lookup_value = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rangeLookup" => lambda {|n| @range_lookup = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rowIndexNum" => lambda {|n| @row_index_num = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "tableArray" => lambda {|n| @table_array = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the lookupValue property value. The lookupValue property - ## @return a json - ## - def lookup_value - return @lookup_value - end - ## - ## Sets the lookupValue property value. The lookupValue property - ## @param value Value to set for the lookupValue property. - ## @return a void - ## - def lookup_value=(value) - @lookup_value = value - end - ## - ## Gets the rangeLookup property value. The rangeLookup property - ## @return a json - ## - def range_lookup - return @range_lookup - end - ## - ## Sets the rangeLookup property value. The rangeLookup property - ## @param value Value to set for the rangeLookup property. - ## @return a void - ## - def range_lookup=(value) - @range_lookup = value - end - ## - ## Gets the rowIndexNum property value. The rowIndexNum property - ## @return a json - ## - def row_index_num - return @row_index_num - end - ## - ## Sets the rowIndexNum property value. The rowIndexNum property - ## @param value Value to set for the rowIndexNum property. - ## @return a void - ## - def row_index_num=(value) - @row_index_num = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("lookupValue", @lookup_value) - writer.write_object_value("rangeLookup", @range_lookup) - writer.write_object_value("rowIndexNum", @row_index_num) - writer.write_object_value("tableArray", @table_array) writer.write_additional_data(@additional_data) end - ## - ## Gets the tableArray property value. The tableArray property - ## @return a json - ## - def table_array - return @table_array - end - ## - ## Sets the tableArray property value. The tableArray property - ## @param value Value to set for the tableArray property. - ## @return a void - ## - def table_array=(value) - @table_array = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/hlookup/hlookup_request_builder.rb b/lib/drives/item/items/item/workbook/functions/hlookup/hlookup_request_builder.rb index dec79a7e01..fd0093b456 100644 --- a/lib/drives/item/items/item/workbook/functions/hlookup/hlookup_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/hlookup/hlookup_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a hlookup_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HlookupRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/hour/hour_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/hour/hour_post_request_body.rb index a1a0dd2fe7..47546c7135 100644 --- a/lib/drives/item/items/item/workbook/functions/hour/hour_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/hour/hour_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class HourPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The serialNumber property - @serial_number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new hourPostRequestBody and sets the default values. + ## Instantiates a new HourPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "serialNumber" => lambda {|n| @serial_number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the serialNumber property value. The serialNumber property - ## @return a json - ## - def serial_number - return @serial_number - end - ## - ## Sets the serialNumber property value. The serialNumber property - ## @param value Value to set for the serialNumber property. - ## @return a void - ## - def serial_number=(value) - @serial_number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("serialNumber", @serial_number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/hour/hour_request_builder.rb b/lib/drives/item/items/item/workbook/functions/hour/hour_request_builder.rb index 2f056b076a..1b8d1a4390 100644 --- a/lib/drives/item/items/item/workbook/functions/hour/hour_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/hour/hour_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a hour_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HourRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/hyp_geom_dist/hyp_geom_dist_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/hyp_geom_dist/hyp_geom_dist_post_request_body.rb index 21e478ec65..94eb8495be 100644 --- a/lib/drives/item/items/item/workbook/functions/hyp_geom_dist/hyp_geom_dist_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/hyp_geom_dist/hyp_geom_dist_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,30 +22,15 @@ class HypGeomDistPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The cumulative property - @cumulative - ## - # The numberPop property - @number_pop - ## - # The numberSample property - @number_sample - ## - # The populationS property - @population_s - ## - # The sampleS property - @sample_s - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -69,105 +53,20 @@ def self.create_from_discriminator_value(parse_node) return HypGeomDistPostRequestBody.new end ## - ## Gets the cumulative property value. The cumulative property - ## @return a json - ## - def cumulative - return @cumulative - end - ## - ## Sets the cumulative property value. The cumulative property - ## @param value Value to set for the cumulative property. - ## @return a void - ## - def cumulative=(value) - @cumulative = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "cumulative" => lambda {|n| @cumulative = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "numberPop" => lambda {|n| @number_pop = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "numberSample" => lambda {|n| @number_sample = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "populationS" => lambda {|n| @population_s = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "sampleS" => lambda {|n| @sample_s = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the numberPop property value. The numberPop property - ## @return a json - ## - def number_pop - return @number_pop - end - ## - ## Sets the numberPop property value. The numberPop property - ## @param value Value to set for the numberPop property. - ## @return a void - ## - def number_pop=(value) - @number_pop = value - end - ## - ## Gets the numberSample property value. The numberSample property - ## @return a json - ## - def number_sample - return @number_sample - end - ## - ## Sets the numberSample property value. The numberSample property - ## @param value Value to set for the numberSample property. - ## @return a void - ## - def number_sample=(value) - @number_sample = value - end - ## - ## Gets the populationS property value. The populationS property - ## @return a json - ## - def population_s - return @population_s - end - ## - ## Sets the populationS property value. The populationS property - ## @param value Value to set for the populationS property. - ## @return a void - ## - def population_s=(value) - @population_s = value - end - ## - ## Gets the sampleS property value. The sampleS property - ## @return a json - ## - def sample_s - return @sample_s - end - ## - ## Sets the sampleS property value. The sampleS property - ## @param value Value to set for the sampleS property. - ## @return a void - ## - def sample_s=(value) - @sample_s = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("cumulative", @cumulative) - writer.write_object_value("numberPop", @number_pop) - writer.write_object_value("numberSample", @number_sample) - writer.write_object_value("populationS", @population_s) - writer.write_object_value("sampleS", @sample_s) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/hyp_geom_dist/hyp_geom_dist_request_builder.rb b/lib/drives/item/items/item/workbook/functions/hyp_geom_dist/hyp_geom_dist_request_builder.rb index fe96786a29..af6bec4d85 100644 --- a/lib/drives/item/items/item/workbook/functions/hyp_geom_dist/hyp_geom_dist_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/hyp_geom_dist/hyp_geom_dist_request_builder.rb @@ -23,7 +23,7 @@ module HypGeom_Dist class HypGeomDistRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new HypGeom_DistRequestBuilder and sets the default values. + ## Instantiates a new HypGeomDistRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a hyp_geom_dist_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HypGeomDistRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/hyperlink/hyperlink_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/hyperlink/hyperlink_post_request_body.rb index 6e571d8a43..628b919a64 100644 --- a/lib/drives/item/items/item/workbook/functions/hyperlink/hyperlink_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/hyperlink/hyperlink_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class HyperlinkPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The friendlyName property - @friendly_name - ## - # The linkLocation property - @link_location - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new hyperlinkPostRequestBody and sets the default values. + ## Instantiates a new HyperlinkPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -60,54 +53,20 @@ def self.create_from_discriminator_value(parse_node) return HyperlinkPostRequestBody.new end ## - ## Gets the friendlyName property value. The friendlyName property - ## @return a json - ## - def friendly_name - return @friendly_name - end - ## - ## Sets the friendlyName property value. The friendlyName property - ## @param value Value to set for the friendlyName property. - ## @return a void - ## - def friendly_name=(value) - @friendly_name = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "friendlyName" => lambda {|n| @friendly_name = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "linkLocation" => lambda {|n| @link_location = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the linkLocation property value. The linkLocation property - ## @return a json - ## - def link_location - return @link_location - end - ## - ## Sets the linkLocation property value. The linkLocation property - ## @param value Value to set for the linkLocation property. - ## @return a void - ## - def link_location=(value) - @link_location = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("friendlyName", @friendly_name) - writer.write_object_value("linkLocation", @link_location) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/hyperlink/hyperlink_request_builder.rb b/lib/drives/item/items/item/workbook/functions/hyperlink/hyperlink_request_builder.rb index 53de33f9a0..35add68310 100644 --- a/lib/drives/item/items/item/workbook/functions/hyperlink/hyperlink_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/hyperlink/hyperlink_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a hyperlink_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HyperlinkRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/if_escaped/if_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/if_escaped/if_post_request_body.rb index 539b951063..2d6c76e715 100644 --- a/lib/drives/item/items/item/workbook/functions/if_escaped/if_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/if_escaped/if_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class IfPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The logicalTest property - @logical_test - ## - # The valueIfFalse property - @value_if_false - ## - # The valueIfTrue property - @value_if_true - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new ifPostRequestBody and sets the default values. + ## Instantiates a new IfPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -68,68 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "logicalTest" => lambda {|n| @logical_test = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "valueIfFalse" => lambda {|n| @value_if_false = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "valueIfTrue" => lambda {|n| @value_if_true = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the logicalTest property value. The logicalTest property - ## @return a json - ## - def logical_test - return @logical_test - end - ## - ## Sets the logicalTest property value. The logicalTest property - ## @param value Value to set for the logicalTest property. - ## @return a void - ## - def logical_test=(value) - @logical_test = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("logicalTest", @logical_test) - writer.write_object_value("valueIfFalse", @value_if_false) - writer.write_object_value("valueIfTrue", @value_if_true) writer.write_additional_data(@additional_data) end - ## - ## Gets the valueIfFalse property value. The valueIfFalse property - ## @return a json - ## - def value_if_false - return @value_if_false - end - ## - ## Sets the valueIfFalse property value. The valueIfFalse property - ## @param value Value to set for the valueIfFalse property. - ## @return a void - ## - def value_if_false=(value) - @value_if_false = value - end - ## - ## Gets the valueIfTrue property value. The valueIfTrue property - ## @return a json - ## - def value_if_true - return @value_if_true - end - ## - ## Sets the valueIfTrue property value. The valueIfTrue property - ## @param value Value to set for the valueIfTrue property. - ## @return a void - ## - def value_if_true=(value) - @value_if_true = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/if_escaped/if_request_builder.rb b/lib/drives/item/items/item/workbook/functions/if_escaped/if_request_builder.rb index 6e92b8e5d3..ad2475d7cd 100644 --- a/lib/drives/item/items/item/workbook/functions/if_escaped/if_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/if_escaped/if_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a if_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IfRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_abs/im_abs_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_abs/im_abs_post_request_body.rb index 1208b98f53..78fb0eb054 100644 --- a/lib/drives/item/items/item/workbook/functions/im_abs/im_abs_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_abs/im_abs_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ImAbsPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The inumber property - @inumber - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imAbsPostRequestBody and sets the default values. + ## Instantiates a new ImAbsPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "inumber" => lambda {|n| @inumber = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the inumber property value. The inumber property - ## @return a json - ## - def inumber - return @inumber - end - ## - ## Sets the inumber property value. The inumber property - ## @param value Value to set for the inumber property. - ## @return a void - ## - def inumber=(value) - @inumber = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("inumber", @inumber) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/im_abs/im_abs_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_abs/im_abs_request_builder.rb index 73b30f74d7..fe80aa8841 100644 --- a/lib/drives/item/items/item/workbook/functions/im_abs/im_abs_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_abs/im_abs_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_abs_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImAbsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_argument/im_argument_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_argument/im_argument_post_request_body.rb index 4c71733144..ed6a4c3e6e 100644 --- a/lib/drives/item/items/item/workbook/functions/im_argument/im_argument_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_argument/im_argument_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ImArgumentPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The inumber property - @inumber - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imArgumentPostRequestBody and sets the default values. + ## Instantiates a new ImArgumentPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "inumber" => lambda {|n| @inumber = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the inumber property value. The inumber property - ## @return a json - ## - def inumber - return @inumber - end - ## - ## Sets the inumber property value. The inumber property - ## @param value Value to set for the inumber property. - ## @return a void - ## - def inumber=(value) - @inumber = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("inumber", @inumber) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/im_argument/im_argument_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_argument/im_argument_request_builder.rb index 22941fa610..9d80f32ce3 100644 --- a/lib/drives/item/items/item/workbook/functions/im_argument/im_argument_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_argument/im_argument_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_argument_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImArgumentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_conjugate/im_conjugate_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_conjugate/im_conjugate_post_request_body.rb index 190a5da618..f28f3f6ee9 100644 --- a/lib/drives/item/items/item/workbook/functions/im_conjugate/im_conjugate_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_conjugate/im_conjugate_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ImConjugatePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The inumber property - @inumber - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imConjugatePostRequestBody and sets the default values. + ## Instantiates a new ImConjugatePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "inumber" => lambda {|n| @inumber = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the inumber property value. The inumber property - ## @return a json - ## - def inumber - return @inumber - end - ## - ## Sets the inumber property value. The inumber property - ## @param value Value to set for the inumber property. - ## @return a void - ## - def inumber=(value) - @inumber = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("inumber", @inumber) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/im_conjugate/im_conjugate_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_conjugate/im_conjugate_request_builder.rb index aab14d535a..d751f0cf80 100644 --- a/lib/drives/item/items/item/workbook/functions/im_conjugate/im_conjugate_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_conjugate/im_conjugate_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_conjugate_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImConjugateRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_cos/im_cos_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_cos/im_cos_post_request_body.rb index 5e228d11dc..cf2b6ce407 100644 --- a/lib/drives/item/items/item/workbook/functions/im_cos/im_cos_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_cos/im_cos_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ImCosPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The inumber property - @inumber - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imCosPostRequestBody and sets the default values. + ## Instantiates a new ImCosPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "inumber" => lambda {|n| @inumber = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the inumber property value. The inumber property - ## @return a json - ## - def inumber - return @inumber - end - ## - ## Sets the inumber property value. The inumber property - ## @param value Value to set for the inumber property. - ## @return a void - ## - def inumber=(value) - @inumber = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("inumber", @inumber) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/im_cos/im_cos_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_cos/im_cos_request_builder.rb index f39abce9ea..3f2282ea83 100644 --- a/lib/drives/item/items/item/workbook/functions/im_cos/im_cos_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_cos/im_cos_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_cos_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImCosRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_cosh/im_cosh_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_cosh/im_cosh_post_request_body.rb index 2578dbac10..4eb954f830 100644 --- a/lib/drives/item/items/item/workbook/functions/im_cosh/im_cosh_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_cosh/im_cosh_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ImCoshPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The inumber property - @inumber - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imCoshPostRequestBody and sets the default values. + ## Instantiates a new ImCoshPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "inumber" => lambda {|n| @inumber = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the inumber property value. The inumber property - ## @return a json - ## - def inumber - return @inumber - end - ## - ## Sets the inumber property value. The inumber property - ## @param value Value to set for the inumber property. - ## @return a void - ## - def inumber=(value) - @inumber = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("inumber", @inumber) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/im_cosh/im_cosh_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_cosh/im_cosh_request_builder.rb index 0ad7467571..0adf730a36 100644 --- a/lib/drives/item/items/item/workbook/functions/im_cosh/im_cosh_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_cosh/im_cosh_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_cosh_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImCoshRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_cot/im_cot_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_cot/im_cot_post_request_body.rb index 435e71868c..19001963e4 100644 --- a/lib/drives/item/items/item/workbook/functions/im_cot/im_cot_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_cot/im_cot_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ImCotPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The inumber property - @inumber - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imCotPostRequestBody and sets the default values. + ## Instantiates a new ImCotPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "inumber" => lambda {|n| @inumber = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the inumber property value. The inumber property - ## @return a json - ## - def inumber - return @inumber - end - ## - ## Sets the inumber property value. The inumber property - ## @param value Value to set for the inumber property. - ## @return a void - ## - def inumber=(value) - @inumber = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("inumber", @inumber) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/im_cot/im_cot_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_cot/im_cot_request_builder.rb index d87885325f..48497ea045 100644 --- a/lib/drives/item/items/item/workbook/functions/im_cot/im_cot_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_cot/im_cot_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_cot_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImCotRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_csc/im_csc_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_csc/im_csc_post_request_body.rb index 6c350c6177..83886dce89 100644 --- a/lib/drives/item/items/item/workbook/functions/im_csc/im_csc_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_csc/im_csc_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ImCscPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The inumber property - @inumber - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imCscPostRequestBody and sets the default values. + ## Instantiates a new ImCscPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "inumber" => lambda {|n| @inumber = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the inumber property value. The inumber property - ## @return a json - ## - def inumber - return @inumber - end - ## - ## Sets the inumber property value. The inumber property - ## @param value Value to set for the inumber property. - ## @return a void - ## - def inumber=(value) - @inumber = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("inumber", @inumber) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/im_csc/im_csc_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_csc/im_csc_request_builder.rb index af9b1430e4..d463f3efcd 100644 --- a/lib/drives/item/items/item/workbook/functions/im_csc/im_csc_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_csc/im_csc_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_csc_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImCscRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_csch/im_csch_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_csch/im_csch_post_request_body.rb index 1a9733fca0..8612f72d6a 100644 --- a/lib/drives/item/items/item/workbook/functions/im_csch/im_csch_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_csch/im_csch_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ImCschPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The inumber property - @inumber - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imCschPostRequestBody and sets the default values. + ## Instantiates a new ImCschPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "inumber" => lambda {|n| @inumber = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the inumber property value. The inumber property - ## @return a json - ## - def inumber - return @inumber - end - ## - ## Sets the inumber property value. The inumber property - ## @param value Value to set for the inumber property. - ## @return a void - ## - def inumber=(value) - @inumber = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("inumber", @inumber) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/im_csch/im_csch_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_csch/im_csch_request_builder.rb index a735069de8..d78091c935 100644 --- a/lib/drives/item/items/item/workbook/functions/im_csch/im_csch_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_csch/im_csch_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_csch_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImCschRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_div/im_div_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_div/im_div_post_request_body.rb index 423b41b4c0..42e5cf8c8a 100644 --- a/lib/drives/item/items/item/workbook/functions/im_div/im_div_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_div/im_div_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class ImDivPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The inumber1 property - @inumber1 - ## - # The inumber2 property - @inumber2 - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imDivPostRequestBody and sets the default values. + ## Instantiates a new ImDivPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "inumber1" => lambda {|n| @inumber1 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "inumber2" => lambda {|n| @inumber2 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the inumber1 property value. The inumber1 property - ## @return a json - ## - def inumber1 - return @inumber1 - end - ## - ## Sets the inumber1 property value. The inumber1 property - ## @param value Value to set for the inumber1 property. - ## @return a void - ## - def inumber1=(value) - @inumber1 = value - end - ## - ## Gets the inumber2 property value. The inumber2 property - ## @return a json - ## - def inumber2 - return @inumber2 - end - ## - ## Sets the inumber2 property value. The inumber2 property - ## @param value Value to set for the inumber2 property. - ## @return a void - ## - def inumber2=(value) - @inumber2 = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("inumber1", @inumber1) - writer.write_object_value("inumber2", @inumber2) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/im_div/im_div_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_div/im_div_request_builder.rb index f1dcb69679..cac332803c 100644 --- a/lib/drives/item/items/item/workbook/functions/im_div/im_div_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_div/im_div_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_div_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImDivRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_exp/im_exp_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_exp/im_exp_post_request_body.rb index 3938441e0f..c82a1ab68b 100644 --- a/lib/drives/item/items/item/workbook/functions/im_exp/im_exp_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_exp/im_exp_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ImExpPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The inumber property - @inumber - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imExpPostRequestBody and sets the default values. + ## Instantiates a new ImExpPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "inumber" => lambda {|n| @inumber = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the inumber property value. The inumber property - ## @return a json - ## - def inumber - return @inumber - end - ## - ## Sets the inumber property value. The inumber property - ## @param value Value to set for the inumber property. - ## @return a void - ## - def inumber=(value) - @inumber = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("inumber", @inumber) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/im_exp/im_exp_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_exp/im_exp_request_builder.rb index 0b027c7676..7768f565cd 100644 --- a/lib/drives/item/items/item/workbook/functions/im_exp/im_exp_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_exp/im_exp_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_exp_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImExpRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_ln/im_ln_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_ln/im_ln_post_request_body.rb index e8003b2cfe..1f68a77ae8 100644 --- a/lib/drives/item/items/item/workbook/functions/im_ln/im_ln_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_ln/im_ln_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ImLnPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The inumber property - @inumber - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imLnPostRequestBody and sets the default values. + ## Instantiates a new ImLnPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "inumber" => lambda {|n| @inumber = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the inumber property value. The inumber property - ## @return a json - ## - def inumber - return @inumber - end - ## - ## Sets the inumber property value. The inumber property - ## @param value Value to set for the inumber property. - ## @return a void - ## - def inumber=(value) - @inumber = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("inumber", @inumber) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/im_ln/im_ln_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_ln/im_ln_request_builder.rb index 8b28759ce2..0d47fb6254 100644 --- a/lib/drives/item/items/item/workbook/functions/im_ln/im_ln_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_ln/im_ln_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_ln_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImLnRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_log10/im_log10_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_log10/im_log10_post_request_body.rb index 67e7d1b4d8..ba51ecf22b 100644 --- a/lib/drives/item/items/item/workbook/functions/im_log10/im_log10_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_log10/im_log10_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ImLog10PostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The inumber property - @inumber - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imLog10PostRequestBody and sets the default values. + ## Instantiates a new ImLog10PostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "inumber" => lambda {|n| @inumber = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the inumber property value. The inumber property - ## @return a json - ## - def inumber - return @inumber - end - ## - ## Sets the inumber property value. The inumber property - ## @param value Value to set for the inumber property. - ## @return a void - ## - def inumber=(value) - @inumber = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("inumber", @inumber) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/im_log10/im_log10_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_log10/im_log10_request_builder.rb index ac3f20c5f7..f71a6c6a6a 100644 --- a/lib/drives/item/items/item/workbook/functions/im_log10/im_log10_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_log10/im_log10_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_log10_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImLog10RequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_log2/im_log2_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_log2/im_log2_post_request_body.rb index 4d2342ccc8..138c825fa1 100644 --- a/lib/drives/item/items/item/workbook/functions/im_log2/im_log2_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_log2/im_log2_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ImLog2PostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The inumber property - @inumber - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imLog2PostRequestBody and sets the default values. + ## Instantiates a new ImLog2PostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "inumber" => lambda {|n| @inumber = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the inumber property value. The inumber property - ## @return a json - ## - def inumber - return @inumber - end - ## - ## Sets the inumber property value. The inumber property - ## @param value Value to set for the inumber property. - ## @return a void - ## - def inumber=(value) - @inumber = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("inumber", @inumber) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/im_log2/im_log2_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_log2/im_log2_request_builder.rb index 4c25b028ea..49aece508f 100644 --- a/lib/drives/item/items/item/workbook/functions/im_log2/im_log2_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_log2/im_log2_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_log2_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImLog2RequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_power/im_power_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_power/im_power_post_request_body.rb index 56a0f82ebe..0fc62ecb9d 100644 --- a/lib/drives/item/items/item/workbook/functions/im_power/im_power_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_power/im_power_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class ImPowerPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The inumber property - @inumber - ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imPowerPostRequestBody and sets the default values. + ## Instantiates a new ImPowerPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "inumber" => lambda {|n| @inumber = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the inumber property value. The inumber property - ## @return a json - ## - def inumber - return @inumber - end - ## - ## Sets the inumber property value. The inumber property - ## @param value Value to set for the inumber property. - ## @return a void - ## - def inumber=(value) - @inumber = value - end - ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("inumber", @inumber) - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/im_power/im_power_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_power/im_power_request_builder.rb index 740b7383f3..427873329d 100644 --- a/lib/drives/item/items/item/workbook/functions/im_power/im_power_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_power/im_power_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_power_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImPowerRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_product/im_product_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_product/im_product_post_request_body.rb index 4c07531439..0dc5c0ef16 100644 --- a/lib/drives/item/items/item/workbook/functions/im_product/im_product_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_product/im_product_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ImProductPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imProductPostRequestBody and sets the default values. + ## Instantiates a new ImProductPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_product/im_product_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_product/im_product_request_builder.rb index a832fab444..05d7aae32d 100644 --- a/lib/drives/item/items/item/workbook/functions/im_product/im_product_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_product/im_product_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_product_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImProductRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_real/im_real_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_real/im_real_post_request_body.rb index 43f24f6465..2d57496959 100644 --- a/lib/drives/item/items/item/workbook/functions/im_real/im_real_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_real/im_real_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ImRealPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The inumber property - @inumber - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imRealPostRequestBody and sets the default values. + ## Instantiates a new ImRealPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "inumber" => lambda {|n| @inumber = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the inumber property value. The inumber property - ## @return a json - ## - def inumber - return @inumber - end - ## - ## Sets the inumber property value. The inumber property - ## @param value Value to set for the inumber property. - ## @return a void - ## - def inumber=(value) - @inumber = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("inumber", @inumber) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/im_real/im_real_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_real/im_real_request_builder.rb index abc45f3d3c..fa9d285659 100644 --- a/lib/drives/item/items/item/workbook/functions/im_real/im_real_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_real/im_real_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_real_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImRealRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_sec/im_sec_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_sec/im_sec_post_request_body.rb index 251cdd5fbd..94a5b23cbf 100644 --- a/lib/drives/item/items/item/workbook/functions/im_sec/im_sec_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_sec/im_sec_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ImSecPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The inumber property - @inumber - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imSecPostRequestBody and sets the default values. + ## Instantiates a new ImSecPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "inumber" => lambda {|n| @inumber = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the inumber property value. The inumber property - ## @return a json - ## - def inumber - return @inumber - end - ## - ## Sets the inumber property value. The inumber property - ## @param value Value to set for the inumber property. - ## @return a void - ## - def inumber=(value) - @inumber = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("inumber", @inumber) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/im_sec/im_sec_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_sec/im_sec_request_builder.rb index b1d96fe4d2..b2aead9d58 100644 --- a/lib/drives/item/items/item/workbook/functions/im_sec/im_sec_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_sec/im_sec_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_sec_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImSecRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_sech/im_sech_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_sech/im_sech_post_request_body.rb index ec28d18f4b..ab713cd527 100644 --- a/lib/drives/item/items/item/workbook/functions/im_sech/im_sech_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_sech/im_sech_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ImSechPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The inumber property - @inumber - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imSechPostRequestBody and sets the default values. + ## Instantiates a new ImSechPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "inumber" => lambda {|n| @inumber = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the inumber property value. The inumber property - ## @return a json - ## - def inumber - return @inumber - end - ## - ## Sets the inumber property value. The inumber property - ## @param value Value to set for the inumber property. - ## @return a void - ## - def inumber=(value) - @inumber = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("inumber", @inumber) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/im_sech/im_sech_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_sech/im_sech_request_builder.rb index e372ed7ae7..c160e7c69b 100644 --- a/lib/drives/item/items/item/workbook/functions/im_sech/im_sech_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_sech/im_sech_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_sech_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImSechRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_sin/im_sin_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_sin/im_sin_post_request_body.rb index 2b2daea52b..fa7c9033ad 100644 --- a/lib/drives/item/items/item/workbook/functions/im_sin/im_sin_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_sin/im_sin_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ImSinPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The inumber property - @inumber - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imSinPostRequestBody and sets the default values. + ## Instantiates a new ImSinPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "inumber" => lambda {|n| @inumber = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the inumber property value. The inumber property - ## @return a json - ## - def inumber - return @inumber - end - ## - ## Sets the inumber property value. The inumber property - ## @param value Value to set for the inumber property. - ## @return a void - ## - def inumber=(value) - @inumber = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("inumber", @inumber) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/im_sin/im_sin_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_sin/im_sin_request_builder.rb index 272142d961..34a93a0652 100644 --- a/lib/drives/item/items/item/workbook/functions/im_sin/im_sin_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_sin/im_sin_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_sin_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImSinRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_sinh/im_sinh_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_sinh/im_sinh_post_request_body.rb index c04af13405..6d7ae4feb8 100644 --- a/lib/drives/item/items/item/workbook/functions/im_sinh/im_sinh_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_sinh/im_sinh_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ImSinhPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The inumber property - @inumber - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imSinhPostRequestBody and sets the default values. + ## Instantiates a new ImSinhPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "inumber" => lambda {|n| @inumber = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the inumber property value. The inumber property - ## @return a json - ## - def inumber - return @inumber - end - ## - ## Sets the inumber property value. The inumber property - ## @param value Value to set for the inumber property. - ## @return a void - ## - def inumber=(value) - @inumber = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("inumber", @inumber) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/im_sinh/im_sinh_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_sinh/im_sinh_request_builder.rb index 72c08893d2..1c7a41ce94 100644 --- a/lib/drives/item/items/item/workbook/functions/im_sinh/im_sinh_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_sinh/im_sinh_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_sinh_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImSinhRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_sqrt/im_sqrt_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_sqrt/im_sqrt_post_request_body.rb index 4dec5e855b..2bdad8b97a 100644 --- a/lib/drives/item/items/item/workbook/functions/im_sqrt/im_sqrt_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_sqrt/im_sqrt_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ImSqrtPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The inumber property - @inumber - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imSqrtPostRequestBody and sets the default values. + ## Instantiates a new ImSqrtPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "inumber" => lambda {|n| @inumber = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the inumber property value. The inumber property - ## @return a json - ## - def inumber - return @inumber - end - ## - ## Sets the inumber property value. The inumber property - ## @param value Value to set for the inumber property. - ## @return a void - ## - def inumber=(value) - @inumber = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("inumber", @inumber) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/im_sqrt/im_sqrt_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_sqrt/im_sqrt_request_builder.rb index d4a35c1141..73ec3f8f67 100644 --- a/lib/drives/item/items/item/workbook/functions/im_sqrt/im_sqrt_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_sqrt/im_sqrt_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_sqrt_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImSqrtRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_sub/im_sub_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_sub/im_sub_post_request_body.rb index 13b971cef4..37e7dcc1c5 100644 --- a/lib/drives/item/items/item/workbook/functions/im_sub/im_sub_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_sub/im_sub_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class ImSubPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The inumber1 property - @inumber1 - ## - # The inumber2 property - @inumber2 - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imSubPostRequestBody and sets the default values. + ## Instantiates a new ImSubPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "inumber1" => lambda {|n| @inumber1 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "inumber2" => lambda {|n| @inumber2 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the inumber1 property value. The inumber1 property - ## @return a json - ## - def inumber1 - return @inumber1 - end - ## - ## Sets the inumber1 property value. The inumber1 property - ## @param value Value to set for the inumber1 property. - ## @return a void - ## - def inumber1=(value) - @inumber1 = value - end - ## - ## Gets the inumber2 property value. The inumber2 property - ## @return a json - ## - def inumber2 - return @inumber2 - end - ## - ## Sets the inumber2 property value. The inumber2 property - ## @param value Value to set for the inumber2 property. - ## @return a void - ## - def inumber2=(value) - @inumber2 = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("inumber1", @inumber1) - writer.write_object_value("inumber2", @inumber2) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/im_sub/im_sub_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_sub/im_sub_request_builder.rb index 69e06a8bf5..4ba7aa187a 100644 --- a/lib/drives/item/items/item/workbook/functions/im_sub/im_sub_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_sub/im_sub_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_sub_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImSubRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_sum/im_sum_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_sum/im_sum_post_request_body.rb index e226df51be..2e0c6e0042 100644 --- a/lib/drives/item/items/item/workbook/functions/im_sum/im_sum_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_sum/im_sum_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ImSumPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imSumPostRequestBody and sets the default values. + ## Instantiates a new ImSumPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_sum/im_sum_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_sum/im_sum_request_builder.rb index f2745d86c7..eb5eb5ea94 100644 --- a/lib/drives/item/items/item/workbook/functions/im_sum/im_sum_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_sum/im_sum_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_sum_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImSumRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/im_tan/im_tan_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/im_tan/im_tan_post_request_body.rb index 8b3d311c31..6e1559ff52 100644 --- a/lib/drives/item/items/item/workbook/functions/im_tan/im_tan_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/im_tan/im_tan_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ImTanPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The inumber property - @inumber - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imTanPostRequestBody and sets the default values. + ## Instantiates a new ImTanPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "inumber" => lambda {|n| @inumber = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the inumber property value. The inumber property - ## @return a json - ## - def inumber - return @inumber - end - ## - ## Sets the inumber property value. The inumber property - ## @param value Value to set for the inumber property. - ## @return a void - ## - def inumber=(value) - @inumber = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("inumber", @inumber) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/im_tan/im_tan_request_builder.rb b/lib/drives/item/items/item/workbook/functions/im_tan/im_tan_request_builder.rb index acceaeb955..b4e189085d 100644 --- a/lib/drives/item/items/item/workbook/functions/im_tan/im_tan_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/im_tan/im_tan_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a im_tan_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImTanRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/imaginary/imaginary_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/imaginary/imaginary_post_request_body.rb index adb2b926f4..6509283108 100644 --- a/lib/drives/item/items/item/workbook/functions/imaginary/imaginary_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/imaginary/imaginary_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ImaginaryPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The inumber property - @inumber - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new imaginaryPostRequestBody and sets the default values. + ## Instantiates a new ImaginaryPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "inumber" => lambda {|n| @inumber = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the inumber property value. The inumber property - ## @return a json - ## - def inumber - return @inumber - end - ## - ## Sets the inumber property value. The inumber property - ## @param value Value to set for the inumber property. - ## @return a void - ## - def inumber=(value) - @inumber = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("inumber", @inumber) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/imaginary/imaginary_request_builder.rb b/lib/drives/item/items/item/workbook/functions/imaginary/imaginary_request_builder.rb index 8f84a31def..5230e53b4e 100644 --- a/lib/drives/item/items/item/workbook/functions/imaginary/imaginary_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/imaginary/imaginary_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a imaginary_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImaginaryRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/int/int_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/int/int_post_request_body.rb index 45205b324b..48df6a3f1d 100644 --- a/lib/drives/item/items/item/workbook/functions/int/int_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/int/int_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class IntPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new intPostRequestBody and sets the default values. + ## Instantiates a new IntPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/int/int_request_builder.rb b/lib/drives/item/items/item/workbook/functions/int/int_request_builder.rb index 7019702212..cb09061516 100644 --- a/lib/drives/item/items/item/workbook/functions/int/int_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/int/int_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a int_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/int_rate/int_rate_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/int_rate/int_rate_post_request_body.rb index c1ae070bec..0cd0c60555 100644 --- a/lib/drives/item/items/item/workbook/functions/int_rate/int_rate_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/int_rate/int_rate_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,52 +22,22 @@ class IntRatePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The investment property - @investment - ## - # The maturity property - @maturity - ## - # The redemption property - @redemption - ## - # The settlement property - @settlement - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new intRatePostRequestBody and sets the default values. + ## Instantiates a new IntRatePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -89,87 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "investment" => lambda {|n| @investment = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "redemption" => lambda {|n| @redemption = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the investment property value. The investment property - ## @return a json - ## - def investment - return @investment - end - ## - ## Sets the investment property value. The investment property - ## @param value Value to set for the investment property. - ## @return a void - ## - def investment=(value) - @investment = value - end - ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## - ## Gets the redemption property value. The redemption property - ## @return a json - ## - def redemption - return @redemption - end - ## - ## Sets the redemption property value. The redemption property - ## @param value Value to set for the redemption property. - ## @return a void - ## - def redemption=(value) - @redemption = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("investment", @investment) - writer.write_object_value("maturity", @maturity) - writer.write_object_value("redemption", @redemption) - writer.write_object_value("settlement", @settlement) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/int_rate/int_rate_request_builder.rb b/lib/drives/item/items/item/workbook/functions/int_rate/int_rate_request_builder.rb index d3b83fc1e1..e48ba20fff 100644 --- a/lib/drives/item/items/item/workbook/functions/int_rate/int_rate_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/int_rate/int_rate_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a int_rate_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntRateRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/ipmt/ipmt_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/ipmt/ipmt_post_request_body.rb index dfe7f86980..e6f5af2abd 100644 --- a/lib/drives/item/items/item/workbook/functions/ipmt/ipmt_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/ipmt/ipmt_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,40 +22,22 @@ class IpmtPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The fv property - @fv - ## - # The nper property - @nper - ## - # The per property - @per - ## - # The pv property - @pv - ## - # The rate property - @rate - ## - # The type property - @type - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new ipmtPostRequestBody and sets the default values. + ## Instantiates a new IpmtPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -72,124 +53,22 @@ def self.create_from_discriminator_value(parse_node) return IpmtPostRequestBody.new end ## - ## Gets the fv property value. The fv property - ## @return a json - ## - def fv - return @fv - end - ## - ## Sets the fv property value. The fv property - ## @param value Value to set for the fv property. - ## @return a void - ## - def fv=(value) - @fv = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "fv" => lambda {|n| @fv = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "nper" => lambda {|n| @nper = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "per" => lambda {|n| @per = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "pv" => lambda {|n| @pv = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "type" => lambda {|n| @type = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the nper property value. The nper property - ## @return a json - ## - def nper - return @nper - end - ## - ## Sets the nper property value. The nper property - ## @param value Value to set for the nper property. - ## @return a void - ## - def nper=(value) - @nper = value - end - ## - ## Gets the per property value. The per property - ## @return a json - ## - def per - return @per - end - ## - ## Sets the per property value. The per property - ## @param value Value to set for the per property. - ## @return a void - ## - def per=(value) - @per = value - end - ## - ## Gets the pv property value. The pv property - ## @return a json - ## - def pv - return @pv - end - ## - ## Sets the pv property value. The pv property - ## @param value Value to set for the pv property. - ## @return a void - ## - def pv=(value) - @pv = value - end - ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("fv", @fv) - writer.write_object_value("nper", @nper) - writer.write_object_value("per", @per) - writer.write_object_value("pv", @pv) - writer.write_object_value("rate", @rate) - writer.write_object_value("type", @type) writer.write_additional_data(@additional_data) end - ## - ## Gets the type property value. The type property - ## @return a json - ## - def type - return @type - end - ## - ## Sets the type property value. The type property - ## @param value Value to set for the type property. - ## @return a void - ## - def type=(value) - @type = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/ipmt/ipmt_request_builder.rb b/lib/drives/item/items/item/workbook/functions/ipmt/ipmt_request_builder.rb index dcb669d944..c538ffd6a3 100644 --- a/lib/drives/item/items/item/workbook/functions/ipmt/ipmt_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/ipmt/ipmt_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ipmt_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IpmtRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/irr/irr_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/irr/irr_post_request_body.rb index 69fd42db0b..eb14424757 100644 --- a/lib/drives/item/items/item/workbook/functions/irr/irr_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/irr/irr_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class IrrPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The guess property - @guess - ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new irrPostRequestBody and sets the default values. + ## Instantiates a new IrrPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,51 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "guess" => lambda {|n| @guess = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the guess property value. The guess property - ## @return a json - ## - def guess - return @guess - end - ## - ## Sets the guess property value. The guess property - ## @param value Value to set for the guess property. - ## @return a void - ## - def guess=(value) - @guess = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("guess", @guess) - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/irr/irr_request_builder.rb b/lib/drives/item/items/item/workbook/functions/irr/irr_request_builder.rb index 1372935f74..cf29a29610 100644 --- a/lib/drives/item/items/item/workbook/functions/irr/irr_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/irr/irr_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a irr_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IrrRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/is_err/is_err_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/is_err/is_err_post_request_body.rb index 0be26fd597..3a8c6fa062 100644 --- a/lib/drives/item/items/item/workbook/functions/is_err/is_err_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/is_err/is_err_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class IsErrPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new isErrPostRequestBody and sets the default values. + ## Instantiates a new IsErrPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "value" => lambda {|n| @value = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("value", @value) writer.write_additional_data(@additional_data) end - ## - ## Gets the value property value. The value property - ## @return a json - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/is_err/is_err_request_builder.rb b/lib/drives/item/items/item/workbook/functions/is_err/is_err_request_builder.rb index 98ee2a7790..609325b608 100644 --- a/lib/drives/item/items/item/workbook/functions/is_err/is_err_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/is_err/is_err_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a is_err_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IsErrRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/is_error/is_error_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/is_error/is_error_post_request_body.rb index 502db00779..a48ed494ff 100644 --- a/lib/drives/item/items/item/workbook/functions/is_error/is_error_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/is_error/is_error_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class IsErrorPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new isErrorPostRequestBody and sets the default values. + ## Instantiates a new IsErrorPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "value" => lambda {|n| @value = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("value", @value) writer.write_additional_data(@additional_data) end - ## - ## Gets the value property value. The value property - ## @return a json - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/is_error/is_error_request_builder.rb b/lib/drives/item/items/item/workbook/functions/is_error/is_error_request_builder.rb index 035227aa18..7dd8cf713c 100644 --- a/lib/drives/item/items/item/workbook/functions/is_error/is_error_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/is_error/is_error_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a is_error_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IsErrorRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/is_even/is_even_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/is_even/is_even_post_request_body.rb index 0e82546ddb..009e86baa2 100644 --- a/lib/drives/item/items/item/workbook/functions/is_even/is_even_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/is_even/is_even_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class IsEvenPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new isEvenPostRequestBody and sets the default values. + ## Instantiates a new IsEvenPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/is_even/is_even_request_builder.rb b/lib/drives/item/items/item/workbook/functions/is_even/is_even_request_builder.rb index 439e9df6ab..58f1ce2a54 100644 --- a/lib/drives/item/items/item/workbook/functions/is_even/is_even_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/is_even/is_even_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a is_even_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IsEvenRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/is_formula/is_formula_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/is_formula/is_formula_post_request_body.rb index 4c10777b29..db363f0022 100644 --- a/lib/drives/item/items/item/workbook/functions/is_formula/is_formula_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/is_formula/is_formula_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class IsFormulaPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The reference property - @reference - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new isFormulaPostRequestBody and sets the default values. + ## Instantiates a new IsFormulaPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "reference" => lambda {|n| @reference = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the reference property value. The reference property - ## @return a json - ## - def reference - return @reference - end - ## - ## Sets the reference property value. The reference property - ## @param value Value to set for the reference property. - ## @return a void - ## - def reference=(value) - @reference = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("reference", @reference) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/is_formula/is_formula_request_builder.rb b/lib/drives/item/items/item/workbook/functions/is_formula/is_formula_request_builder.rb index f5a4b37eab..c0b8720254 100644 --- a/lib/drives/item/items/item/workbook/functions/is_formula/is_formula_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/is_formula/is_formula_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a is_formula_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IsFormulaRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/is_logical/is_logical_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/is_logical/is_logical_post_request_body.rb index fb35b47e0e..7168750410 100644 --- a/lib/drives/item/items/item/workbook/functions/is_logical/is_logical_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/is_logical/is_logical_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class IsLogicalPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new isLogicalPostRequestBody and sets the default values. + ## Instantiates a new IsLogicalPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "value" => lambda {|n| @value = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("value", @value) writer.write_additional_data(@additional_data) end - ## - ## Gets the value property value. The value property - ## @return a json - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/is_logical/is_logical_request_builder.rb b/lib/drives/item/items/item/workbook/functions/is_logical/is_logical_request_builder.rb index f215aaf1f9..6ff1a9f923 100644 --- a/lib/drives/item/items/item/workbook/functions/is_logical/is_logical_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/is_logical/is_logical_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a is_logical_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IsLogicalRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/is_n_a/is_n_a_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/is_n_a/is_n_a_post_request_body.rb index e6a6ffb502..963ee91a01 100644 --- a/lib/drives/item/items/item/workbook/functions/is_n_a/is_n_a_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/is_n_a/is_n_a_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class IsNAPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new isNAPostRequestBody and sets the default values. + ## Instantiates a new IsNAPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "value" => lambda {|n| @value = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("value", @value) writer.write_additional_data(@additional_data) end - ## - ## Gets the value property value. The value property - ## @return a json - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/is_n_a/is_n_a_request_builder.rb b/lib/drives/item/items/item/workbook/functions/is_n_a/is_n_a_request_builder.rb index f66fe05e4c..83e10f63df 100644 --- a/lib/drives/item/items/item/workbook/functions/is_n_a/is_n_a_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/is_n_a/is_n_a_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a is_n_a_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IsNARequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/is_non_text/is_non_text_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/is_non_text/is_non_text_post_request_body.rb index 2e6de2caae..c7d4553a71 100644 --- a/lib/drives/item/items/item/workbook/functions/is_non_text/is_non_text_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/is_non_text/is_non_text_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class IsNonTextPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new isNonTextPostRequestBody and sets the default values. + ## Instantiates a new IsNonTextPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "value" => lambda {|n| @value = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("value", @value) writer.write_additional_data(@additional_data) end - ## - ## Gets the value property value. The value property - ## @return a json - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/is_non_text/is_non_text_request_builder.rb b/lib/drives/item/items/item/workbook/functions/is_non_text/is_non_text_request_builder.rb index 046757fe5e..c61a2fdc22 100644 --- a/lib/drives/item/items/item/workbook/functions/is_non_text/is_non_text_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/is_non_text/is_non_text_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a is_non_text_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IsNonTextRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/is_number/is_number_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/is_number/is_number_post_request_body.rb index e9c730b232..bd7da95324 100644 --- a/lib/drives/item/items/item/workbook/functions/is_number/is_number_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/is_number/is_number_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class IsNumberPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new isNumberPostRequestBody and sets the default values. + ## Instantiates a new IsNumberPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "value" => lambda {|n| @value = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("value", @value) writer.write_additional_data(@additional_data) end - ## - ## Gets the value property value. The value property - ## @return a json - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/is_number/is_number_request_builder.rb b/lib/drives/item/items/item/workbook/functions/is_number/is_number_request_builder.rb index 1fb3dc8c4f..f69b574719 100644 --- a/lib/drives/item/items/item/workbook/functions/is_number/is_number_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/is_number/is_number_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a is_number_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IsNumberRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/is_odd/is_odd_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/is_odd/is_odd_post_request_body.rb index c8a7777d0b..d79189a53e 100644 --- a/lib/drives/item/items/item/workbook/functions/is_odd/is_odd_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/is_odd/is_odd_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class IsOddPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new isOddPostRequestBody and sets the default values. + ## Instantiates a new IsOddPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/is_odd/is_odd_request_builder.rb b/lib/drives/item/items/item/workbook/functions/is_odd/is_odd_request_builder.rb index 3eb42cdf80..76bc9b7e2f 100644 --- a/lib/drives/item/items/item/workbook/functions/is_odd/is_odd_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/is_odd/is_odd_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a is_odd_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IsOddRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/is_text/is_text_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/is_text/is_text_post_request_body.rb index 41062c0ad3..fa3515c4f2 100644 --- a/lib/drives/item/items/item/workbook/functions/is_text/is_text_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/is_text/is_text_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class IsTextPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new isTextPostRequestBody and sets the default values. + ## Instantiates a new IsTextPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "value" => lambda {|n| @value = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("value", @value) writer.write_additional_data(@additional_data) end - ## - ## Gets the value property value. The value property - ## @return a json - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/is_text/is_text_request_builder.rb b/lib/drives/item/items/item/workbook/functions/is_text/is_text_request_builder.rb index f00db0ad8e..b519af4402 100644 --- a/lib/drives/item/items/item/workbook/functions/is_text/is_text_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/is_text/is_text_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a is_text_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IsTextRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/iso_ceiling/iso_ceiling_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/iso_ceiling/iso_ceiling_post_request_body.rb index 902ac4e4be..5b04b10943 100644 --- a/lib/drives/item/items/item/workbook/functions/iso_ceiling/iso_ceiling_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/iso_ceiling/iso_ceiling_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,21 +22,15 @@ class IsoCeilingPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The significance property - @significance - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -65,51 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "significance" => lambda {|n| @significance = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("significance", @significance) writer.write_additional_data(@additional_data) end - ## - ## Gets the significance property value. The significance property - ## @return a json - ## - def significance - return @significance - end - ## - ## Sets the significance property value. The significance property - ## @param value Value to set for the significance property. - ## @return a void - ## - def significance=(value) - @significance = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/iso_ceiling/iso_ceiling_request_builder.rb b/lib/drives/item/items/item/workbook/functions/iso_ceiling/iso_ceiling_request_builder.rb index 662ea884bb..1cf8984335 100644 --- a/lib/drives/item/items/item/workbook/functions/iso_ceiling/iso_ceiling_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/iso_ceiling/iso_ceiling_request_builder.rb @@ -23,7 +23,7 @@ module Iso_Ceiling class IsoCeilingRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Iso_CeilingRequestBuilder and sets the default values. + ## Instantiates a new IsoCeilingRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a iso_ceiling_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IsoCeilingRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/iso_week_num/iso_week_num_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/iso_week_num/iso_week_num_post_request_body.rb index 6e553d0833..e8aa53aa83 100644 --- a/lib/drives/item/items/item/workbook/functions/iso_week_num/iso_week_num_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/iso_week_num/iso_week_num_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class IsoWeekNumPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The date property - @date - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new isoWeekNumPostRequestBody and sets the default values. + ## Instantiates a new IsoWeekNumPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -57,27 +53,11 @@ def self.create_from_discriminator_value(parse_node) return IsoWeekNumPostRequestBody.new end ## - ## Gets the date property value. The date property - ## @return a json - ## - def date - return @date - end - ## - ## Sets the date property value. The date property - ## @param value Value to set for the date property. - ## @return a void - ## - def date=(value) - @date = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "date" => lambda {|n| @date = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -87,7 +67,6 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("date", @date) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/iso_week_num/iso_week_num_request_builder.rb b/lib/drives/item/items/item/workbook/functions/iso_week_num/iso_week_num_request_builder.rb index 7b37fb606b..6e8f6e0821 100644 --- a/lib/drives/item/items/item/workbook/functions/iso_week_num/iso_week_num_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/iso_week_num/iso_week_num_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a iso_week_num_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IsoWeekNumRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/ispmt/ispmt_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/ispmt/ispmt_post_request_body.rb index 27668c2c5f..8abbe5c24a 100644 --- a/lib/drives/item/items/item/workbook/functions/ispmt/ispmt_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/ispmt/ispmt_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,34 +22,22 @@ class IspmtPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The nper property - @nper - ## - # The per property - @per - ## - # The pv property - @pv - ## - # The rate property - @rate - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new ispmtPostRequestBody and sets the default values. + ## Instantiates a new IspmtPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -71,83 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "nper" => lambda {|n| @nper = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "per" => lambda {|n| @per = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "pv" => lambda {|n| @pv = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the nper property value. The nper property - ## @return a json - ## - def nper - return @nper - end - ## - ## Sets the nper property value. The nper property - ## @param value Value to set for the nper property. - ## @return a void - ## - def nper=(value) - @nper = value - end - ## - ## Gets the per property value. The per property - ## @return a json - ## - def per - return @per - end - ## - ## Sets the per property value. The per property - ## @param value Value to set for the per property. - ## @return a void - ## - def per=(value) - @per = value - end - ## - ## Gets the pv property value. The pv property - ## @return a json - ## - def pv - return @pv - end - ## - ## Sets the pv property value. The pv property - ## @param value Value to set for the pv property. - ## @return a void - ## - def pv=(value) - @pv = value - end - ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("nper", @nper) - writer.write_object_value("per", @per) - writer.write_object_value("pv", @pv) - writer.write_object_value("rate", @rate) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/ispmt/ispmt_request_builder.rb b/lib/drives/item/items/item/workbook/functions/ispmt/ispmt_request_builder.rb index 5630374d14..1485b5f9d7 100644 --- a/lib/drives/item/items/item/workbook/functions/ispmt/ispmt_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/ispmt/ispmt_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ispmt_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IspmtRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/isref/isref_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/isref/isref_post_request_body.rb index 678ca8f3c0..6b001bcd07 100644 --- a/lib/drives/item/items/item/workbook/functions/isref/isref_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/isref/isref_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class IsrefPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new isrefPostRequestBody and sets the default values. + ## Instantiates a new IsrefPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "value" => lambda {|n| @value = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("value", @value) writer.write_additional_data(@additional_data) end - ## - ## Gets the value property value. The value property - ## @return a json - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/isref/isref_request_builder.rb b/lib/drives/item/items/item/workbook/functions/isref/isref_request_builder.rb index 3d330f7207..cb28d6c992 100644 --- a/lib/drives/item/items/item/workbook/functions/isref/isref_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/isref/isref_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a isref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IsrefRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/kurt/kurt_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/kurt/kurt_post_request_body.rb index dc12b96975..c6cc9b2455 100644 --- a/lib/drives/item/items/item/workbook/functions/kurt/kurt_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/kurt/kurt_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class KurtPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new kurtPostRequestBody and sets the default values. + ## Instantiates a new KurtPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/kurt/kurt_request_builder.rb b/lib/drives/item/items/item/workbook/functions/kurt/kurt_request_builder.rb index c1b7e9a647..4954f1e5eb 100644 --- a/lib/drives/item/items/item/workbook/functions/kurt/kurt_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/kurt/kurt_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a kurt_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return KurtRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/large/large_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/large/large_post_request_body.rb index daf41d3844..7106b8608b 100644 --- a/lib/drives/item/items/item/workbook/functions/large/large_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/large/large_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,43 +22,22 @@ class LargePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The array property - @array - ## - # The k property - @k - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the array property value. The array property - ## @return a json - ## - def array - return @array - end - ## - ## Sets the array property value. The array property - ## @param value Value to set for the array property. - ## @return a void - ## - def array=(value) - @array = value - end - ## - ## Instantiates a new largePostRequestBody and sets the default values. + ## Instantiates a new LargePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -80,34 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "array" => lambda {|n| @array = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "k" => lambda {|n| @k = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the k property value. The k property - ## @return a json - ## - def k - return @k - end - ## - ## Sets the k property value. The k property - ## @param value Value to set for the k property. - ## @return a void - ## - def k=(value) - @k = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("array", @array) - writer.write_object_value("k", @k) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/large/large_request_builder.rb b/lib/drives/item/items/item/workbook/functions/large/large_request_builder.rb index 21017ea813..40615ac7ad 100644 --- a/lib/drives/item/items/item/workbook/functions/large/large_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/large/large_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a large_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LargeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/lcm/lcm_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/lcm/lcm_post_request_body.rb index 1609665914..4142673ee5 100644 --- a/lib/drives/item/items/item/workbook/functions/lcm/lcm_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/lcm/lcm_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class LcmPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new lcmPostRequestBody and sets the default values. + ## Instantiates a new LcmPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/lcm/lcm_request_builder.rb b/lib/drives/item/items/item/workbook/functions/lcm/lcm_request_builder.rb index 9341cc262c..96e4615db9 100644 --- a/lib/drives/item/items/item/workbook/functions/lcm/lcm_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/lcm/lcm_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a lcm_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LcmRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/left/left_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/left/left_post_request_body.rb index f96526bb0b..5118245167 100644 --- a/lib/drives/item/items/item/workbook/functions/left/left_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/left/left_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class LeftPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The numChars property - @num_chars - ## - # The text property - @text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new leftPostRequestBody and sets the default values. + ## Instantiates a new LeftPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,51 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "numChars" => lambda {|n| @num_chars = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "text" => lambda {|n| @text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the numChars property value. The numChars property - ## @return a json - ## - def num_chars - return @num_chars - end - ## - ## Sets the numChars property value. The numChars property - ## @param value Value to set for the numChars property. - ## @return a void - ## - def num_chars=(value) - @num_chars = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("numChars", @num_chars) - writer.write_object_value("text", @text) writer.write_additional_data(@additional_data) end - ## - ## Gets the text property value. The text property - ## @return a json - ## - def text - return @text - end - ## - ## Sets the text property value. The text property - ## @param value Value to set for the text property. - ## @return a void - ## - def text=(value) - @text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/left/left_request_builder.rb b/lib/drives/item/items/item/workbook/functions/left/left_request_builder.rb index 96edeb51c2..9f41009a3d 100644 --- a/lib/drives/item/items/item/workbook/functions/left/left_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/left/left_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a left_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LeftRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/leftb/leftb_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/leftb/leftb_post_request_body.rb index 6807301a77..9add06fd54 100644 --- a/lib/drives/item/items/item/workbook/functions/leftb/leftb_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/leftb/leftb_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class LeftbPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The numBytes property - @num_bytes - ## - # The text property - @text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new leftbPostRequestBody and sets the default values. + ## Instantiates a new LeftbPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,51 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "numBytes" => lambda {|n| @num_bytes = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "text" => lambda {|n| @text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the numBytes property value. The numBytes property - ## @return a json - ## - def num_bytes - return @num_bytes - end - ## - ## Sets the numBytes property value. The numBytes property - ## @param value Value to set for the numBytes property. - ## @return a void - ## - def num_bytes=(value) - @num_bytes = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("numBytes", @num_bytes) - writer.write_object_value("text", @text) writer.write_additional_data(@additional_data) end - ## - ## Gets the text property value. The text property - ## @return a json - ## - def text - return @text - end - ## - ## Sets the text property value. The text property - ## @param value Value to set for the text property. - ## @return a void - ## - def text=(value) - @text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/leftb/leftb_request_builder.rb b/lib/drives/item/items/item/workbook/functions/leftb/leftb_request_builder.rb index ced8c057d7..6d94ce74fe 100644 --- a/lib/drives/item/items/item/workbook/functions/leftb/leftb_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/leftb/leftb_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a leftb_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LeftbRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/len/len_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/len/len_post_request_body.rb index 97206d3b10..305024ad9a 100644 --- a/lib/drives/item/items/item/workbook/functions/len/len_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/len/len_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class LenPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The text property - @text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new lenPostRequestBody and sets the default values. + ## Instantiates a new LenPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "text" => lambda {|n| @text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("text", @text) writer.write_additional_data(@additional_data) end - ## - ## Gets the text property value. The text property - ## @return a json - ## - def text - return @text - end - ## - ## Sets the text property value. The text property - ## @param value Value to set for the text property. - ## @return a void - ## - def text=(value) - @text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/len/len_request_builder.rb b/lib/drives/item/items/item/workbook/functions/len/len_request_builder.rb index a50c5316a8..8ee7fb5121 100644 --- a/lib/drives/item/items/item/workbook/functions/len/len_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/len/len_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a len_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LenRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/lenb/lenb_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/lenb/lenb_post_request_body.rb index 235d5d89d0..f158dacb79 100644 --- a/lib/drives/item/items/item/workbook/functions/lenb/lenb_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/lenb/lenb_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class LenbPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The text property - @text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new lenbPostRequestBody and sets the default values. + ## Instantiates a new LenbPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "text" => lambda {|n| @text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("text", @text) writer.write_additional_data(@additional_data) end - ## - ## Gets the text property value. The text property - ## @return a json - ## - def text - return @text - end - ## - ## Sets the text property value. The text property - ## @param value Value to set for the text property. - ## @return a void - ## - def text=(value) - @text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/lenb/lenb_request_builder.rb b/lib/drives/item/items/item/workbook/functions/lenb/lenb_request_builder.rb index 04c575f135..38017e2817 100644 --- a/lib/drives/item/items/item/workbook/functions/lenb/lenb_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/lenb/lenb_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a lenb_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LenbRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/ln/ln_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/ln/ln_post_request_body.rb index a7b54c1bd1..7f4da3bc0f 100644 --- a/lib/drives/item/items/item/workbook/functions/ln/ln_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/ln/ln_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class LnPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new lnPostRequestBody and sets the default values. + ## Instantiates a new LnPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/ln/ln_request_builder.rb b/lib/drives/item/items/item/workbook/functions/ln/ln_request_builder.rb index e92c70801b..3695467d68 100644 --- a/lib/drives/item/items/item/workbook/functions/ln/ln_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/ln/ln_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ln_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LnRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/log/log_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/log/log_post_request_body.rb index 61ae69b310..fdeebaf37d 100644 --- a/lib/drives/item/items/item/workbook/functions/log/log_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/log/log_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,43 +22,22 @@ class LogPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The base property - @base - ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the base property value. The base property - ## @return a json - ## - def base - return @base - end - ## - ## Sets the base property value. The base property - ## @param value Value to set for the base property. - ## @return a void - ## - def base=(value) - @base = value - end - ## - ## Instantiates a new logPostRequestBody and sets the default values. + ## Instantiates a new LogPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -80,34 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "base" => lambda {|n| @base = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("base", @base) - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/log/log_request_builder.rb b/lib/drives/item/items/item/workbook/functions/log/log_request_builder.rb index e02d852f63..0cbb24f866 100644 --- a/lib/drives/item/items/item/workbook/functions/log/log_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/log/log_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a log_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LogRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/log10/log10_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/log10/log10_post_request_body.rb index f395f8b283..83fcd5f61e 100644 --- a/lib/drives/item/items/item/workbook/functions/log10/log10_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/log10/log10_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class Log10PostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new log10PostRequestBody and sets the default values. + ## Instantiates a new Log10PostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/log10/log10_request_builder.rb b/lib/drives/item/items/item/workbook/functions/log10/log10_request_builder.rb index 9896ad3ef3..3ba26372b6 100644 --- a/lib/drives/item/items/item/workbook/functions/log10/log10_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/log10/log10_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a log10_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return Log10RequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/log_norm_dist/log_norm_dist_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/log_norm_dist/log_norm_dist_post_request_body.rb index bac4c6a4f9..c81e74a728 100644 --- a/lib/drives/item/items/item/workbook/functions/log_norm_dist/log_norm_dist_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/log_norm_dist/log_norm_dist_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,27 +22,15 @@ class LogNormDistPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The cumulative property - @cumulative - ## - # The mean property - @mean - ## - # The standardDev property - @standard_dev - ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -66,90 +53,22 @@ def self.create_from_discriminator_value(parse_node) return LogNormDistPostRequestBody.new end ## - ## Gets the cumulative property value. The cumulative property - ## @return a json - ## - def cumulative - return @cumulative - end - ## - ## Sets the cumulative property value. The cumulative property - ## @param value Value to set for the cumulative property. - ## @return a void - ## - def cumulative=(value) - @cumulative = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "cumulative" => lambda {|n| @cumulative = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "mean" => lambda {|n| @mean = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "standardDev" => lambda {|n| @standard_dev = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the mean property value. The mean property - ## @return a json - ## - def mean - return @mean - end - ## - ## Sets the mean property value. The mean property - ## @param value Value to set for the mean property. - ## @return a void - ## - def mean=(value) - @mean = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("cumulative", @cumulative) - writer.write_object_value("mean", @mean) - writer.write_object_value("standardDev", @standard_dev) - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the standardDev property value. The standardDev property - ## @return a json - ## - def standard_dev - return @standard_dev - end - ## - ## Sets the standardDev property value. The standardDev property - ## @param value Value to set for the standardDev property. - ## @return a void - ## - def standard_dev=(value) - @standard_dev = value - end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/log_norm_dist/log_norm_dist_request_builder.rb b/lib/drives/item/items/item/workbook/functions/log_norm_dist/log_norm_dist_request_builder.rb index 5ffbd43237..ab2f6d1044 100644 --- a/lib/drives/item/items/item/workbook/functions/log_norm_dist/log_norm_dist_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/log_norm_dist/log_norm_dist_request_builder.rb @@ -23,7 +23,7 @@ module LogNorm_Dist class LogNormDistRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new LogNorm_DistRequestBuilder and sets the default values. + ## Instantiates a new LogNormDistRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a log_norm_dist_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LogNormDistRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/log_norm_inv/log_norm_inv_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/log_norm_inv/log_norm_inv_post_request_body.rb index 25d9521ec1..27dce591fb 100644 --- a/lib/drives/item/items/item/workbook/functions/log_norm_inv/log_norm_inv_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/log_norm_inv/log_norm_inv_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,24 +22,15 @@ class LogNormInvPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The mean property - @mean - ## - # The probability property - @probability - ## - # The standardDev property - @standard_dev - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -68,68 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "mean" => lambda {|n| @mean = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "probability" => lambda {|n| @probability = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "standardDev" => lambda {|n| @standard_dev = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the mean property value. The mean property - ## @return a json - ## - def mean - return @mean - end - ## - ## Sets the mean property value. The mean property - ## @param value Value to set for the mean property. - ## @return a void - ## - def mean=(value) - @mean = value - end - ## - ## Gets the probability property value. The probability property - ## @return a json - ## - def probability - return @probability - end - ## - ## Sets the probability property value. The probability property - ## @param value Value to set for the probability property. - ## @return a void - ## - def probability=(value) - @probability = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("mean", @mean) - writer.write_object_value("probability", @probability) - writer.write_object_value("standardDev", @standard_dev) writer.write_additional_data(@additional_data) end - ## - ## Gets the standardDev property value. The standardDev property - ## @return a json - ## - def standard_dev - return @standard_dev - end - ## - ## Sets the standardDev property value. The standardDev property - ## @param value Value to set for the standardDev property. - ## @return a void - ## - def standard_dev=(value) - @standard_dev = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/log_norm_inv/log_norm_inv_request_builder.rb b/lib/drives/item/items/item/workbook/functions/log_norm_inv/log_norm_inv_request_builder.rb index 2190605952..5b471a946f 100644 --- a/lib/drives/item/items/item/workbook/functions/log_norm_inv/log_norm_inv_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/log_norm_inv/log_norm_inv_request_builder.rb @@ -23,7 +23,7 @@ module LogNorm_Inv class LogNormInvRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new LogNorm_InvRequestBuilder and sets the default values. + ## Instantiates a new LogNormInvRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a log_norm_inv_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LogNormInvRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/lookup/lookup_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/lookup/lookup_post_request_body.rb index 9bf13b5ceb..c74d3c84ad 100644 --- a/lib/drives/item/items/item/workbook/functions/lookup/lookup_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/lookup/lookup_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class LookupPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The lookupValue property - @lookup_value - ## - # The lookupVector property - @lookup_vector - ## - # The resultVector property - @result_vector - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new lookupPostRequestBody and sets the default values. + ## Instantiates a new LookupPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -68,66 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "lookupValue" => lambda {|n| @lookup_value = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "lookupVector" => lambda {|n| @lookup_vector = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "resultVector" => lambda {|n| @result_vector = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the lookupValue property value. The lookupValue property - ## @return a json - ## - def lookup_value - return @lookup_value - end - ## - ## Sets the lookupValue property value. The lookupValue property - ## @param value Value to set for the lookupValue property. - ## @return a void - ## - def lookup_value=(value) - @lookup_value = value - end - ## - ## Gets the lookupVector property value. The lookupVector property - ## @return a json - ## - def lookup_vector - return @lookup_vector - end - ## - ## Sets the lookupVector property value. The lookupVector property - ## @param value Value to set for the lookupVector property. - ## @return a void - ## - def lookup_vector=(value) - @lookup_vector = value - end - ## - ## Gets the resultVector property value. The resultVector property - ## @return a json - ## - def result_vector - return @result_vector - end - ## - ## Sets the resultVector property value. The resultVector property - ## @param value Value to set for the resultVector property. - ## @return a void - ## - def result_vector=(value) - @result_vector = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("lookupValue", @lookup_value) - writer.write_object_value("lookupVector", @lookup_vector) - writer.write_object_value("resultVector", @result_vector) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/lookup/lookup_request_builder.rb b/lib/drives/item/items/item/workbook/functions/lookup/lookup_request_builder.rb index d6ae450ec3..827c312965 100644 --- a/lib/drives/item/items/item/workbook/functions/lookup/lookup_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/lookup/lookup_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a lookup_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LookupRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/lower/lower_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/lower/lower_post_request_body.rb index 3e513cc97f..72be3e2080 100644 --- a/lib/drives/item/items/item/workbook/functions/lower/lower_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/lower/lower_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class LowerPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The text property - @text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new lowerPostRequestBody and sets the default values. + ## Instantiates a new LowerPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "text" => lambda {|n| @text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("text", @text) writer.write_additional_data(@additional_data) end - ## - ## Gets the text property value. The text property - ## @return a json - ## - def text - return @text - end - ## - ## Sets the text property value. The text property - ## @param value Value to set for the text property. - ## @return a void - ## - def text=(value) - @text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/lower/lower_request_builder.rb b/lib/drives/item/items/item/workbook/functions/lower/lower_request_builder.rb index 6d2e1d19b4..9e18208953 100644 --- a/lib/drives/item/items/item/workbook/functions/lower/lower_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/lower/lower_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a lower_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LowerRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/match/match_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/match/match_post_request_body.rb index 7e016199ee..de68d9fbf0 100644 --- a/lib/drives/item/items/item/workbook/functions/match/match_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/match/match_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class MatchPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The lookupArray property - @lookup_array - ## - # The lookupValue property - @lookup_value - ## - # The matchType property - @match_type - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new matchPostRequestBody and sets the default values. + ## Instantiates a new MatchPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -68,66 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "lookupArray" => lambda {|n| @lookup_array = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "lookupValue" => lambda {|n| @lookup_value = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "matchType" => lambda {|n| @match_type = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the lookupArray property value. The lookupArray property - ## @return a json - ## - def lookup_array - return @lookup_array - end - ## - ## Sets the lookupArray property value. The lookupArray property - ## @param value Value to set for the lookupArray property. - ## @return a void - ## - def lookup_array=(value) - @lookup_array = value - end - ## - ## Gets the lookupValue property value. The lookupValue property - ## @return a json - ## - def lookup_value - return @lookup_value - end - ## - ## Sets the lookupValue property value. The lookupValue property - ## @param value Value to set for the lookupValue property. - ## @return a void - ## - def lookup_value=(value) - @lookup_value = value - end - ## - ## Gets the matchType property value. The matchType property - ## @return a json - ## - def match_type - return @match_type - end - ## - ## Sets the matchType property value. The matchType property - ## @param value Value to set for the matchType property. - ## @return a void - ## - def match_type=(value) - @match_type = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("lookupArray", @lookup_array) - writer.write_object_value("lookupValue", @lookup_value) - writer.write_object_value("matchType", @match_type) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/match/match_request_builder.rb b/lib/drives/item/items/item/workbook/functions/match/match_request_builder.rb index 98c77f9e39..942042f088 100644 --- a/lib/drives/item/items/item/workbook/functions/match/match_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/match/match_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a match_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MatchRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/max/max_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/max/max_post_request_body.rb index 1fc63b97e0..0ad0e8bc6e 100644 --- a/lib/drives/item/items/item/workbook/functions/max/max_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/max/max_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class MaxPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new maxPostRequestBody and sets the default values. + ## Instantiates a new MaxPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/max/max_request_builder.rb b/lib/drives/item/items/item/workbook/functions/max/max_request_builder.rb index 5b769ea679..6fbcc2211d 100644 --- a/lib/drives/item/items/item/workbook/functions/max/max_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/max/max_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a max_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MaxRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/max_a/max_a_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/max_a/max_a_post_request_body.rb index 02fe5c54da..571df0dbb8 100644 --- a/lib/drives/item/items/item/workbook/functions/max_a/max_a_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/max_a/max_a_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class MaxAPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new maxAPostRequestBody and sets the default values. + ## Instantiates a new MaxAPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/max_a/max_a_request_builder.rb b/lib/drives/item/items/item/workbook/functions/max_a/max_a_request_builder.rb index 616f6d4706..e378c0c97d 100644 --- a/lib/drives/item/items/item/workbook/functions/max_a/max_a_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/max_a/max_a_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a max_a_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MaxARequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/mduration/mduration_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/mduration/mduration_post_request_body.rb index ce9b166594..33d9d1ca83 100644 --- a/lib/drives/item/items/item/workbook/functions/mduration/mduration_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/mduration/mduration_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,76 +22,28 @@ class MdurationPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The coupon property - @coupon - ## - # The frequency property - @frequency - ## - # The maturity property - @maturity - ## - # The settlement property - @settlement - ## - # The yld property - @yld - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new mdurationPostRequestBody and sets the default values. + ## Instantiates a new MdurationPostRequestBody and sets the default values. ## @return a void ## def initialize() @additional_data = Hash.new end ## - ## Gets the coupon property value. The coupon property - ## @return a json - ## - def coupon - return @coupon - end - ## - ## Sets the coupon property value. The coupon property - ## @param value Value to set for the coupon property. - ## @return a void - ## - def coupon=(value) - @coupon = value - end - ## ## Creates a new instance of the appropriate class based on discriminator value ## @param parse_node The parse node to use to read the discriminator value and create the object ## @return a mduration_post_request_body @@ -102,94 +53,22 @@ def self.create_from_discriminator_value(parse_node) return MdurationPostRequestBody.new end ## - ## Gets the frequency property value. The frequency property - ## @return a json - ## - def frequency - return @frequency - end - ## - ## Sets the frequency property value. The frequency property - ## @param value Value to set for the frequency property. - ## @return a void - ## - def frequency=(value) - @frequency = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "coupon" => lambda {|n| @coupon = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "frequency" => lambda {|n| @frequency = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "yld" => lambda {|n| @yld = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("coupon", @coupon) - writer.write_object_value("frequency", @frequency) - writer.write_object_value("maturity", @maturity) - writer.write_object_value("settlement", @settlement) - writer.write_object_value("yld", @yld) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end - ## - ## Gets the yld property value. The yld property - ## @return a json - ## - def yld - return @yld - end - ## - ## Sets the yld property value. The yld property - ## @param value Value to set for the yld property. - ## @return a void - ## - def yld=(value) - @yld = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/mduration/mduration_request_builder.rb b/lib/drives/item/items/item/workbook/functions/mduration/mduration_request_builder.rb index 05d53abc5c..f9af620585 100644 --- a/lib/drives/item/items/item/workbook/functions/mduration/mduration_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/mduration/mduration_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mduration_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MdurationRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/median/median_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/median/median_post_request_body.rb index 33727dc5b7..d184d2bf90 100644 --- a/lib/drives/item/items/item/workbook/functions/median/median_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/median/median_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class MedianPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new medianPostRequestBody and sets the default values. + ## Instantiates a new MedianPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/median/median_request_builder.rb b/lib/drives/item/items/item/workbook/functions/median/median_request_builder.rb index d6892bbe8f..19c4f63cd3 100644 --- a/lib/drives/item/items/item/workbook/functions/median/median_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/median/median_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a median_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MedianRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/mid/mid_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/mid/mid_post_request_body.rb index 827a4d9902..c1ab97647c 100644 --- a/lib/drives/item/items/item/workbook/functions/mid/mid_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/mid/mid_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class MidPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The numChars property - @num_chars - ## - # The startNum property - @start_num - ## - # The text property - @text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new midPostRequestBody and sets the default values. + ## Instantiates a new MidPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -68,68 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "numChars" => lambda {|n| @num_chars = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "startNum" => lambda {|n| @start_num = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "text" => lambda {|n| @text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the numChars property value. The numChars property - ## @return a json - ## - def num_chars - return @num_chars - end - ## - ## Sets the numChars property value. The numChars property - ## @param value Value to set for the numChars property. - ## @return a void - ## - def num_chars=(value) - @num_chars = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("numChars", @num_chars) - writer.write_object_value("startNum", @start_num) - writer.write_object_value("text", @text) writer.write_additional_data(@additional_data) end - ## - ## Gets the startNum property value. The startNum property - ## @return a json - ## - def start_num - return @start_num - end - ## - ## Sets the startNum property value. The startNum property - ## @param value Value to set for the startNum property. - ## @return a void - ## - def start_num=(value) - @start_num = value - end - ## - ## Gets the text property value. The text property - ## @return a json - ## - def text - return @text - end - ## - ## Sets the text property value. The text property - ## @param value Value to set for the text property. - ## @return a void - ## - def text=(value) - @text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/mid/mid_request_builder.rb b/lib/drives/item/items/item/workbook/functions/mid/mid_request_builder.rb index a75dc382d5..a8c908094e 100644 --- a/lib/drives/item/items/item/workbook/functions/mid/mid_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/mid/mid_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mid_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MidRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/midb/midb_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/midb/midb_post_request_body.rb index bac33eccbc..d6c27cb9a6 100644 --- a/lib/drives/item/items/item/workbook/functions/midb/midb_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/midb/midb_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class MidbPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The numBytes property - @num_bytes - ## - # The startNum property - @start_num - ## - # The text property - @text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new midbPostRequestBody and sets the default values. + ## Instantiates a new MidbPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -68,68 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "numBytes" => lambda {|n| @num_bytes = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "startNum" => lambda {|n| @start_num = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "text" => lambda {|n| @text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the numBytes property value. The numBytes property - ## @return a json - ## - def num_bytes - return @num_bytes - end - ## - ## Sets the numBytes property value. The numBytes property - ## @param value Value to set for the numBytes property. - ## @return a void - ## - def num_bytes=(value) - @num_bytes = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("numBytes", @num_bytes) - writer.write_object_value("startNum", @start_num) - writer.write_object_value("text", @text) writer.write_additional_data(@additional_data) end - ## - ## Gets the startNum property value. The startNum property - ## @return a json - ## - def start_num - return @start_num - end - ## - ## Sets the startNum property value. The startNum property - ## @param value Value to set for the startNum property. - ## @return a void - ## - def start_num=(value) - @start_num = value - end - ## - ## Gets the text property value. The text property - ## @return a json - ## - def text - return @text - end - ## - ## Sets the text property value. The text property - ## @param value Value to set for the text property. - ## @return a void - ## - def text=(value) - @text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/midb/midb_request_builder.rb b/lib/drives/item/items/item/workbook/functions/midb/midb_request_builder.rb index eb47f183d4..fe106db4da 100644 --- a/lib/drives/item/items/item/workbook/functions/midb/midb_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/midb/midb_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a midb_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MidbRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/min/min_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/min/min_post_request_body.rb index ae67410890..890b9ca6f3 100644 --- a/lib/drives/item/items/item/workbook/functions/min/min_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/min/min_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class MinPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new minPostRequestBody and sets the default values. + ## Instantiates a new MinPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/min/min_request_builder.rb b/lib/drives/item/items/item/workbook/functions/min/min_request_builder.rb index f40e7cf86e..9aa4552f5d 100644 --- a/lib/drives/item/items/item/workbook/functions/min/min_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/min/min_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a min_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MinRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/min_a/min_a_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/min_a/min_a_post_request_body.rb index a7b9d8f1c2..aac493fab2 100644 --- a/lib/drives/item/items/item/workbook/functions/min_a/min_a_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/min_a/min_a_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class MinAPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new minAPostRequestBody and sets the default values. + ## Instantiates a new MinAPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/min_a/min_a_request_builder.rb b/lib/drives/item/items/item/workbook/functions/min_a/min_a_request_builder.rb index 1bb96ce386..b5ebe6306c 100644 --- a/lib/drives/item/items/item/workbook/functions/min_a/min_a_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/min_a/min_a_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a min_a_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MinARequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/minute/minute_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/minute/minute_post_request_body.rb index 13465916b1..4427f7a729 100644 --- a/lib/drives/item/items/item/workbook/functions/minute/minute_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/minute/minute_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class MinutePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The serialNumber property - @serial_number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new minutePostRequestBody and sets the default values. + ## Instantiates a new MinutePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "serialNumber" => lambda {|n| @serial_number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the serialNumber property value. The serialNumber property - ## @return a json - ## - def serial_number - return @serial_number - end - ## - ## Sets the serialNumber property value. The serialNumber property - ## @param value Value to set for the serialNumber property. - ## @return a void - ## - def serial_number=(value) - @serial_number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("serialNumber", @serial_number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/minute/minute_request_builder.rb b/lib/drives/item/items/item/workbook/functions/minute/minute_request_builder.rb index 3ae5e28b83..e5be99e40c 100644 --- a/lib/drives/item/items/item/workbook/functions/minute/minute_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/minute/minute_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a minute_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MinuteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/mirr/mirr_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/mirr/mirr_post_request_body.rb index 27e7572d45..df0bb1c2d1 100644 --- a/lib/drives/item/items/item/workbook/functions/mirr/mirr_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/mirr/mirr_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class MirrPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The financeRate property - @finance_rate - ## - # The reinvestRate property - @reinvest_rate - ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new mirrPostRequestBody and sets the default values. + ## Instantiates a new MirrPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,73 +53,22 @@ def self.create_from_discriminator_value(parse_node) return MirrPostRequestBody.new end ## - ## Gets the financeRate property value. The financeRate property - ## @return a json - ## - def finance_rate - return @finance_rate - end - ## - ## Sets the financeRate property value. The financeRate property - ## @param value Value to set for the financeRate property. - ## @return a void - ## - def finance_rate=(value) - @finance_rate = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "financeRate" => lambda {|n| @finance_rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "reinvestRate" => lambda {|n| @reinvest_rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the reinvestRate property value. The reinvestRate property - ## @return a json - ## - def reinvest_rate - return @reinvest_rate - end - ## - ## Sets the reinvestRate property value. The reinvestRate property - ## @param value Value to set for the reinvestRate property. - ## @return a void - ## - def reinvest_rate=(value) - @reinvest_rate = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("financeRate", @finance_rate) - writer.write_object_value("reinvestRate", @reinvest_rate) - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/mirr/mirr_request_builder.rb b/lib/drives/item/items/item/workbook/functions/mirr/mirr_request_builder.rb index 4128bcb084..089ce09d6c 100644 --- a/lib/drives/item/items/item/workbook/functions/mirr/mirr_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/mirr/mirr_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mirr_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MirrRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/mod/mod_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/mod/mod_post_request_body.rb index f6dfcac326..b977094871 100644 --- a/lib/drives/item/items/item/workbook/functions/mod/mod_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/mod/mod_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class ModPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The divisor property - @divisor - ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new modPostRequestBody and sets the default values. + ## Instantiates a new ModPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -60,54 +53,20 @@ def self.create_from_discriminator_value(parse_node) return ModPostRequestBody.new end ## - ## Gets the divisor property value. The divisor property - ## @return a json - ## - def divisor - return @divisor - end - ## - ## Sets the divisor property value. The divisor property - ## @param value Value to set for the divisor property. - ## @return a void - ## - def divisor=(value) - @divisor = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "divisor" => lambda {|n| @divisor = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("divisor", @divisor) - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/mod/mod_request_builder.rb b/lib/drives/item/items/item/workbook/functions/mod/mod_request_builder.rb index 97bbe12cd6..65a370f3c3 100644 --- a/lib/drives/item/items/item/workbook/functions/mod/mod_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/mod/mod_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mod_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ModRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/month/month_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/month/month_post_request_body.rb index 808758232b..8180d92455 100644 --- a/lib/drives/item/items/item/workbook/functions/month/month_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/month/month_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class MonthPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The serialNumber property - @serial_number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new monthPostRequestBody and sets the default values. + ## Instantiates a new MonthPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "serialNumber" => lambda {|n| @serial_number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the serialNumber property value. The serialNumber property - ## @return a json - ## - def serial_number - return @serial_number - end - ## - ## Sets the serialNumber property value. The serialNumber property - ## @param value Value to set for the serialNumber property. - ## @return a void - ## - def serial_number=(value) - @serial_number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("serialNumber", @serial_number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/month/month_request_builder.rb b/lib/drives/item/items/item/workbook/functions/month/month_request_builder.rb index 0bb6010045..0141d77bf2 100644 --- a/lib/drives/item/items/item/workbook/functions/month/month_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/month/month_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a month_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MonthRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/mround/mround_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/mround/mround_post_request_body.rb index 1c13d07550..c438088fc1 100644 --- a/lib/drives/item/items/item/workbook/functions/mround/mround_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/mround/mround_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class MroundPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The multiple property - @multiple - ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new mroundPostRequestBody and sets the default values. + ## Instantiates a new MroundPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "multiple" => lambda {|n| @multiple = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the multiple property value. The multiple property - ## @return a json - ## - def multiple - return @multiple - end - ## - ## Sets the multiple property value. The multiple property - ## @param value Value to set for the multiple property. - ## @return a void - ## - def multiple=(value) - @multiple = value - end - ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("multiple", @multiple) - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/mround/mround_request_builder.rb b/lib/drives/item/items/item/workbook/functions/mround/mround_request_builder.rb index 7d52c40649..eb5d1300ea 100644 --- a/lib/drives/item/items/item/workbook/functions/mround/mround_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/mround/mround_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mround_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MroundRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/multi_nomial/multi_nomial_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/multi_nomial/multi_nomial_post_request_body.rb index 366ce078d2..17b374b248 100644 --- a/lib/drives/item/items/item/workbook/functions/multi_nomial/multi_nomial_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/multi_nomial/multi_nomial_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class MultiNomialPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new multiNomialPostRequestBody and sets the default values. + ## Instantiates a new MultiNomialPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/multi_nomial/multi_nomial_request_builder.rb b/lib/drives/item/items/item/workbook/functions/multi_nomial/multi_nomial_request_builder.rb index 15de19fd38..561c6c40aa 100644 --- a/lib/drives/item/items/item/workbook/functions/multi_nomial/multi_nomial_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/multi_nomial/multi_nomial_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a multi_nomial_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MultiNomialRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/n/n_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/n/n_post_request_body.rb index 6cae93773c..ea3fd78ef6 100644 --- a/lib/drives/item/items/item/workbook/functions/n/n_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/n/n_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class NPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new nPostRequestBody and sets the default values. + ## Instantiates a new NPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "value" => lambda {|n| @value = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("value", @value) writer.write_additional_data(@additional_data) end - ## - ## Gets the value property value. The value property - ## @return a json - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/n/n_request_builder.rb b/lib/drives/item/items/item/workbook/functions/n/n_request_builder.rb index 46ebea50fc..10d6dcbd25 100644 --- a/lib/drives/item/items/item/workbook/functions/n/n_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/n/n_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a n_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/na/na_request_builder.rb b/lib/drives/item/items/item/workbook/functions/na/na_request_builder.rb index 6bd291ff21..550708818a 100644 --- a/lib/drives/item/items/item/workbook/functions/na/na_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/na/na_request_builder.rb @@ -41,8 +41,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,16 +51,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a na_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NaRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/neg_binom_dist/neg_binom_dist_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/neg_binom_dist/neg_binom_dist_post_request_body.rb index 5ac4bb9cea..128aad648d 100644 --- a/lib/drives/item/items/item/workbook/functions/neg_binom_dist/neg_binom_dist_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/neg_binom_dist/neg_binom_dist_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,27 +22,15 @@ class NegBinomDistPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The cumulative property - @cumulative - ## - # The numberF property - @number_f - ## - # The numberS property - @number_s - ## - # The probabilityS property - @probability_s - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -66,88 +53,20 @@ def self.create_from_discriminator_value(parse_node) return NegBinomDistPostRequestBody.new end ## - ## Gets the cumulative property value. The cumulative property - ## @return a json - ## - def cumulative - return @cumulative - end - ## - ## Sets the cumulative property value. The cumulative property - ## @param value Value to set for the cumulative property. - ## @return a void - ## - def cumulative=(value) - @cumulative = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "cumulative" => lambda {|n| @cumulative = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "numberF" => lambda {|n| @number_f = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "numberS" => lambda {|n| @number_s = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "probabilityS" => lambda {|n| @probability_s = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the numberF property value. The numberF property - ## @return a json - ## - def number_f - return @number_f - end - ## - ## Sets the numberF property value. The numberF property - ## @param value Value to set for the numberF property. - ## @return a void - ## - def number_f=(value) - @number_f = value - end - ## - ## Gets the numberS property value. The numberS property - ## @return a json - ## - def number_s - return @number_s - end - ## - ## Sets the numberS property value. The numberS property - ## @param value Value to set for the numberS property. - ## @return a void - ## - def number_s=(value) - @number_s = value - end - ## - ## Gets the probabilityS property value. The probabilityS property - ## @return a json - ## - def probability_s - return @probability_s - end - ## - ## Sets the probabilityS property value. The probabilityS property - ## @param value Value to set for the probabilityS property. - ## @return a void - ## - def probability_s=(value) - @probability_s = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("cumulative", @cumulative) - writer.write_object_value("numberF", @number_f) - writer.write_object_value("numberS", @number_s) - writer.write_object_value("probabilityS", @probability_s) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/neg_binom_dist/neg_binom_dist_request_builder.rb b/lib/drives/item/items/item/workbook/functions/neg_binom_dist/neg_binom_dist_request_builder.rb index 7d7a6315a9..56bede953d 100644 --- a/lib/drives/item/items/item/workbook/functions/neg_binom_dist/neg_binom_dist_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/neg_binom_dist/neg_binom_dist_request_builder.rb @@ -23,7 +23,7 @@ module NegBinom_Dist class NegBinomDistRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new NegBinom_DistRequestBuilder and sets the default values. + ## Instantiates a new NegBinomDistRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a neg_binom_dist_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NegBinomDistRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/network_days/network_days_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/network_days/network_days_post_request_body.rb index 1aa20523ea..de09594fdd 100644 --- a/lib/drives/item/items/item/workbook/functions/network_days/network_days_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/network_days/network_days_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class NetworkDaysPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The endDate property - @end_date - ## - # The holidays property - @holidays - ## - # The startDate property - @start_date - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new networkDaysPostRequestBody and sets the default values. + ## Instantiates a new NetworkDaysPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,73 +53,22 @@ def self.create_from_discriminator_value(parse_node) return NetworkDaysPostRequestBody.new end ## - ## Gets the endDate property value. The endDate property - ## @return a json - ## - def end_date - return @end_date - end - ## - ## Sets the endDate property value. The endDate property - ## @param value Value to set for the endDate property. - ## @return a void - ## - def end_date=(value) - @end_date = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "endDate" => lambda {|n| @end_date = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "holidays" => lambda {|n| @holidays = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "startDate" => lambda {|n| @start_date = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the holidays property value. The holidays property - ## @return a json - ## - def holidays - return @holidays - end - ## - ## Sets the holidays property value. The holidays property - ## @param value Value to set for the holidays property. - ## @return a void - ## - def holidays=(value) - @holidays = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("endDate", @end_date) - writer.write_object_value("holidays", @holidays) - writer.write_object_value("startDate", @start_date) writer.write_additional_data(@additional_data) end - ## - ## Gets the startDate property value. The startDate property - ## @return a json - ## - def start_date - return @start_date - end - ## - ## Sets the startDate property value. The startDate property - ## @param value Value to set for the startDate property. - ## @return a void - ## - def start_date=(value) - @start_date = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/network_days/network_days_request_builder.rb b/lib/drives/item/items/item/workbook/functions/network_days/network_days_request_builder.rb index 6616c7fc01..c7c1f93425 100644 --- a/lib/drives/item/items/item/workbook/functions/network_days/network_days_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/network_days/network_days_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a network_days_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NetworkDaysRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/network_days_intl/network_days_intl_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/network_days_intl/network_days_intl_post_request_body.rb index 3d90569f78..80f920bc5f 100644 --- a/lib/drives/item/items/item/workbook/functions/network_days_intl/network_days_intl_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/network_days_intl/network_days_intl_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,27 +22,15 @@ class NetworkDaysIntlPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The endDate property - @end_date - ## - # The holidays property - @holidays - ## - # The startDate property - @start_date - ## - # The weekend property - @weekend - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -66,90 +53,22 @@ def self.create_from_discriminator_value(parse_node) return NetworkDaysIntlPostRequestBody.new end ## - ## Gets the endDate property value. The endDate property - ## @return a json - ## - def end_date - return @end_date - end - ## - ## Sets the endDate property value. The endDate property - ## @param value Value to set for the endDate property. - ## @return a void - ## - def end_date=(value) - @end_date = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "endDate" => lambda {|n| @end_date = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "holidays" => lambda {|n| @holidays = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "startDate" => lambda {|n| @start_date = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "weekend" => lambda {|n| @weekend = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the holidays property value. The holidays property - ## @return a json - ## - def holidays - return @holidays - end - ## - ## Sets the holidays property value. The holidays property - ## @param value Value to set for the holidays property. - ## @return a void - ## - def holidays=(value) - @holidays = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("endDate", @end_date) - writer.write_object_value("holidays", @holidays) - writer.write_object_value("startDate", @start_date) - writer.write_object_value("weekend", @weekend) writer.write_additional_data(@additional_data) end - ## - ## Gets the startDate property value. The startDate property - ## @return a json - ## - def start_date - return @start_date - end - ## - ## Sets the startDate property value. The startDate property - ## @param value Value to set for the startDate property. - ## @return a void - ## - def start_date=(value) - @start_date = value - end - ## - ## Gets the weekend property value. The weekend property - ## @return a json - ## - def weekend - return @weekend - end - ## - ## Sets the weekend property value. The weekend property - ## @param value Value to set for the weekend property. - ## @return a void - ## - def weekend=(value) - @weekend = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/network_days_intl/network_days_intl_request_builder.rb b/lib/drives/item/items/item/workbook/functions/network_days_intl/network_days_intl_request_builder.rb index 42cdaa69f0..631a88a79c 100644 --- a/lib/drives/item/items/item/workbook/functions/network_days_intl/network_days_intl_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/network_days_intl/network_days_intl_request_builder.rb @@ -23,7 +23,7 @@ module NetworkDays_Intl class NetworkDaysIntlRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new NetworkDays_IntlRequestBuilder and sets the default values. + ## Instantiates a new NetworkDaysIntlRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a network_days_intl_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NetworkDaysIntlRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/nominal/nominal_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/nominal/nominal_post_request_body.rb index d3b7ffac3c..754a8bbbbb 100644 --- a/lib/drives/item/items/item/workbook/functions/nominal/nominal_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/nominal/nominal_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class NominalPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The effectRate property - @effect_rate - ## - # The npery property - @npery - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new nominalPostRequestBody and sets the default values. + ## Instantiates a new NominalPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -60,54 +53,20 @@ def self.create_from_discriminator_value(parse_node) return NominalPostRequestBody.new end ## - ## Gets the effectRate property value. The effectRate property - ## @return a json - ## - def effect_rate - return @effect_rate - end - ## - ## Sets the effectRate property value. The effectRate property - ## @param value Value to set for the effectRate property. - ## @return a void - ## - def effect_rate=(value) - @effect_rate = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "effectRate" => lambda {|n| @effect_rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "npery" => lambda {|n| @npery = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the npery property value. The npery property - ## @return a json - ## - def npery - return @npery - end - ## - ## Sets the npery property value. The npery property - ## @param value Value to set for the npery property. - ## @return a void - ## - def npery=(value) - @npery = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("effectRate", @effect_rate) - writer.write_object_value("npery", @npery) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/nominal/nominal_request_builder.rb b/lib/drives/item/items/item/workbook/functions/nominal/nominal_request_builder.rb index ab4ba1735b..6395b250a4 100644 --- a/lib/drives/item/items/item/workbook/functions/nominal/nominal_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/nominal/nominal_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a nominal_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NominalRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/norm_dist/norm_dist_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/norm_dist/norm_dist_post_request_body.rb index 6c1866f7bc..05a6eea84c 100644 --- a/lib/drives/item/items/item/workbook/functions/norm_dist/norm_dist_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/norm_dist/norm_dist_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,27 +22,15 @@ class NormDistPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The cumulative property - @cumulative - ## - # The mean property - @mean - ## - # The standardDev property - @standard_dev - ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -66,90 +53,22 @@ def self.create_from_discriminator_value(parse_node) return NormDistPostRequestBody.new end ## - ## Gets the cumulative property value. The cumulative property - ## @return a json - ## - def cumulative - return @cumulative - end - ## - ## Sets the cumulative property value. The cumulative property - ## @param value Value to set for the cumulative property. - ## @return a void - ## - def cumulative=(value) - @cumulative = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "cumulative" => lambda {|n| @cumulative = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "mean" => lambda {|n| @mean = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "standardDev" => lambda {|n| @standard_dev = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the mean property value. The mean property - ## @return a json - ## - def mean - return @mean - end - ## - ## Sets the mean property value. The mean property - ## @param value Value to set for the mean property. - ## @return a void - ## - def mean=(value) - @mean = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("cumulative", @cumulative) - writer.write_object_value("mean", @mean) - writer.write_object_value("standardDev", @standard_dev) - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the standardDev property value. The standardDev property - ## @return a json - ## - def standard_dev - return @standard_dev - end - ## - ## Sets the standardDev property value. The standardDev property - ## @param value Value to set for the standardDev property. - ## @return a void - ## - def standard_dev=(value) - @standard_dev = value - end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/norm_dist/norm_dist_request_builder.rb b/lib/drives/item/items/item/workbook/functions/norm_dist/norm_dist_request_builder.rb index 9f1e064d97..7eb4bb3f62 100644 --- a/lib/drives/item/items/item/workbook/functions/norm_dist/norm_dist_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/norm_dist/norm_dist_request_builder.rb @@ -23,7 +23,7 @@ module Norm_Dist class NormDistRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Norm_DistRequestBuilder and sets the default values. + ## Instantiates a new NormDistRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a norm_dist_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NormDistRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/norm_inv/norm_inv_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/norm_inv/norm_inv_post_request_body.rb index e303ce528a..e26d3711a0 100644 --- a/lib/drives/item/items/item/workbook/functions/norm_inv/norm_inv_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/norm_inv/norm_inv_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,24 +22,15 @@ class NormInvPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The mean property - @mean - ## - # The probability property - @probability - ## - # The standardDev property - @standard_dev - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -68,68 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "mean" => lambda {|n| @mean = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "probability" => lambda {|n| @probability = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "standardDev" => lambda {|n| @standard_dev = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the mean property value. The mean property - ## @return a json - ## - def mean - return @mean - end - ## - ## Sets the mean property value. The mean property - ## @param value Value to set for the mean property. - ## @return a void - ## - def mean=(value) - @mean = value - end - ## - ## Gets the probability property value. The probability property - ## @return a json - ## - def probability - return @probability - end - ## - ## Sets the probability property value. The probability property - ## @param value Value to set for the probability property. - ## @return a void - ## - def probability=(value) - @probability = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("mean", @mean) - writer.write_object_value("probability", @probability) - writer.write_object_value("standardDev", @standard_dev) writer.write_additional_data(@additional_data) end - ## - ## Gets the standardDev property value. The standardDev property - ## @return a json - ## - def standard_dev - return @standard_dev - end - ## - ## Sets the standardDev property value. The standardDev property - ## @param value Value to set for the standardDev property. - ## @return a void - ## - def standard_dev=(value) - @standard_dev = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/norm_inv/norm_inv_request_builder.rb b/lib/drives/item/items/item/workbook/functions/norm_inv/norm_inv_request_builder.rb index c8f21b1a5d..68076a9955 100644 --- a/lib/drives/item/items/item/workbook/functions/norm_inv/norm_inv_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/norm_inv/norm_inv_request_builder.rb @@ -23,7 +23,7 @@ module Norm_Inv class NormInvRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Norm_InvRequestBuilder and sets the default values. + ## Instantiates a new NormInvRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a norm_inv_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NormInvRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/norm_s_dist/norm_s_dist_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/norm_s_dist/norm_s_dist_post_request_body.rb index 6ff41d176c..c914e2623b 100644 --- a/lib/drives/item/items/item/workbook/functions/norm_s_dist/norm_s_dist_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/norm_s_dist/norm_s_dist_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,21 +22,15 @@ class NormSDistPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The cumulative property - @cumulative - ## - # The z property - @z - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -60,28 +53,11 @@ def self.create_from_discriminator_value(parse_node) return NormSDistPostRequestBody.new end ## - ## Gets the cumulative property value. The cumulative property - ## @return a json - ## - def cumulative - return @cumulative - end - ## - ## Sets the cumulative property value. The cumulative property - ## @param value Value to set for the cumulative property. - ## @return a void - ## - def cumulative=(value) - @cumulative = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "cumulative" => lambda {|n| @cumulative = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "z" => lambda {|n| @z = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -91,25 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("cumulative", @cumulative) - writer.write_object_value("z", @z) writer.write_additional_data(@additional_data) end - ## - ## Gets the z property value. The z property - ## @return a json - ## - def z - return @z - end - ## - ## Sets the z property value. The z property - ## @param value Value to set for the z property. - ## @return a void - ## - def z=(value) - @z = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/norm_s_dist/norm_s_dist_request_builder.rb b/lib/drives/item/items/item/workbook/functions/norm_s_dist/norm_s_dist_request_builder.rb index 876a377e11..46e6d1d55f 100644 --- a/lib/drives/item/items/item/workbook/functions/norm_s_dist/norm_s_dist_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/norm_s_dist/norm_s_dist_request_builder.rb @@ -23,7 +23,7 @@ module Norm_S_Dist class NormSDistRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Norm_S_DistRequestBuilder and sets the default values. + ## Instantiates a new NormSDistRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a norm_s_dist_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NormSDistRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/norm_s_inv/norm_s_inv_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/norm_s_inv/norm_s_inv_post_request_body.rb index c5c16e5a14..6ac85a6839 100644 --- a/lib/drives/item/items/item/workbook/functions/norm_s_inv/norm_s_inv_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/norm_s_inv/norm_s_inv_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,18 +22,15 @@ class NormSInvPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The probability property - @probability - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "probability" => lambda {|n| @probability = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the probability property value. The probability property - ## @return a json - ## - def probability - return @probability - end - ## - ## Sets the probability property value. The probability property - ## @param value Value to set for the probability property. - ## @return a void - ## - def probability=(value) - @probability = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("probability", @probability) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/norm_s_inv/norm_s_inv_request_builder.rb b/lib/drives/item/items/item/workbook/functions/norm_s_inv/norm_s_inv_request_builder.rb index 6d5841d750..62b9c8c15e 100644 --- a/lib/drives/item/items/item/workbook/functions/norm_s_inv/norm_s_inv_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/norm_s_inv/norm_s_inv_request_builder.rb @@ -23,7 +23,7 @@ module Norm_S_Inv class NormSInvRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Norm_S_InvRequestBuilder and sets the default values. + ## Instantiates a new NormSInvRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a norm_s_inv_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NormSInvRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/not_escaped/not_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/not_escaped/not_post_request_body.rb index f7cb420c54..1095a136a9 100644 --- a/lib/drives/item/items/item/workbook/functions/not_escaped/not_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/not_escaped/not_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class NotPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The logical property - @logical - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new notPostRequestBody and sets the default values. + ## Instantiates a new NotPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "logical" => lambda {|n| @logical = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the logical property value. The logical property - ## @return a json - ## - def logical - return @logical - end - ## - ## Sets the logical property value. The logical property - ## @param value Value to set for the logical property. - ## @return a void - ## - def logical=(value) - @logical = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("logical", @logical) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/not_escaped/not_request_builder.rb b/lib/drives/item/items/item/workbook/functions/not_escaped/not_request_builder.rb index 071ee95242..c8c2130985 100644 --- a/lib/drives/item/items/item/workbook/functions/not_escaped/not_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/not_escaped/not_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a not_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NotRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/now/now_request_builder.rb b/lib/drives/item/items/item/workbook/functions/now/now_request_builder.rb index 8b36ad2bc5..cfb3e683aa 100644 --- a/lib/drives/item/items/item/workbook/functions/now/now_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/now/now_request_builder.rb @@ -41,8 +41,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,16 +51,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a now_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NowRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/nper/nper_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/nper/nper_post_request_body.rb index 58a941efa2..be94c7d375 100644 --- a/lib/drives/item/items/item/workbook/functions/nper/nper_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/nper/nper_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,37 +22,22 @@ class NperPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The fv property - @fv - ## - # The pmt property - @pmt - ## - # The pv property - @pv - ## - # The rate property - @rate - ## - # The type property - @type - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new nperPostRequestBody and sets the default values. + ## Instantiates a new NperPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -69,107 +53,22 @@ def self.create_from_discriminator_value(parse_node) return NperPostRequestBody.new end ## - ## Gets the fv property value. The fv property - ## @return a json - ## - def fv - return @fv - end - ## - ## Sets the fv property value. The fv property - ## @param value Value to set for the fv property. - ## @return a void - ## - def fv=(value) - @fv = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "fv" => lambda {|n| @fv = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "pmt" => lambda {|n| @pmt = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "pv" => lambda {|n| @pv = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "type" => lambda {|n| @type = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the pmt property value. The pmt property - ## @return a json - ## - def pmt - return @pmt - end - ## - ## Sets the pmt property value. The pmt property - ## @param value Value to set for the pmt property. - ## @return a void - ## - def pmt=(value) - @pmt = value - end - ## - ## Gets the pv property value. The pv property - ## @return a json - ## - def pv - return @pv - end - ## - ## Sets the pv property value. The pv property - ## @param value Value to set for the pv property. - ## @return a void - ## - def pv=(value) - @pv = value - end - ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("fv", @fv) - writer.write_object_value("pmt", @pmt) - writer.write_object_value("pv", @pv) - writer.write_object_value("rate", @rate) - writer.write_object_value("type", @type) writer.write_additional_data(@additional_data) end - ## - ## Gets the type property value. The type property - ## @return a json - ## - def type - return @type - end - ## - ## Sets the type property value. The type property - ## @param value Value to set for the type property. - ## @return a void - ## - def type=(value) - @type = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/nper/nper_request_builder.rb b/lib/drives/item/items/item/workbook/functions/nper/nper_request_builder.rb index 8e1891fee8..b73bdb2170 100644 --- a/lib/drives/item/items/item/workbook/functions/nper/nper_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/nper/nper_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a nper_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NperRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/npv/npv_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/npv/npv_post_request_body.rb index 6986d791fa..80a93f2ae8 100644 --- a/lib/drives/item/items/item/workbook/functions/npv/npv_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/npv/npv_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class NpvPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The rate property - @rate - ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new npvPostRequestBody and sets the default values. + ## Instantiates a new NpvPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,51 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("rate", @rate) - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/npv/npv_request_builder.rb b/lib/drives/item/items/item/workbook/functions/npv/npv_request_builder.rb index cba7b0e223..e5c879d4a7 100644 --- a/lib/drives/item/items/item/workbook/functions/npv/npv_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/npv/npv_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a npv_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NpvRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/number_value/number_value_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/number_value/number_value_post_request_body.rb index c393b48e88..a125b3da3d 100644 --- a/lib/drives/item/items/item/workbook/functions/number_value/number_value_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/number_value/number_value_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class NumberValuePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The decimalSeparator property - @decimal_separator - ## - # The groupSeparator property - @group_separator - ## - # The text property - @text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new numberValuePostRequestBody and sets the default values. + ## Instantiates a new NumberValuePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,73 +53,22 @@ def self.create_from_discriminator_value(parse_node) return NumberValuePostRequestBody.new end ## - ## Gets the decimalSeparator property value. The decimalSeparator property - ## @return a json - ## - def decimal_separator - return @decimal_separator - end - ## - ## Sets the decimalSeparator property value. The decimalSeparator property - ## @param value Value to set for the decimalSeparator property. - ## @return a void - ## - def decimal_separator=(value) - @decimal_separator = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "decimalSeparator" => lambda {|n| @decimal_separator = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "groupSeparator" => lambda {|n| @group_separator = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "text" => lambda {|n| @text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the groupSeparator property value. The groupSeparator property - ## @return a json - ## - def group_separator - return @group_separator - end - ## - ## Sets the groupSeparator property value. The groupSeparator property - ## @param value Value to set for the groupSeparator property. - ## @return a void - ## - def group_separator=(value) - @group_separator = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("decimalSeparator", @decimal_separator) - writer.write_object_value("groupSeparator", @group_separator) - writer.write_object_value("text", @text) writer.write_additional_data(@additional_data) end - ## - ## Gets the text property value. The text property - ## @return a json - ## - def text - return @text - end - ## - ## Sets the text property value. The text property - ## @param value Value to set for the text property. - ## @return a void - ## - def text=(value) - @text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/number_value/number_value_request_builder.rb b/lib/drives/item/items/item/workbook/functions/number_value/number_value_request_builder.rb index 988c00ed80..22c33dabf1 100644 --- a/lib/drives/item/items/item/workbook/functions/number_value/number_value_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/number_value/number_value_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a number_value_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NumberValueRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/oct2_bin/oct2_bin_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/oct2_bin/oct2_bin_post_request_body.rb index fb31882a71..bf6ec0d420 100644 --- a/lib/drives/item/items/item/workbook/functions/oct2_bin/oct2_bin_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/oct2_bin/oct2_bin_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class Oct2BinPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The places property - @places - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new oct2BinPostRequestBody and sets the default values. + ## Instantiates a new Oct2BinPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "places" => lambda {|n| @places = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## - ## Gets the places property value. The places property - ## @return a json - ## - def places - return @places - end - ## - ## Sets the places property value. The places property - ## @param value Value to set for the places property. - ## @return a void - ## - def places=(value) - @places = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("places", @places) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/oct2_bin/oct2_bin_request_builder.rb b/lib/drives/item/items/item/workbook/functions/oct2_bin/oct2_bin_request_builder.rb index f744b88e4d..38da405ad2 100644 --- a/lib/drives/item/items/item/workbook/functions/oct2_bin/oct2_bin_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/oct2_bin/oct2_bin_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a oct2_bin_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return Oct2BinRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/oct2_dec/oct2_dec_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/oct2_dec/oct2_dec_post_request_body.rb index 548361b8df..6a11411fa8 100644 --- a/lib/drives/item/items/item/workbook/functions/oct2_dec/oct2_dec_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/oct2_dec/oct2_dec_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class Oct2DecPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new oct2DecPostRequestBody and sets the default values. + ## Instantiates a new Oct2DecPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/oct2_dec/oct2_dec_request_builder.rb b/lib/drives/item/items/item/workbook/functions/oct2_dec/oct2_dec_request_builder.rb index 066e12d594..f8749d70e3 100644 --- a/lib/drives/item/items/item/workbook/functions/oct2_dec/oct2_dec_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/oct2_dec/oct2_dec_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a oct2_dec_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return Oct2DecRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/oct2_hex/oct2_hex_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/oct2_hex/oct2_hex_post_request_body.rb index acf21e8630..92b7ab2b10 100644 --- a/lib/drives/item/items/item/workbook/functions/oct2_hex/oct2_hex_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/oct2_hex/oct2_hex_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class Oct2HexPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The places property - @places - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new oct2HexPostRequestBody and sets the default values. + ## Instantiates a new Oct2HexPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "places" => lambda {|n| @places = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## - ## Gets the places property value. The places property - ## @return a json - ## - def places - return @places - end - ## - ## Sets the places property value. The places property - ## @param value Value to set for the places property. - ## @return a void - ## - def places=(value) - @places = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("places", @places) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/oct2_hex/oct2_hex_request_builder.rb b/lib/drives/item/items/item/workbook/functions/oct2_hex/oct2_hex_request_builder.rb index f6303b2a0c..5011496a15 100644 --- a/lib/drives/item/items/item/workbook/functions/oct2_hex/oct2_hex_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/oct2_hex/oct2_hex_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a oct2_hex_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return Oct2HexRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/odd/odd_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/odd/odd_post_request_body.rb index 97f554a6d9..a399fea4db 100644 --- a/lib/drives/item/items/item/workbook/functions/odd/odd_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/odd/odd_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class OddPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new oddPostRequestBody and sets the default values. + ## Instantiates a new OddPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/odd/odd_request_builder.rb b/lib/drives/item/items/item/workbook/functions/odd/odd_request_builder.rb index 959e0f95ce..52bbc99395 100644 --- a/lib/drives/item/items/item/workbook/functions/odd/odd_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/odd/odd_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a odd_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OddRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/odd_f_price/odd_f_price_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/odd_f_price/odd_f_price_post_request_body.rb index 6d61e7edaf..bd239f2856 100644 --- a/lib/drives/item/items/item/workbook/functions/odd_f_price/odd_f_price_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/odd_f_price/odd_f_price_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,64 +22,22 @@ class OddFPricePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The firstCoupon property - @first_coupon - ## - # The frequency property - @frequency - ## - # The issue property - @issue - ## - # The maturity property - @maturity - ## - # The rate property - @rate - ## - # The redemption property - @redemption - ## - # The settlement property - @settlement - ## - # The yld property - @yld - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new oddFPricePostRequestBody and sets the default values. + ## Instantiates a new OddFPricePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -96,160 +53,22 @@ def self.create_from_discriminator_value(parse_node) return OddFPricePostRequestBody.new end ## - ## Gets the firstCoupon property value. The firstCoupon property - ## @return a json - ## - def first_coupon - return @first_coupon - end - ## - ## Sets the firstCoupon property value. The firstCoupon property - ## @param value Value to set for the firstCoupon property. - ## @return a void - ## - def first_coupon=(value) - @first_coupon = value - end - ## - ## Gets the frequency property value. The frequency property - ## @return a json - ## - def frequency - return @frequency - end - ## - ## Sets the frequency property value. The frequency property - ## @param value Value to set for the frequency property. - ## @return a void - ## - def frequency=(value) - @frequency = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "firstCoupon" => lambda {|n| @first_coupon = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "frequency" => lambda {|n| @frequency = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "issue" => lambda {|n| @issue = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "redemption" => lambda {|n| @redemption = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "yld" => lambda {|n| @yld = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the issue property value. The issue property - ## @return a json - ## - def issue - return @issue - end - ## - ## Sets the issue property value. The issue property - ## @param value Value to set for the issue property. - ## @return a void - ## - def issue=(value) - @issue = value - end - ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## - ## Gets the redemption property value. The redemption property - ## @return a json - ## - def redemption - return @redemption - end - ## - ## Sets the redemption property value. The redemption property - ## @param value Value to set for the redemption property. - ## @return a void - ## - def redemption=(value) - @redemption = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("firstCoupon", @first_coupon) - writer.write_object_value("frequency", @frequency) - writer.write_object_value("issue", @issue) - writer.write_object_value("maturity", @maturity) - writer.write_object_value("rate", @rate) - writer.write_object_value("redemption", @redemption) - writer.write_object_value("settlement", @settlement) - writer.write_object_value("yld", @yld) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end - ## - ## Gets the yld property value. The yld property - ## @return a json - ## - def yld - return @yld - end - ## - ## Sets the yld property value. The yld property - ## @param value Value to set for the yld property. - ## @return a void - ## - def yld=(value) - @yld = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/odd_f_price/odd_f_price_request_builder.rb b/lib/drives/item/items/item/workbook/functions/odd_f_price/odd_f_price_request_builder.rb index aa6038dd93..765775a343 100644 --- a/lib/drives/item/items/item/workbook/functions/odd_f_price/odd_f_price_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/odd_f_price/odd_f_price_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a odd_f_price_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OddFPriceRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/odd_f_yield/odd_f_yield_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/odd_f_yield/odd_f_yield_post_request_body.rb index df0a37f299..0eb0a9ae64 100644 --- a/lib/drives/item/items/item/workbook/functions/odd_f_yield/odd_f_yield_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/odd_f_yield/odd_f_yield_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,64 +22,22 @@ class OddFYieldPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The firstCoupon property - @first_coupon - ## - # The frequency property - @frequency - ## - # The issue property - @issue - ## - # The maturity property - @maturity - ## - # The pr property - @pr - ## - # The rate property - @rate - ## - # The redemption property - @redemption - ## - # The settlement property - @settlement - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new oddFYieldPostRequestBody and sets the default values. + ## Instantiates a new OddFYieldPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -96,160 +53,22 @@ def self.create_from_discriminator_value(parse_node) return OddFYieldPostRequestBody.new end ## - ## Gets the firstCoupon property value. The firstCoupon property - ## @return a json - ## - def first_coupon - return @first_coupon - end - ## - ## Sets the firstCoupon property value. The firstCoupon property - ## @param value Value to set for the firstCoupon property. - ## @return a void - ## - def first_coupon=(value) - @first_coupon = value - end - ## - ## Gets the frequency property value. The frequency property - ## @return a json - ## - def frequency - return @frequency - end - ## - ## Sets the frequency property value. The frequency property - ## @param value Value to set for the frequency property. - ## @return a void - ## - def frequency=(value) - @frequency = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "firstCoupon" => lambda {|n| @first_coupon = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "frequency" => lambda {|n| @frequency = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "issue" => lambda {|n| @issue = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "pr" => lambda {|n| @pr = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "redemption" => lambda {|n| @redemption = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the issue property value. The issue property - ## @return a json - ## - def issue - return @issue - end - ## - ## Sets the issue property value. The issue property - ## @param value Value to set for the issue property. - ## @return a void - ## - def issue=(value) - @issue = value - end - ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## - ## Gets the pr property value. The pr property - ## @return a json - ## - def pr - return @pr - end - ## - ## Sets the pr property value. The pr property - ## @param value Value to set for the pr property. - ## @return a void - ## - def pr=(value) - @pr = value - end - ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## - ## Gets the redemption property value. The redemption property - ## @return a json - ## - def redemption - return @redemption - end - ## - ## Sets the redemption property value. The redemption property - ## @param value Value to set for the redemption property. - ## @return a void - ## - def redemption=(value) - @redemption = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("firstCoupon", @first_coupon) - writer.write_object_value("frequency", @frequency) - writer.write_object_value("issue", @issue) - writer.write_object_value("maturity", @maturity) - writer.write_object_value("pr", @pr) - writer.write_object_value("rate", @rate) - writer.write_object_value("redemption", @redemption) - writer.write_object_value("settlement", @settlement) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/odd_f_yield/odd_f_yield_request_builder.rb b/lib/drives/item/items/item/workbook/functions/odd_f_yield/odd_f_yield_request_builder.rb index 6b4fc2017a..34854a3337 100644 --- a/lib/drives/item/items/item/workbook/functions/odd_f_yield/odd_f_yield_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/odd_f_yield/odd_f_yield_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a odd_f_yield_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OddFYieldRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/odd_l_price/odd_l_price_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/odd_l_price/odd_l_price_post_request_body.rb index 7507256314..5e2c64dbb0 100644 --- a/lib/drives/item/items/item/workbook/functions/odd_l_price/odd_l_price_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/odd_l_price/odd_l_price_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,61 +22,22 @@ class OddLPricePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The frequency property - @frequency - ## - # The lastInterest property - @last_interest - ## - # The maturity property - @maturity - ## - # The rate property - @rate - ## - # The redemption property - @redemption - ## - # The settlement property - @settlement - ## - # The yld property - @yld - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new oddLPricePostRequestBody and sets the default values. + ## Instantiates a new OddLPricePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -93,143 +53,22 @@ def self.create_from_discriminator_value(parse_node) return OddLPricePostRequestBody.new end ## - ## Gets the frequency property value. The frequency property - ## @return a json - ## - def frequency - return @frequency - end - ## - ## Sets the frequency property value. The frequency property - ## @param value Value to set for the frequency property. - ## @return a void - ## - def frequency=(value) - @frequency = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "frequency" => lambda {|n| @frequency = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "lastInterest" => lambda {|n| @last_interest = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "redemption" => lambda {|n| @redemption = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "yld" => lambda {|n| @yld = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the lastInterest property value. The lastInterest property - ## @return a json - ## - def last_interest - return @last_interest - end - ## - ## Sets the lastInterest property value. The lastInterest property - ## @param value Value to set for the lastInterest property. - ## @return a void - ## - def last_interest=(value) - @last_interest = value - end - ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## - ## Gets the redemption property value. The redemption property - ## @return a json - ## - def redemption - return @redemption - end - ## - ## Sets the redemption property value. The redemption property - ## @param value Value to set for the redemption property. - ## @return a void - ## - def redemption=(value) - @redemption = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("frequency", @frequency) - writer.write_object_value("lastInterest", @last_interest) - writer.write_object_value("maturity", @maturity) - writer.write_object_value("rate", @rate) - writer.write_object_value("redemption", @redemption) - writer.write_object_value("settlement", @settlement) - writer.write_object_value("yld", @yld) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end - ## - ## Gets the yld property value. The yld property - ## @return a json - ## - def yld - return @yld - end - ## - ## Sets the yld property value. The yld property - ## @param value Value to set for the yld property. - ## @return a void - ## - def yld=(value) - @yld = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/odd_l_price/odd_l_price_request_builder.rb b/lib/drives/item/items/item/workbook/functions/odd_l_price/odd_l_price_request_builder.rb index d40e4e4f5a..1ce2f96a9f 100644 --- a/lib/drives/item/items/item/workbook/functions/odd_l_price/odd_l_price_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/odd_l_price/odd_l_price_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a odd_l_price_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OddLPriceRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/odd_l_yield/odd_l_yield_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/odd_l_yield/odd_l_yield_post_request_body.rb index 5e2fa76ba3..ba9f82260e 100644 --- a/lib/drives/item/items/item/workbook/functions/odd_l_yield/odd_l_yield_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/odd_l_yield/odd_l_yield_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,61 +22,22 @@ class OddLYieldPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The frequency property - @frequency - ## - # The lastInterest property - @last_interest - ## - # The maturity property - @maturity - ## - # The pr property - @pr - ## - # The rate property - @rate - ## - # The redemption property - @redemption - ## - # The settlement property - @settlement - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new oddLYieldPostRequestBody and sets the default values. + ## Instantiates a new OddLYieldPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -93,143 +53,22 @@ def self.create_from_discriminator_value(parse_node) return OddLYieldPostRequestBody.new end ## - ## Gets the frequency property value. The frequency property - ## @return a json - ## - def frequency - return @frequency - end - ## - ## Sets the frequency property value. The frequency property - ## @param value Value to set for the frequency property. - ## @return a void - ## - def frequency=(value) - @frequency = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "frequency" => lambda {|n| @frequency = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "lastInterest" => lambda {|n| @last_interest = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "pr" => lambda {|n| @pr = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "redemption" => lambda {|n| @redemption = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the lastInterest property value. The lastInterest property - ## @return a json - ## - def last_interest - return @last_interest - end - ## - ## Sets the lastInterest property value. The lastInterest property - ## @param value Value to set for the lastInterest property. - ## @return a void - ## - def last_interest=(value) - @last_interest = value - end - ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## - ## Gets the pr property value. The pr property - ## @return a json - ## - def pr - return @pr - end - ## - ## Sets the pr property value. The pr property - ## @param value Value to set for the pr property. - ## @return a void - ## - def pr=(value) - @pr = value - end - ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## - ## Gets the redemption property value. The redemption property - ## @return a json - ## - def redemption - return @redemption - end - ## - ## Sets the redemption property value. The redemption property - ## @param value Value to set for the redemption property. - ## @return a void - ## - def redemption=(value) - @redemption = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("frequency", @frequency) - writer.write_object_value("lastInterest", @last_interest) - writer.write_object_value("maturity", @maturity) - writer.write_object_value("pr", @pr) - writer.write_object_value("rate", @rate) - writer.write_object_value("redemption", @redemption) - writer.write_object_value("settlement", @settlement) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/odd_l_yield/odd_l_yield_request_builder.rb b/lib/drives/item/items/item/workbook/functions/odd_l_yield/odd_l_yield_request_builder.rb index eef76fd8da..1279c17626 100644 --- a/lib/drives/item/items/item/workbook/functions/odd_l_yield/odd_l_yield_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/odd_l_yield/odd_l_yield_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a odd_l_yield_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OddLYieldRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/or_escaped/or_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/or_escaped/or_post_request_body.rb index bd04068449..39ae7500be 100644 --- a/lib/drives/item/items/item/workbook/functions/or_escaped/or_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/or_escaped/or_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class OrPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new orPostRequestBody and sets the default values. + ## Instantiates a new OrPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/or_escaped/or_request_builder.rb b/lib/drives/item/items/item/workbook/functions/or_escaped/or_request_builder.rb index dab3136ade..b156b2ac8c 100644 --- a/lib/drives/item/items/item/workbook/functions/or_escaped/or_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/or_escaped/or_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a or_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OrRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/pduration/pduration_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/pduration/pduration_post_request_body.rb index 848b89eb5a..7280128c6e 100644 --- a/lib/drives/item/items/item/workbook/functions/pduration/pduration_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/pduration/pduration_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class PdurationPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The fv property - @fv - ## - # The pv property - @pv - ## - # The rate property - @rate - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new pdurationPostRequestBody and sets the default values. + ## Instantiates a new PdurationPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,71 +53,20 @@ def self.create_from_discriminator_value(parse_node) return PdurationPostRequestBody.new end ## - ## Gets the fv property value. The fv property - ## @return a json - ## - def fv - return @fv - end - ## - ## Sets the fv property value. The fv property - ## @param value Value to set for the fv property. - ## @return a void - ## - def fv=(value) - @fv = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "fv" => lambda {|n| @fv = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "pv" => lambda {|n| @pv = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the pv property value. The pv property - ## @return a json - ## - def pv - return @pv - end - ## - ## Sets the pv property value. The pv property - ## @param value Value to set for the pv property. - ## @return a void - ## - def pv=(value) - @pv = value - end - ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("fv", @fv) - writer.write_object_value("pv", @pv) - writer.write_object_value("rate", @rate) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/pduration/pduration_request_builder.rb b/lib/drives/item/items/item/workbook/functions/pduration/pduration_request_builder.rb index e853c632b9..166dc2ec32 100644 --- a/lib/drives/item/items/item/workbook/functions/pduration/pduration_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/pduration/pduration_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a pduration_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PdurationRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/percent_rank_exc/percent_rank_exc_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/percent_rank_exc/percent_rank_exc_post_request_body.rb index 75288665f3..7a7cb8ac8a 100644 --- a/lib/drives/item/items/item/workbook/functions/percent_rank_exc/percent_rank_exc_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/percent_rank_exc/percent_rank_exc_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,45 +22,21 @@ class PercentRankExcPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The array property - @array - ## - # The significance property - @significance - ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the array property value. The array property - ## @return a json - ## - def array - return @array - end - ## - ## Sets the array property value. The array property - ## @param value Value to set for the array property. - ## @return a void - ## - def array=(value) - @array = value - end - ## ## Instantiates a new PercentRankExcPostRequestBody and sets the default values. ## @return a void ## @@ -83,9 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "array" => lambda {|n| @array = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "significance" => lambda {|n| @significance = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -95,41 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("array", @array) - writer.write_object_value("significance", @significance) - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the significance property value. The significance property - ## @return a json - ## - def significance - return @significance - end - ## - ## Sets the significance property value. The significance property - ## @param value Value to set for the significance property. - ## @return a void - ## - def significance=(value) - @significance = value - end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/percent_rank_exc/percent_rank_exc_request_builder.rb b/lib/drives/item/items/item/workbook/functions/percent_rank_exc/percent_rank_exc_request_builder.rb index 8711e79345..a2832125a9 100644 --- a/lib/drives/item/items/item/workbook/functions/percent_rank_exc/percent_rank_exc_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/percent_rank_exc/percent_rank_exc_request_builder.rb @@ -23,7 +23,7 @@ module PercentRank_Exc class PercentRankExcRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new PercentRank_ExcRequestBuilder and sets the default values. + ## Instantiates a new PercentRankExcRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a percent_rank_exc_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PercentRankExcRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/percent_rank_inc/percent_rank_inc_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/percent_rank_inc/percent_rank_inc_post_request_body.rb index 5849195e41..c6ba7496bc 100644 --- a/lib/drives/item/items/item/workbook/functions/percent_rank_inc/percent_rank_inc_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/percent_rank_inc/percent_rank_inc_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,45 +22,21 @@ class PercentRankIncPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The array property - @array - ## - # The significance property - @significance - ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the array property value. The array property - ## @return a json - ## - def array - return @array - end - ## - ## Sets the array property value. The array property - ## @param value Value to set for the array property. - ## @return a void - ## - def array=(value) - @array = value - end - ## ## Instantiates a new PercentRankIncPostRequestBody and sets the default values. ## @return a void ## @@ -83,9 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "array" => lambda {|n| @array = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "significance" => lambda {|n| @significance = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -95,41 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("array", @array) - writer.write_object_value("significance", @significance) - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the significance property value. The significance property - ## @return a json - ## - def significance - return @significance - end - ## - ## Sets the significance property value. The significance property - ## @param value Value to set for the significance property. - ## @return a void - ## - def significance=(value) - @significance = value - end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/percent_rank_inc/percent_rank_inc_request_builder.rb b/lib/drives/item/items/item/workbook/functions/percent_rank_inc/percent_rank_inc_request_builder.rb index cc6dbc3890..eb58d97a11 100644 --- a/lib/drives/item/items/item/workbook/functions/percent_rank_inc/percent_rank_inc_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/percent_rank_inc/percent_rank_inc_request_builder.rb @@ -23,7 +23,7 @@ module PercentRank_Inc class PercentRankIncRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new PercentRank_IncRequestBuilder and sets the default values. + ## Instantiates a new PercentRankIncRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a percent_rank_inc_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PercentRankIncRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/percentile_exc/percentile_exc_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/percentile_exc/percentile_exc_post_request_body.rb index 621f7fd2c3..67a3f70a2f 100644 --- a/lib/drives/item/items/item/workbook/functions/percentile_exc/percentile_exc_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/percentile_exc/percentile_exc_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,42 +22,21 @@ class PercentileExcPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The array property - @array - ## - # The k property - @k - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the array property value. The array property - ## @return a json - ## - def array - return @array - end - ## - ## Sets the array property value. The array property - ## @param value Value to set for the array property. - ## @return a void - ## - def array=(value) - @array = value - end - ## ## Instantiates a new PercentileExcPostRequestBody and sets the default values. ## @return a void ## @@ -80,34 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "array" => lambda {|n| @array = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "k" => lambda {|n| @k = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the k property value. The k property - ## @return a json - ## - def k - return @k - end - ## - ## Sets the k property value. The k property - ## @param value Value to set for the k property. - ## @return a void - ## - def k=(value) - @k = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("array", @array) - writer.write_object_value("k", @k) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/percentile_exc/percentile_exc_request_builder.rb b/lib/drives/item/items/item/workbook/functions/percentile_exc/percentile_exc_request_builder.rb index 3db31375c5..e5f331534b 100644 --- a/lib/drives/item/items/item/workbook/functions/percentile_exc/percentile_exc_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/percentile_exc/percentile_exc_request_builder.rb @@ -23,7 +23,7 @@ module Percentile_Exc class PercentileExcRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Percentile_ExcRequestBuilder and sets the default values. + ## Instantiates a new PercentileExcRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a percentile_exc_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PercentileExcRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/percentile_inc/percentile_inc_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/percentile_inc/percentile_inc_post_request_body.rb index 3bb7ac360c..631401f431 100644 --- a/lib/drives/item/items/item/workbook/functions/percentile_inc/percentile_inc_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/percentile_inc/percentile_inc_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,42 +22,21 @@ class PercentileIncPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The array property - @array - ## - # The k property - @k - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the array property value. The array property - ## @return a json - ## - def array - return @array - end - ## - ## Sets the array property value. The array property - ## @param value Value to set for the array property. - ## @return a void - ## - def array=(value) - @array = value - end - ## ## Instantiates a new PercentileIncPostRequestBody and sets the default values. ## @return a void ## @@ -80,34 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "array" => lambda {|n| @array = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "k" => lambda {|n| @k = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the k property value. The k property - ## @return a json - ## - def k - return @k - end - ## - ## Sets the k property value. The k property - ## @param value Value to set for the k property. - ## @return a void - ## - def k=(value) - @k = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("array", @array) - writer.write_object_value("k", @k) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/percentile_inc/percentile_inc_request_builder.rb b/lib/drives/item/items/item/workbook/functions/percentile_inc/percentile_inc_request_builder.rb index c7a8f5685e..895c8bcca9 100644 --- a/lib/drives/item/items/item/workbook/functions/percentile_inc/percentile_inc_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/percentile_inc/percentile_inc_request_builder.rb @@ -23,7 +23,7 @@ module Percentile_Inc class PercentileIncRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Percentile_IncRequestBuilder and sets the default values. + ## Instantiates a new PercentileIncRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a percentile_inc_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PercentileIncRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/permut/permut_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/permut/permut_post_request_body.rb index 5bfb817494..88f99dc230 100644 --- a/lib/drives/item/items/item/workbook/functions/permut/permut_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/permut/permut_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class PermutPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The numberChosen property - @number_chosen - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new permutPostRequestBody and sets the default values. + ## Instantiates a new PermutPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "numberChosen" => lambda {|n| @number_chosen = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## - ## Gets the numberChosen property value. The numberChosen property - ## @return a json - ## - def number_chosen - return @number_chosen - end - ## - ## Sets the numberChosen property value. The numberChosen property - ## @param value Value to set for the numberChosen property. - ## @return a void - ## - def number_chosen=(value) - @number_chosen = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("numberChosen", @number_chosen) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/permut/permut_request_builder.rb b/lib/drives/item/items/item/workbook/functions/permut/permut_request_builder.rb index 690ea0c813..f784a81c4d 100644 --- a/lib/drives/item/items/item/workbook/functions/permut/permut_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/permut/permut_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a permut_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PermutRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/permutationa/permutationa_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/permutationa/permutationa_post_request_body.rb index 5215974415..f6e785eb6c 100644 --- a/lib/drives/item/items/item/workbook/functions/permutationa/permutationa_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/permutationa/permutationa_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class PermutationaPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The numberChosen property - @number_chosen - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new permutationaPostRequestBody and sets the default values. + ## Instantiates a new PermutationaPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "numberChosen" => lambda {|n| @number_chosen = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## - ## Gets the numberChosen property value. The numberChosen property - ## @return a json - ## - def number_chosen - return @number_chosen - end - ## - ## Sets the numberChosen property value. The numberChosen property - ## @param value Value to set for the numberChosen property. - ## @return a void - ## - def number_chosen=(value) - @number_chosen = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("numberChosen", @number_chosen) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/permutationa/permutationa_request_builder.rb b/lib/drives/item/items/item/workbook/functions/permutationa/permutationa_request_builder.rb index d63466d4f5..0749cfc7e7 100644 --- a/lib/drives/item/items/item/workbook/functions/permutationa/permutationa_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/permutationa/permutationa_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a permutationa_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PermutationaRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/phi/phi_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/phi/phi_post_request_body.rb index e03fb4341f..f94292b138 100644 --- a/lib/drives/item/items/item/workbook/functions/phi/phi_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/phi/phi_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class PhiPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new phiPostRequestBody and sets the default values. + ## Instantiates a new PhiPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/phi/phi_request_builder.rb b/lib/drives/item/items/item/workbook/functions/phi/phi_request_builder.rb index 6417fc4d1d..1399b36fb5 100644 --- a/lib/drives/item/items/item/workbook/functions/phi/phi_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/phi/phi_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a phi_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PhiRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/pi/pi_request_builder.rb b/lib/drives/item/items/item/workbook/functions/pi/pi_request_builder.rb index cc26de0d76..1e41c36a1e 100644 --- a/lib/drives/item/items/item/workbook/functions/pi/pi_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/pi/pi_request_builder.rb @@ -41,8 +41,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,16 +51,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a pi_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PiRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/pmt/pmt_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/pmt/pmt_post_request_body.rb index 16e7f190be..6bdf3502b9 100644 --- a/lib/drives/item/items/item/workbook/functions/pmt/pmt_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/pmt/pmt_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,37 +22,22 @@ class PmtPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The fv property - @fv - ## - # The nper property - @nper - ## - # The pv property - @pv - ## - # The rate property - @rate - ## - # The type property - @type - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new pmtPostRequestBody and sets the default values. + ## Instantiates a new PmtPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -69,107 +53,22 @@ def self.create_from_discriminator_value(parse_node) return PmtPostRequestBody.new end ## - ## Gets the fv property value. The fv property - ## @return a json - ## - def fv - return @fv - end - ## - ## Sets the fv property value. The fv property - ## @param value Value to set for the fv property. - ## @return a void - ## - def fv=(value) - @fv = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "fv" => lambda {|n| @fv = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "nper" => lambda {|n| @nper = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "pv" => lambda {|n| @pv = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "type" => lambda {|n| @type = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the nper property value. The nper property - ## @return a json - ## - def nper - return @nper - end - ## - ## Sets the nper property value. The nper property - ## @param value Value to set for the nper property. - ## @return a void - ## - def nper=(value) - @nper = value - end - ## - ## Gets the pv property value. The pv property - ## @return a json - ## - def pv - return @pv - end - ## - ## Sets the pv property value. The pv property - ## @param value Value to set for the pv property. - ## @return a void - ## - def pv=(value) - @pv = value - end - ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("fv", @fv) - writer.write_object_value("nper", @nper) - writer.write_object_value("pv", @pv) - writer.write_object_value("rate", @rate) - writer.write_object_value("type", @type) writer.write_additional_data(@additional_data) end - ## - ## Gets the type property value. The type property - ## @return a json - ## - def type - return @type - end - ## - ## Sets the type property value. The type property - ## @param value Value to set for the type property. - ## @return a void - ## - def type=(value) - @type = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/pmt/pmt_request_builder.rb b/lib/drives/item/items/item/workbook/functions/pmt/pmt_request_builder.rb index 532cf771b9..2e29995a29 100644 --- a/lib/drives/item/items/item/workbook/functions/pmt/pmt_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/pmt/pmt_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a pmt_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PmtRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/poisson_dist/poisson_dist_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/poisson_dist/poisson_dist_post_request_body.rb index f38858aa39..610770779b 100644 --- a/lib/drives/item/items/item/workbook/functions/poisson_dist/poisson_dist_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/poisson_dist/poisson_dist_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,24 +22,15 @@ class PoissonDistPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The cumulative property - @cumulative - ## - # The mean property - @mean - ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -63,73 +53,22 @@ def self.create_from_discriminator_value(parse_node) return PoissonDistPostRequestBody.new end ## - ## Gets the cumulative property value. The cumulative property - ## @return a json - ## - def cumulative - return @cumulative - end - ## - ## Sets the cumulative property value. The cumulative property - ## @param value Value to set for the cumulative property. - ## @return a void - ## - def cumulative=(value) - @cumulative = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "cumulative" => lambda {|n| @cumulative = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "mean" => lambda {|n| @mean = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the mean property value. The mean property - ## @return a json - ## - def mean - return @mean - end - ## - ## Sets the mean property value. The mean property - ## @param value Value to set for the mean property. - ## @return a void - ## - def mean=(value) - @mean = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("cumulative", @cumulative) - writer.write_object_value("mean", @mean) - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/poisson_dist/poisson_dist_request_builder.rb b/lib/drives/item/items/item/workbook/functions/poisson_dist/poisson_dist_request_builder.rb index 211849a496..fc2df250b8 100644 --- a/lib/drives/item/items/item/workbook/functions/poisson_dist/poisson_dist_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/poisson_dist/poisson_dist_request_builder.rb @@ -23,7 +23,7 @@ module Poisson_Dist class PoissonDistRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Poisson_DistRequestBuilder and sets the default values. + ## Instantiates a new PoissonDistRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a poisson_dist_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PoissonDistRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/power/power_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/power/power_post_request_body.rb index fa2c99f16c..7b23f9d99f 100644 --- a/lib/drives/item/items/item/workbook/functions/power/power_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/power/power_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class PowerPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The power property - @power - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new powerPostRequestBody and sets the default values. + ## Instantiates a new PowerPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "power" => lambda {|n| @power = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## - ## Gets the power property value. The power property - ## @return a json - ## - def power - return @power - end - ## - ## Sets the power property value. The power property - ## @param value Value to set for the power property. - ## @return a void - ## - def power=(value) - @power = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("power", @power) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/power/power_request_builder.rb b/lib/drives/item/items/item/workbook/functions/power/power_request_builder.rb index 0f18e1f457..9cb94d9722 100644 --- a/lib/drives/item/items/item/workbook/functions/power/power_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/power/power_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a power_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PowerRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/ppmt/ppmt_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/ppmt/ppmt_post_request_body.rb index 573a5509fc..6f79007f96 100644 --- a/lib/drives/item/items/item/workbook/functions/ppmt/ppmt_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/ppmt/ppmt_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,40 +22,22 @@ class PpmtPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The fv property - @fv - ## - # The nper property - @nper - ## - # The per property - @per - ## - # The pv property - @pv - ## - # The rate property - @rate - ## - # The type property - @type - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new ppmtPostRequestBody and sets the default values. + ## Instantiates a new PpmtPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -72,124 +53,22 @@ def self.create_from_discriminator_value(parse_node) return PpmtPostRequestBody.new end ## - ## Gets the fv property value. The fv property - ## @return a json - ## - def fv - return @fv - end - ## - ## Sets the fv property value. The fv property - ## @param value Value to set for the fv property. - ## @return a void - ## - def fv=(value) - @fv = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "fv" => lambda {|n| @fv = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "nper" => lambda {|n| @nper = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "per" => lambda {|n| @per = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "pv" => lambda {|n| @pv = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "type" => lambda {|n| @type = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the nper property value. The nper property - ## @return a json - ## - def nper - return @nper - end - ## - ## Sets the nper property value. The nper property - ## @param value Value to set for the nper property. - ## @return a void - ## - def nper=(value) - @nper = value - end - ## - ## Gets the per property value. The per property - ## @return a json - ## - def per - return @per - end - ## - ## Sets the per property value. The per property - ## @param value Value to set for the per property. - ## @return a void - ## - def per=(value) - @per = value - end - ## - ## Gets the pv property value. The pv property - ## @return a json - ## - def pv - return @pv - end - ## - ## Sets the pv property value. The pv property - ## @param value Value to set for the pv property. - ## @return a void - ## - def pv=(value) - @pv = value - end - ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("fv", @fv) - writer.write_object_value("nper", @nper) - writer.write_object_value("per", @per) - writer.write_object_value("pv", @pv) - writer.write_object_value("rate", @rate) - writer.write_object_value("type", @type) writer.write_additional_data(@additional_data) end - ## - ## Gets the type property value. The type property - ## @return a json - ## - def type - return @type - end - ## - ## Sets the type property value. The type property - ## @param value Value to set for the type property. - ## @return a void - ## - def type=(value) - @type = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/ppmt/ppmt_request_builder.rb b/lib/drives/item/items/item/workbook/functions/ppmt/ppmt_request_builder.rb index dfbaa971fe..207aa676d1 100644 --- a/lib/drives/item/items/item/workbook/functions/ppmt/ppmt_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/ppmt/ppmt_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ppmt_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PpmtRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/price/price_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/price/price_post_request_body.rb index 94781e0205..6ad66236ee 100644 --- a/lib/drives/item/items/item/workbook/functions/price/price_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/price/price_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,58 +22,22 @@ class PricePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The frequency property - @frequency - ## - # The maturity property - @maturity - ## - # The rate property - @rate - ## - # The redemption property - @redemption - ## - # The settlement property - @settlement - ## - # The yld property - @yld - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new pricePostRequestBody and sets the default values. + ## Instantiates a new PricePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -90,126 +53,22 @@ def self.create_from_discriminator_value(parse_node) return PricePostRequestBody.new end ## - ## Gets the frequency property value. The frequency property - ## @return a json - ## - def frequency - return @frequency - end - ## - ## Sets the frequency property value. The frequency property - ## @param value Value to set for the frequency property. - ## @return a void - ## - def frequency=(value) - @frequency = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "frequency" => lambda {|n| @frequency = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "redemption" => lambda {|n| @redemption = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "yld" => lambda {|n| @yld = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## - ## Gets the redemption property value. The redemption property - ## @return a json - ## - def redemption - return @redemption - end - ## - ## Sets the redemption property value. The redemption property - ## @param value Value to set for the redemption property. - ## @return a void - ## - def redemption=(value) - @redemption = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("frequency", @frequency) - writer.write_object_value("maturity", @maturity) - writer.write_object_value("rate", @rate) - writer.write_object_value("redemption", @redemption) - writer.write_object_value("settlement", @settlement) - writer.write_object_value("yld", @yld) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end - ## - ## Gets the yld property value. The yld property - ## @return a json - ## - def yld - return @yld - end - ## - ## Sets the yld property value. The yld property - ## @param value Value to set for the yld property. - ## @return a void - ## - def yld=(value) - @yld = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/price/price_request_builder.rb b/lib/drives/item/items/item/workbook/functions/price/price_request_builder.rb index b1fbdceda1..78973dc708 100644 --- a/lib/drives/item/items/item/workbook/functions/price/price_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/price/price_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a price_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PriceRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/price_disc/price_disc_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/price_disc/price_disc_post_request_body.rb index 0f2e9cad7b..506b4093d4 100644 --- a/lib/drives/item/items/item/workbook/functions/price_disc/price_disc_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/price_disc/price_disc_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,52 +22,22 @@ class PriceDiscPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The discount property - @discount - ## - # The maturity property - @maturity - ## - # The redemption property - @redemption - ## - # The settlement property - @settlement - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new priceDiscPostRequestBody and sets the default values. + ## Instantiates a new PriceDiscPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -84,92 +53,22 @@ def self.create_from_discriminator_value(parse_node) return PriceDiscPostRequestBody.new end ## - ## Gets the discount property value. The discount property - ## @return a json - ## - def discount - return @discount - end - ## - ## Sets the discount property value. The discount property - ## @param value Value to set for the discount property. - ## @return a void - ## - def discount=(value) - @discount = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "discount" => lambda {|n| @discount = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "redemption" => lambda {|n| @redemption = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## - ## Gets the redemption property value. The redemption property - ## @return a json - ## - def redemption - return @redemption - end - ## - ## Sets the redemption property value. The redemption property - ## @param value Value to set for the redemption property. - ## @return a void - ## - def redemption=(value) - @redemption = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("discount", @discount) - writer.write_object_value("maturity", @maturity) - writer.write_object_value("redemption", @redemption) - writer.write_object_value("settlement", @settlement) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/price_disc/price_disc_request_builder.rb b/lib/drives/item/items/item/workbook/functions/price_disc/price_disc_request_builder.rb index 23693b7851..0ee0e28eee 100644 --- a/lib/drives/item/items/item/workbook/functions/price_disc/price_disc_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/price_disc/price_disc_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a price_disc_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PriceDiscRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/price_mat/price_mat_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/price_mat/price_mat_post_request_body.rb index 3bb0c8b2e7..3f134168fd 100644 --- a/lib/drives/item/items/item/workbook/functions/price_mat/price_mat_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/price_mat/price_mat_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,55 +22,22 @@ class PriceMatPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The issue property - @issue - ## - # The maturity property - @maturity - ## - # The rate property - @rate - ## - # The settlement property - @settlement - ## - # The yld property - @yld - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new priceMatPostRequestBody and sets the default values. + ## Instantiates a new PriceMatPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -92,104 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "issue" => lambda {|n| @issue = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "yld" => lambda {|n| @yld = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the issue property value. The issue property - ## @return a json - ## - def issue - return @issue - end - ## - ## Sets the issue property value. The issue property - ## @param value Value to set for the issue property. - ## @return a void - ## - def issue=(value) - @issue = value - end - ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("issue", @issue) - writer.write_object_value("maturity", @maturity) - writer.write_object_value("rate", @rate) - writer.write_object_value("settlement", @settlement) - writer.write_object_value("yld", @yld) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end - ## - ## Gets the yld property value. The yld property - ## @return a json - ## - def yld - return @yld - end - ## - ## Sets the yld property value. The yld property - ## @param value Value to set for the yld property. - ## @return a void - ## - def yld=(value) - @yld = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/price_mat/price_mat_request_builder.rb b/lib/drives/item/items/item/workbook/functions/price_mat/price_mat_request_builder.rb index 583c418af5..d468b0bce9 100644 --- a/lib/drives/item/items/item/workbook/functions/price_mat/price_mat_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/price_mat/price_mat_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a price_mat_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PriceMatRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/product/product_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/product/product_post_request_body.rb index 1d014a2404..52a166c58e 100644 --- a/lib/drives/item/items/item/workbook/functions/product/product_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/product/product_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ProductPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new productPostRequestBody and sets the default values. + ## Instantiates a new ProductPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/product/product_request_builder.rb b/lib/drives/item/items/item/workbook/functions/product/product_request_builder.rb index 6fd6c014d8..088fe2784e 100644 --- a/lib/drives/item/items/item/workbook/functions/product/product_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/product/product_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a product_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ProductRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/proper/proper_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/proper/proper_post_request_body.rb index b55b31ec05..ef6260abf5 100644 --- a/lib/drives/item/items/item/workbook/functions/proper/proper_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/proper/proper_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ProperPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The text property - @text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new properPostRequestBody and sets the default values. + ## Instantiates a new ProperPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "text" => lambda {|n| @text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("text", @text) writer.write_additional_data(@additional_data) end - ## - ## Gets the text property value. The text property - ## @return a json - ## - def text - return @text - end - ## - ## Sets the text property value. The text property - ## @param value Value to set for the text property. - ## @return a void - ## - def text=(value) - @text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/proper/proper_request_builder.rb b/lib/drives/item/items/item/workbook/functions/proper/proper_request_builder.rb index 60b536d40e..3a83941900 100644 --- a/lib/drives/item/items/item/workbook/functions/proper/proper_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/proper/proper_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a proper_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ProperRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/pv/pv_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/pv/pv_post_request_body.rb index 850a787a9f..7044e8558c 100644 --- a/lib/drives/item/items/item/workbook/functions/pv/pv_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/pv/pv_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,37 +22,22 @@ class PvPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The fv property - @fv - ## - # The nper property - @nper - ## - # The pmt property - @pmt - ## - # The rate property - @rate - ## - # The type property - @type - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new pvPostRequestBody and sets the default values. + ## Instantiates a new PvPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -69,107 +53,22 @@ def self.create_from_discriminator_value(parse_node) return PvPostRequestBody.new end ## - ## Gets the fv property value. The fv property - ## @return a json - ## - def fv - return @fv - end - ## - ## Sets the fv property value. The fv property - ## @param value Value to set for the fv property. - ## @return a void - ## - def fv=(value) - @fv = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "fv" => lambda {|n| @fv = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "nper" => lambda {|n| @nper = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "pmt" => lambda {|n| @pmt = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "type" => lambda {|n| @type = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the nper property value. The nper property - ## @return a json - ## - def nper - return @nper - end - ## - ## Sets the nper property value. The nper property - ## @param value Value to set for the nper property. - ## @return a void - ## - def nper=(value) - @nper = value - end - ## - ## Gets the pmt property value. The pmt property - ## @return a json - ## - def pmt - return @pmt - end - ## - ## Sets the pmt property value. The pmt property - ## @param value Value to set for the pmt property. - ## @return a void - ## - def pmt=(value) - @pmt = value - end - ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("fv", @fv) - writer.write_object_value("nper", @nper) - writer.write_object_value("pmt", @pmt) - writer.write_object_value("rate", @rate) - writer.write_object_value("type", @type) writer.write_additional_data(@additional_data) end - ## - ## Gets the type property value. The type property - ## @return a json - ## - def type - return @type - end - ## - ## Sets the type property value. The type property - ## @param value Value to set for the type property. - ## @return a void - ## - def type=(value) - @type = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/pv/pv_request_builder.rb b/lib/drives/item/items/item/workbook/functions/pv/pv_request_builder.rb index 9a45a024d7..5c3e03c2a9 100644 --- a/lib/drives/item/items/item/workbook/functions/pv/pv_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/pv/pv_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a pv_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PvRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/quartile_exc/quartile_exc_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/quartile_exc/quartile_exc_post_request_body.rb index 0b8dd5604e..40675b8b15 100644 --- a/lib/drives/item/items/item/workbook/functions/quartile_exc/quartile_exc_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/quartile_exc/quartile_exc_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,42 +22,21 @@ class QuartileExcPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The array property - @array - ## - # The quart property - @quart - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the array property value. The array property - ## @return a json - ## - def array - return @array - end - ## - ## Sets the array property value. The array property - ## @param value Value to set for the array property. - ## @return a void - ## - def array=(value) - @array = value - end - ## ## Instantiates a new QuartileExcPostRequestBody and sets the default values. ## @return a void ## @@ -80,34 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "array" => lambda {|n| @array = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "quart" => lambda {|n| @quart = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the quart property value. The quart property - ## @return a json - ## - def quart - return @quart - end - ## - ## Sets the quart property value. The quart property - ## @param value Value to set for the quart property. - ## @return a void - ## - def quart=(value) - @quart = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("array", @array) - writer.write_object_value("quart", @quart) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/quartile_exc/quartile_exc_request_builder.rb b/lib/drives/item/items/item/workbook/functions/quartile_exc/quartile_exc_request_builder.rb index 94d77dbe53..36c9ad4cf7 100644 --- a/lib/drives/item/items/item/workbook/functions/quartile_exc/quartile_exc_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/quartile_exc/quartile_exc_request_builder.rb @@ -23,7 +23,7 @@ module Quartile_Exc class QuartileExcRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Quartile_ExcRequestBuilder and sets the default values. + ## Instantiates a new QuartileExcRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a quartile_exc_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return QuartileExcRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/quartile_inc/quartile_inc_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/quartile_inc/quartile_inc_post_request_body.rb index 9ad4bf648d..caf541c8ce 100644 --- a/lib/drives/item/items/item/workbook/functions/quartile_inc/quartile_inc_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/quartile_inc/quartile_inc_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,42 +22,21 @@ class QuartileIncPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The array property - @array - ## - # The quart property - @quart - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the array property value. The array property - ## @return a json - ## - def array - return @array - end - ## - ## Sets the array property value. The array property - ## @param value Value to set for the array property. - ## @return a void - ## - def array=(value) - @array = value - end - ## ## Instantiates a new QuartileIncPostRequestBody and sets the default values. ## @return a void ## @@ -80,34 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "array" => lambda {|n| @array = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "quart" => lambda {|n| @quart = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the quart property value. The quart property - ## @return a json - ## - def quart - return @quart - end - ## - ## Sets the quart property value. The quart property - ## @param value Value to set for the quart property. - ## @return a void - ## - def quart=(value) - @quart = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("array", @array) - writer.write_object_value("quart", @quart) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/quartile_inc/quartile_inc_request_builder.rb b/lib/drives/item/items/item/workbook/functions/quartile_inc/quartile_inc_request_builder.rb index 46a7fda408..7d809c8ea9 100644 --- a/lib/drives/item/items/item/workbook/functions/quartile_inc/quartile_inc_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/quartile_inc/quartile_inc_request_builder.rb @@ -23,7 +23,7 @@ module Quartile_Inc class QuartileIncRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Quartile_IncRequestBuilder and sets the default values. + ## Instantiates a new QuartileIncRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a quartile_inc_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return QuartileIncRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/quotient/quotient_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/quotient/quotient_post_request_body.rb index a8cb92be3f..91c144fb25 100644 --- a/lib/drives/item/items/item/workbook/functions/quotient/quotient_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/quotient/quotient_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class QuotientPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The denominator property - @denominator - ## - # The numerator property - @numerator - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new quotientPostRequestBody and sets the default values. + ## Instantiates a new QuotientPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -60,54 +53,20 @@ def self.create_from_discriminator_value(parse_node) return QuotientPostRequestBody.new end ## - ## Gets the denominator property value. The denominator property - ## @return a json - ## - def denominator - return @denominator - end - ## - ## Sets the denominator property value. The denominator property - ## @param value Value to set for the denominator property. - ## @return a void - ## - def denominator=(value) - @denominator = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "denominator" => lambda {|n| @denominator = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "numerator" => lambda {|n| @numerator = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the numerator property value. The numerator property - ## @return a json - ## - def numerator - return @numerator - end - ## - ## Sets the numerator property value. The numerator property - ## @param value Value to set for the numerator property. - ## @return a void - ## - def numerator=(value) - @numerator = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("denominator", @denominator) - writer.write_object_value("numerator", @numerator) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/quotient/quotient_request_builder.rb b/lib/drives/item/items/item/workbook/functions/quotient/quotient_request_builder.rb index 3dc30afdf3..5d2524c898 100644 --- a/lib/drives/item/items/item/workbook/functions/quotient/quotient_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/quotient/quotient_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a quotient_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return QuotientRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/radians/radians_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/radians/radians_post_request_body.rb index 7c66014ce8..3a37c26fb7 100644 --- a/lib/drives/item/items/item/workbook/functions/radians/radians_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/radians/radians_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,40 +22,22 @@ class RadiansPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The angle property - @angle - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the angle property value. The angle property - ## @return a json - ## - def angle - return @angle - end - ## - ## Sets the angle property value. The angle property - ## @param value Value to set for the angle property. - ## @return a void - ## - def angle=(value) - @angle = value - end - ## - ## Instantiates a new radiansPostRequestBody and sets the default values. + ## Instantiates a new RadiansPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -77,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "angle" => lambda {|n| @angle = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -87,7 +67,6 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("angle", @angle) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/radians/radians_request_builder.rb b/lib/drives/item/items/item/workbook/functions/radians/radians_request_builder.rb index 8f44058ef8..6c7dd30e6a 100644 --- a/lib/drives/item/items/item/workbook/functions/radians/radians_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/radians/radians_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a radians_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RadiansRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/rand/rand_request_builder.rb b/lib/drives/item/items/item/workbook/functions/rand/rand_request_builder.rb index ee177462b8..090c189678 100644 --- a/lib/drives/item/items/item/workbook/functions/rand/rand_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/rand/rand_request_builder.rb @@ -41,8 +41,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,16 +51,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rand_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RandRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/rand_between/rand_between_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/rand_between/rand_between_post_request_body.rb index b81e3853cb..1344111356 100644 --- a/lib/drives/item/items/item/workbook/functions/rand_between/rand_between_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/rand_between/rand_between_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,43 +22,22 @@ class RandBetweenPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The bottom property - @bottom - ## - # The top property - @top - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the bottom property value. The bottom property - ## @return a json - ## - def bottom - return @bottom - end - ## - ## Sets the bottom property value. The bottom property - ## @param value Value to set for the bottom property. - ## @return a void - ## - def bottom=(value) - @bottom = value - end - ## - ## Instantiates a new randBetweenPostRequestBody and sets the default values. + ## Instantiates a new RandBetweenPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -80,8 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "bottom" => lambda {|n| @bottom = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "top" => lambda {|n| @top = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -91,25 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("bottom", @bottom) - writer.write_object_value("top", @top) writer.write_additional_data(@additional_data) end - ## - ## Gets the top property value. The top property - ## @return a json - ## - def top - return @top - end - ## - ## Sets the top property value. The top property - ## @param value Value to set for the top property. - ## @return a void - ## - def top=(value) - @top = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/rand_between/rand_between_request_builder.rb b/lib/drives/item/items/item/workbook/functions/rand_between/rand_between_request_builder.rb index 88df994c51..1b2d5e0cb0 100644 --- a/lib/drives/item/items/item/workbook/functions/rand_between/rand_between_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/rand_between/rand_between_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rand_between_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RandBetweenRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/rank_avg/rank_avg_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/rank_avg/rank_avg_post_request_body.rb index 962d1140be..f154c259ce 100644 --- a/lib/drives/item/items/item/workbook/functions/rank_avg/rank_avg_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/rank_avg/rank_avg_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,24 +22,15 @@ class RankAvgPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The order property - @order - ## - # The ref property - @ref - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -68,66 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "order" => lambda {|n| @order = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "ref" => lambda {|n| @ref = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## - ## Gets the order property value. The order property - ## @return a json - ## - def order - return @order - end - ## - ## Sets the order property value. The order property - ## @param value Value to set for the order property. - ## @return a void - ## - def order=(value) - @order = value - end - ## - ## Gets the ref property value. The ref property - ## @return a json - ## - def ref - return @ref - end - ## - ## Sets the ref property value. The ref property - ## @param value Value to set for the ref property. - ## @return a void - ## - def ref=(value) - @ref = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("order", @order) - writer.write_object_value("ref", @ref) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/rank_avg/rank_avg_request_builder.rb b/lib/drives/item/items/item/workbook/functions/rank_avg/rank_avg_request_builder.rb index 642d9b9864..e3bce59558 100644 --- a/lib/drives/item/items/item/workbook/functions/rank_avg/rank_avg_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/rank_avg/rank_avg_request_builder.rb @@ -23,7 +23,7 @@ module Rank_Avg class RankAvgRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Rank_AvgRequestBuilder and sets the default values. + ## Instantiates a new RankAvgRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rank_avg_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RankAvgRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/rank_eq/rank_eq_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/rank_eq/rank_eq_post_request_body.rb index bd6f0bf979..646413b4b8 100644 --- a/lib/drives/item/items/item/workbook/functions/rank_eq/rank_eq_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/rank_eq/rank_eq_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,24 +22,15 @@ class RankEqPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - # The order property - @order - ## - # The ref property - @ref - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -68,66 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "order" => lambda {|n| @order = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "ref" => lambda {|n| @ref = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## - ## Gets the order property value. The order property - ## @return a json - ## - def order - return @order - end - ## - ## Sets the order property value. The order property - ## @param value Value to set for the order property. - ## @return a void - ## - def order=(value) - @order = value - end - ## - ## Gets the ref property value. The ref property - ## @return a json - ## - def ref - return @ref - end - ## - ## Sets the ref property value. The ref property - ## @param value Value to set for the ref property. - ## @return a void - ## - def ref=(value) - @ref = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) - writer.write_object_value("order", @order) - writer.write_object_value("ref", @ref) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/rank_eq/rank_eq_request_builder.rb b/lib/drives/item/items/item/workbook/functions/rank_eq/rank_eq_request_builder.rb index 571b50e5cc..4a351c6415 100644 --- a/lib/drives/item/items/item/workbook/functions/rank_eq/rank_eq_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/rank_eq/rank_eq_request_builder.rb @@ -23,7 +23,7 @@ module Rank_Eq class RankEqRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Rank_EqRequestBuilder and sets the default values. + ## Instantiates a new RankEqRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rank_eq_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RankEqRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/rate/rate_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/rate/rate_post_request_body.rb index ff45c47ec4..2f6e15d676 100644 --- a/lib/drives/item/items/item/workbook/functions/rate/rate_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/rate/rate_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,40 +22,22 @@ class RatePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The fv property - @fv - ## - # The guess property - @guess - ## - # The nper property - @nper - ## - # The pmt property - @pmt - ## - # The pv property - @pv - ## - # The type property - @type - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new ratePostRequestBody and sets the default values. + ## Instantiates a new RatePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -72,124 +53,22 @@ def self.create_from_discriminator_value(parse_node) return RatePostRequestBody.new end ## - ## Gets the fv property value. The fv property - ## @return a json - ## - def fv - return @fv - end - ## - ## Sets the fv property value. The fv property - ## @param value Value to set for the fv property. - ## @return a void - ## - def fv=(value) - @fv = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "fv" => lambda {|n| @fv = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "guess" => lambda {|n| @guess = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "nper" => lambda {|n| @nper = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "pmt" => lambda {|n| @pmt = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "pv" => lambda {|n| @pv = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "type" => lambda {|n| @type = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the guess property value. The guess property - ## @return a json - ## - def guess - return @guess - end - ## - ## Sets the guess property value. The guess property - ## @param value Value to set for the guess property. - ## @return a void - ## - def guess=(value) - @guess = value - end - ## - ## Gets the nper property value. The nper property - ## @return a json - ## - def nper - return @nper - end - ## - ## Sets the nper property value. The nper property - ## @param value Value to set for the nper property. - ## @return a void - ## - def nper=(value) - @nper = value - end - ## - ## Gets the pmt property value. The pmt property - ## @return a json - ## - def pmt - return @pmt - end - ## - ## Sets the pmt property value. The pmt property - ## @param value Value to set for the pmt property. - ## @return a void - ## - def pmt=(value) - @pmt = value - end - ## - ## Gets the pv property value. The pv property - ## @return a json - ## - def pv - return @pv - end - ## - ## Sets the pv property value. The pv property - ## @param value Value to set for the pv property. - ## @return a void - ## - def pv=(value) - @pv = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("fv", @fv) - writer.write_object_value("guess", @guess) - writer.write_object_value("nper", @nper) - writer.write_object_value("pmt", @pmt) - writer.write_object_value("pv", @pv) - writer.write_object_value("type", @type) writer.write_additional_data(@additional_data) end - ## - ## Gets the type property value. The type property - ## @return a json - ## - def type - return @type - end - ## - ## Sets the type property value. The type property - ## @param value Value to set for the type property. - ## @return a void - ## - def type=(value) - @type = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/rate/rate_request_builder.rb b/lib/drives/item/items/item/workbook/functions/rate/rate_request_builder.rb index 1cf6a386e8..9c0905c9ca 100644 --- a/lib/drives/item/items/item/workbook/functions/rate/rate_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/rate/rate_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rate_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RateRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/received/received_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/received/received_post_request_body.rb index e86f743c6d..5d2b023a2c 100644 --- a/lib/drives/item/items/item/workbook/functions/received/received_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/received/received_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,52 +22,22 @@ class ReceivedPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The discount property - @discount - ## - # The investment property - @investment - ## - # The maturity property - @maturity - ## - # The settlement property - @settlement - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new receivedPostRequestBody and sets the default values. + ## Instantiates a new ReceivedPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -84,92 +53,22 @@ def self.create_from_discriminator_value(parse_node) return ReceivedPostRequestBody.new end ## - ## Gets the discount property value. The discount property - ## @return a json - ## - def discount - return @discount - end - ## - ## Sets the discount property value. The discount property - ## @param value Value to set for the discount property. - ## @return a void - ## - def discount=(value) - @discount = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "discount" => lambda {|n| @discount = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "investment" => lambda {|n| @investment = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the investment property value. The investment property - ## @return a json - ## - def investment - return @investment - end - ## - ## Sets the investment property value. The investment property - ## @param value Value to set for the investment property. - ## @return a void - ## - def investment=(value) - @investment = value - end - ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("discount", @discount) - writer.write_object_value("investment", @investment) - writer.write_object_value("maturity", @maturity) - writer.write_object_value("settlement", @settlement) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/received/received_request_builder.rb b/lib/drives/item/items/item/workbook/functions/received/received_request_builder.rb index bd4bd3d393..3cf3091f1e 100644 --- a/lib/drives/item/items/item/workbook/functions/received/received_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/received/received_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a received_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReceivedRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/replace/replace_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/replace/replace_post_request_body.rb index 5bf2a76491..d17328bd10 100644 --- a/lib/drives/item/items/item/workbook/functions/replace/replace_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/replace/replace_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,34 +22,22 @@ class ReplacePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The newText property - @new_text - ## - # The numChars property - @num_chars - ## - # The oldText property - @old_text - ## - # The startNum property - @start_num - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new replacePostRequestBody and sets the default values. + ## Instantiates a new ReplacePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -71,85 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "newText" => lambda {|n| @new_text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "numChars" => lambda {|n| @num_chars = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "oldText" => lambda {|n| @old_text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "startNum" => lambda {|n| @start_num = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the newText property value. The newText property - ## @return a json - ## - def new_text - return @new_text - end - ## - ## Sets the newText property value. The newText property - ## @param value Value to set for the newText property. - ## @return a void - ## - def new_text=(value) - @new_text = value - end - ## - ## Gets the numChars property value. The numChars property - ## @return a json - ## - def num_chars - return @num_chars - end - ## - ## Sets the numChars property value. The numChars property - ## @param value Value to set for the numChars property. - ## @return a void - ## - def num_chars=(value) - @num_chars = value - end - ## - ## Gets the oldText property value. The oldText property - ## @return a json - ## - def old_text - return @old_text - end - ## - ## Sets the oldText property value. The oldText property - ## @param value Value to set for the oldText property. - ## @return a void - ## - def old_text=(value) - @old_text = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("newText", @new_text) - writer.write_object_value("numChars", @num_chars) - writer.write_object_value("oldText", @old_text) - writer.write_object_value("startNum", @start_num) writer.write_additional_data(@additional_data) end - ## - ## Gets the startNum property value. The startNum property - ## @return a json - ## - def start_num - return @start_num - end - ## - ## Sets the startNum property value. The startNum property - ## @param value Value to set for the startNum property. - ## @return a void - ## - def start_num=(value) - @start_num = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/replace/replace_request_builder.rb b/lib/drives/item/items/item/workbook/functions/replace/replace_request_builder.rb index eda49ec5a1..472835a33e 100644 --- a/lib/drives/item/items/item/workbook/functions/replace/replace_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/replace/replace_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a replace_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReplaceRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/replace_b/replace_b_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/replace_b/replace_b_post_request_body.rb index cecf1a64b2..8543bed094 100644 --- a/lib/drives/item/items/item/workbook/functions/replace_b/replace_b_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/replace_b/replace_b_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,34 +22,22 @@ class ReplaceBPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The newText property - @new_text - ## - # The numBytes property - @num_bytes - ## - # The oldText property - @old_text - ## - # The startNum property - @start_num - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new replaceBPostRequestBody and sets the default values. + ## Instantiates a new ReplaceBPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -71,85 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "newText" => lambda {|n| @new_text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "numBytes" => lambda {|n| @num_bytes = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "oldText" => lambda {|n| @old_text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "startNum" => lambda {|n| @start_num = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the newText property value. The newText property - ## @return a json - ## - def new_text - return @new_text - end - ## - ## Sets the newText property value. The newText property - ## @param value Value to set for the newText property. - ## @return a void - ## - def new_text=(value) - @new_text = value - end - ## - ## Gets the numBytes property value. The numBytes property - ## @return a json - ## - def num_bytes - return @num_bytes - end - ## - ## Sets the numBytes property value. The numBytes property - ## @param value Value to set for the numBytes property. - ## @return a void - ## - def num_bytes=(value) - @num_bytes = value - end - ## - ## Gets the oldText property value. The oldText property - ## @return a json - ## - def old_text - return @old_text - end - ## - ## Sets the oldText property value. The oldText property - ## @param value Value to set for the oldText property. - ## @return a void - ## - def old_text=(value) - @old_text = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("newText", @new_text) - writer.write_object_value("numBytes", @num_bytes) - writer.write_object_value("oldText", @old_text) - writer.write_object_value("startNum", @start_num) writer.write_additional_data(@additional_data) end - ## - ## Gets the startNum property value. The startNum property - ## @return a json - ## - def start_num - return @start_num - end - ## - ## Sets the startNum property value. The startNum property - ## @param value Value to set for the startNum property. - ## @return a void - ## - def start_num=(value) - @start_num = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/replace_b/replace_b_request_builder.rb b/lib/drives/item/items/item/workbook/functions/replace_b/replace_b_request_builder.rb index d1c3fec86c..93137905c9 100644 --- a/lib/drives/item/items/item/workbook/functions/replace_b/replace_b_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/replace_b/replace_b_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a replace_b_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReplaceBRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/rept/rept_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/rept/rept_post_request_body.rb index d5501ec8c6..765feac280 100644 --- a/lib/drives/item/items/item/workbook/functions/rept/rept_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/rept/rept_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class ReptPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The numberTimes property - @number_times - ## - # The text property - @text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new reptPostRequestBody and sets the default values. + ## Instantiates a new ReptPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,51 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "numberTimes" => lambda {|n| @number_times = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "text" => lambda {|n| @text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the numberTimes property value. The numberTimes property - ## @return a json - ## - def number_times - return @number_times - end - ## - ## Sets the numberTimes property value. The numberTimes property - ## @param value Value to set for the numberTimes property. - ## @return a void - ## - def number_times=(value) - @number_times = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("numberTimes", @number_times) - writer.write_object_value("text", @text) writer.write_additional_data(@additional_data) end - ## - ## Gets the text property value. The text property - ## @return a json - ## - def text - return @text - end - ## - ## Sets the text property value. The text property - ## @param value Value to set for the text property. - ## @return a void - ## - def text=(value) - @text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/rept/rept_request_builder.rb b/lib/drives/item/items/item/workbook/functions/rept/rept_request_builder.rb index 5bc453d41e..55c593dd86 100644 --- a/lib/drives/item/items/item/workbook/functions/rept/rept_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/rept/rept_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rept_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReptRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/right/right_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/right/right_post_request_body.rb index d04023366a..f7f1b60e58 100644 --- a/lib/drives/item/items/item/workbook/functions/right/right_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/right/right_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class RightPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The numChars property - @num_chars - ## - # The text property - @text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new rightPostRequestBody and sets the default values. + ## Instantiates a new RightPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,51 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "numChars" => lambda {|n| @num_chars = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "text" => lambda {|n| @text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the numChars property value. The numChars property - ## @return a json - ## - def num_chars - return @num_chars - end - ## - ## Sets the numChars property value. The numChars property - ## @param value Value to set for the numChars property. - ## @return a void - ## - def num_chars=(value) - @num_chars = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("numChars", @num_chars) - writer.write_object_value("text", @text) writer.write_additional_data(@additional_data) end - ## - ## Gets the text property value. The text property - ## @return a json - ## - def text - return @text - end - ## - ## Sets the text property value. The text property - ## @param value Value to set for the text property. - ## @return a void - ## - def text=(value) - @text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/right/right_request_builder.rb b/lib/drives/item/items/item/workbook/functions/right/right_request_builder.rb index 25c06404c5..c2dda8786d 100644 --- a/lib/drives/item/items/item/workbook/functions/right/right_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/right/right_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a right_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RightRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/rightb/rightb_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/rightb/rightb_post_request_body.rb index a5f9d85922..8b5525d2ff 100644 --- a/lib/drives/item/items/item/workbook/functions/rightb/rightb_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/rightb/rightb_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class RightbPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The numBytes property - @num_bytes - ## - # The text property - @text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new rightbPostRequestBody and sets the default values. + ## Instantiates a new RightbPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,51 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "numBytes" => lambda {|n| @num_bytes = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "text" => lambda {|n| @text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the numBytes property value. The numBytes property - ## @return a json - ## - def num_bytes - return @num_bytes - end - ## - ## Sets the numBytes property value. The numBytes property - ## @param value Value to set for the numBytes property. - ## @return a void - ## - def num_bytes=(value) - @num_bytes = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("numBytes", @num_bytes) - writer.write_object_value("text", @text) writer.write_additional_data(@additional_data) end - ## - ## Gets the text property value. The text property - ## @return a json - ## - def text - return @text - end - ## - ## Sets the text property value. The text property - ## @param value Value to set for the text property. - ## @return a void - ## - def text=(value) - @text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/rightb/rightb_request_builder.rb b/lib/drives/item/items/item/workbook/functions/rightb/rightb_request_builder.rb index d65215ef1e..37c8133716 100644 --- a/lib/drives/item/items/item/workbook/functions/rightb/rightb_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/rightb/rightb_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rightb_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RightbRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/roman/roman_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/roman/roman_post_request_body.rb index 033ba73f3b..ae112c850d 100644 --- a/lib/drives/item/items/item/workbook/functions/roman/roman_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/roman/roman_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class RomanPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The form property - @form - ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new romanPostRequestBody and sets the default values. + ## Instantiates a new RomanPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -60,54 +53,20 @@ def self.create_from_discriminator_value(parse_node) return RomanPostRequestBody.new end ## - ## Gets the form property value. The form property - ## @return a json - ## - def form - return @form - end - ## - ## Sets the form property value. The form property - ## @param value Value to set for the form property. - ## @return a void - ## - def form=(value) - @form = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "form" => lambda {|n| @form = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("form", @form) - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/roman/roman_request_builder.rb b/lib/drives/item/items/item/workbook/functions/roman/roman_request_builder.rb index ddf3f80135..b438490e7d 100644 --- a/lib/drives/item/items/item/workbook/functions/roman/roman_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/roman/roman_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a roman_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RomanRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/round/round_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/round/round_post_request_body.rb index 0924766a3d..bc8c66c8f4 100644 --- a/lib/drives/item/items/item/workbook/functions/round/round_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/round/round_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class RoundPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The numDigits property - @num_digits - ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new roundPostRequestBody and sets the default values. + ## Instantiates a new RoundPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "numDigits" => lambda {|n| @num_digits = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the numDigits property value. The numDigits property - ## @return a json - ## - def num_digits - return @num_digits - end - ## - ## Sets the numDigits property value. The numDigits property - ## @param value Value to set for the numDigits property. - ## @return a void - ## - def num_digits=(value) - @num_digits = value - end - ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("numDigits", @num_digits) - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/round/round_request_builder.rb b/lib/drives/item/items/item/workbook/functions/round/round_request_builder.rb index 25ef133ce5..c31b376ad2 100644 --- a/lib/drives/item/items/item/workbook/functions/round/round_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/round/round_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a round_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RoundRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/round_down/round_down_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/round_down/round_down_post_request_body.rb index 5bdbe49654..a2d769a001 100644 --- a/lib/drives/item/items/item/workbook/functions/round_down/round_down_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/round_down/round_down_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class RoundDownPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The numDigits property - @num_digits - ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new roundDownPostRequestBody and sets the default values. + ## Instantiates a new RoundDownPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "numDigits" => lambda {|n| @num_digits = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the numDigits property value. The numDigits property - ## @return a json - ## - def num_digits - return @num_digits - end - ## - ## Sets the numDigits property value. The numDigits property - ## @param value Value to set for the numDigits property. - ## @return a void - ## - def num_digits=(value) - @num_digits = value - end - ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("numDigits", @num_digits) - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/round_down/round_down_request_builder.rb b/lib/drives/item/items/item/workbook/functions/round_down/round_down_request_builder.rb index 18f582efee..d3d4cd5bc0 100644 --- a/lib/drives/item/items/item/workbook/functions/round_down/round_down_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/round_down/round_down_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a round_down_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RoundDownRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/round_up/round_up_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/round_up/round_up_post_request_body.rb index e8fefea536..53c482a45c 100644 --- a/lib/drives/item/items/item/workbook/functions/round_up/round_up_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/round_up/round_up_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class RoundUpPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The numDigits property - @num_digits - ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new roundUpPostRequestBody and sets the default values. + ## Instantiates a new RoundUpPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "numDigits" => lambda {|n| @num_digits = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the numDigits property value. The numDigits property - ## @return a json - ## - def num_digits - return @num_digits - end - ## - ## Sets the numDigits property value. The numDigits property - ## @param value Value to set for the numDigits property. - ## @return a void - ## - def num_digits=(value) - @num_digits = value - end - ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("numDigits", @num_digits) - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/round_up/round_up_request_builder.rb b/lib/drives/item/items/item/workbook/functions/round_up/round_up_request_builder.rb index a0945cc0c4..e8a5835758 100644 --- a/lib/drives/item/items/item/workbook/functions/round_up/round_up_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/round_up/round_up_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a round_up_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RoundUpRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/rows/rows_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/rows/rows_post_request_body.rb index aff5981657..577a76933e 100644 --- a/lib/drives/item/items/item/workbook/functions/rows/rows_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/rows/rows_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,40 +22,22 @@ class RowsPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The array property - @array - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the array property value. The array property - ## @return a json - ## - def array - return @array - end - ## - ## Sets the array property value. The array property - ## @param value Value to set for the array property. - ## @return a void - ## - def array=(value) - @array = value - end - ## - ## Instantiates a new rowsPostRequestBody and sets the default values. + ## Instantiates a new RowsPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -77,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "array" => lambda {|n| @array = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -87,7 +67,6 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("array", @array) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/rows/rows_request_builder.rb b/lib/drives/item/items/item/workbook/functions/rows/rows_request_builder.rb index 26426d9f5c..c52b173b2b 100644 --- a/lib/drives/item/items/item/workbook/functions/rows/rows_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/rows/rows_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/rri/rri_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/rri/rri_post_request_body.rb index e777010c7b..bfd37cb6a3 100644 --- a/lib/drives/item/items/item/workbook/functions/rri/rri_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/rri/rri_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class RriPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The fv property - @fv - ## - # The nper property - @nper - ## - # The pv property - @pv - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new rriPostRequestBody and sets the default values. + ## Instantiates a new RriPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,71 +53,20 @@ def self.create_from_discriminator_value(parse_node) return RriPostRequestBody.new end ## - ## Gets the fv property value. The fv property - ## @return a json - ## - def fv - return @fv - end - ## - ## Sets the fv property value. The fv property - ## @param value Value to set for the fv property. - ## @return a void - ## - def fv=(value) - @fv = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "fv" => lambda {|n| @fv = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "nper" => lambda {|n| @nper = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "pv" => lambda {|n| @pv = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the nper property value. The nper property - ## @return a json - ## - def nper - return @nper - end - ## - ## Sets the nper property value. The nper property - ## @param value Value to set for the nper property. - ## @return a void - ## - def nper=(value) - @nper = value - end - ## - ## Gets the pv property value. The pv property - ## @return a json - ## - def pv - return @pv - end - ## - ## Sets the pv property value. The pv property - ## @param value Value to set for the pv property. - ## @return a void - ## - def pv=(value) - @pv = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("fv", @fv) - writer.write_object_value("nper", @nper) - writer.write_object_value("pv", @pv) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/rri/rri_request_builder.rb b/lib/drives/item/items/item/workbook/functions/rri/rri_request_builder.rb index e774e7f0be..e377f411fe 100644 --- a/lib/drives/item/items/item/workbook/functions/rri/rri_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/rri/rri_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rri_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RriRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/sec/sec_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/sec/sec_post_request_body.rb index 1d92d483c8..e765b342d9 100644 --- a/lib/drives/item/items/item/workbook/functions/sec/sec_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/sec/sec_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class SecPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new secPostRequestBody and sets the default values. + ## Instantiates a new SecPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/sec/sec_request_builder.rb b/lib/drives/item/items/item/workbook/functions/sec/sec_request_builder.rb index fe6cb22f6b..4b6251eecd 100644 --- a/lib/drives/item/items/item/workbook/functions/sec/sec_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/sec/sec_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sec_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SecRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/sech/sech_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/sech/sech_post_request_body.rb index e68d272d75..97f1aad09e 100644 --- a/lib/drives/item/items/item/workbook/functions/sech/sech_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/sech/sech_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class SechPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new sechPostRequestBody and sets the default values. + ## Instantiates a new SechPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/sech/sech_request_builder.rb b/lib/drives/item/items/item/workbook/functions/sech/sech_request_builder.rb index 97ea5a6280..42e539ad63 100644 --- a/lib/drives/item/items/item/workbook/functions/sech/sech_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/sech/sech_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sech_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SechRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/second/second_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/second/second_post_request_body.rb index 6f88313971..69270125d4 100644 --- a/lib/drives/item/items/item/workbook/functions/second/second_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/second/second_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class SecondPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The serialNumber property - @serial_number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new secondPostRequestBody and sets the default values. + ## Instantiates a new SecondPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "serialNumber" => lambda {|n| @serial_number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the serialNumber property value. The serialNumber property - ## @return a json - ## - def serial_number - return @serial_number - end - ## - ## Sets the serialNumber property value. The serialNumber property - ## @param value Value to set for the serialNumber property. - ## @return a void - ## - def serial_number=(value) - @serial_number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("serialNumber", @serial_number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/second/second_request_builder.rb b/lib/drives/item/items/item/workbook/functions/second/second_request_builder.rb index ac39b2a634..fe16ac9437 100644 --- a/lib/drives/item/items/item/workbook/functions/second/second_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/second/second_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a second_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SecondRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/series_sum/series_sum_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/series_sum/series_sum_post_request_body.rb index a0653d8fc1..d92267321b 100644 --- a/lib/drives/item/items/item/workbook/functions/series_sum/series_sum_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/series_sum/series_sum_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,49 +22,22 @@ class SeriesSumPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The coefficients property - @coefficients - ## - # The m property - @m - ## - # The n property - @n - ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the coefficients property value. The coefficients property - ## @return a json - ## - def coefficients - return @coefficients - end - ## - ## Sets the coefficients property value. The coefficients property - ## @param value Value to set for the coefficients property. - ## @return a void - ## - def coefficients=(value) - @coefficients = value - end - ## - ## Instantiates a new seriesSumPostRequestBody and sets the default values. + ## Instantiates a new SeriesSumPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -86,70 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "coefficients" => lambda {|n| @coefficients = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "m" => lambda {|n| @m = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "n" => lambda {|n| @n = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the m property value. The m property - ## @return a json - ## - def m - return @m - end - ## - ## Sets the m property value. The m property - ## @param value Value to set for the m property. - ## @return a void - ## - def m=(value) - @m = value - end - ## - ## Gets the n property value. The n property - ## @return a json - ## - def n - return @n - end - ## - ## Sets the n property value. The n property - ## @param value Value to set for the n property. - ## @return a void - ## - def n=(value) - @n = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("coefficients", @coefficients) - writer.write_object_value("m", @m) - writer.write_object_value("n", @n) - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/series_sum/series_sum_request_builder.rb b/lib/drives/item/items/item/workbook/functions/series_sum/series_sum_request_builder.rb index e8f57756f5..decfc5ad61 100644 --- a/lib/drives/item/items/item/workbook/functions/series_sum/series_sum_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/series_sum/series_sum_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a series_sum_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SeriesSumRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/sheet/sheet_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/sheet/sheet_post_request_body.rb index 11aae33b61..d1d7c65086 100644 --- a/lib/drives/item/items/item/workbook/functions/sheet/sheet_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/sheet/sheet_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class SheetPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new sheetPostRequestBody and sets the default values. + ## Instantiates a new SheetPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "value" => lambda {|n| @value = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("value", @value) writer.write_additional_data(@additional_data) end - ## - ## Gets the value property value. The value property - ## @return a json - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/sheet/sheet_request_builder.rb b/lib/drives/item/items/item/workbook/functions/sheet/sheet_request_builder.rb index 92925102d5..41cb22138d 100644 --- a/lib/drives/item/items/item/workbook/functions/sheet/sheet_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/sheet/sheet_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SheetRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/sheets/sheets_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/sheets/sheets_post_request_body.rb index 714e679fd9..379d740881 100644 --- a/lib/drives/item/items/item/workbook/functions/sheets/sheets_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/sheets/sheets_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class SheetsPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The reference property - @reference - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new sheetsPostRequestBody and sets the default values. + ## Instantiates a new SheetsPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "reference" => lambda {|n| @reference = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the reference property value. The reference property - ## @return a json - ## - def reference - return @reference - end - ## - ## Sets the reference property value. The reference property - ## @param value Value to set for the reference property. - ## @return a void - ## - def reference=(value) - @reference = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("reference", @reference) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/sheets/sheets_request_builder.rb b/lib/drives/item/items/item/workbook/functions/sheets/sheets_request_builder.rb index 79342a3514..81e472bd18 100644 --- a/lib/drives/item/items/item/workbook/functions/sheets/sheets_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/sheets/sheets_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sheets_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SheetsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/sign/sign_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/sign/sign_post_request_body.rb index caaeefa2cb..eaa9d9392e 100644 --- a/lib/drives/item/items/item/workbook/functions/sign/sign_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/sign/sign_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class SignPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new signPostRequestBody and sets the default values. + ## Instantiates a new SignPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/sign/sign_request_builder.rb b/lib/drives/item/items/item/workbook/functions/sign/sign_request_builder.rb index e8a1f43473..d71d28735d 100644 --- a/lib/drives/item/items/item/workbook/functions/sign/sign_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/sign/sign_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sign_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SignRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/sin/sin_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/sin/sin_post_request_body.rb index 84b5224e28..30f2d80ee3 100644 --- a/lib/drives/item/items/item/workbook/functions/sin/sin_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/sin/sin_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class SinPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new sinPostRequestBody and sets the default values. + ## Instantiates a new SinPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/sin/sin_request_builder.rb b/lib/drives/item/items/item/workbook/functions/sin/sin_request_builder.rb index 7768d0e65a..fede757d6b 100644 --- a/lib/drives/item/items/item/workbook/functions/sin/sin_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/sin/sin_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sin_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SinRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/sinh/sinh_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/sinh/sinh_post_request_body.rb index 8dc4a13df6..0725251785 100644 --- a/lib/drives/item/items/item/workbook/functions/sinh/sinh_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/sinh/sinh_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class SinhPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new sinhPostRequestBody and sets the default values. + ## Instantiates a new SinhPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/sinh/sinh_request_builder.rb b/lib/drives/item/items/item/workbook/functions/sinh/sinh_request_builder.rb index eba9996efa..5b8fe038e1 100644 --- a/lib/drives/item/items/item/workbook/functions/sinh/sinh_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/sinh/sinh_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sinh_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SinhRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/skew/skew_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/skew/skew_post_request_body.rb index 60ebb41853..fc6ea73809 100644 --- a/lib/drives/item/items/item/workbook/functions/skew/skew_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/skew/skew_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class SkewPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new skewPostRequestBody and sets the default values. + ## Instantiates a new SkewPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/skew/skew_request_builder.rb b/lib/drives/item/items/item/workbook/functions/skew/skew_request_builder.rb index 867577e946..b3041456b2 100644 --- a/lib/drives/item/items/item/workbook/functions/skew/skew_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/skew/skew_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a skew_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SkewRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/skew_p/skew_p_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/skew_p/skew_p_post_request_body.rb index 40f9da289d..24fc985f01 100644 --- a/lib/drives/item/items/item/workbook/functions/skew_p/skew_p_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/skew_p/skew_p_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,18 +22,15 @@ class SkewPPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/skew_p/skew_p_request_builder.rb b/lib/drives/item/items/item/workbook/functions/skew_p/skew_p_request_builder.rb index ae94116585..79bdebbf6f 100644 --- a/lib/drives/item/items/item/workbook/functions/skew_p/skew_p_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/skew_p/skew_p_request_builder.rb @@ -23,7 +23,7 @@ module Skew_p class SkewPRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Skew_pRequestBuilder and sets the default values. + ## Instantiates a new SkewPRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a skew_p_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SkewPRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/sln/sln_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/sln/sln_post_request_body.rb index cba5decac2..38aebe0dcd 100644 --- a/lib/drives/item/items/item/workbook/functions/sln/sln_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/sln/sln_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,52 +22,28 @@ class SlnPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The cost property - @cost - ## - # The life property - @life - ## - # The salvage property - @salvage - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new slnPostRequestBody and sets the default values. + ## Instantiates a new SlnPostRequestBody and sets the default values. ## @return a void ## def initialize() @additional_data = Hash.new end ## - ## Gets the cost property value. The cost property - ## @return a json - ## - def cost - return @cost - end - ## - ## Sets the cost property value. The cost property - ## @param value Value to set for the cost property. - ## @return a void - ## - def cost=(value) - @cost = value - end - ## ## Creates a new instance of the appropriate class based on discriminator value ## @param parse_node The parse node to use to read the discriminator value and create the object ## @return a sln_post_request_body @@ -83,51 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "cost" => lambda {|n| @cost = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "life" => lambda {|n| @life = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "salvage" => lambda {|n| @salvage = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the life property value. The life property - ## @return a json - ## - def life - return @life - end - ## - ## Sets the life property value. The life property - ## @param value Value to set for the life property. - ## @return a void - ## - def life=(value) - @life = value - end - ## - ## Gets the salvage property value. The salvage property - ## @return a json - ## - def salvage - return @salvage - end - ## - ## Sets the salvage property value. The salvage property - ## @param value Value to set for the salvage property. - ## @return a void - ## - def salvage=(value) - @salvage = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("cost", @cost) - writer.write_object_value("life", @life) - writer.write_object_value("salvage", @salvage) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/sln/sln_request_builder.rb b/lib/drives/item/items/item/workbook/functions/sln/sln_request_builder.rb index 79d2caedad..09f36486e6 100644 --- a/lib/drives/item/items/item/workbook/functions/sln/sln_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/sln/sln_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sln_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SlnRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/small/small_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/small/small_post_request_body.rb index 2bafbe33c8..607ceeb0dc 100644 --- a/lib/drives/item/items/item/workbook/functions/small/small_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/small/small_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,43 +22,22 @@ class SmallPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The array property - @array - ## - # The k property - @k - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the array property value. The array property - ## @return a json - ## - def array - return @array - end - ## - ## Sets the array property value. The array property - ## @param value Value to set for the array property. - ## @return a void - ## - def array=(value) - @array = value - end - ## - ## Instantiates a new smallPostRequestBody and sets the default values. + ## Instantiates a new SmallPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -80,34 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "array" => lambda {|n| @array = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "k" => lambda {|n| @k = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the k property value. The k property - ## @return a json - ## - def k - return @k - end - ## - ## Sets the k property value. The k property - ## @param value Value to set for the k property. - ## @return a void - ## - def k=(value) - @k = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("array", @array) - writer.write_object_value("k", @k) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/small/small_request_builder.rb b/lib/drives/item/items/item/workbook/functions/small/small_request_builder.rb index 14db3049b3..54af2113d4 100644 --- a/lib/drives/item/items/item/workbook/functions/small/small_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/small/small_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a small_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SmallRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/sqrt/sqrt_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/sqrt/sqrt_post_request_body.rb index 20b5999700..8174a610c9 100644 --- a/lib/drives/item/items/item/workbook/functions/sqrt/sqrt_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/sqrt/sqrt_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class SqrtPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new sqrtPostRequestBody and sets the default values. + ## Instantiates a new SqrtPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/sqrt/sqrt_request_builder.rb b/lib/drives/item/items/item/workbook/functions/sqrt/sqrt_request_builder.rb index 1e44d98ee6..cefb79dec2 100644 --- a/lib/drives/item/items/item/workbook/functions/sqrt/sqrt_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/sqrt/sqrt_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sqrt_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SqrtRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/sqrt_pi/sqrt_pi_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/sqrt_pi/sqrt_pi_post_request_body.rb index 1c259bf620..58b12c1105 100644 --- a/lib/drives/item/items/item/workbook/functions/sqrt_pi/sqrt_pi_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/sqrt_pi/sqrt_pi_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class SqrtPiPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new sqrtPiPostRequestBody and sets the default values. + ## Instantiates a new SqrtPiPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/sqrt_pi/sqrt_pi_request_builder.rb b/lib/drives/item/items/item/workbook/functions/sqrt_pi/sqrt_pi_request_builder.rb index 3582c57eb5..a4d31882a9 100644 --- a/lib/drives/item/items/item/workbook/functions/sqrt_pi/sqrt_pi_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/sqrt_pi/sqrt_pi_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sqrt_pi_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SqrtPiRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/st_dev_a/st_dev_a_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/st_dev_a/st_dev_a_post_request_body.rb index 61bdebb38d..405ca870a7 100644 --- a/lib/drives/item/items/item/workbook/functions/st_dev_a/st_dev_a_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/st_dev_a/st_dev_a_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class StDevAPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new stDevAPostRequestBody and sets the default values. + ## Instantiates a new StDevAPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/st_dev_a/st_dev_a_request_builder.rb b/lib/drives/item/items/item/workbook/functions/st_dev_a/st_dev_a_request_builder.rb index 1612ea0b47..75d5ab9b97 100644 --- a/lib/drives/item/items/item/workbook/functions/st_dev_a/st_dev_a_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/st_dev_a/st_dev_a_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a st_dev_a_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return StDevARequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/st_dev_p/st_dev_p_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/st_dev_p/st_dev_p_post_request_body.rb index dcd31fd302..69ca6730d2 100644 --- a/lib/drives/item/items/item/workbook/functions/st_dev_p/st_dev_p_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/st_dev_p/st_dev_p_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,18 +22,15 @@ class StDevPPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/st_dev_p/st_dev_p_request_builder.rb b/lib/drives/item/items/item/workbook/functions/st_dev_p/st_dev_p_request_builder.rb index f6fa5727c7..e908b76431 100644 --- a/lib/drives/item/items/item/workbook/functions/st_dev_p/st_dev_p_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/st_dev_p/st_dev_p_request_builder.rb @@ -23,7 +23,7 @@ module StDev_P class StDevPRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new StDev_PRequestBuilder and sets the default values. + ## Instantiates a new StDevPRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a st_dev_p_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return StDevPRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/st_dev_p_a/st_dev_p_a_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/st_dev_p_a/st_dev_p_a_post_request_body.rb index 18e7f7406d..ad882532dd 100644 --- a/lib/drives/item/items/item/workbook/functions/st_dev_p_a/st_dev_p_a_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/st_dev_p_a/st_dev_p_a_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class StDevPAPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new stDevPAPostRequestBody and sets the default values. + ## Instantiates a new StDevPAPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/st_dev_p_a/st_dev_p_a_request_builder.rb b/lib/drives/item/items/item/workbook/functions/st_dev_p_a/st_dev_p_a_request_builder.rb index 26c97bbb63..b1978a5bb7 100644 --- a/lib/drives/item/items/item/workbook/functions/st_dev_p_a/st_dev_p_a_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/st_dev_p_a/st_dev_p_a_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a st_dev_p_a_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return StDevPARequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/st_dev_s/st_dev_s_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/st_dev_s/st_dev_s_post_request_body.rb index 84ab4f58e5..f254aeb63c 100644 --- a/lib/drives/item/items/item/workbook/functions/st_dev_s/st_dev_s_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/st_dev_s/st_dev_s_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,18 +22,15 @@ class StDevSPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/st_dev_s/st_dev_s_request_builder.rb b/lib/drives/item/items/item/workbook/functions/st_dev_s/st_dev_s_request_builder.rb index 7fe411959c..feb9a4fcf6 100644 --- a/lib/drives/item/items/item/workbook/functions/st_dev_s/st_dev_s_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/st_dev_s/st_dev_s_request_builder.rb @@ -23,7 +23,7 @@ module StDev_S class StDevSRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new StDev_SRequestBuilder and sets the default values. + ## Instantiates a new StDevSRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a st_dev_s_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return StDevSRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/standardize/standardize_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/standardize/standardize_post_request_body.rb index 7d64de44df..cd2ee5d7e4 100644 --- a/lib/drives/item/items/item/workbook/functions/standardize/standardize_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/standardize/standardize_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class StandardizePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The mean property - @mean - ## - # The standardDev property - @standard_dev - ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new standardizePostRequestBody and sets the default values. + ## Instantiates a new StandardizePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -68,68 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "mean" => lambda {|n| @mean = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "standardDev" => lambda {|n| @standard_dev = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the mean property value. The mean property - ## @return a json - ## - def mean - return @mean - end - ## - ## Sets the mean property value. The mean property - ## @param value Value to set for the mean property. - ## @return a void - ## - def mean=(value) - @mean = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("mean", @mean) - writer.write_object_value("standardDev", @standard_dev) - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the standardDev property value. The standardDev property - ## @return a json - ## - def standard_dev - return @standard_dev - end - ## - ## Sets the standardDev property value. The standardDev property - ## @param value Value to set for the standardDev property. - ## @return a void - ## - def standard_dev=(value) - @standard_dev = value - end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/standardize/standardize_request_builder.rb b/lib/drives/item/items/item/workbook/functions/standardize/standardize_request_builder.rb index 2774e28301..9892b203e4 100644 --- a/lib/drives/item/items/item/workbook/functions/standardize/standardize_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/standardize/standardize_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a standardize_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return StandardizeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/substitute/substitute_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/substitute/substitute_post_request_body.rb index 2e0112571e..e90ad420e9 100644 --- a/lib/drives/item/items/item/workbook/functions/substitute/substitute_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/substitute/substitute_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,34 +22,22 @@ class SubstitutePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The instanceNum property - @instance_num - ## - # The newText property - @new_text - ## - # The oldText property - @old_text - ## - # The text property - @text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new substitutePostRequestBody and sets the default values. + ## Instantiates a new SubstitutePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -71,85 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "instanceNum" => lambda {|n| @instance_num = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "newText" => lambda {|n| @new_text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "oldText" => lambda {|n| @old_text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "text" => lambda {|n| @text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the instanceNum property value. The instanceNum property - ## @return a json - ## - def instance_num - return @instance_num - end - ## - ## Sets the instanceNum property value. The instanceNum property - ## @param value Value to set for the instanceNum property. - ## @return a void - ## - def instance_num=(value) - @instance_num = value - end - ## - ## Gets the newText property value. The newText property - ## @return a json - ## - def new_text - return @new_text - end - ## - ## Sets the newText property value. The newText property - ## @param value Value to set for the newText property. - ## @return a void - ## - def new_text=(value) - @new_text = value - end - ## - ## Gets the oldText property value. The oldText property - ## @return a json - ## - def old_text - return @old_text - end - ## - ## Sets the oldText property value. The oldText property - ## @param value Value to set for the oldText property. - ## @return a void - ## - def old_text=(value) - @old_text = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("instanceNum", @instance_num) - writer.write_object_value("newText", @new_text) - writer.write_object_value("oldText", @old_text) - writer.write_object_value("text", @text) writer.write_additional_data(@additional_data) end - ## - ## Gets the text property value. The text property - ## @return a json - ## - def text - return @text - end - ## - ## Sets the text property value. The text property - ## @param value Value to set for the text property. - ## @return a void - ## - def text=(value) - @text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/substitute/substitute_request_builder.rb b/lib/drives/item/items/item/workbook/functions/substitute/substitute_request_builder.rb index 58059c9201..ab7d0ccc70 100644 --- a/lib/drives/item/items/item/workbook/functions/substitute/substitute_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/substitute/substitute_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a substitute_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SubstituteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/subtotal/subtotal_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/subtotal/subtotal_post_request_body.rb index 4d83ac1d7f..05828a4cb3 100644 --- a/lib/drives/item/items/item/workbook/functions/subtotal/subtotal_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/subtotal/subtotal_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class SubtotalPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The functionNum property - @function_num - ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new subtotalPostRequestBody and sets the default values. + ## Instantiates a new SubtotalPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -60,28 +53,11 @@ def self.create_from_discriminator_value(parse_node) return SubtotalPostRequestBody.new end ## - ## Gets the functionNum property value. The functionNum property - ## @return a json - ## - def function_num - return @function_num - end - ## - ## Sets the functionNum property value. The functionNum property - ## @param value Value to set for the functionNum property. - ## @return a void - ## - def function_num=(value) - @function_num = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "functionNum" => lambda {|n| @function_num = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -91,25 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("functionNum", @function_num) - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/subtotal/subtotal_request_builder.rb b/lib/drives/item/items/item/workbook/functions/subtotal/subtotal_request_builder.rb index cae8285595..419af74dba 100644 --- a/lib/drives/item/items/item/workbook/functions/subtotal/subtotal_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/subtotal/subtotal_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a subtotal_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SubtotalRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/sum/sum_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/sum/sum_post_request_body.rb index 449857fd95..500c9a2754 100644 --- a/lib/drives/item/items/item/workbook/functions/sum/sum_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/sum/sum_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class SumPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new sumPostRequestBody and sets the default values. + ## Instantiates a new SumPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/sum/sum_request_builder.rb b/lib/drives/item/items/item/workbook/functions/sum/sum_request_builder.rb index e2dccb0085..073f2a0274 100644 --- a/lib/drives/item/items/item/workbook/functions/sum/sum_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/sum/sum_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sum_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SumRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/sum_if/sum_if_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/sum_if/sum_if_post_request_body.rb index 7eb77b2441..4fd09fd1ce 100644 --- a/lib/drives/item/items/item/workbook/functions/sum_if/sum_if_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/sum_if/sum_if_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class SumIfPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The criteria property - @criteria - ## - # The range property - @range - ## - # The sumRange property - @sum_range - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new sumIfPostRequestBody and sets the default values. + ## Instantiates a new SumIfPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,73 +53,22 @@ def self.create_from_discriminator_value(parse_node) return SumIfPostRequestBody.new end ## - ## Gets the criteria property value. The criteria property - ## @return a json - ## - def criteria - return @criteria - end - ## - ## Sets the criteria property value. The criteria property - ## @param value Value to set for the criteria property. - ## @return a void - ## - def criteria=(value) - @criteria = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "criteria" => lambda {|n| @criteria = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "range" => lambda {|n| @range = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "sumRange" => lambda {|n| @sum_range = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the range property value. The range property - ## @return a json - ## - def range - return @range - end - ## - ## Sets the range property value. The range property - ## @param value Value to set for the range property. - ## @return a void - ## - def range=(value) - @range = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("criteria", @criteria) - writer.write_object_value("range", @range) - writer.write_object_value("sumRange", @sum_range) writer.write_additional_data(@additional_data) end - ## - ## Gets the sumRange property value. The sumRange property - ## @return a json - ## - def sum_range - return @sum_range - end - ## - ## Sets the sumRange property value. The sumRange property - ## @param value Value to set for the sumRange property. - ## @return a void - ## - def sum_range=(value) - @sum_range = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/sum_if/sum_if_request_builder.rb b/lib/drives/item/items/item/workbook/functions/sum_if/sum_if_request_builder.rb index b1f4287781..371b6fa9fe 100644 --- a/lib/drives/item/items/item/workbook/functions/sum_if/sum_if_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/sum_if/sum_if_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sum_if_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SumIfRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/sum_ifs/sum_ifs_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/sum_ifs/sum_ifs_post_request_body.rb index 05ae330ea4..5cf00dabab 100644 --- a/lib/drives/item/items/item/workbook/functions/sum_ifs/sum_ifs_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/sum_ifs/sum_ifs_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class SumIfsPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The sumRange property - @sum_range - ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new sumIfsPostRequestBody and sets the default values. + ## Instantiates a new SumIfsPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,8 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "sumRange" => lambda {|n| @sum_range = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -76,40 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("sumRange", @sum_range) - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the sumRange property value. The sumRange property - ## @return a json - ## - def sum_range - return @sum_range - end - ## - ## Sets the sumRange property value. The sumRange property - ## @param value Value to set for the sumRange property. - ## @return a void - ## - def sum_range=(value) - @sum_range = value - end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/sum_ifs/sum_ifs_request_builder.rb b/lib/drives/item/items/item/workbook/functions/sum_ifs/sum_ifs_request_builder.rb index 9c441654fd..f64f18274c 100644 --- a/lib/drives/item/items/item/workbook/functions/sum_ifs/sum_ifs_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/sum_ifs/sum_ifs_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sum_ifs_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SumIfsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/sum_sq/sum_sq_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/sum_sq/sum_sq_post_request_body.rb index 47605f277d..75c1d91130 100644 --- a/lib/drives/item/items/item/workbook/functions/sum_sq/sum_sq_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/sum_sq/sum_sq_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class SumSqPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new sumSqPostRequestBody and sets the default values. + ## Instantiates a new SumSqPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/sum_sq/sum_sq_request_builder.rb b/lib/drives/item/items/item/workbook/functions/sum_sq/sum_sq_request_builder.rb index 228311dad6..4b7e52a0ba 100644 --- a/lib/drives/item/items/item/workbook/functions/sum_sq/sum_sq_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/sum_sq/sum_sq_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sum_sq_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SumSqRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/syd/syd_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/syd/syd_post_request_body.rb index bbb72129f7..49780673e4 100644 --- a/lib/drives/item/items/item/workbook/functions/syd/syd_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/syd/syd_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,55 +22,28 @@ class SydPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The cost property - @cost - ## - # The life property - @life - ## - # The per property - @per - ## - # The salvage property - @salvage - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new sydPostRequestBody and sets the default values. + ## Instantiates a new SydPostRequestBody and sets the default values. ## @return a void ## def initialize() @additional_data = Hash.new end ## - ## Gets the cost property value. The cost property - ## @return a json - ## - def cost - return @cost - end - ## - ## Sets the cost property value. The cost property - ## @param value Value to set for the cost property. - ## @return a void - ## - def cost=(value) - @cost = value - end - ## ## Creates a new instance of the appropriate class based on discriminator value ## @param parse_node The parse node to use to read the discriminator value and create the object ## @return a syd_post_request_body @@ -86,68 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "cost" => lambda {|n| @cost = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "life" => lambda {|n| @life = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "per" => lambda {|n| @per = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "salvage" => lambda {|n| @salvage = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the life property value. The life property - ## @return a json - ## - def life - return @life - end - ## - ## Sets the life property value. The life property - ## @param value Value to set for the life property. - ## @return a void - ## - def life=(value) - @life = value - end - ## - ## Gets the per property value. The per property - ## @return a json - ## - def per - return @per - end - ## - ## Sets the per property value. The per property - ## @param value Value to set for the per property. - ## @return a void - ## - def per=(value) - @per = value - end - ## - ## Gets the salvage property value. The salvage property - ## @return a json - ## - def salvage - return @salvage - end - ## - ## Sets the salvage property value. The salvage property - ## @param value Value to set for the salvage property. - ## @return a void - ## - def salvage=(value) - @salvage = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("cost", @cost) - writer.write_object_value("life", @life) - writer.write_object_value("per", @per) - writer.write_object_value("salvage", @salvage) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/syd/syd_request_builder.rb b/lib/drives/item/items/item/workbook/functions/syd/syd_request_builder.rb index c9ad516a49..1a6e4a1c8c 100644 --- a/lib/drives/item/items/item/workbook/functions/syd/syd_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/syd/syd_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a syd_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SydRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/t/t_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/t/t_post_request_body.rb index e314f6576c..03ff0052dd 100644 --- a/lib/drives/item/items/item/workbook/functions/t/t_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/t/t_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class TPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new tPostRequestBody and sets the default values. + ## Instantiates a new TPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "value" => lambda {|n| @value = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("value", @value) writer.write_additional_data(@additional_data) end - ## - ## Gets the value property value. The value property - ## @return a json - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/t/t_request_builder.rb b/lib/drives/item/items/item/workbook/functions/t/t_request_builder.rb index 460569e59e..236ab19a1b 100644 --- a/lib/drives/item/items/item/workbook/functions/t/t_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/t/t_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a t_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/t_dist/t_dist_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/t_dist/t_dist_post_request_body.rb index ecc8366613..ac3b6081aa 100644 --- a/lib/drives/item/items/item/workbook/functions/t_dist/t_dist_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/t_dist/t_dist_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,24 +22,15 @@ class TDistPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The cumulative property - @cumulative - ## - # The degFreedom property - @deg_freedom - ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -63,44 +53,11 @@ def self.create_from_discriminator_value(parse_node) return TDistPostRequestBody.new end ## - ## Gets the cumulative property value. The cumulative property - ## @return a json - ## - def cumulative - return @cumulative - end - ## - ## Sets the cumulative property value. The cumulative property - ## @param value Value to set for the cumulative property. - ## @return a void - ## - def cumulative=(value) - @cumulative = value - end - ## - ## Gets the degFreedom property value. The degFreedom property - ## @return a json - ## - def deg_freedom - return @deg_freedom - end - ## - ## Sets the degFreedom property value. The degFreedom property - ## @param value Value to set for the degFreedom property. - ## @return a void - ## - def deg_freedom=(value) - @deg_freedom = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "cumulative" => lambda {|n| @cumulative = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "degFreedom" => lambda {|n| @deg_freedom = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -110,26 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("cumulative", @cumulative) - writer.write_object_value("degFreedom", @deg_freedom) - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/t_dist/t_dist_request_builder.rb b/lib/drives/item/items/item/workbook/functions/t_dist/t_dist_request_builder.rb index dbc1da5897..6a476784f2 100644 --- a/lib/drives/item/items/item/workbook/functions/t_dist/t_dist_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/t_dist/t_dist_request_builder.rb @@ -23,7 +23,7 @@ module T_Dist class TDistRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new T_DistRequestBuilder and sets the default values. + ## Instantiates a new TDistRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a t_dist_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TDistRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/t_dist_2_t/t_dist2_t_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/t_dist_2_t/t_dist2_t_post_request_body.rb index 00a9b3dfcb..ad6a7ac564 100644 --- a/lib/drives/item/items/item/workbook/functions/t_dist_2_t/t_dist2_t_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/t_dist_2_t/t_dist2_t_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,21 +22,15 @@ class TDist2TPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The degFreedom property - @deg_freedom - ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -60,28 +53,11 @@ def self.create_from_discriminator_value(parse_node) return TDist2TPostRequestBody.new end ## - ## Gets the degFreedom property value. The degFreedom property - ## @return a json - ## - def deg_freedom - return @deg_freedom - end - ## - ## Sets the degFreedom property value. The degFreedom property - ## @param value Value to set for the degFreedom property. - ## @return a void - ## - def deg_freedom=(value) - @deg_freedom = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "degFreedom" => lambda {|n| @deg_freedom = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -91,25 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("degFreedom", @deg_freedom) - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/t_dist_2_t/t_dist2_t_request_builder.rb b/lib/drives/item/items/item/workbook/functions/t_dist_2_t/t_dist2_t_request_builder.rb index 2ea5cfc0fc..381b79fe26 100644 --- a/lib/drives/item/items/item/workbook/functions/t_dist_2_t/t_dist2_t_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/t_dist_2_t/t_dist2_t_request_builder.rb @@ -23,7 +23,7 @@ module T_Dist_2T class TDist2TRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new T_Dist_2TRequestBuilder and sets the default values. + ## Instantiates a new TDist2TRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a t_dist2_t_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TDist2TRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/t_dist_r_t/t_dist_r_t_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/t_dist_r_t/t_dist_r_t_post_request_body.rb index 3d770990ec..8126dc01a7 100644 --- a/lib/drives/item/items/item/workbook/functions/t_dist_r_t/t_dist_r_t_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/t_dist_r_t/t_dist_r_t_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,21 +22,15 @@ class TDistRTPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The degFreedom property - @deg_freedom - ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -60,28 +53,11 @@ def self.create_from_discriminator_value(parse_node) return TDistRTPostRequestBody.new end ## - ## Gets the degFreedom property value. The degFreedom property - ## @return a json - ## - def deg_freedom - return @deg_freedom - end - ## - ## Sets the degFreedom property value. The degFreedom property - ## @param value Value to set for the degFreedom property. - ## @return a void - ## - def deg_freedom=(value) - @deg_freedom = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "degFreedom" => lambda {|n| @deg_freedom = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -91,25 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("degFreedom", @deg_freedom) - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/t_dist_r_t/t_dist_r_t_request_builder.rb b/lib/drives/item/items/item/workbook/functions/t_dist_r_t/t_dist_r_t_request_builder.rb index 78fad3f17e..ad469684da 100644 --- a/lib/drives/item/items/item/workbook/functions/t_dist_r_t/t_dist_r_t_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/t_dist_r_t/t_dist_r_t_request_builder.rb @@ -23,7 +23,7 @@ module T_Dist_RT class TDistRTRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new T_Dist_RTRequestBuilder and sets the default values. + ## Instantiates a new TDistRTRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a t_dist_r_t_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TDistRTRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/t_inv/t_inv_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/t_inv/t_inv_post_request_body.rb index f873d95b26..82737764ae 100644 --- a/lib/drives/item/items/item/workbook/functions/t_inv/t_inv_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/t_inv/t_inv_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,21 +22,15 @@ class TInvPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The degFreedom property - @deg_freedom - ## - # The probability property - @probability - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -60,54 +53,20 @@ def self.create_from_discriminator_value(parse_node) return TInvPostRequestBody.new end ## - ## Gets the degFreedom property value. The degFreedom property - ## @return a json - ## - def deg_freedom - return @deg_freedom - end - ## - ## Sets the degFreedom property value. The degFreedom property - ## @param value Value to set for the degFreedom property. - ## @return a void - ## - def deg_freedom=(value) - @deg_freedom = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "degFreedom" => lambda {|n| @deg_freedom = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "probability" => lambda {|n| @probability = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the probability property value. The probability property - ## @return a json - ## - def probability - return @probability - end - ## - ## Sets the probability property value. The probability property - ## @param value Value to set for the probability property. - ## @return a void - ## - def probability=(value) - @probability = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("degFreedom", @deg_freedom) - writer.write_object_value("probability", @probability) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/t_inv/t_inv_request_builder.rb b/lib/drives/item/items/item/workbook/functions/t_inv/t_inv_request_builder.rb index c13e87f953..bb10b4fb84 100644 --- a/lib/drives/item/items/item/workbook/functions/t_inv/t_inv_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/t_inv/t_inv_request_builder.rb @@ -23,7 +23,7 @@ module T_Inv class TInvRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new T_InvRequestBuilder and sets the default values. + ## Instantiates a new TInvRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a t_inv_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TInvRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/t_inv_2_t/t_inv2_t_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/t_inv_2_t/t_inv2_t_post_request_body.rb index e5018e31e0..f3762365fa 100644 --- a/lib/drives/item/items/item/workbook/functions/t_inv_2_t/t_inv2_t_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/t_inv_2_t/t_inv2_t_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,21 +22,15 @@ class TInv2TPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The degFreedom property - @deg_freedom - ## - # The probability property - @probability - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -60,54 +53,20 @@ def self.create_from_discriminator_value(parse_node) return TInv2TPostRequestBody.new end ## - ## Gets the degFreedom property value. The degFreedom property - ## @return a json - ## - def deg_freedom - return @deg_freedom - end - ## - ## Sets the degFreedom property value. The degFreedom property - ## @param value Value to set for the degFreedom property. - ## @return a void - ## - def deg_freedom=(value) - @deg_freedom = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "degFreedom" => lambda {|n| @deg_freedom = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "probability" => lambda {|n| @probability = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the probability property value. The probability property - ## @return a json - ## - def probability - return @probability - end - ## - ## Sets the probability property value. The probability property - ## @param value Value to set for the probability property. - ## @return a void - ## - def probability=(value) - @probability = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("degFreedom", @deg_freedom) - writer.write_object_value("probability", @probability) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/t_inv_2_t/t_inv2_t_request_builder.rb b/lib/drives/item/items/item/workbook/functions/t_inv_2_t/t_inv2_t_request_builder.rb index 49cba3ad46..9ec8ea1156 100644 --- a/lib/drives/item/items/item/workbook/functions/t_inv_2_t/t_inv2_t_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/t_inv_2_t/t_inv2_t_request_builder.rb @@ -23,7 +23,7 @@ module T_Inv_2T class TInv2TRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new T_Inv_2TRequestBuilder and sets the default values. + ## Instantiates a new TInv2TRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a t_inv2_t_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TInv2TRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/tan/tan_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/tan/tan_post_request_body.rb index bbcfffb34f..e030e5f09c 100644 --- a/lib/drives/item/items/item/workbook/functions/tan/tan_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/tan/tan_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class TanPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new tanPostRequestBody and sets the default values. + ## Instantiates a new TanPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/tan/tan_request_builder.rb b/lib/drives/item/items/item/workbook/functions/tan/tan_request_builder.rb index 30e6dc29b5..d67bf369e1 100644 --- a/lib/drives/item/items/item/workbook/functions/tan/tan_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/tan/tan_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a tan_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TanRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/tanh/tanh_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/tanh/tanh_post_request_body.rb index 491d1c6cd2..9b3563b797 100644 --- a/lib/drives/item/items/item/workbook/functions/tanh/tanh_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/tanh/tanh_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class TanhPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new tanhPostRequestBody and sets the default values. + ## Instantiates a new TanhPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/tanh/tanh_request_builder.rb b/lib/drives/item/items/item/workbook/functions/tanh/tanh_request_builder.rb index 277ed868c0..198ca8d35c 100644 --- a/lib/drives/item/items/item/workbook/functions/tanh/tanh_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/tanh/tanh_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a tanh_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TanhRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/tbill_eq/tbill_eq_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/tbill_eq/tbill_eq_post_request_body.rb index 575433cae5..99a4749a8c 100644 --- a/lib/drives/item/items/item/workbook/functions/tbill_eq/tbill_eq_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/tbill_eq/tbill_eq_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class TbillEqPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The discount property - @discount - ## - # The maturity property - @maturity - ## - # The settlement property - @settlement - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new tbillEqPostRequestBody and sets the default values. + ## Instantiates a new TbillEqPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,73 +53,22 @@ def self.create_from_discriminator_value(parse_node) return TbillEqPostRequestBody.new end ## - ## Gets the discount property value. The discount property - ## @return a json - ## - def discount - return @discount - end - ## - ## Sets the discount property value. The discount property - ## @param value Value to set for the discount property. - ## @return a void - ## - def discount=(value) - @discount = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "discount" => lambda {|n| @discount = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("discount", @discount) - writer.write_object_value("maturity", @maturity) - writer.write_object_value("settlement", @settlement) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/tbill_eq/tbill_eq_request_builder.rb b/lib/drives/item/items/item/workbook/functions/tbill_eq/tbill_eq_request_builder.rb index 119c0f4247..392e7884be 100644 --- a/lib/drives/item/items/item/workbook/functions/tbill_eq/tbill_eq_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/tbill_eq/tbill_eq_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a tbill_eq_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TbillEqRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/tbill_price/tbill_price_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/tbill_price/tbill_price_post_request_body.rb index 964326f987..408732389c 100644 --- a/lib/drives/item/items/item/workbook/functions/tbill_price/tbill_price_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/tbill_price/tbill_price_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class TbillPricePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The discount property - @discount - ## - # The maturity property - @maturity - ## - # The settlement property - @settlement - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new tbillPricePostRequestBody and sets the default values. + ## Instantiates a new TbillPricePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,73 +53,22 @@ def self.create_from_discriminator_value(parse_node) return TbillPricePostRequestBody.new end ## - ## Gets the discount property value. The discount property - ## @return a json - ## - def discount - return @discount - end - ## - ## Sets the discount property value. The discount property - ## @param value Value to set for the discount property. - ## @return a void - ## - def discount=(value) - @discount = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "discount" => lambda {|n| @discount = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("discount", @discount) - writer.write_object_value("maturity", @maturity) - writer.write_object_value("settlement", @settlement) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/tbill_price/tbill_price_request_builder.rb b/lib/drives/item/items/item/workbook/functions/tbill_price/tbill_price_request_builder.rb index a365b6169e..529bba58dc 100644 --- a/lib/drives/item/items/item/workbook/functions/tbill_price/tbill_price_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/tbill_price/tbill_price_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a tbill_price_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TbillPriceRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/tbill_yield/tbill_yield_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/tbill_yield/tbill_yield_post_request_body.rb index 6323d677d0..0fa70d8f8b 100644 --- a/lib/drives/item/items/item/workbook/functions/tbill_yield/tbill_yield_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/tbill_yield/tbill_yield_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class TbillYieldPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The maturity property - @maturity - ## - # The pr property - @pr - ## - # The settlement property - @settlement - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new tbillYieldPostRequestBody and sets the default values. + ## Instantiates a new TbillYieldPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -68,68 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "pr" => lambda {|n| @pr = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## - ## Gets the pr property value. The pr property - ## @return a json - ## - def pr - return @pr - end - ## - ## Sets the pr property value. The pr property - ## @param value Value to set for the pr property. - ## @return a void - ## - def pr=(value) - @pr = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("maturity", @maturity) - writer.write_object_value("pr", @pr) - writer.write_object_value("settlement", @settlement) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/tbill_yield/tbill_yield_request_builder.rb b/lib/drives/item/items/item/workbook/functions/tbill_yield/tbill_yield_request_builder.rb index fb8b8d4fdb..12e4bece3f 100644 --- a/lib/drives/item/items/item/workbook/functions/tbill_yield/tbill_yield_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/tbill_yield/tbill_yield_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a tbill_yield_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TbillYieldRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/text/text_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/text/text_post_request_body.rb index 0920194399..2e54e90c81 100644 --- a/lib/drives/item/items/item/workbook/functions/text/text_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/text/text_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class TextPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The formatText property - @format_text - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new textPostRequestBody and sets the default values. + ## Instantiates a new TextPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -60,28 +53,11 @@ def self.create_from_discriminator_value(parse_node) return TextPostRequestBody.new end ## - ## Gets the formatText property value. The formatText property - ## @return a json - ## - def format_text - return @format_text - end - ## - ## Sets the formatText property value. The formatText property - ## @param value Value to set for the formatText property. - ## @return a void - ## - def format_text=(value) - @format_text = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "formatText" => lambda {|n| @format_text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "value" => lambda {|n| @value = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -91,25 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("formatText", @format_text) - writer.write_object_value("value", @value) writer.write_additional_data(@additional_data) end - ## - ## Gets the value property value. The value property - ## @return a json - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/text/text_request_builder.rb b/lib/drives/item/items/item/workbook/functions/text/text_request_builder.rb index 27282aaecb..cd56164a81 100644 --- a/lib/drives/item/items/item/workbook/functions/text/text_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/text/text_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a text_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TextRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/time/time_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/time/time_post_request_body.rb index 799a03bf2a..4dd62046ef 100644 --- a/lib/drives/item/items/item/workbook/functions/time/time_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/time/time_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class TimePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The hour property - @hour - ## - # The minute property - @minute - ## - # The second property - @second - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new timePostRequestBody and sets the default values. + ## Instantiates a new TimePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -68,66 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "hour" => lambda {|n| @hour = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "minute" => lambda {|n| @minute = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "second" => lambda {|n| @second = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the hour property value. The hour property - ## @return a json - ## - def hour - return @hour - end - ## - ## Sets the hour property value. The hour property - ## @param value Value to set for the hour property. - ## @return a void - ## - def hour=(value) - @hour = value - end - ## - ## Gets the minute property value. The minute property - ## @return a json - ## - def minute - return @minute - end - ## - ## Sets the minute property value. The minute property - ## @param value Value to set for the minute property. - ## @return a void - ## - def minute=(value) - @minute = value - end - ## - ## Gets the second property value. The second property - ## @return a json - ## - def second - return @second - end - ## - ## Sets the second property value. The second property - ## @param value Value to set for the second property. - ## @return a void - ## - def second=(value) - @second = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("hour", @hour) - writer.write_object_value("minute", @minute) - writer.write_object_value("second", @second) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/time/time_request_builder.rb b/lib/drives/item/items/item/workbook/functions/time/time_request_builder.rb index 542e135fef..95beac5b73 100644 --- a/lib/drives/item/items/item/workbook/functions/time/time_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/time/time_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a time_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TimeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/timevalue/timevalue_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/timevalue/timevalue_post_request_body.rb index 362e5eb43a..7b5ace4954 100644 --- a/lib/drives/item/items/item/workbook/functions/timevalue/timevalue_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/timevalue/timevalue_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class TimevaluePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The timeText property - @time_text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new timevaluePostRequestBody and sets the default values. + ## Instantiates a new TimevaluePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "timeText" => lambda {|n| @time_text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("timeText", @time_text) writer.write_additional_data(@additional_data) end - ## - ## Gets the timeText property value. The timeText property - ## @return a json - ## - def time_text - return @time_text - end - ## - ## Sets the timeText property value. The timeText property - ## @param value Value to set for the timeText property. - ## @return a void - ## - def time_text=(value) - @time_text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/timevalue/timevalue_request_builder.rb b/lib/drives/item/items/item/workbook/functions/timevalue/timevalue_request_builder.rb index 0aa0af86d5..df0d67d631 100644 --- a/lib/drives/item/items/item/workbook/functions/timevalue/timevalue_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/timevalue/timevalue_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a timevalue_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TimevalueRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/today/today_request_builder.rb b/lib/drives/item/items/item/workbook/functions/today/today_request_builder.rb index 44371a241d..8e84ec2ddb 100644 --- a/lib/drives/item/items/item/workbook/functions/today/today_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/today/today_request_builder.rb @@ -41,8 +41,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,16 +51,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a today_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TodayRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/trim/trim_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/trim/trim_post_request_body.rb index 9d470d9449..9ec57a10bb 100644 --- a/lib/drives/item/items/item/workbook/functions/trim/trim_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/trim/trim_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class TrimPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The text property - @text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new trimPostRequestBody and sets the default values. + ## Instantiates a new TrimPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "text" => lambda {|n| @text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("text", @text) writer.write_additional_data(@additional_data) end - ## - ## Gets the text property value. The text property - ## @return a json - ## - def text - return @text - end - ## - ## Sets the text property value. The text property - ## @param value Value to set for the text property. - ## @return a void - ## - def text=(value) - @text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/trim/trim_request_builder.rb b/lib/drives/item/items/item/workbook/functions/trim/trim_request_builder.rb index 28f5cfc897..5fc8c7f4c3 100644 --- a/lib/drives/item/items/item/workbook/functions/trim/trim_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/trim/trim_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a trim_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TrimRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/trim_mean/trim_mean_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/trim_mean/trim_mean_post_request_body.rb index 73fe6edaf6..181debd62e 100644 --- a/lib/drives/item/items/item/workbook/functions/trim_mean/trim_mean_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/trim_mean/trim_mean_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,43 +22,22 @@ class TrimMeanPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The array property - @array - ## - # The percent property - @percent - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the array property value. The array property - ## @return a json - ## - def array - return @array - end - ## - ## Sets the array property value. The array property - ## @param value Value to set for the array property. - ## @return a void - ## - def array=(value) - @array = value - end - ## - ## Instantiates a new trimMeanPostRequestBody and sets the default values. + ## Instantiates a new TrimMeanPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -80,34 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "array" => lambda {|n| @array = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "percent" => lambda {|n| @percent = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the percent property value. The percent property - ## @return a json - ## - def percent - return @percent - end - ## - ## Sets the percent property value. The percent property - ## @param value Value to set for the percent property. - ## @return a void - ## - def percent=(value) - @percent = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("array", @array) - writer.write_object_value("percent", @percent) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/trim_mean/trim_mean_request_builder.rb b/lib/drives/item/items/item/workbook/functions/trim_mean/trim_mean_request_builder.rb index 066fed0f89..86053a4026 100644 --- a/lib/drives/item/items/item/workbook/functions/trim_mean/trim_mean_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/trim_mean/trim_mean_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a trim_mean_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TrimMeanRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/true_escaped/true_request_builder.rb b/lib/drives/item/items/item/workbook/functions/true_escaped/true_request_builder.rb index b74525839b..19ea11e180 100644 --- a/lib/drives/item/items/item/workbook/functions/true_escaped/true_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/true_escaped/true_request_builder.rb @@ -41,8 +41,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,16 +51,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a true_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TrueRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/trunc/trunc_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/trunc/trunc_post_request_body.rb index 377e03f5df..6d7709399f 100644 --- a/lib/drives/item/items/item/workbook/functions/trunc/trunc_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/trunc/trunc_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class TruncPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The numDigits property - @num_digits - ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new truncPostRequestBody and sets the default values. + ## Instantiates a new TruncPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "numDigits" => lambda {|n| @num_digits = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the numDigits property value. The numDigits property - ## @return a json - ## - def num_digits - return @num_digits - end - ## - ## Sets the numDigits property value. The numDigits property - ## @param value Value to set for the numDigits property. - ## @return a void - ## - def num_digits=(value) - @num_digits = value - end - ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("numDigits", @num_digits) - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/trunc/trunc_request_builder.rb b/lib/drives/item/items/item/workbook/functions/trunc/trunc_request_builder.rb index b087081706..0d8eb9388d 100644 --- a/lib/drives/item/items/item/workbook/functions/trunc/trunc_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/trunc/trunc_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a trunc_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TruncRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/type/type_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/type/type_post_request_body.rb index 1100d9113e..6f181bb4de 100644 --- a/lib/drives/item/items/item/workbook/functions/type/type_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/type/type_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class TypePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new typePostRequestBody and sets the default values. + ## Instantiates a new TypePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "value" => lambda {|n| @value = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("value", @value) writer.write_additional_data(@additional_data) end - ## - ## Gets the value property value. The value property - ## @return a json - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/type/type_request_builder.rb b/lib/drives/item/items/item/workbook/functions/type/type_request_builder.rb index 0faef33404..684b458ca1 100644 --- a/lib/drives/item/items/item/workbook/functions/type/type_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/type/type_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a type_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TypeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/unichar/unichar_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/unichar/unichar_post_request_body.rb index c48503bee5..63441eb623 100644 --- a/lib/drives/item/items/item/workbook/functions/unichar/unichar_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/unichar/unichar_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class UnicharPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new unicharPostRequestBody and sets the default values. + ## Instantiates a new UnicharPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/unichar/unichar_request_builder.rb b/lib/drives/item/items/item/workbook/functions/unichar/unichar_request_builder.rb index fec00e847b..f2df6f55f5 100644 --- a/lib/drives/item/items/item/workbook/functions/unichar/unichar_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/unichar/unichar_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unichar_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnicharRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/unicode/unicode_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/unicode/unicode_post_request_body.rb index 7623291f8c..c0fe1faafd 100644 --- a/lib/drives/item/items/item/workbook/functions/unicode/unicode_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/unicode/unicode_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class UnicodePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The text property - @text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new unicodePostRequestBody and sets the default values. + ## Instantiates a new UnicodePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "text" => lambda {|n| @text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("text", @text) writer.write_additional_data(@additional_data) end - ## - ## Gets the text property value. The text property - ## @return a json - ## - def text - return @text - end - ## - ## Sets the text property value. The text property - ## @param value Value to set for the text property. - ## @return a void - ## - def text=(value) - @text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/unicode/unicode_request_builder.rb b/lib/drives/item/items/item/workbook/functions/unicode/unicode_request_builder.rb index c538c8c7a0..db88cf46b0 100644 --- a/lib/drives/item/items/item/workbook/functions/unicode/unicode_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/unicode/unicode_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unicode_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnicodeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/upper/upper_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/upper/upper_post_request_body.rb index ae68e4d2b2..6a7930bedb 100644 --- a/lib/drives/item/items/item/workbook/functions/upper/upper_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/upper/upper_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class UpperPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The text property - @text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new upperPostRequestBody and sets the default values. + ## Instantiates a new UpperPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "text" => lambda {|n| @text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("text", @text) writer.write_additional_data(@additional_data) end - ## - ## Gets the text property value. The text property - ## @return a json - ## - def text - return @text - end - ## - ## Sets the text property value. The text property - ## @param value Value to set for the text property. - ## @return a void - ## - def text=(value) - @text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/upper/upper_request_builder.rb b/lib/drives/item/items/item/workbook/functions/upper/upper_request_builder.rb index 6d983020e8..3642b6989c 100644 --- a/lib/drives/item/items/item/workbook/functions/upper/upper_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/upper/upper_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a upper_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UpperRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/usdollar/usdollar_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/usdollar/usdollar_post_request_body.rb index 3e8f274f56..c18e8cbd35 100644 --- a/lib/drives/item/items/item/workbook/functions/usdollar/usdollar_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/usdollar/usdollar_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class UsdollarPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The decimals property - @decimals - ## - # The number property - @number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new usdollarPostRequestBody and sets the default values. + ## Instantiates a new UsdollarPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -60,54 +53,20 @@ def self.create_from_discriminator_value(parse_node) return UsdollarPostRequestBody.new end ## - ## Gets the decimals property value. The decimals property - ## @return a json - ## - def decimals - return @decimals - end - ## - ## Sets the decimals property value. The decimals property - ## @param value Value to set for the decimals property. - ## @return a void - ## - def decimals=(value) - @decimals = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "decimals" => lambda {|n| @decimals = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the number property value. The number property - ## @return a json - ## - def number - return @number - end - ## - ## Sets the number property value. The number property - ## @param value Value to set for the number property. - ## @return a void - ## - def number=(value) - @number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("decimals", @decimals) - writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/usdollar/usdollar_request_builder.rb b/lib/drives/item/items/item/workbook/functions/usdollar/usdollar_request_builder.rb index c87f45e76e..5f89c03d48 100644 --- a/lib/drives/item/items/item/workbook/functions/usdollar/usdollar_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/usdollar/usdollar_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a usdollar_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsdollarRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/value/value_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/value/value_post_request_body.rb index be58024563..4a3c76c38c 100644 --- a/lib/drives/item/items/item/workbook/functions/value/value_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/value/value_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class ValuePostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The text property - @text - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new valuePostRequestBody and sets the default values. + ## Instantiates a new ValuePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "text" => lambda {|n| @text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("text", @text) writer.write_additional_data(@additional_data) end - ## - ## Gets the text property value. The text property - ## @return a json - ## - def text - return @text - end - ## - ## Sets the text property value. The text property - ## @param value Value to set for the text property. - ## @return a void - ## - def text=(value) - @text = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/value/value_request_builder.rb b/lib/drives/item/items/item/workbook/functions/value/value_request_builder.rb index 56f6cc9cee..efb22f3376 100644 --- a/lib/drives/item/items/item/workbook/functions/value/value_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/value/value_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a value_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ValueRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/var_a/var_a_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/var_a/var_a_post_request_body.rb index 2278b5dcc9..fc27ad61b2 100644 --- a/lib/drives/item/items/item/workbook/functions/var_a/var_a_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/var_a/var_a_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class VarAPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new varAPostRequestBody and sets the default values. + ## Instantiates a new VarAPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/var_a/var_a_request_builder.rb b/lib/drives/item/items/item/workbook/functions/var_a/var_a_request_builder.rb index 712498fbf9..af699ce9ef 100644 --- a/lib/drives/item/items/item/workbook/functions/var_a/var_a_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/var_a/var_a_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a var_a_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VarARequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/var_p/var_p_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/var_p/var_p_post_request_body.rb index d84bf90984..93b75cedf4 100644 --- a/lib/drives/item/items/item/workbook/functions/var_p/var_p_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/var_p/var_p_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,18 +22,15 @@ class VarPPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/var_p/var_p_request_builder.rb b/lib/drives/item/items/item/workbook/functions/var_p/var_p_request_builder.rb index bb10a8501a..92b0c088ec 100644 --- a/lib/drives/item/items/item/workbook/functions/var_p/var_p_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/var_p/var_p_request_builder.rb @@ -23,7 +23,7 @@ module Var_P class VarPRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Var_PRequestBuilder and sets the default values. + ## Instantiates a new VarPRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a var_p_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VarPRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/var_p_a/var_p_a_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/var_p_a/var_p_a_post_request_body.rb index 3b898ec7ea..74e2e4d671 100644 --- a/lib/drives/item/items/item/workbook/functions/var_p_a/var_p_a_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/var_p_a/var_p_a_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class VarPAPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new varPAPostRequestBody and sets the default values. + ## Instantiates a new VarPAPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/var_p_a/var_p_a_request_builder.rb b/lib/drives/item/items/item/workbook/functions/var_p_a/var_p_a_request_builder.rb index 1663a7a9b1..f5be6a4c1f 100644 --- a/lib/drives/item/items/item/workbook/functions/var_p_a/var_p_a_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/var_p_a/var_p_a_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a var_p_a_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VarPARequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/var_s/var_s_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/var_s/var_s_post_request_body.rb index 56f1a02637..abfc638113 100644 --- a/lib/drives/item/items/item/workbook/functions/var_s/var_s_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/var_s/var_s_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,18 +22,15 @@ class VarSPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/var_s/var_s_request_builder.rb b/lib/drives/item/items/item/workbook/functions/var_s/var_s_request_builder.rb index 94410e24d3..10f63e1d0c 100644 --- a/lib/drives/item/items/item/workbook/functions/var_s/var_s_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/var_s/var_s_request_builder.rb @@ -23,7 +23,7 @@ module Var_S class VarSRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Var_SRequestBuilder and sets the default values. + ## Instantiates a new VarSRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a var_s_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VarSRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/vdb/vdb_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/vdb/vdb_post_request_body.rb index d8ea464b91..93c6eef345 100644 --- a/lib/drives/item/items/item/workbook/functions/vdb/vdb_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/vdb/vdb_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,64 +22,28 @@ class VdbPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The cost property - @cost - ## - # The endPeriod property - @end_period - ## - # The factor property - @factor - ## - # The life property - @life - ## - # The noSwitch property - @no_switch - ## - # The salvage property - @salvage - ## - # The startPeriod property - @start_period - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new vdbPostRequestBody and sets the default values. + ## Instantiates a new VdbPostRequestBody and sets the default values. ## @return a void ## def initialize() @additional_data = Hash.new end ## - ## Gets the cost property value. The cost property - ## @return a json - ## - def cost - return @cost - end - ## - ## Sets the cost property value. The cost property - ## @param value Value to set for the cost property. - ## @return a void - ## - def cost=(value) - @cost = value - end - ## ## Creates a new instance of the appropriate class based on discriminator value ## @param parse_node The parse node to use to read the discriminator value and create the object ## @return a vdb_post_request_body @@ -90,126 +53,22 @@ def self.create_from_discriminator_value(parse_node) return VdbPostRequestBody.new end ## - ## Gets the endPeriod property value. The endPeriod property - ## @return a json - ## - def end_period - return @end_period - end - ## - ## Sets the endPeriod property value. The endPeriod property - ## @param value Value to set for the endPeriod property. - ## @return a void - ## - def end_period=(value) - @end_period = value - end - ## - ## Gets the factor property value. The factor property - ## @return a json - ## - def factor - return @factor - end - ## - ## Sets the factor property value. The factor property - ## @param value Value to set for the factor property. - ## @return a void - ## - def factor=(value) - @factor = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "cost" => lambda {|n| @cost = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "endPeriod" => lambda {|n| @end_period = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "factor" => lambda {|n| @factor = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "life" => lambda {|n| @life = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "noSwitch" => lambda {|n| @no_switch = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "salvage" => lambda {|n| @salvage = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "startPeriod" => lambda {|n| @start_period = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the life property value. The life property - ## @return a json - ## - def life - return @life - end - ## - ## Sets the life property value. The life property - ## @param value Value to set for the life property. - ## @return a void - ## - def life=(value) - @life = value - end - ## - ## Gets the noSwitch property value. The noSwitch property - ## @return a json - ## - def no_switch - return @no_switch - end - ## - ## Sets the noSwitch property value. The noSwitch property - ## @param value Value to set for the noSwitch property. - ## @return a void - ## - def no_switch=(value) - @no_switch = value - end - ## - ## Gets the salvage property value. The salvage property - ## @return a json - ## - def salvage - return @salvage - end - ## - ## Sets the salvage property value. The salvage property - ## @param value Value to set for the salvage property. - ## @return a void - ## - def salvage=(value) - @salvage = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("cost", @cost) - writer.write_object_value("endPeriod", @end_period) - writer.write_object_value("factor", @factor) - writer.write_object_value("life", @life) - writer.write_object_value("noSwitch", @no_switch) - writer.write_object_value("salvage", @salvage) - writer.write_object_value("startPeriod", @start_period) writer.write_additional_data(@additional_data) end - ## - ## Gets the startPeriod property value. The startPeriod property - ## @return a json - ## - def start_period - return @start_period - end - ## - ## Sets the startPeriod property value. The startPeriod property - ## @param value Value to set for the startPeriod property. - ## @return a void - ## - def start_period=(value) - @start_period = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/vdb/vdb_request_builder.rb b/lib/drives/item/items/item/workbook/functions/vdb/vdb_request_builder.rb index e35c9df477..5154d6173a 100644 --- a/lib/drives/item/items/item/workbook/functions/vdb/vdb_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/vdb/vdb_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a vdb_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VdbRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/vlookup/vlookup_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/vlookup/vlookup_post_request_body.rb index 60648271eb..e6c4c18617 100644 --- a/lib/drives/item/items/item/workbook/functions/vlookup/vlookup_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/vlookup/vlookup_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,49 +22,22 @@ class VlookupPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The colIndexNum property - @col_index_num - ## - # The lookupValue property - @lookup_value - ## - # The rangeLookup property - @range_lookup - ## - # The tableArray property - @table_array - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the colIndexNum property value. The colIndexNum property - ## @return a json - ## - def col_index_num - return @col_index_num - end - ## - ## Sets the colIndexNum property value. The colIndexNum property - ## @param value Value to set for the colIndexNum property. - ## @return a void - ## - def col_index_num=(value) - @col_index_num = value - end - ## - ## Instantiates a new vlookupPostRequestBody and sets the default values. + ## Instantiates a new VlookupPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -86,70 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "colIndexNum" => lambda {|n| @col_index_num = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "lookupValue" => lambda {|n| @lookup_value = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rangeLookup" => lambda {|n| @range_lookup = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "tableArray" => lambda {|n| @table_array = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the lookupValue property value. The lookupValue property - ## @return a json - ## - def lookup_value - return @lookup_value - end - ## - ## Sets the lookupValue property value. The lookupValue property - ## @param value Value to set for the lookupValue property. - ## @return a void - ## - def lookup_value=(value) - @lookup_value = value - end - ## - ## Gets the rangeLookup property value. The rangeLookup property - ## @return a json - ## - def range_lookup - return @range_lookup - end - ## - ## Sets the rangeLookup property value. The rangeLookup property - ## @param value Value to set for the rangeLookup property. - ## @return a void - ## - def range_lookup=(value) - @range_lookup = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("colIndexNum", @col_index_num) - writer.write_object_value("lookupValue", @lookup_value) - writer.write_object_value("rangeLookup", @range_lookup) - writer.write_object_value("tableArray", @table_array) writer.write_additional_data(@additional_data) end - ## - ## Gets the tableArray property value. The tableArray property - ## @return a json - ## - def table_array - return @table_array - end - ## - ## Sets the tableArray property value. The tableArray property - ## @param value Value to set for the tableArray property. - ## @return a void - ## - def table_array=(value) - @table_array = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/vlookup/vlookup_request_builder.rb b/lib/drives/item/items/item/workbook/functions/vlookup/vlookup_request_builder.rb index db68c48d58..23ac11c59e 100644 --- a/lib/drives/item/items/item/workbook/functions/vlookup/vlookup_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/vlookup/vlookup_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a vlookup_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VlookupRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/week_num/week_num_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/week_num/week_num_post_request_body.rb index 90255312c4..2636c66154 100644 --- a/lib/drives/item/items/item/workbook/functions/week_num/week_num_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/week_num/week_num_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class WeekNumPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The returnType property - @return_type - ## - # The serialNumber property - @serial_number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new weekNumPostRequestBody and sets the default values. + ## Instantiates a new WeekNumPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "returnType" => lambda {|n| @return_type = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "serialNumber" => lambda {|n| @serial_number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the returnType property value. The returnType property - ## @return a json - ## - def return_type - return @return_type - end - ## - ## Sets the returnType property value. The returnType property - ## @param value Value to set for the returnType property. - ## @return a void - ## - def return_type=(value) - @return_type = value - end - ## - ## Gets the serialNumber property value. The serialNumber property - ## @return a json - ## - def serial_number - return @serial_number - end - ## - ## Sets the serialNumber property value. The serialNumber property - ## @param value Value to set for the serialNumber property. - ## @return a void - ## - def serial_number=(value) - @serial_number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("returnType", @return_type) - writer.write_object_value("serialNumber", @serial_number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/week_num/week_num_request_builder.rb b/lib/drives/item/items/item/workbook/functions/week_num/week_num_request_builder.rb index fecff1017f..bff58a3e4c 100644 --- a/lib/drives/item/items/item/workbook/functions/week_num/week_num_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/week_num/week_num_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a week_num_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WeekNumRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/weekday/weekday_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/weekday/weekday_post_request_body.rb index 61a76da350..7822509e7c 100644 --- a/lib/drives/item/items/item/workbook/functions/weekday/weekday_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/weekday/weekday_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,28 +22,22 @@ class WeekdayPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The returnType property - @return_type - ## - # The serialNumber property - @serial_number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new weekdayPostRequestBody and sets the default values. + ## Instantiates a new WeekdayPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -65,49 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "returnType" => lambda {|n| @return_type = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "serialNumber" => lambda {|n| @serial_number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the returnType property value. The returnType property - ## @return a json - ## - def return_type - return @return_type - end - ## - ## Sets the returnType property value. The returnType property - ## @param value Value to set for the returnType property. - ## @return a void - ## - def return_type=(value) - @return_type = value - end - ## - ## Gets the serialNumber property value. The serialNumber property - ## @return a json - ## - def serial_number - return @serial_number - end - ## - ## Sets the serialNumber property value. The serialNumber property - ## @param value Value to set for the serialNumber property. - ## @return a void - ## - def serial_number=(value) - @serial_number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("returnType", @return_type) - writer.write_object_value("serialNumber", @serial_number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/weekday/weekday_request_builder.rb b/lib/drives/item/items/item/workbook/functions/weekday/weekday_request_builder.rb index dc07a718bb..f94cfd4441 100644 --- a/lib/drives/item/items/item/workbook/functions/weekday/weekday_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/weekday/weekday_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a weekday_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WeekdayRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/weibull_dist/weibull_dist_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/weibull_dist/weibull_dist_post_request_body.rb index 21b48325de..60ce9ae14a 100644 --- a/lib/drives/item/items/item/workbook/functions/weibull_dist/weibull_dist_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/weibull_dist/weibull_dist_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,63 +22,21 @@ class WeibullDistPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The alpha property - @alpha - ## - # The beta property - @beta - ## - # The cumulative property - @cumulative - ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the alpha property value. The alpha property - ## @return a json - ## - def alpha - return @alpha - end - ## - ## Sets the alpha property value. The alpha property - ## @param value Value to set for the alpha property. - ## @return a void - ## - def alpha=(value) - @alpha = value - end - ## - ## Gets the beta property value. The beta property - ## @return a json - ## - def beta - return @beta - end - ## - ## Sets the beta property value. The beta property - ## @param value Value to set for the beta property. - ## @return a void - ## - def beta=(value) - @beta = value - end - ## ## Instantiates a new WeibullDistPostRequestBody and sets the default values. ## @return a void ## @@ -96,30 +53,11 @@ def self.create_from_discriminator_value(parse_node) return WeibullDistPostRequestBody.new end ## - ## Gets the cumulative property value. The cumulative property - ## @return a json - ## - def cumulative - return @cumulative - end - ## - ## Sets the cumulative property value. The cumulative property - ## @param value Value to set for the cumulative property. - ## @return a void - ## - def cumulative=(value) - @cumulative = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "alpha" => lambda {|n| @alpha = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "beta" => lambda {|n| @beta = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "cumulative" => lambda {|n| @cumulative = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -129,27 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("alpha", @alpha) - writer.write_object_value("beta", @beta) - writer.write_object_value("cumulative", @cumulative) - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/weibull_dist/weibull_dist_request_builder.rb b/lib/drives/item/items/item/workbook/functions/weibull_dist/weibull_dist_request_builder.rb index 01851f8029..8d881f9570 100644 --- a/lib/drives/item/items/item/workbook/functions/weibull_dist/weibull_dist_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/weibull_dist/weibull_dist_request_builder.rb @@ -23,7 +23,7 @@ module Weibull_Dist class WeibullDistRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Weibull_DistRequestBuilder and sets the default values. + ## Instantiates a new WeibullDistRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a weibull_dist_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WeibullDistRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/work_day/work_day_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/work_day/work_day_post_request_body.rb index 3af1b1bcb5..9f79e0093d 100644 --- a/lib/drives/item/items/item/workbook/functions/work_day/work_day_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/work_day/work_day_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class WorkDayPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The days property - @days - ## - # The holidays property - @holidays - ## - # The startDate property - @start_date - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new workDayPostRequestBody and sets the default values. + ## Instantiates a new WorkDayPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,73 +53,22 @@ def self.create_from_discriminator_value(parse_node) return WorkDayPostRequestBody.new end ## - ## Gets the days property value. The days property - ## @return a json - ## - def days - return @days - end - ## - ## Sets the days property value. The days property - ## @param value Value to set for the days property. - ## @return a void - ## - def days=(value) - @days = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "days" => lambda {|n| @days = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "holidays" => lambda {|n| @holidays = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "startDate" => lambda {|n| @start_date = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the holidays property value. The holidays property - ## @return a json - ## - def holidays - return @holidays - end - ## - ## Sets the holidays property value. The holidays property - ## @param value Value to set for the holidays property. - ## @return a void - ## - def holidays=(value) - @holidays = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("days", @days) - writer.write_object_value("holidays", @holidays) - writer.write_object_value("startDate", @start_date) writer.write_additional_data(@additional_data) end - ## - ## Gets the startDate property value. The startDate property - ## @return a json - ## - def start_date - return @start_date - end - ## - ## Sets the startDate property value. The startDate property - ## @param value Value to set for the startDate property. - ## @return a void - ## - def start_date=(value) - @start_date = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/work_day/work_day_request_builder.rb b/lib/drives/item/items/item/workbook/functions/work_day/work_day_request_builder.rb index e11ac8732b..feb1adb0bb 100644 --- a/lib/drives/item/items/item/workbook/functions/work_day/work_day_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/work_day/work_day_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a work_day_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorkDayRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/work_day_intl/work_day_intl_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/work_day_intl/work_day_intl_post_request_body.rb index 02b4841200..86cbcbe121 100644 --- a/lib/drives/item/items/item/workbook/functions/work_day_intl/work_day_intl_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/work_day_intl/work_day_intl_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,27 +22,15 @@ class WorkDayIntlPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The days property - @days - ## - # The holidays property - @holidays - ## - # The startDate property - @start_date - ## - # The weekend property - @weekend - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -66,90 +53,22 @@ def self.create_from_discriminator_value(parse_node) return WorkDayIntlPostRequestBody.new end ## - ## Gets the days property value. The days property - ## @return a json - ## - def days - return @days - end - ## - ## Sets the days property value. The days property - ## @param value Value to set for the days property. - ## @return a void - ## - def days=(value) - @days = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "days" => lambda {|n| @days = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "holidays" => lambda {|n| @holidays = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "startDate" => lambda {|n| @start_date = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "weekend" => lambda {|n| @weekend = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the holidays property value. The holidays property - ## @return a json - ## - def holidays - return @holidays - end - ## - ## Sets the holidays property value. The holidays property - ## @param value Value to set for the holidays property. - ## @return a void - ## - def holidays=(value) - @holidays = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("days", @days) - writer.write_object_value("holidays", @holidays) - writer.write_object_value("startDate", @start_date) - writer.write_object_value("weekend", @weekend) writer.write_additional_data(@additional_data) end - ## - ## Gets the startDate property value. The startDate property - ## @return a json - ## - def start_date - return @start_date - end - ## - ## Sets the startDate property value. The startDate property - ## @param value Value to set for the startDate property. - ## @return a void - ## - def start_date=(value) - @start_date = value - end - ## - ## Gets the weekend property value. The weekend property - ## @return a json - ## - def weekend - return @weekend - end - ## - ## Sets the weekend property value. The weekend property - ## @param value Value to set for the weekend property. - ## @return a void - ## - def weekend=(value) - @weekend = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/work_day_intl/work_day_intl_request_builder.rb b/lib/drives/item/items/item/workbook/functions/work_day_intl/work_day_intl_request_builder.rb index 75dfeb1e8f..219e54cfc5 100644 --- a/lib/drives/item/items/item/workbook/functions/work_day_intl/work_day_intl_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/work_day_intl/work_day_intl_request_builder.rb @@ -23,7 +23,7 @@ module WorkDay_Intl class WorkDayIntlRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new WorkDay_IntlRequestBuilder and sets the default values. + ## Instantiates a new WorkDayIntlRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a work_day_intl_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorkDayIntlRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/xirr/xirr_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/xirr/xirr_post_request_body.rb index 11a3dd1b25..3aa1f952a8 100644 --- a/lib/drives/item/items/item/workbook/functions/xirr/xirr_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/xirr/xirr_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class XirrPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The dates property - @dates - ## - # The guess property - @guess - ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new xirrPostRequestBody and sets the default values. + ## Instantiates a new XirrPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,73 +53,22 @@ def self.create_from_discriminator_value(parse_node) return XirrPostRequestBody.new end ## - ## Gets the dates property value. The dates property - ## @return a json - ## - def dates - return @dates - end - ## - ## Sets the dates property value. The dates property - ## @param value Value to set for the dates property. - ## @return a void - ## - def dates=(value) - @dates = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "dates" => lambda {|n| @dates = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "guess" => lambda {|n| @guess = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the guess property value. The guess property - ## @return a json - ## - def guess - return @guess - end - ## - ## Sets the guess property value. The guess property - ## @param value Value to set for the guess property. - ## @return a void - ## - def guess=(value) - @guess = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("dates", @dates) - writer.write_object_value("guess", @guess) - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/xirr/xirr_request_builder.rb b/lib/drives/item/items/item/workbook/functions/xirr/xirr_request_builder.rb index 64677db9a0..c4bbc78975 100644 --- a/lib/drives/item/items/item/workbook/functions/xirr/xirr_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/xirr/xirr_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a xirr_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return XirrRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/xnpv/xnpv_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/xnpv/xnpv_post_request_body.rb index f46025d4fd..ca083e4f22 100644 --- a/lib/drives/item/items/item/workbook/functions/xnpv/xnpv_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/xnpv/xnpv_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,31 +22,22 @@ class XnpvPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The dates property - @dates - ## - # The rate property - @rate - ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new xnpvPostRequestBody and sets the default values. + ## Instantiates a new XnpvPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -63,73 +53,22 @@ def self.create_from_discriminator_value(parse_node) return XnpvPostRequestBody.new end ## - ## Gets the dates property value. The dates property - ## @return a json - ## - def dates - return @dates - end - ## - ## Sets the dates property value. The dates property - ## @param value Value to set for the dates property. - ## @return a void - ## - def dates=(value) - @dates = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "dates" => lambda {|n| @dates = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("dates", @dates) - writer.write_object_value("rate", @rate) - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/xnpv/xnpv_request_builder.rb b/lib/drives/item/items/item/workbook/functions/xnpv/xnpv_request_builder.rb index 7a1b5c39aa..10fcee3afd 100644 --- a/lib/drives/item/items/item/workbook/functions/xnpv/xnpv_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/xnpv/xnpv_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a xnpv_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return XnpvRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/xor/xor_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/xor/xor_post_request_body.rb index 5a8799455c..de0300a0bc 100644 --- a/lib/drives/item/items/item/workbook/functions/xor/xor_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/xor/xor_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class XorPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new xorPostRequestBody and sets the default values. + ## Instantiates a new XorPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,7 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -72,24 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/xor/xor_request_builder.rb b/lib/drives/item/items/item/workbook/functions/xor/xor_request_builder.rb index 81cdd14ff4..7e66d16077 100644 --- a/lib/drives/item/items/item/workbook/functions/xor/xor_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/xor/xor_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a xor_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return XorRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/year/year_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/year/year_post_request_body.rb index 885bf5022b..aa0c997fc3 100644 --- a/lib/drives/item/items/item/workbook/functions/year/year_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/year/year_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,25 +22,22 @@ class YearPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The serialNumber property - @serial_number - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new yearPostRequestBody and sets the default values. + ## Instantiates a new YearPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -62,32 +58,15 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "serialNumber" => lambda {|n| @serial_number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the serialNumber property value. The serialNumber property - ## @return a json - ## - def serial_number - return @serial_number - end - ## - ## Sets the serialNumber property value. The serialNumber property - ## @param value Value to set for the serialNumber property. - ## @return a void - ## - def serial_number=(value) - @serial_number = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("serialNumber", @serial_number) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/functions/year/year_request_builder.rb b/lib/drives/item/items/item/workbook/functions/year/year_request_builder.rb index 57fdb074d1..442e61cad1 100644 --- a/lib/drives/item/items/item/workbook/functions/year/year_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/year/year_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a year_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return YearRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/year_frac/year_frac_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/year_frac/year_frac_post_request_body.rb index e7df746cb4..8a8c763df7 100644 --- a/lib/drives/item/items/item/workbook/functions/year_frac/year_frac_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/year_frac/year_frac_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,46 +22,22 @@ class YearFracPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The endDate property - @end_date - ## - # The startDate property - @start_date - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new yearFracPostRequestBody and sets the default values. + ## Instantiates a new YearFracPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -78,29 +53,11 @@ def self.create_from_discriminator_value(parse_node) return YearFracPostRequestBody.new end ## - ## Gets the endDate property value. The endDate property - ## @return a json - ## - def end_date - return @end_date - end - ## - ## Sets the endDate property value. The endDate property - ## @param value Value to set for the endDate property. - ## @return a void - ## - def end_date=(value) - @end_date = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "endDate" => lambda {|n| @end_date = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "startDate" => lambda {|n| @start_date = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -110,26 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("endDate", @end_date) - writer.write_object_value("startDate", @start_date) writer.write_additional_data(@additional_data) end - ## - ## Gets the startDate property value. The startDate property - ## @return a json - ## - def start_date - return @start_date - end - ## - ## Sets the startDate property value. The startDate property - ## @param value Value to set for the startDate property. - ## @return a void - ## - def start_date=(value) - @start_date = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/year_frac/year_frac_request_builder.rb b/lib/drives/item/items/item/workbook/functions/year_frac/year_frac_request_builder.rb index 411ee57e7e..7272fbe1cb 100644 --- a/lib/drives/item/items/item/workbook/functions/year_frac/year_frac_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/year_frac/year_frac_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a year_frac_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return YearFracRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/yield/yield_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/yield/yield_post_request_body.rb index 7fad2995ea..6f4091f583 100644 --- a/lib/drives/item/items/item/workbook/functions/yield/yield_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/yield/yield_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,58 +22,22 @@ class YieldPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The frequency property - @frequency - ## - # The maturity property - @maturity - ## - # The pr property - @pr - ## - # The rate property - @rate - ## - # The redemption property - @redemption - ## - # The settlement property - @settlement - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new yieldPostRequestBody and sets the default values. + ## Instantiates a new YieldPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -90,126 +53,22 @@ def self.create_from_discriminator_value(parse_node) return YieldPostRequestBody.new end ## - ## Gets the frequency property value. The frequency property - ## @return a json - ## - def frequency - return @frequency - end - ## - ## Sets the frequency property value. The frequency property - ## @param value Value to set for the frequency property. - ## @return a void - ## - def frequency=(value) - @frequency = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "frequency" => lambda {|n| @frequency = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "pr" => lambda {|n| @pr = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "redemption" => lambda {|n| @redemption = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## - ## Gets the pr property value. The pr property - ## @return a json - ## - def pr - return @pr - end - ## - ## Sets the pr property value. The pr property - ## @param value Value to set for the pr property. - ## @return a void - ## - def pr=(value) - @pr = value - end - ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## - ## Gets the redemption property value. The redemption property - ## @return a json - ## - def redemption - return @redemption - end - ## - ## Sets the redemption property value. The redemption property - ## @param value Value to set for the redemption property. - ## @return a void - ## - def redemption=(value) - @redemption = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("frequency", @frequency) - writer.write_object_value("maturity", @maturity) - writer.write_object_value("pr", @pr) - writer.write_object_value("rate", @rate) - writer.write_object_value("redemption", @redemption) - writer.write_object_value("settlement", @settlement) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/yield/yield_request_builder.rb b/lib/drives/item/items/item/workbook/functions/yield/yield_request_builder.rb index 95ddf602b3..1aea71cf94 100644 --- a/lib/drives/item/items/item/workbook/functions/yield/yield_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/yield/yield_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a yield_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return YieldRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/yield_disc/yield_disc_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/yield_disc/yield_disc_post_request_body.rb index 70df74b6aa..0862c85666 100644 --- a/lib/drives/item/items/item/workbook/functions/yield_disc/yield_disc_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/yield_disc/yield_disc_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,52 +22,22 @@ class YieldDiscPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The maturity property - @maturity - ## - # The pr property - @pr - ## - # The redemption property - @redemption - ## - # The settlement property - @settlement - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new yieldDiscPostRequestBody and sets the default values. + ## Instantiates a new YieldDiscPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -89,87 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "pr" => lambda {|n| @pr = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "redemption" => lambda {|n| @redemption = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## - ## Gets the pr property value. The pr property - ## @return a json - ## - def pr - return @pr - end - ## - ## Sets the pr property value. The pr property - ## @param value Value to set for the pr property. - ## @return a void - ## - def pr=(value) - @pr = value - end - ## - ## Gets the redemption property value. The redemption property - ## @return a json - ## - def redemption - return @redemption - end - ## - ## Sets the redemption property value. The redemption property - ## @param value Value to set for the redemption property. - ## @return a void - ## - def redemption=(value) - @redemption = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("maturity", @maturity) - writer.write_object_value("pr", @pr) - writer.write_object_value("redemption", @redemption) - writer.write_object_value("settlement", @settlement) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/yield_disc/yield_disc_request_builder.rb b/lib/drives/item/items/item/workbook/functions/yield_disc/yield_disc_request_builder.rb index 2d0dbaf9f5..ace56099c9 100644 --- a/lib/drives/item/items/item/workbook/functions/yield_disc/yield_disc_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/yield_disc/yield_disc_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a yield_disc_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return YieldDiscRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/yield_mat/yield_mat_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/yield_mat/yield_mat_post_request_body.rb index 2d503ce16a..a3d13c5a8b 100644 --- a/lib/drives/item/items/item/workbook/functions/yield_mat/yield_mat_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/yield_mat/yield_mat_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,55 +22,22 @@ class YieldMatPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The basis property - @basis - ## - # The issue property - @issue - ## - # The maturity property - @maturity - ## - # The pr property - @pr - ## - # The rate property - @rate - ## - # The settlement property - @settlement - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the basis property value. The basis property - ## @return a json - ## - def basis - return @basis - end - ## - ## Sets the basis property value. The basis property - ## @param value Value to set for the basis property. - ## @return a void - ## - def basis=(value) - @basis = value - end - ## - ## Instantiates a new yieldMatPostRequestBody and sets the default values. + ## Instantiates a new YieldMatPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -92,104 +58,17 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "issue" => lambda {|n| @issue = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "pr" => lambda {|n| @pr = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "rate" => lambda {|n| @rate = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## - ## Gets the issue property value. The issue property - ## @return a json - ## - def issue - return @issue - end - ## - ## Sets the issue property value. The issue property - ## @param value Value to set for the issue property. - ## @return a void - ## - def issue=(value) - @issue = value - end - ## - ## Gets the maturity property value. The maturity property - ## @return a json - ## - def maturity - return @maturity - end - ## - ## Sets the maturity property value. The maturity property - ## @param value Value to set for the maturity property. - ## @return a void - ## - def maturity=(value) - @maturity = value - end - ## - ## Gets the pr property value. The pr property - ## @return a json - ## - def pr - return @pr - end - ## - ## Sets the pr property value. The pr property - ## @param value Value to set for the pr property. - ## @return a void - ## - def pr=(value) - @pr = value - end - ## - ## Gets the rate property value. The rate property - ## @return a json - ## - def rate - return @rate - end - ## - ## Sets the rate property value. The rate property - ## @param value Value to set for the rate property. - ## @return a void - ## - def rate=(value) - @rate = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("basis", @basis) - writer.write_object_value("issue", @issue) - writer.write_object_value("maturity", @maturity) - writer.write_object_value("pr", @pr) - writer.write_object_value("rate", @rate) - writer.write_object_value("settlement", @settlement) writer.write_additional_data(@additional_data) end - ## - ## Gets the settlement property value. The settlement property - ## @return a json - ## - def settlement - return @settlement - end - ## - ## Sets the settlement property value. The settlement property - ## @param value Value to set for the settlement property. - ## @return a void - ## - def settlement=(value) - @settlement = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/yield_mat/yield_mat_request_builder.rb b/lib/drives/item/items/item/workbook/functions/yield_mat/yield_mat_request_builder.rb index ed94edcb67..771aac1854 100644 --- a/lib/drives/item/items/item/workbook/functions/yield_mat/yield_mat_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/yield_mat/yield_mat_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a yield_mat_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return YieldMatRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/functions/z_test/z_test_post_request_body.rb b/lib/drives/item/items/item/workbook/functions/z_test/z_test_post_request_body.rb index 0b01d4429e..734a341846 100644 --- a/lib/drives/item/items/item/workbook/functions/z_test/z_test_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/functions/z_test/z_test_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -23,45 +22,21 @@ class ZTestPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The array property - @array - ## - # The sigma property - @sigma - ## - # The x property - @x - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Gets the array property value. The array property - ## @return a json - ## - def array - return @array - end - ## - ## Sets the array property value. The array property - ## @param value Value to set for the array property. - ## @return a void - ## - def array=(value) - @array = value - end - ## ## Instantiates a new ZTestPostRequestBody and sets the default values. ## @return a void ## @@ -83,9 +58,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "array" => lambda {|n| @array = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "sigma" => lambda {|n| @sigma = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "x" => lambda {|n| @x = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -95,41 +67,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("array", @array) - writer.write_object_value("sigma", @sigma) - writer.write_object_value("x", @x) writer.write_additional_data(@additional_data) end - ## - ## Gets the sigma property value. The sigma property - ## @return a json - ## - def sigma - return @sigma - end - ## - ## Sets the sigma property value. The sigma property - ## @param value Value to set for the sigma property. - ## @return a void - ## - def sigma=(value) - @sigma = value - end - ## - ## Gets the x property value. The x property - ## @return a json - ## - def x - return @x - end - ## - ## Sets the x property value. The x property - ## @param value Value to set for the x property. - ## @return a void - ## - def x=(value) - @x = value - end end end end diff --git a/lib/drives/item/items/item/workbook/functions/z_test/z_test_request_builder.rb b/lib/drives/item/items/item/workbook/functions/z_test/z_test_request_builder.rb index 649af31cc8..5e50c78c1d 100644 --- a/lib/drives/item/items/item/workbook/functions/z_test/z_test_request_builder.rb +++ b/lib/drives/item/items/item/workbook/functions/z_test/z_test_request_builder.rb @@ -23,7 +23,7 @@ module Z_Test class ZTestRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new Z_TestRequestBuilder and sets the default values. + ## Instantiates a new ZTestRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFunctionResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a z_test_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ZTestRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/names/add/add_post_request_body.rb b/lib/drives/item/items/item/workbook/names/add/add_post_request_body.rb index 32ecf65cb5..f1d42a100c 100644 --- a/lib/drives/item/items/item/workbook/names/add/add_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/names/add/add_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/json' require_relative '../../../../../../drives' require_relative '../../../../../item' require_relative '../../../../items' @@ -29,18 +28,15 @@ class AddPostRequestBody # The name property @name ## - # The reference property - @reference - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -62,7 +58,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new addPostRequestBody and sets the default values. + ## Instantiates a new AddPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -85,7 +81,6 @@ def get_field_deserializers() return { "comment" => lambda {|n| @comment = n.get_string_value() }, "name" => lambda {|n| @name = n.get_string_value() }, - "reference" => lambda {|n| @reference = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -104,21 +99,6 @@ def name=(value) @name = value end ## - ## Gets the reference property value. The reference property - ## @return a json - ## - def reference - return @reference - end - ## - ## Sets the reference property value. The reference property - ## @param value Value to set for the reference property. - ## @return a void - ## - def reference=(value) - @reference = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void @@ -127,7 +107,6 @@ def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("comment", @comment) writer.write_string_value("name", @name) - writer.write_object_value("reference", @reference) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/names/add/add_request_builder.rb b/lib/drives/item/items/item/workbook/names/add/add_request_builder.rb index e89ba94e91..715fc7dfaa 100644 --- a/lib/drives/item/items/item/workbook/names/add/add_request_builder.rb +++ b/lib/drives/item/items/item/workbook/names/add/add_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookNamedItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/names/add_formula_local/add_formula_local_post_request_body.rb b/lib/drives/item/items/item/workbook/names/add_formula_local/add_formula_local_post_request_body.rb index 7d7414a420..af365de406 100644 --- a/lib/drives/item/items/item/workbook/names/add_formula_local/add_formula_local_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/names/add_formula_local/add_formula_local_post_request_body.rb @@ -31,15 +31,15 @@ class AddFormulaLocalPostRequestBody # The name property @name ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -61,7 +61,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new addFormulaLocalPostRequestBody and sets the default values. + ## Instantiates a new AddFormulaLocalPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/names/add_formula_local/add_formula_local_request_builder.rb b/lib/drives/item/items/item/workbook/names/add_formula_local/add_formula_local_request_builder.rb index dd25191ee0..744bdd779f 100644 --- a/lib/drives/item/items/item/workbook/names/add_formula_local/add_formula_local_request_builder.rb +++ b/lib/drives/item/items/item/workbook/names/add_formula_local/add_formula_local_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookNamedItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_formula_local_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddFormulaLocalRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/names/count/count_request_builder.rb b/lib/drives/item/items/item/workbook/names/count/count_request_builder.rb index 7cb52e1405..bb7b6b96f4 100644 --- a/lib/drives/item/items/item/workbook/names/count/count_request_builder.rb +++ b/lib/drives/item/items/item/workbook/names/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/me/direct_reports/direct_reports.rb b/lib/drives/item/items/item/workbook/names/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb similarity index 100% rename from lib/me/direct_reports/direct_reports.rb rename to lib/drives/item/items/item/workbook/names/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..cec3681faf --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/direct_reports/graph_org_contact/graph_org_contact.rb b/lib/drives/item/items/item/workbook/names/item/range/cell_with_row_with_column/cell_with_row_with_column.rb similarity index 100% rename from lib/me/direct_reports/graph_org_contact/graph_org_contact.rb rename to lib/drives/item/items/item/workbook/names/item/range/cell_with_row_with_column/cell_with_row_with_column.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..5340a39cd0 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/names/item/range/clear/clear.rb b/lib/drives/item/items/item/workbook/names/item/range/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/names/item/range/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/names/item/range/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..b7a34757d6 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/clear/clear_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/names/item/range/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/clear/clear_request_builder.rb new file mode 100644 index 0000000000..b8a9d68d2c --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/clear/clear_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/direct_reports/graph_user/graph_user.rb b/lib/drives/item/items/item/workbook/names/item/range/column_with_column/column_with_column.rb similarity index 100% rename from lib/me/direct_reports/graph_user/graph_user.rb rename to lib/drives/item/items/item/workbook/names/item/range/column_with_column/column_with_column.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..56092d6075 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/direct_reports/item/graph_org_contact/graph_org_contact.rb b/lib/drives/item/items/item/workbook/names/item/range/columns_after/columns_after.rb similarity index 100% rename from lib/me/direct_reports/item/graph_org_contact/graph_org_contact.rb rename to lib/drives/item/items/item/workbook/names/item/range/columns_after/columns_after.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..2646c4c6d3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/columns_after/columns_after_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/direct_reports/item/graph_user/graph_user.rb b/lib/drives/item/items/item/workbook/names/item/range/columns_after_with_count/columns_after_with_count.rb similarity index 100% rename from lib/me/direct_reports/item/graph_user/graph_user.rb rename to lib/drives/item/items/item/workbook/names/item/range/columns_after_with_count/columns_after_with_count.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..4ccbe63d2e --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/drive/drive.rb b/lib/drives/item/items/item/workbook/names/item/range/columns_before/columns_before.rb similarity index 100% rename from lib/me/drive/drive.rb rename to lib/drives/item/items/item/workbook/names/item/range/columns_before/columns_before.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..c821f02690 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/columns_before/columns_before_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/drives/drives.rb b/lib/drives/item/items/item/workbook/names/item/range/columns_before_with_count/columns_before_with_count.rb similarity index 100% rename from lib/me/drives/drives.rb rename to lib/drives/item/items/item/workbook/names/item/range/columns_before_with_count/columns_before_with_count.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..b21d40f782 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/names/item/range/delete/delete.rb b/lib/drives/item/items/item/workbook/names/item/range/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/names/item/range/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/names/item/range/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..32dfb3db97 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/delete/delete_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/names/item/range/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/delete/delete_request_builder.rb new file mode 100644 index 0000000000..403cfceb5c --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/delete/delete_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/employee_experience/employee_experience.rb b/lib/drives/item/items/item/workbook/names/item/range/entire_column/entire_column.rb similarity index 100% rename from lib/me/employee_experience/employee_experience.rb rename to lib/drives/item/items/item/workbook/names/item/range/entire_column/entire_column.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..662d0c72e4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/entire_column/entire_column_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/employee_experience/learning_course_activities/learning_course_activities.rb b/lib/drives/item/items/item/workbook/names/item/range/entire_row/entire_row.rb similarity index 100% rename from lib/me/employee_experience/learning_course_activities/learning_course_activities.rb rename to lib/drives/item/items/item/workbook/names/item/range/entire_row/entire_row.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..613b7baed1 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/entire_row/entire_row_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/events/events.rb b/lib/drives/item/items/item/workbook/names/item/range/format/format.rb similarity index 100% rename from lib/me/events/events.rb rename to lib/drives/item/items/item/workbook/names/item/range/format/format.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/format/format_request_builder.rb new file mode 100644 index 0000000000..2e04c787be --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/format/format_request_builder.rb @@ -0,0 +1,181 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/names/item/range/insert/insert.rb b/lib/drives/item/items/item/workbook/names/item/range/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/names/item/range/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/names/item/range/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..8a6c4f1c3a --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/insert/insert_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/names/item/range/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/insert/insert_request_builder.rb new file mode 100644 index 0000000000..bab336f677 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/insert/insert_request_builder.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/events/item/attachments/attachments.rb b/lib/drives/item/items/item/workbook/names/item/range/intersection_with_another_range/intersection_with_another_range.rb similarity index 100% rename from lib/me/events/item/attachments/attachments.rb rename to lib/drives/item/items/item/workbook/names/item/range/intersection_with_another_range/intersection_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..2842fcf6d4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/events/item/calendar/calendar.rb b/lib/drives/item/items/item/workbook/names/item/range/last_cell/last_cell.rb similarity index 100% rename from lib/me/events/item/calendar/calendar.rb rename to lib/drives/item/items/item/workbook/names/item/range/last_cell/last_cell.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..3d4d0a5891 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/last_cell/last_cell_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/events/item/dismiss_reminder/dismiss_reminder.rb b/lib/drives/item/items/item/workbook/names/item/range/last_column/last_column.rb similarity index 100% rename from lib/me/events/item/dismiss_reminder/dismiss_reminder.rb rename to lib/drives/item/items/item/workbook/names/item/range/last_column/last_column.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..a8e4dbdd48 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/last_column/last_column_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/events/item/extensions/extensions.rb b/lib/drives/item/items/item/workbook/names/item/range/last_row/last_row.rb similarity index 100% rename from lib/me/events/item/extensions/extensions.rb rename to lib/drives/item/items/item/workbook/names/item/range/last_row/last_row.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..0156a286d9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/last_row/last_row_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/names/item/range/merge/merge.rb b/lib/drives/item/items/item/workbook/names/item/range/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/names/item/range/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/names/item/range/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..2cec65c225 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/merge/merge_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/names/item/range/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/merge/merge_request_builder.rb new file mode 100644 index 0000000000..29a957104e --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/merge/merge_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/events/item/instances/instances.rb b/lib/drives/item/items/item/workbook/names/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb similarity index 100% rename from lib/me/events/item/instances/instances.rb rename to lib/drives/item/items/item/workbook/names/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..93a396f173 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/names/item/range/range_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/range_request_builder.rb index cd3e503b08..0f81736f36 100644 --- a/lib/drives/item/items/item/workbook/names/item/range/range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/names/item/range/range_request_builder.rb @@ -9,7 +9,38 @@ require_relative '../../../workbook' require_relative '../../names' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' require_relative './range' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' +require_relative './unmerge/unmerge_request_builder' +require_relative './used_range/used_range_request_builder' +require_relative './used_range_with_values_only/used_range_with_values_only_request_builder' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -24,6 +55,148 @@ module Range # Provides operations to call the range method. class RangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Names::Item::Range::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Names::Item::Range::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Names::Item::Range::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Names::Item::Range::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Names::Item::Range::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Names::Item::Range::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Names::Item::Range::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Names::Item::Range::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Names::Item::Range::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Names::Item::Range::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Names::Item::Range::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Names::Item::Range::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Names::Item::Range::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Names::Item::Range::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Names::Item::Range::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Names::Item::Range::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the usedRange method. + def used_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Names::Item::Range::UsedRange::UsedRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Names::Item::Range::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Names::Item::Range::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new RangeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -43,27 +216,102 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Provides operations to call the usedRange method. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a used_range_with_values_only_request_builder + ## + def used_range_with_values_only(values_only) + raise StandardError, 'values_only cannot be null' if values_only.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/me/events/item/instances/item/attachments/attachments.rb b/lib/drives/item/items/item/workbook/names/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb similarity index 100% rename from lib/me/events/item/instances/item/attachments/attachments.rb rename to lib/drives/item/items/item/workbook/names/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..d727558565 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/events/item/instances/item/calendar/calendar.rb b/lib/drives/item/items/item/workbook/names/item/range/row_with_row/row_with_row.rb similarity index 100% rename from lib/me/events/item/instances/item/calendar/calendar.rb rename to lib/drives/item/items/item/workbook/names/item/range/row_with_row/row_with_row.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..a387d4442e --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/events/item/instances/item/dismiss_reminder/dismiss_reminder.rb b/lib/drives/item/items/item/workbook/names/item/range/rows_above/rows_above.rb similarity index 100% rename from lib/me/events/item/instances/item/dismiss_reminder/dismiss_reminder.rb rename to lib/drives/item/items/item/workbook/names/item/range/rows_above/rows_above.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..f81ca4a618 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/rows_above/rows_above_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/events/item/instances/item/extensions/extensions.rb b/lib/drives/item/items/item/workbook/names/item/range/rows_above_with_count/rows_above_with_count.rb similarity index 100% rename from lib/me/events/item/instances/item/extensions/extensions.rb rename to lib/drives/item/items/item/workbook/names/item/range/rows_above_with_count/rows_above_with_count.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..2174e7d6f9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/export_device_and_app_management_data/export_device_and_app_management_data.rb b/lib/drives/item/items/item/workbook/names/item/range/rows_below/rows_below.rb similarity index 100% rename from lib/me/export_device_and_app_management_data/export_device_and_app_management_data.rb rename to lib/drives/item/items/item/workbook/names/item/range/rows_below/rows_below.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..6f986bb77e --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/rows_below/rows_below_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/export_device_and_app_management_data_with_skip_with_top/export_device_and_app_management_data_with_skip_with_top.rb b/lib/drives/item/items/item/workbook/names/item/range/rows_below_with_count/rows_below_with_count.rb similarity index 100% rename from lib/me/export_device_and_app_management_data_with_skip_with_top/export_device_and_app_management_data_with_skip_with_top.rb rename to lib/drives/item/items/item/workbook/names/item/range/rows_below_with_count/rows_below_with_count.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..17dd444f1f --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/extensions/extensions.rb b/lib/drives/item/items/item/workbook/names/item/range/sort/sort.rb similarity index 100% rename from lib/me/extensions/extensions.rb rename to lib/drives/item/items/item/workbook/names/item/range/sort/sort.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/sort/sort_request_builder.rb new file mode 100644 index 0000000000..06fde67799 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/sort/sort_request_builder.rb @@ -0,0 +1,181 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/extensions/item/item.rb b/lib/drives/item/items/item/workbook/names/item/range/unmerge/unmerge.rb similarity index 100% rename from lib/me/extensions/item/item.rb rename to lib/drives/item/items/item/workbook/names/item/range/unmerge/unmerge.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..2ae11f91d8 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/unmerge/unmerge_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/followed_sites/followed_sites.rb b/lib/drives/item/items/item/workbook/names/item/range/used_range/used_range.rb similarity index 100% rename from lib/me/followed_sites/followed_sites.rb rename to lib/drives/item/items/item/workbook/names/item/range/used_range/used_range.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/used_range/used_range_request_builder.rb new file mode 100644 index 0000000000..ca664a7558 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/used_range/used_range_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './used_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module UsedRange + ## + # Provides operations to call the usedRange method. + class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/usedRange()") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/followed_sites/item/item.rb b/lib/drives/item/items/item/workbook/names/item/range/used_range_with_values_only/used_range_with_values_only.rb similarity index 100% rename from lib/me/followed_sites/item/item.rb rename to lib/drives/item/items/item/workbook/names/item/range/used_range_with_values_only/used_range_with_values_only.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb new file mode 100644 index 0000000000..d3fd523525 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './used_range_with_values_only' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module UsedRangeWithValuesOnly + ## + # Provides operations to call the usedRange method. + class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a void + ## + def initialize(path_parameters, request_adapter, values_only=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/usedRange(valuesOnly={valuesOnly})") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/inference_classification/inference_classification.rb b/lib/drives/item/items/item/workbook/names/item/range/visible_view/visible_view.rb similarity index 100% rename from lib/me/inference_classification/inference_classification.rb rename to lib/drives/item/items/item/workbook/names/item/range/visible_view/visible_view.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..6c2fadf041 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/visible_view/visible_view_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/inference_classification/overrides/item/item.rb b/lib/drives/item/items/item/workbook/names/item/range/worksheet/worksheet.rb similarity index 100% rename from lib/me/inference_classification/overrides/item/item.rb rename to lib/drives/item/items/item/workbook/names/item/range/worksheet/worksheet.rb diff --git a/lib/drives/item/items/item/workbook/names/item/range/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..a050712884 --- /dev/null +++ b/lib/drives/item/items/item/workbook/names/item/range/worksheet/worksheet_request_builder.rb @@ -0,0 +1,116 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Names + module Item + module Range + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/names/item/workbook_named_item_item_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/workbook_named_item_item_request_builder.rb index 7161bea3a5..57c4b104c2 100644 --- a/lib/drives/item/items/item/workbook/names/item/workbook_named_item_item_request_builder.rb +++ b/lib/drives/item/items/item/workbook/names/item/workbook_named_item_item_request_builder.rb @@ -41,7 +41,7 @@ def worksheet() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}{?%24expand,%24select}") end ## ## Delete navigation property names for drives @@ -53,12 +53,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of nameditem object. + ## Represents a collection of workbooks scoped named items (named ranges and constants). Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_named_item ## @@ -67,12 +66,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookNamedItem.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of nameditem object. + ## Update the navigation property names in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_named_item @@ -83,8 +81,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookNamedItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -94,35 +91,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of nameditem object. + ## Represents a collection of workbooks scoped named items (named ranges and constants). Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of nameditem object. + ## Update the navigation property names in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -130,20 +128,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a workbook_named_item_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorkbookNamedItemItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of nameditem object. + # Represents a collection of workbooks scoped named items (named ranges and constants). Read-only. class WorkbookNamedItemItemRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/names/item/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/worksheet/worksheet_request_builder.rb index bb0919fa54..595b2c34e0 100644 --- a/lib/drives/item/items/item/workbook/names/item/worksheet/worksheet_request_builder.rb +++ b/lib/drives/item/items/item/workbook/names/item/worksheet/worksheet_request_builder.rb @@ -31,10 +31,10 @@ class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/worksheet{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/worksheet{?%24expand,%24select}") end ## - ## Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + ## Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_worksheet ## @@ -43,31 +43,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + ## Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end ## - # Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + # Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. class WorksheetRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/names/names_request_builder.rb b/lib/drives/item/items/item/workbook/names/names_request_builder.rb index c902621e4c..9df89390a2 100644 --- a/lib/drives/item/items/item/workbook/names/names_request_builder.rb +++ b/lib/drives/item/items/item/workbook/names/names_request_builder.rb @@ -58,10 +58,10 @@ def by_workbook_named_item_id(workbook_named_item_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of nameditem objects. + ## Represents a collection of workbooks scoped named items (named ranges and constants). Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_named_item_collection_response ## @@ -70,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookNamedItemCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,26 +85,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookNamedItem.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of nameditem objects. + ## Represents a collection of workbooks scoped named items (named ranges and constants). Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -117,20 +115,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a names_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NamesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of nameditem objects. + # Represents a collection of workbooks scoped named items (named ranges and constants). Read-only. class NamesRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/operations/count/count_request_builder.rb b/lib/drives/item/items/item/workbook/operations/count/count_request_builder.rb index c090945dfa..5bdacbc8a7 100644 --- a/lib/drives/item/items/item/workbook/operations/count/count_request_builder.rb +++ b/lib/drives/item/items/item/workbook/operations/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/operations/$count{?%24search}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/operations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,22 +50,34 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource class CountRequestBuilderGetQueryParameters + ## + # Filter items by property values + attr_accessor :filter ## # Search items by search phrases attr_accessor :search @@ -78,6 +89,8 @@ class CountRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "filter" + return "%24filter" when "search" return "%24search" else diff --git a/lib/drives/item/items/item/workbook/operations/item/workbook_operation_item_request_builder.rb b/lib/drives/item/items/item/workbook/operations/item/workbook_operation_item_request_builder.rb index 62d3e63550..359de3b9a3 100644 --- a/lib/drives/item/items/item/workbook/operations/item/workbook_operation_item_request_builder.rb +++ b/lib/drives/item/items/item/workbook/operations/item/workbook_operation_item_request_builder.rb @@ -29,7 +29,7 @@ class WorkbookOperationItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/operations/{workbookOperation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/operations/{workbookOperation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property operations for drives @@ -41,12 +41,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. + ## The status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_operation ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,31 +79,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. + ## The status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,20 +116,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a workbook_operation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorkbookOperationItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. + # The status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. class WorkbookOperationItemRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/operations/operations_request_builder.rb b/lib/drives/item/items/item/workbook/operations/operations_request_builder.rb index 713e538753..e8f2dc502b 100644 --- a/lib/drives/item/items/item/workbook/operations/operations_request_builder.rb +++ b/lib/drives/item/items/item/workbook/operations/operations_request_builder.rb @@ -46,10 +46,10 @@ def by_workbook_operation_id(workbook_operation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/operations{?%24search,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. + ## The status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_operation_collection_response ## @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookOperationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,26 +73,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookOperation.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. + ## The status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,26 +103,41 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a operations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OperationsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. + # The status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. class OperationsRequestBuilderGetQueryParameters + ## + # Include count of items + attr_accessor :count ## # Expand related entities attr_accessor :expand ## + # Filter items by property values + attr_accessor :filter + ## # Order items by property values attr_accessor :orderby ## @@ -134,6 +147,12 @@ class OperationsRequestBuilderGetQueryParameters # Select properties to be returned attr_accessor :select ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -141,14 +160,22 @@ class OperationsRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "count" + return "%24count" when "expand" return "%24expand" + when "filter" + return "%24filter" when "orderby" return "%24orderby" when "search" return "%24search" when "select" return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" else return original_name end diff --git a/lib/drives/item/items/item/workbook/refresh_session/refresh_session_request_builder.rb b/lib/drives/item/items/item/workbook/refresh_session/refresh_session_request_builder.rb index cd3614031f..b36b431640 100644 --- a/lib/drives/item/items/item/workbook/refresh_session/refresh_session_request_builder.rb +++ b/lib/drives/item/items/item/workbook/refresh_session/refresh_session_request_builder.rb @@ -29,7 +29,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/refreshSession") end ## - ## Use this API to refresh an existing workbook session. + ## Use this API to refresh an existing workbook session. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -38,26 +38,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Use this API to refresh an existing workbook session. + ## Use this API to refresh an existing workbook session. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a refresh_session_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefreshSessionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/session_info_resource_with_key/session_info_resource_with_key_request_builder.rb b/lib/drives/item/items/item/workbook/session_info_resource_with_key/session_info_resource_with_key_request_builder.rb index d8261e1dbe..5ef0400932 100644 --- a/lib/drives/item/items/item/workbook/session_info_resource_with_key/session_info_resource_with_key_request_builder.rb +++ b/lib/drives/item/items/item/workbook/session_info_resource_with_key/session_info_resource_with_key_request_builder.rb @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookSessionInfo.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -51,16 +50,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a session_info_resource_with_key_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SessionInfoResourceWithKeyRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/table_row_operation_result_with_key/table_row_operation_result_with_key_request_builder.rb b/lib/drives/item/items/item/workbook/table_row_operation_result_with_key/table_row_operation_result_with_key_request_builder.rb index 4dbcab12f8..6ffa5d1225 100644 --- a/lib/drives/item/items/item/workbook/table_row_operation_result_with_key/table_row_operation_result_with_key_request_builder.rb +++ b/lib/drives/item/items/item/workbook/table_row_operation_result_with_key/table_row_operation_result_with_key_request_builder.rb @@ -31,7 +31,7 @@ def initialize(path_parameters, request_adapter, key=nil) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tableRowOperationResult(key='{key}')") end ## - ## Invoke function tableRowOperationResult + ## This function is the last in a series of steps to create a workbookTableRow resource asynchronously. A best practice to create multiple table rows is to batch them in one create tableRow operation and carry out the operation asynchronously. An asynchronous request to create table rows involves the following steps:1. Issue an async Create tableRow request and get the query URL returned in the Location response header.2. Use the query URL returned from step 1 to issue the Get workbookOperation request and get the operation ID for step 3. Alternatively, for convenience, after you get a succeeded operationStatus result, you can get the query URL from the resourceLocation property of the workbookOperation returned in the response, and apply the query URL to step 3. 3. Use the query URL returned from step 2 as the GET request URL for this function tableRowOperationResult. A successful function call returns the new table rows in a workbookTableRow resource. This function does not do anything if called independently. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_row ## @@ -40,27 +40,35 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableRow.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function tableRowOperationResult + ## This function is the last in a series of steps to create a workbookTableRow resource asynchronously. A best practice to create multiple table rows is to batch them in one create tableRow operation and carry out the operation asynchronously. An asynchronous request to create table rows involves the following steps:1. Issue an async Create tableRow request and get the query URL returned in the Location response header.2. Use the query URL returned from step 1 to issue the Get workbookOperation request and get the operation ID for step 3. Alternatively, for convenience, after you get a succeeded operationStatus result, you can get the query URL from the resourceLocation property of the workbookOperation returned in the response, and apply the query URL to step 3. 3. Use the query URL returned from step 2 as the GET request URL for this function tableRowOperationResult. A successful function call returns the new table rows in a workbookTableRow resource. This function does not do anything if called independently. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a table_row_operation_result_with_key_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TableRowOperationResultWithKeyRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/add/add_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/add/add_post_request_body.rb index 6dc16e725f..1f0c644ce0 100644 --- a/lib/drives/item/items/item/workbook/tables/add/add_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/tables/add/add_post_request_body.rb @@ -28,15 +28,15 @@ class AddPostRequestBody # The hasHeaders property @has_headers ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -58,7 +58,7 @@ def address=(value) @address = value end ## - ## Instantiates a new addPostRequestBody and sets the default values. + ## Instantiates a new AddPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/tables/add/add_request_builder.rb b/lib/drives/item/items/item/workbook/tables/add/add_request_builder.rb index 7bf9c0e5df..120fe2bf13 100644 --- a/lib/drives/item/items/item/workbook/tables/add/add_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/add/add_request_builder.rb @@ -32,7 +32,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/add") end ## - ## Invoke action add + ## Use this API to create a new Table. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table @@ -43,12 +43,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTable.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke action add + ## Use this API to create a new Table. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/count/count.rb b/lib/drives/item/items/item/workbook/tables/count/count.rb index 4f3a94e631..0dc4499e3a 100644 --- a/lib/drives/item/items/item/workbook/tables/count/count.rb +++ b/lib/drives/item/items/item/workbook/tables/count/count.rb @@ -1 +1 @@ -require_relative 'count_response' +require_relative 'count_get_response' diff --git a/lib/drives/item/items/item/workbook/tables/count/count_get_response.rb b/lib/drives/item/items/item/workbook/tables/count/count_get_response.rb new file mode 100644 index 0000000000..0fb185f0ac --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/count/count_get_response.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../drives' +require_relative '../../../../../item' +require_relative '../../../../items' +require_relative '../../../item' +require_relative '../../workbook' +require_relative '../tables' +require_relative './count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Count + class CountGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new CountGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a count_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CountGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_number_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_number_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a integer + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/count/count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/count/count_request_builder.rb index 0a629672bc..eb238179b0 100644 --- a/lib/drives/item/items/item/workbook/tables/count/count_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/count/count_request_builder.rb @@ -33,16 +33,15 @@ def initialize(path_parameters, request_adapter) ## ## Invoke function count ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of count_response + ## @return a Fiber of count_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Count::CountResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Count::CountGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function count @@ -51,16 +50,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/count/count_response.rb b/lib/drives/item/items/item/workbook/tables/count/count_response.rb deleted file mode 100644 index f9227e174a..0000000000 --- a/lib/drives/item/items/item/workbook/tables/count/count_response.rb +++ /dev/null @@ -1,100 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../drives' -require_relative '../../../../../item' -require_relative '../../../../items' -require_relative '../../../item' -require_relative '../../workbook' -require_relative '../tables' -require_relative './count' - -module MicrosoftGraph - module Drives - module Item - module Items - module Item - module Workbook - module Tables - module Count - class CountResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new countResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a count_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CountResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_number_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_number_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a integer - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end -end diff --git a/lib/drives/item/items/item/workbook/tables/item/clear_filters/clear_filters_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/clear_filters/clear_filters_request_builder.rb index 10eb7ec4c9..a867ae6d7e 100644 --- a/lib/drives/item/items/item/workbook/tables/item/clear_filters/clear_filters_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/clear_filters/clear_filters_request_builder.rb @@ -42,8 +42,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,15 +52,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_filters_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearFiltersRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/add/add_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/add/add_post_request_body.rb index 63a3071147..ac21b13bfa 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/add/add_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/add/add_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../../models/json' require_relative '../../../../../../../../drives' require_relative '../../../../../../../item' require_relative '../../../../../../items' @@ -33,25 +32,22 @@ class AddPostRequestBody # The name property @name ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new addPostRequestBody and sets the default values. + ## Instantiates a new AddPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -74,7 +70,6 @@ def get_field_deserializers() return { "index" => lambda {|n| @index = n.get_number_value() }, "name" => lambda {|n| @name = n.get_string_value() }, - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -116,24 +111,8 @@ def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_number_value("index", @index) writer.write_string_value("name", @name) - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/add/add_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/add/add_request_builder.rb index e59d75d5fc..5803562459 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/add/add_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/add/add_request_builder.rb @@ -47,8 +47,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableColumn.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -60,17 +59,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/columns_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/columns_request_builder.rb index afaa6f2603..9c687e58ad 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/columns_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/columns_request_builder.rb @@ -57,10 +57,10 @@ def by_workbook_table_column_id(workbook_table_column_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of tablecolumn objects. + ## The list of all the columns in the table. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_column_collection_response ## @@ -69,8 +69,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableColumnCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,7 +82,7 @@ def item_at_with_index(index) return ItemAtWithIndexRequestBuilder.new(@path_parameters, @request_adapter, index) end ## - ## Use this API to create a new TableColumn. + ## Create new navigation property to columns for drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_column @@ -94,30 +93,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableColumn.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of tablecolumn objects. + ## The list of all the columns in the table. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Use this API to create a new TableColumn. + ## Create new navigation property to columns for drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -125,20 +123,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of tablecolumn objects. + # The list of all the columns in the table. Read-only. class ColumnsRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/columns/count/count.rb index 4f3a94e631..0dc4499e3a 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/count/count.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/count/count.rb @@ -1 +1 @@ -require_relative 'count_response' +require_relative 'count_get_response' diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/count/count_get_response.rb b/lib/drives/item/items/item/workbook/tables/item/columns/count/count_get_response.rb new file mode 100644 index 0000000000..5950b774c7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/count/count_get_response.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../columns' +require_relative './count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Count + class CountGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new CountGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a count_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CountGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_number_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_number_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a integer + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/count/count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/count/count_request_builder.rb index 494ac68d43..d327915085 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/count/count_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/count/count_request_builder.rb @@ -37,16 +37,15 @@ def initialize(path_parameters, request_adapter) ## ## Invoke function count ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of count_response + ## @return a Fiber of count_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Count::CountResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Count::CountGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function count @@ -55,16 +54,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/count/count_response.rb b/lib/drives/item/items/item/workbook/tables/item/columns/count/count_response.rb deleted file mode 100644 index 4573e8288d..0000000000 --- a/lib/drives/item/items/item/workbook/tables/item/columns/count/count_response.rb +++ /dev/null @@ -1,106 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../drives' -require_relative '../../../../../../../item' -require_relative '../../../../../../items' -require_relative '../../../../../item' -require_relative '../../../../workbook' -require_relative '../../../tables' -require_relative '../../item' -require_relative '../columns' -require_relative './count' - -module MicrosoftGraph - module Drives - module Item - module Items - module Item - module Workbook - module Tables - module Item - module Columns - module Count - class CountResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new countResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a count_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CountResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_number_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_number_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a integer - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end - end - end -end diff --git a/lib/me/inference_classification/overrides/overrides.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb similarity index 100% rename from lib/me/inference_classification/overrides/overrides.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..e4b71b3236 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/insights/insights.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/cell_with_row_with_column/cell_with_row_with_column.rb similarity index 100% rename from lib/me/insights/insights.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/cell_with_row_with_column/cell_with_row_with_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..a5fc5aeaa1 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/clear/clear.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..4940797067 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/clear/clear_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/clear/clear_request_builder.rb new file mode 100644 index 0000000000..016d3b3256 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/clear/clear_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/insights/shared/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/column_with_column/column_with_column.rb similarity index 100% rename from lib/me/insights/shared/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/column_with_column/column_with_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..0994b7fe01 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/insights/shared/item/last_shared_method/last_shared_method.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/columns_after/columns_after.rb similarity index 100% rename from lib/me/insights/shared/item/last_shared_method/last_shared_method.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/columns_after/columns_after.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..043489c5df --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/columns_after/columns_after_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/insights/shared/item/resource/resource.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/columns_after_with_count/columns_after_with_count.rb similarity index 100% rename from lib/me/insights/shared/item/resource/resource.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/columns_after_with_count/columns_after_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..e01b49b2ca --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/insights/shared/shared.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/columns_before/columns_before.rb similarity index 100% rename from lib/me/insights/shared/shared.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/columns_before/columns_before.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..0ccb430f90 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/columns_before/columns_before_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/insights/trending/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/columns_before_with_count/columns_before_with_count.rb similarity index 100% rename from lib/me/insights/trending/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/columns_before_with_count/columns_before_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..cac51e01de --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/data_body_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/data_body_range_request_builder.rb index 4ee99e4371..1fbe180513 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/data_body_range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/data_body_range_request_builder.rb @@ -11,7 +11,38 @@ require_relative '../../../item' require_relative '../../columns' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' require_relative './data_body_range' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' +require_relative './unmerge/unmerge_request_builder' +require_relative './used_range/used_range_request_builder' +require_relative './used_range_with_values_only/used_range_with_values_only_request_builder' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -28,6 +59,148 @@ module DataBodyRange # Provides operations to call the dataBodyRange method. class DataBodyRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::DataBodyRange::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::DataBodyRange::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::DataBodyRange::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::DataBodyRange::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::DataBodyRange::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::DataBodyRange::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::DataBodyRange::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::DataBodyRange::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::DataBodyRange::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::DataBodyRange::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::DataBodyRange::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::DataBodyRange::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::DataBodyRange::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::DataBodyRange::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::DataBodyRange::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::DataBodyRange::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the usedRange method. + def used_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::DataBodyRange::UsedRange::UsedRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::DataBodyRange::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::DataBodyRange::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new DataBodyRangeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -47,27 +220,102 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Gets the range object associated with the data body of the column. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Provides operations to call the usedRange method. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a used_range_with_values_only_request_builder + ## + def used_range_with_values_only(values_only) + raise StandardError, 'values_only cannot be null' if values_only.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a data_body_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DataBodyRangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/delete/delete.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..1f76e92800 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/delete/delete_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/delete/delete_request_builder.rb new file mode 100644 index 0000000000..9d9ec13f59 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/delete/delete_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/insights/trending/item/resource/resource.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/entire_column/entire_column.rb similarity index 100% rename from lib/me/insights/trending/item/resource/resource.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/entire_column/entire_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..2b07a4adb6 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/entire_column/entire_column_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/insights/trending/trending.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/entire_row/entire_row.rb similarity index 100% rename from lib/me/insights/trending/trending.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/entire_row/entire_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..684250a38e --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/entire_row/entire_row_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/insights/used/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/format/format.rb similarity index 100% rename from lib/me/insights/used/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/format/format.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/format/format_request_builder.rb new file mode 100644 index 0000000000..aab2be43d8 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/format/format_request_builder.rb @@ -0,0 +1,187 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/insert/insert.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..50fd5546ef --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/insert/insert_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/insert/insert_request_builder.rb new file mode 100644 index 0000000000..c90530e5c4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/insert/insert_request_builder.rb @@ -0,0 +1,98 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/insights/used/item/resource/resource.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/intersection_with_another_range/intersection_with_another_range.rb similarity index 100% rename from lib/me/insights/used/item/resource/resource.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/intersection_with_another_range/intersection_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..40bffea1ee --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/insights/used/used.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/last_cell/last_cell.rb similarity index 100% rename from lib/me/insights/used/used.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/last_cell/last_cell.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..f620f9a353 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/last_cell/last_cell_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/all_channels/all_channels.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/last_column/last_column.rb similarity index 100% rename from lib/me/joined_teams/item/all_channels/all_channels.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/last_column/last_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..3d6556da07 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/last_column/last_column_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/all_channels/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/last_row/last_row.rb similarity index 100% rename from lib/me/joined_teams/item/all_channels/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/last_row/last_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..a97a0c85d6 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/last_row/last_row_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/merge/merge.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..35747307e5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/merge/merge_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/merge/merge_request_builder.rb new file mode 100644 index 0000000000..289810773b --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/merge/merge_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/channels.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb similarity index 100% rename from lib/me/joined_teams/item/channels/channels.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..2498bd0f4f --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/complete_migration/complete_migration.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/complete_migration/complete_migration.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..3d58ae84f9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/files_folder/content/content.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/row_with_row/row_with_row.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/files_folder/content/content.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/row_with_row/row_with_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..c43cc509ce --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/files_folder/files_folder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/rows_above/rows_above.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/files_folder/files_folder.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/rows_above/rows_above.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..d58e9fb213 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/rows_above/rows_above_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/rows_above_with_count/rows_above_with_count.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/rows_above_with_count/rows_above_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..8ac29f42d8 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/members/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/rows_below/rows_below.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/members/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/rows_below/rows_below.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..c8d59443ca --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/rows_below/rows_below_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/members/members.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/rows_below_with_count/rows_below_with_count.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/members/members.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/rows_below_with_count/rows_below_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..73bee90db7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/messages/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/sort/sort.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/messages/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/sort/sort.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/sort/sort_request_builder.rb new file mode 100644 index 0000000000..931113f56f --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/sort/sort_request_builder.rb @@ -0,0 +1,187 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/messages/item/hosted_contents/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/unmerge/unmerge.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/messages/item/hosted_contents/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/unmerge/unmerge.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..5ecde9d975 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/unmerge/unmerge_request_builder.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/messages/item/hosted_contents/hosted_contents.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/used_range/used_range.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/messages/item/hosted_contents/hosted_contents.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/used_range/used_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/used_range/used_range_request_builder.rb new file mode 100644 index 0000000000..7befc1e044 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/used_range/used_range_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './used_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module UsedRange + ## + # Provides operations to call the usedRange method. + class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/usedRange()") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/messages/item/hosted_contents/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/used_range_with_values_only/used_range_with_values_only.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/messages/item/hosted_contents/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/used_range_with_values_only/used_range_with_values_only.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb new file mode 100644 index 0000000000..283e3f877b --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './used_range_with_values_only' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module UsedRangeWithValuesOnly + ## + # Provides operations to call the usedRange method. + class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a void + ## + def initialize(path_parameters, request_adapter, values_only=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/usedRange(valuesOnly={valuesOnly})") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/messages/item/hosted_contents/item/value/value.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/visible_view/visible_view.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/messages/item/hosted_contents/item/value/value.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/visible_view/visible_view.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..baf4c18fc0 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/visible_view/visible_view_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/messages/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/worksheet/worksheet.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/messages/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/worksheet/worksheet.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..afaaff20ef --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/data_body_range/worksheet/worksheet_request_builder.rb @@ -0,0 +1,122 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply/apply_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply/apply_post_request_body.rb index 4e7a5f1c4d..9f8f343e83 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply/apply_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply/apply_post_request_body.rb @@ -34,22 +34,22 @@ class ApplyPostRequestBody # The criteria property @criteria ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new applyPostRequestBody and sets the default values. + ## Instantiates a new ApplyPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply/apply_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply/apply_request_builder.rb index 8f4827f3f4..f68aebe382 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply/apply_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply/apply_request_builder.rb @@ -50,8 +50,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,16 +62,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_bottom_items_filter/apply_bottom_items_filter_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_bottom_items_filter/apply_bottom_items_filter_post_request_body.rb index 47aeef4dcc..43c184f35a 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_bottom_items_filter/apply_bottom_items_filter_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_bottom_items_filter/apply_bottom_items_filter_post_request_body.rb @@ -33,22 +33,22 @@ class ApplyBottomItemsFilterPostRequestBody # The count property @count ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new applyBottomItemsFilterPostRequestBody and sets the default values. + ## Instantiates a new ApplyBottomItemsFilterPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_bottom_items_filter/apply_bottom_items_filter_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_bottom_items_filter/apply_bottom_items_filter_request_builder.rb index 3547e42a57..8d3d28fe2b 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_bottom_items_filter/apply_bottom_items_filter_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_bottom_items_filter/apply_bottom_items_filter_request_builder.rb @@ -50,8 +50,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,16 +62,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_bottom_items_filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyBottomItemsFilterRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_bottom_percent_filter/apply_bottom_percent_filter_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_bottom_percent_filter/apply_bottom_percent_filter_post_request_body.rb index e69bc8ddab..4429b09ead 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_bottom_percent_filter/apply_bottom_percent_filter_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_bottom_percent_filter/apply_bottom_percent_filter_post_request_body.rb @@ -33,22 +33,22 @@ class ApplyBottomPercentFilterPostRequestBody # The percent property @percent ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new applyBottomPercentFilterPostRequestBody and sets the default values. + ## Instantiates a new ApplyBottomPercentFilterPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_bottom_percent_filter/apply_bottom_percent_filter_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_bottom_percent_filter/apply_bottom_percent_filter_request_builder.rb index 187225a7ab..af1c1e3271 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_bottom_percent_filter/apply_bottom_percent_filter_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_bottom_percent_filter/apply_bottom_percent_filter_request_builder.rb @@ -50,8 +50,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,16 +62,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_bottom_percent_filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyBottomPercentFilterRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_cell_color_filter/apply_cell_color_filter_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_cell_color_filter/apply_cell_color_filter_post_request_body.rb index c20d18614e..37d2e6a4e2 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_cell_color_filter/apply_cell_color_filter_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_cell_color_filter/apply_cell_color_filter_post_request_body.rb @@ -33,15 +33,15 @@ class ApplyCellColorFilterPostRequestBody # The color property @color ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -63,7 +63,7 @@ def color=(value) @color = value end ## - ## Instantiates a new applyCellColorFilterPostRequestBody and sets the default values. + ## Instantiates a new ApplyCellColorFilterPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_cell_color_filter/apply_cell_color_filter_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_cell_color_filter/apply_cell_color_filter_request_builder.rb index 1a7d66ff83..cc1b5fbb6f 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_cell_color_filter/apply_cell_color_filter_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_cell_color_filter/apply_cell_color_filter_request_builder.rb @@ -50,8 +50,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,16 +62,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_cell_color_filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyCellColorFilterRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_custom_filter/apply_custom_filter_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_custom_filter/apply_custom_filter_post_request_body.rb index 8fb4b000ff..b0c1365a58 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_custom_filter/apply_custom_filter_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_custom_filter/apply_custom_filter_post_request_body.rb @@ -39,22 +39,22 @@ class ApplyCustomFilterPostRequestBody # The oper property @oper ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new applyCustomFilterPostRequestBody and sets the default values. + ## Instantiates a new ApplyCustomFilterPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_custom_filter/apply_custom_filter_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_custom_filter/apply_custom_filter_request_builder.rb index f4a5469d65..7c65d5970e 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_custom_filter/apply_custom_filter_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_custom_filter/apply_custom_filter_request_builder.rb @@ -50,8 +50,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,16 +62,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_custom_filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyCustomFilterRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_dynamic_filter/apply_dynamic_filter_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_dynamic_filter/apply_dynamic_filter_post_request_body.rb index 8f07afa163..d008a8570e 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_dynamic_filter/apply_dynamic_filter_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_dynamic_filter/apply_dynamic_filter_post_request_body.rb @@ -33,22 +33,22 @@ class ApplyDynamicFilterPostRequestBody # The criteria property @criteria ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new applyDynamicFilterPostRequestBody and sets the default values. + ## Instantiates a new ApplyDynamicFilterPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_dynamic_filter/apply_dynamic_filter_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_dynamic_filter/apply_dynamic_filter_request_builder.rb index 0021ce7a6f..25a5fdb60c 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_dynamic_filter/apply_dynamic_filter_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_dynamic_filter/apply_dynamic_filter_request_builder.rb @@ -50,8 +50,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,16 +62,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_dynamic_filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyDynamicFilterRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_font_color_filter/apply_font_color_filter_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_font_color_filter/apply_font_color_filter_post_request_body.rb index ef6723711c..6ddb14adc4 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_font_color_filter/apply_font_color_filter_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_font_color_filter/apply_font_color_filter_post_request_body.rb @@ -33,15 +33,15 @@ class ApplyFontColorFilterPostRequestBody # The color property @color ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -63,7 +63,7 @@ def color=(value) @color = value end ## - ## Instantiates a new applyFontColorFilterPostRequestBody and sets the default values. + ## Instantiates a new ApplyFontColorFilterPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_font_color_filter/apply_font_color_filter_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_font_color_filter/apply_font_color_filter_request_builder.rb index 55fe034404..9b78e4747b 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_font_color_filter/apply_font_color_filter_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_font_color_filter/apply_font_color_filter_request_builder.rb @@ -50,8 +50,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,16 +62,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_font_color_filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyFontColorFilterRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_icon_filter/apply_icon_filter_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_icon_filter/apply_icon_filter_post_request_body.rb index b80618e99f..25c7242530 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_icon_filter/apply_icon_filter_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_icon_filter/apply_icon_filter_post_request_body.rb @@ -34,22 +34,22 @@ class ApplyIconFilterPostRequestBody # The icon property @icon ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new applyIconFilterPostRequestBody and sets the default values. + ## Instantiates a new ApplyIconFilterPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_icon_filter/apply_icon_filter_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_icon_filter/apply_icon_filter_request_builder.rb index 4e61bdefc1..03f1776359 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_icon_filter/apply_icon_filter_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_icon_filter/apply_icon_filter_request_builder.rb @@ -50,8 +50,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,16 +62,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_icon_filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyIconFilterRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_top_items_filter/apply_top_items_filter_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_top_items_filter/apply_top_items_filter_post_request_body.rb index ad97cf8c74..201986c683 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_top_items_filter/apply_top_items_filter_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_top_items_filter/apply_top_items_filter_post_request_body.rb @@ -33,22 +33,22 @@ class ApplyTopItemsFilterPostRequestBody # The count property @count ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new applyTopItemsFilterPostRequestBody and sets the default values. + ## Instantiates a new ApplyTopItemsFilterPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_top_items_filter/apply_top_items_filter_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_top_items_filter/apply_top_items_filter_request_builder.rb index 12da2927f2..8dc0d97cbe 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_top_items_filter/apply_top_items_filter_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_top_items_filter/apply_top_items_filter_request_builder.rb @@ -50,8 +50,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,16 +62,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_top_items_filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyTopItemsFilterRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_top_percent_filter/apply_top_percent_filter_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_top_percent_filter/apply_top_percent_filter_post_request_body.rb index 083a9e793f..8fa3f68573 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_top_percent_filter/apply_top_percent_filter_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_top_percent_filter/apply_top_percent_filter_post_request_body.rb @@ -33,22 +33,22 @@ class ApplyTopPercentFilterPostRequestBody # The percent property @percent ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new applyTopPercentFilterPostRequestBody and sets the default values. + ## Instantiates a new ApplyTopPercentFilterPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_top_percent_filter/apply_top_percent_filter_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_top_percent_filter/apply_top_percent_filter_request_builder.rb index bb9549225a..ffc7af5d76 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_top_percent_filter/apply_top_percent_filter_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_top_percent_filter/apply_top_percent_filter_request_builder.rb @@ -50,8 +50,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,16 +62,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_top_percent_filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyTopPercentFilterRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_values_filter/apply_values_filter_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_values_filter/apply_values_filter_post_request_body.rb index 6545103afa..98218fef23 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_values_filter/apply_values_filter_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_values_filter/apply_values_filter_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../../../../models/json' require_relative '../../../../../../../../../../drives' require_relative '../../../../../../../../../item' require_relative '../../../../../../../../items' @@ -31,25 +30,22 @@ class ApplyValuesFilterPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new applyValuesFilterPostRequestBody and sets the default values. + ## Instantiates a new ApplyValuesFilterPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -70,7 +66,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -80,24 +75,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_values_filter/apply_values_filter_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_values_filter/apply_values_filter_request_builder.rb index 400cc913f7..7fd9fc1071 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_values_filter/apply_values_filter_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/apply_values_filter/apply_values_filter_request_builder.rb @@ -50,8 +50,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,16 +62,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_values_filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyValuesFilterRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/clear/clear_request_builder.rb index bc5a217147..d30537b256 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/clear/clear_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/clear/clear_request_builder.rb @@ -48,8 +48,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,15 +58,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/filter_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/filter_request_builder.rb index 27bbc712de..fca1300443 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/filter_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/filter/filter_request_builder.rb @@ -107,7 +107,7 @@ def clear() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter{?%24expand,%24select}") end ## ## Delete navigation property filter for drives @@ -119,12 +119,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the filter applied to the column. Read-only. + ## The filter applied to the column. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_filter ## @@ -133,8 +132,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFilter.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -149,8 +147,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFilter.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -160,31 +157,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the filter applied to the column. Read-only. + ## The filter applied to the column. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -196,20 +194,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilterRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the filter applied to the column. Read-only. + # The filter applied to the column. Read-only. class FilterRequestBuilderGetQueryParameters ## diff --git a/lib/me/joined_teams/item/channels/item/messages/item/replies/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/messages/item/replies/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..b2b9fb5227 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/messages/item/replies/item/hosted_contents/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/cell_with_row_with_column/cell_with_row_with_column.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/messages/item/replies/item/hosted_contents/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/cell_with_row_with_column/cell_with_row_with_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..ceebdbb500 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/clear/clear.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..66084f52af --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/clear/clear_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/clear/clear_request_builder.rb new file mode 100644 index 0000000000..37d896687b --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/clear/clear_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/messages/item/replies/item/hosted_contents/hosted_contents.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/column_with_column/column_with_column.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/messages/item/replies/item/hosted_contents/hosted_contents.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/column_with_column/column_with_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..5521f804d2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/messages/item/replies/item/hosted_contents/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/columns_after/columns_after.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/messages/item/replies/item/hosted_contents/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/columns_after/columns_after.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..05ca070dc0 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/columns_after/columns_after_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/messages/item/replies/item/hosted_contents/item/value/value.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/columns_after_with_count/columns_after_with_count.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/messages/item/replies/item/hosted_contents/item/value/value.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/columns_after_with_count/columns_after_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..de0d38568a --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/messages/item/replies/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/columns_before/columns_before.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/messages/item/replies/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/columns_before/columns_before.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..9665599111 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/columns_before/columns_before_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/messages/item/replies/item/soft_delete/soft_delete.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/columns_before_with_count/columns_before_with_count.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/messages/item/replies/item/soft_delete/soft_delete.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/columns_before_with_count/columns_before_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..48126d029a --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/delete/delete.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..616d34c1d2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/delete/delete_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/delete/delete_request_builder.rb new file mode 100644 index 0000000000..6f09540e5e --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/delete/delete_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/messages/item/replies/item/undo_soft_delete/undo_soft_delete.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/entire_column/entire_column.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/messages/item/replies/item/undo_soft_delete/undo_soft_delete.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/entire_column/entire_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..29d24125a5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/entire_column/entire_column_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/messages/item/replies/replies.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/entire_row/entire_row.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/messages/item/replies/replies.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/entire_row/entire_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..ebcfee0b69 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/entire_row/entire_row_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/messages/item/soft_delete/soft_delete.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/format/format.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/messages/item/soft_delete/soft_delete.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/format/format.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/format/format_request_builder.rb new file mode 100644 index 0000000000..70f515c602 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/format/format_request_builder.rb @@ -0,0 +1,187 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/header_row_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/header_row_range_request_builder.rb index 4f6f813bf5..da55b79c74 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/header_row_range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/header_row_range_request_builder.rb @@ -11,7 +11,38 @@ require_relative '../../../item' require_relative '../../columns' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' require_relative './header_row_range' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' +require_relative './unmerge/unmerge_request_builder' +require_relative './used_range/used_range_request_builder' +require_relative './used_range_with_values_only/used_range_with_values_only_request_builder' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -28,6 +59,148 @@ module HeaderRowRange # Provides operations to call the headerRowRange method. class HeaderRowRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::HeaderRowRange::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::HeaderRowRange::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::HeaderRowRange::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::HeaderRowRange::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::HeaderRowRange::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::HeaderRowRange::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::HeaderRowRange::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::HeaderRowRange::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::HeaderRowRange::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::HeaderRowRange::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::HeaderRowRange::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::HeaderRowRange::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::HeaderRowRange::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::HeaderRowRange::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::HeaderRowRange::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::HeaderRowRange::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the usedRange method. + def used_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::HeaderRowRange::UsedRange::UsedRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::HeaderRowRange::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::HeaderRowRange::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new HeaderRowRangeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -47,27 +220,102 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Gets the range object associated with the header row of the column. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Provides operations to call the usedRange method. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a used_range_with_values_only_request_builder + ## + def used_range_with_values_only(values_only) + raise StandardError, 'values_only cannot be null' if values_only.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a header_row_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HeaderRowRangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/insert/insert.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..22b820b267 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/insert/insert_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/insert/insert_request_builder.rb new file mode 100644 index 0000000000..241a045e19 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/insert/insert_request_builder.rb @@ -0,0 +1,98 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/messages/item/undo_soft_delete/undo_soft_delete.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/intersection_with_another_range/intersection_with_another_range.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/messages/item/undo_soft_delete/undo_soft_delete.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/intersection_with_another_range/intersection_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..8b3b87b0f3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/messages/messages.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/last_cell/last_cell.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/messages/messages.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/last_cell/last_cell.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..51cbd694c2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/last_cell/last_cell_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/provision_email/provision_email.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/last_column/last_column.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/provision_email/provision_email.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/last_column/last_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..b60b615e5c --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/last_column/last_column_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/remove_email/remove_email.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/last_row/last_row.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/remove_email/remove_email.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/last_row/last_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..eeabab3b3b --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/last_row/last_row_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/merge/merge.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..2d1355e490 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/merge/merge_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/merge/merge_request_builder.rb new file mode 100644 index 0000000000..9f7ed9fd33 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/merge/merge_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/shared_with_teams/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/shared_with_teams/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..689ab275de --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/shared_with_teams/item/allowed_members/allowed_members.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/shared_with_teams/item/allowed_members/allowed_members.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..e74f75a27e --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/shared_with_teams/item/allowed_members/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/row_with_row/row_with_row.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/shared_with_teams/item/allowed_members/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/row_with_row/row_with_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..77f21b9ffe --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/shared_with_teams/item/allowed_members/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/rows_above/rows_above.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/shared_with_teams/item/allowed_members/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/rows_above/rows_above.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..2ff1fe45d2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/rows_above/rows_above_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/shared_with_teams/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/rows_above_with_count/rows_above_with_count.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/shared_with_teams/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/rows_above_with_count/rows_above_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..6254c9995d --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/shared_with_teams/item/team/team.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/rows_below/rows_below.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/shared_with_teams/item/team/team.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/rows_below/rows_below.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..ddbec67d15 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/rows_below/rows_below_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/shared_with_teams/shared_with_teams.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/rows_below_with_count/rows_below_with_count.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/shared_with_teams/shared_with_teams.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/rows_below_with_count/rows_below_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..06b658fe10 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/tabs/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/sort/sort.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/tabs/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/sort/sort.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/sort/sort_request_builder.rb new file mode 100644 index 0000000000..f721af31cc --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/sort/sort_request_builder.rb @@ -0,0 +1,187 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/tabs/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/unmerge/unmerge.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/tabs/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/unmerge/unmerge.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..9bb48c40d5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/unmerge/unmerge_request_builder.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/tabs/item/teams_app/teams_app.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/used_range/used_range.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/tabs/item/teams_app/teams_app.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/used_range/used_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/used_range/used_range_request_builder.rb new file mode 100644 index 0000000000..287d61f1ba --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/used_range/used_range_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './used_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module UsedRange + ## + # Provides operations to call the usedRange method. + class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/usedRange()") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/channels/item/tabs/tabs.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/used_range_with_values_only/used_range_with_values_only.rb similarity index 100% rename from lib/me/joined_teams/item/channels/item/tabs/tabs.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/used_range_with_values_only/used_range_with_values_only.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb new file mode 100644 index 0000000000..e0a4027b74 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './used_range_with_values_only' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module UsedRangeWithValuesOnly + ## + # Provides operations to call the usedRange method. + class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a void + ## + def initialize(path_parameters, request_adapter, values_only=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/usedRange(valuesOnly={valuesOnly})") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/complete_migration/complete_migration.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/visible_view/visible_view.rb similarity index 100% rename from lib/me/joined_teams/item/complete_migration/complete_migration.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/visible_view/visible_view.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..f4f5aa4500 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/visible_view/visible_view_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/group/group.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/worksheet/worksheet.rb similarity index 100% rename from lib/me/joined_teams/item/group/group.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/worksheet/worksheet.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..8b6a107f55 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/header_row_range/worksheet/worksheet_request_builder.rb @@ -0,0 +1,122 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/incoming_channels/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb similarity index 100% rename from lib/me/joined_teams/item/incoming_channels/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..3e63d94d53 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/incoming_channels/incoming_channels.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/cell_with_row_with_column/cell_with_row_with_column.rb similarity index 100% rename from lib/me/joined_teams/item/incoming_channels/incoming_channels.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/cell_with_row_with_column/cell_with_row_with_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..ce7ef8ce94 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/clear/clear.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..8ade373809 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/clear/clear_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/clear/clear_request_builder.rb new file mode 100644 index 0000000000..8c2ba36802 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/clear/clear_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/incoming_channels/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/column_with_column/column_with_column.rb similarity index 100% rename from lib/me/joined_teams/item/incoming_channels/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/column_with_column/column_with_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..a4148b2ae7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/installed_apps/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/columns_after/columns_after.rb similarity index 100% rename from lib/me/joined_teams/item/installed_apps/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/columns_after/columns_after.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..e80de7703f --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/columns_after/columns_after_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/installed_apps/installed_apps.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/columns_after_with_count/columns_after_with_count.rb similarity index 100% rename from lib/me/joined_teams/item/installed_apps/installed_apps.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/columns_after_with_count/columns_after_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..debbfaacc2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/installed_apps/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/columns_before/columns_before.rb similarity index 100% rename from lib/me/joined_teams/item/installed_apps/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/columns_before/columns_before.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..a20727a5eb --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/columns_before/columns_before_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/installed_apps/item/teams_app/teams_app.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/columns_before_with_count/columns_before_with_count.rb similarity index 100% rename from lib/me/joined_teams/item/installed_apps/item/teams_app/teams_app.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/columns_before_with_count/columns_before_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..9c682823b2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/delete/delete.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..45c17d231f --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/delete/delete_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/delete/delete_request_builder.rb new file mode 100644 index 0000000000..2081e612ea --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/delete/delete_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/installed_apps/item/teams_app_definition/teams_app_definition.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/entire_column/entire_column.rb similarity index 100% rename from lib/me/joined_teams/item/installed_apps/item/teams_app_definition/teams_app_definition.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/entire_column/entire_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..21c257cae8 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/entire_column/entire_column_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/entire_row/entire_row.rb similarity index 100% rename from lib/me/joined_teams/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/entire_row/entire_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..b4765345a4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/entire_row/entire_row_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/members/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/format/format.rb similarity index 100% rename from lib/me/joined_teams/item/members/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/format/format.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/format/format_request_builder.rb new file mode 100644 index 0000000000..a8e4ce1669 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/format/format_request_builder.rb @@ -0,0 +1,187 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/insert/insert.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..f3b99439be --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/insert/insert_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/insert/insert_request_builder.rb new file mode 100644 index 0000000000..66dc82ab21 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/insert/insert_request_builder.rb @@ -0,0 +1,98 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/members/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/intersection_with_another_range/intersection_with_another_range.rb similarity index 100% rename from lib/me/joined_teams/item/members/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/intersection_with_another_range/intersection_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..e0023f7c64 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/members/members.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/last_cell/last_cell.rb similarity index 100% rename from lib/me/joined_teams/item/members/members.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/last_cell/last_cell.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..36848d1cea --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/last_cell/last_cell_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/operations/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/last_column/last_column.rb similarity index 100% rename from lib/me/joined_teams/item/operations/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/last_column/last_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..0354707fa7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/last_column/last_column_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/operations/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/last_row/last_row.rb similarity index 100% rename from lib/me/joined_teams/item/operations/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/last_row/last_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..f96f2a31e2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/last_row/last_row_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/merge/merge.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..3b3b6fb3a7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/merge/merge_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/merge/merge_request_builder.rb new file mode 100644 index 0000000000..29315e9d8f --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/merge/merge_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/operations/operations.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb similarity index 100% rename from lib/me/joined_teams/item/operations/operations.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..a8023df5f0 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/range_request_builder.rb index 33bda8ec48..e8db578575 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/range_request_builder.rb @@ -11,7 +11,38 @@ require_relative '../../../item' require_relative '../../columns' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' require_relative './range' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' +require_relative './unmerge/unmerge_request_builder' +require_relative './used_range/used_range_request_builder' +require_relative './used_range_with_values_only/used_range_with_values_only_request_builder' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -28,6 +59,148 @@ module Range # Provides operations to call the range method. class RangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::Range::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::Range::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::Range::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::Range::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::Range::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::Range::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::Range::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::Range::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::Range::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::Range::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::Range::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::Range::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::Range::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::Range::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::Range::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::Range::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the usedRange method. + def used_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::Range::UsedRange::UsedRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::Range::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::Range::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new RangeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -47,27 +220,102 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Gets the range object associated with the entire column. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Provides operations to call the usedRange method. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a used_range_with_values_only_request_builder + ## + def used_range_with_values_only(values_only) + raise StandardError, 'values_only cannot be null' if values_only.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/me/joined_teams/item/permission_grants/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb similarity index 100% rename from lib/me/joined_teams/item/permission_grants/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..eaa74a8a5c --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/permission_grants/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/row_with_row/row_with_row.rb similarity index 100% rename from lib/me/joined_teams/item/permission_grants/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/row_with_row/row_with_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..35d5d047fc --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/permission_grants/item/restore/restore.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/rows_above/rows_above.rb similarity index 100% rename from lib/me/joined_teams/item/permission_grants/item/restore/restore.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/rows_above/rows_above.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..544cd65c1e --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/rows_above/rows_above_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/permission_grants/permission_grants.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/rows_above_with_count/rows_above_with_count.rb similarity index 100% rename from lib/me/joined_teams/item/permission_grants/permission_grants.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/rows_above_with_count/rows_above_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..cd8adbf53f --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/photo/photo.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/rows_below/rows_below.rb similarity index 100% rename from lib/me/joined_teams/item/photo/photo.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/rows_below/rows_below.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..b5ac8471cc --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/rows_below/rows_below_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/photo/value/value.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/rows_below_with_count/rows_below_with_count.rb similarity index 100% rename from lib/me/joined_teams/item/photo/value/value.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/rows_below_with_count/rows_below_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..25d2d1cd03 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/complete_migration/complete_migration.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/sort/sort.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/complete_migration/complete_migration.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/sort/sort.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/sort/sort_request_builder.rb new file mode 100644 index 0000000000..017f05b1a3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/sort/sort_request_builder.rb @@ -0,0 +1,187 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/files_folder/content/content.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/unmerge/unmerge.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/files_folder/content/content.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/unmerge/unmerge.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..802addb98a --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/unmerge/unmerge_request_builder.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/files_folder/files_folder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/used_range/used_range.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/files_folder/files_folder.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/used_range/used_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/used_range/used_range_request_builder.rb new file mode 100644 index 0000000000..5ef913afe7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/used_range/used_range_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './used_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module UsedRange + ## + # Provides operations to call the usedRange method. + class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/usedRange()") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/members/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/used_range_with_values_only/used_range_with_values_only.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/members/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/used_range_with_values_only/used_range_with_values_only.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb new file mode 100644 index 0000000000..33aaf3be51 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './used_range_with_values_only' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module UsedRangeWithValuesOnly + ## + # Provides operations to call the usedRange method. + class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a void + ## + def initialize(path_parameters, request_adapter, values_only=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/usedRange(valuesOnly={valuesOnly})") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/members/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/visible_view/visible_view.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/members/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/visible_view/visible_view.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..8ddc3e7df7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/visible_view/visible_view_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/members/members.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/worksheet/worksheet.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/members/members.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/range/worksheet/worksheet.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/range/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..f03369f9dd --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/range/worksheet/worksheet_request_builder.rb @@ -0,0 +1,122 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module Range + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/messages/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/messages/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..982a58217a --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/messages/item/hosted_contents/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/cell_with_row_with_column/cell_with_row_with_column.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/messages/item/hosted_contents/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/cell_with_row_with_column/cell_with_row_with_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..fe651c97e3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/clear/clear.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..3932071def --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/clear/clear_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/clear/clear_request_builder.rb new file mode 100644 index 0000000000..d981773d11 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/clear/clear_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/messages/item/hosted_contents/hosted_contents.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/column_with_column/column_with_column.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/messages/item/hosted_contents/hosted_contents.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/column_with_column/column_with_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..b218e84cab --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/messages/item/hosted_contents/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/columns_after/columns_after.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/messages/item/hosted_contents/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/columns_after/columns_after.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..0a5df2d11d --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/columns_after/columns_after_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/messages/item/hosted_contents/item/value/value.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/columns_after_with_count/columns_after_with_count.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/messages/item/hosted_contents/item/value/value.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/columns_after_with_count/columns_after_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..85fea6e1ed --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/messages/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/columns_before/columns_before.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/messages/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/columns_before/columns_before.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..c6ca4fe6b6 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/columns_before/columns_before_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/messages/item/replies/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/columns_before_with_count/columns_before_with_count.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/messages/item/replies/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/columns_before_with_count/columns_before_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..782abbd209 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/delete/delete.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..c6bf9d7c03 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/delete/delete_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/delete/delete_request_builder.rb new file mode 100644 index 0000000000..b850654efd --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/delete/delete_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/messages/item/replies/item/hosted_contents/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/entire_column/entire_column.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/messages/item/replies/item/hosted_contents/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/entire_column/entire_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..70c225857f --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/entire_column/entire_column_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/messages/item/replies/item/hosted_contents/hosted_contents.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/entire_row/entire_row.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/messages/item/replies/item/hosted_contents/hosted_contents.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/entire_row/entire_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..b703fe1c31 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/entire_row/entire_row_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/messages/item/replies/item/hosted_contents/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/format/format.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/messages/item/replies/item/hosted_contents/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/format/format.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/format/format_request_builder.rb new file mode 100644 index 0000000000..b261bc8b60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/format/format_request_builder.rb @@ -0,0 +1,187 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/insert/insert.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..8ffb25d871 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/insert/insert_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/insert/insert_request_builder.rb new file mode 100644 index 0000000000..123f352388 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/insert/insert_request_builder.rb @@ -0,0 +1,98 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/messages/item/replies/item/hosted_contents/item/value/value.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/intersection_with_another_range/intersection_with_another_range.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/messages/item/replies/item/hosted_contents/item/value/value.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/intersection_with_another_range/intersection_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..22a4d11875 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/messages/item/replies/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/last_cell/last_cell.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/messages/item/replies/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/last_cell/last_cell.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..a13beecd71 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/last_cell/last_cell_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/messages/item/replies/item/soft_delete/soft_delete.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/last_column/last_column.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/messages/item/replies/item/soft_delete/soft_delete.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/last_column/last_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..aa6864fc24 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/last_column/last_column_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/messages/item/replies/item/undo_soft_delete/undo_soft_delete.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/last_row/last_row.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/messages/item/replies/item/undo_soft_delete/undo_soft_delete.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/last_row/last_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..c249db4b05 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/last_row/last_row_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/merge/merge.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..94ace746a6 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/merge/merge_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/merge/merge_request_builder.rb new file mode 100644 index 0000000000..6ad45685b9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/merge/merge_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/messages/item/replies/replies.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/messages/item/replies/replies.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..bde6843c85 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/messages/item/soft_delete/soft_delete.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/messages/item/soft_delete/soft_delete.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..a001f3bce5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/messages/item/undo_soft_delete/undo_soft_delete.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/row_with_row/row_with_row.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/messages/item/undo_soft_delete/undo_soft_delete.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/row_with_row/row_with_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..4ae139464b --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/messages/messages.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/rows_above/rows_above.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/messages/messages.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/rows_above/rows_above.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..115a337788 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/rows_above/rows_above_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/primary_channel.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/rows_above_with_count/rows_above_with_count.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/primary_channel.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/rows_above_with_count/rows_above_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..2c4d1cb25f --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/provision_email/provision_email.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/rows_below/rows_below.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/provision_email/provision_email.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/rows_below/rows_below.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..a2cdff3945 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/rows_below/rows_below_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/remove_email/remove_email.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/rows_below_with_count/rows_below_with_count.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/remove_email/remove_email.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/rows_below_with_count/rows_below_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..880aa168e5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/shared_with_teams/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/sort/sort.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/shared_with_teams/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/sort/sort.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/sort/sort_request_builder.rb new file mode 100644 index 0000000000..ffc5d7182a --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/sort/sort_request_builder.rb @@ -0,0 +1,187 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/total_row_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/total_row_range_request_builder.rb index 6c0d7e7c3f..b9622d7a0e 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/total_row_range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/total_row_range_request_builder.rb @@ -11,7 +11,38 @@ require_relative '../../../item' require_relative '../../columns' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' require_relative './total_row_range' +require_relative './unmerge/unmerge_request_builder' +require_relative './used_range/used_range_request_builder' +require_relative './used_range_with_values_only/used_range_with_values_only_request_builder' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -28,6 +59,148 @@ module TotalRowRange # Provides operations to call the totalRowRange method. class TotalRowRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::TotalRowRange::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::TotalRowRange::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::TotalRowRange::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::TotalRowRange::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::TotalRowRange::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::TotalRowRange::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::TotalRowRange::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::TotalRowRange::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::TotalRowRange::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::TotalRowRange::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::TotalRowRange::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::TotalRowRange::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::TotalRowRange::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::TotalRowRange::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::TotalRowRange::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::TotalRowRange::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the usedRange method. + def used_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::TotalRowRange::UsedRange::UsedRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::TotalRowRange::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::Item::TotalRowRange::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new TotalRowRangeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -47,27 +220,102 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Gets the range object associated with the totals row of the column. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Provides operations to call the usedRange method. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a used_range_with_values_only_request_builder + ## + def used_range_with_values_only(values_only) + raise StandardError, 'values_only cannot be null' if values_only.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a total_row_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TotalRowRangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/me/joined_teams/item/primary_channel/shared_with_teams/item/allowed_members/allowed_members.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/unmerge/unmerge.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/shared_with_teams/item/allowed_members/allowed_members.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/unmerge/unmerge.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..76b54a5599 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/unmerge/unmerge_request_builder.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/shared_with_teams/item/allowed_members/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/used_range/used_range.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/shared_with_teams/item/allowed_members/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/used_range/used_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/used_range/used_range_request_builder.rb new file mode 100644 index 0000000000..f20f4fd146 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/used_range/used_range_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './used_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module UsedRange + ## + # Provides operations to call the usedRange method. + class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/usedRange()") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/shared_with_teams/item/allowed_members/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/used_range_with_values_only/used_range_with_values_only.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/shared_with_teams/item/allowed_members/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/used_range_with_values_only/used_range_with_values_only.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb new file mode 100644 index 0000000000..d45ca62341 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './used_range_with_values_only' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module UsedRangeWithValuesOnly + ## + # Provides operations to call the usedRange method. + class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a void + ## + def initialize(path_parameters, request_adapter, values_only=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/usedRange(valuesOnly={valuesOnly})") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/shared_with_teams/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/visible_view/visible_view.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/shared_with_teams/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/visible_view/visible_view.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..21b921264b --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/visible_view/visible_view_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/shared_with_teams/item/team/team.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/worksheet/worksheet.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/shared_with_teams/item/team/team.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/worksheet/worksheet.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..12813ee76b --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/total_row_range/worksheet/worksheet_request_builder.rb @@ -0,0 +1,122 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item/workbook_table_column_item_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item/workbook_table_column_item_request_builder.rb index 926ed2532a..e13b7d2e5f 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item/workbook_table_column_item_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item/workbook_table_column_item_request_builder.rb @@ -63,10 +63,10 @@ def total_row_range() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}{?%24expand,%24select}") end ## - ## Deletes the column from the table. + ## Delete navigation property columns for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -75,12 +75,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of tablecolumn object. + ## The list of all the columns in the table. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_column ## @@ -89,12 +88,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableColumn.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of tablecolumn object. + ## Update the navigation property columns in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_column @@ -105,46 +103,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableColumn.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Deletes the column from the table. + ## Delete navigation property columns for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of tablecolumn object. + ## The list of all the columns in the table. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of tablecolumn object. + ## Update the navigation property columns in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -152,20 +150,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a workbook_table_column_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorkbookTableColumnItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of tablecolumn object. + # The list of all the columns in the table. Read-only. class WorkbookTableColumnItemRequestBuilderGetQueryParameters ## diff --git a/lib/me/joined_teams/item/primary_channel/shared_with_teams/shared_with_teams.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/data_body_range/data_body_range.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/shared_with_teams/shared_with_teams.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/data_body_range/data_body_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/data_body_range/data_body_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/data_body_range/data_body_range_request_builder.rb new file mode 100644 index 0000000000..f3abc15bb5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/data_body_range/data_body_range_request_builder.rb @@ -0,0 +1,90 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../tables' +require_relative '../../../item' +require_relative '../../columns' +require_relative '../item_at_with_index' +require_relative './data_body_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module ItemAtWithIndex + module DataBodyRange + ## + # Provides operations to call the dataBodyRange method. + class DataBodyRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DataBodyRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/dataBodyRange()") + end + ## + ## Gets the range object associated with the data body of the column. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Gets the range object associated with the data body of the column. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a data_body_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DataBodyRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/tabs/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/filter/filter.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/tabs/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/filter/filter.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/filter/filter_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/filter/filter_request_builder.rb new file mode 100644 index 0000000000..8f86d190be --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/filter/filter_request_builder.rb @@ -0,0 +1,184 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_filter' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../tables' +require_relative '../../../item' +require_relative '../../columns' +require_relative '../item_at_with_index' +require_relative './filter' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module ItemAtWithIndex + module Filter + ## + # Provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. + class FilterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FilterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/filter{?%24expand,%24select}") + end + ## + ## Delete navigation property filter for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The filter applied to the column. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_filter + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFilter.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property filter in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_filter + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFilter.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property filter for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The filter applied to the column. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property filter in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilterRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The filter applied to the column. Read-only. + class FilterRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/tabs/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/header_row_range/header_row_range.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/tabs/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/header_row_range/header_row_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/header_row_range/header_row_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/header_row_range/header_row_range_request_builder.rb new file mode 100644 index 0000000000..6c4d1ebf37 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/header_row_range/header_row_range_request_builder.rb @@ -0,0 +1,90 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../tables' +require_relative '../../../item' +require_relative '../../columns' +require_relative '../item_at_with_index' +require_relative './header_row_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module ItemAtWithIndex + module HeaderRowRange + ## + # Provides operations to call the headerRowRange method. + class HeaderRowRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new HeaderRowRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/headerRowRange()") + end + ## + ## Gets the range object associated with the header row of the column. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Gets the range object associated with the header row of the column. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a header_row_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HeaderRowRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/item_at_with_index_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/item_at_with_index_request_builder.rb index aea080241b..02d559c3bf 100644 --- a/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/item_at_with_index_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/item_at_with_index_request_builder.rb @@ -10,7 +10,12 @@ require_relative '../../../tables' require_relative '../../item' require_relative '../columns' +require_relative './data_body_range/data_body_range_request_builder' +require_relative './filter/filter_request_builder' +require_relative './header_row_range/header_row_range_request_builder' require_relative './item_at_with_index' +require_relative './range/range_request_builder' +require_relative './total_row_range/total_row_range_request_builder' module MicrosoftGraph module Drives @@ -26,6 +31,31 @@ module ItemAtWithIndex # Provides operations to call the itemAt method. class ItemAtWithIndexRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the dataBodyRange method. + def data_body_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::ItemAtWithIndex::DataBodyRange::DataBodyRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. + def filter() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::ItemAtWithIndex::Filter::FilterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the headerRowRange method. + def header_row_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::ItemAtWithIndex::HeaderRowRange::HeaderRowRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the range method. + def range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::ItemAtWithIndex::Range::RangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the totalRowRange method. + def total_row_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Columns::ItemAtWithIndex::TotalRowRange::TotalRowRangeRequestBuilder.new(@path_parameters, @request_adapter) + end ## ## Instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. ## @param index Usage: index={index} @@ -37,7 +67,7 @@ def initialize(path_parameters, request_adapter, index=nil) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})") end ## - ## Invoke function itemAt + ## Gets a column based on its position in the collection. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_column ## @@ -46,27 +76,35 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableColumn.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function itemAt + ## Gets a column based on its position in the collection. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a item_at_with_index_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemAtWithIndexRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/me/joined_teams/item/primary_channel/tabs/item/teams_app/teams_app.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/range/range.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/tabs/item/teams_app/teams_app.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/range/range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/range/range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/range/range_request_builder.rb new file mode 100644 index 0000000000..1ce62ac9fd --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/range/range_request_builder.rb @@ -0,0 +1,90 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../tables' +require_relative '../../../item' +require_relative '../../columns' +require_relative '../item_at_with_index' +require_relative './range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module ItemAtWithIndex + module Range + ## + # Provides operations to call the range method. + class RangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/range()") + end + ## + ## Gets the range object associated with the entire column. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Gets the range object associated with the entire column. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/primary_channel/tabs/tabs.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/total_row_range/total_row_range.rb similarity index 100% rename from lib/me/joined_teams/item/primary_channel/tabs/tabs.rb rename to lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/total_row_range/total_row_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/total_row_range/total_row_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/total_row_range/total_row_range_request_builder.rb new file mode 100644 index 0000000000..ba475df1b4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/columns/item_at_with_index/total_row_range/total_row_range_request_builder.rb @@ -0,0 +1,90 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../tables' +require_relative '../../../item' +require_relative '../../columns' +require_relative '../item_at_with_index' +require_relative './total_row_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Columns + module ItemAtWithIndex + module TotalRowRange + ## + # Provides operations to call the totalRowRange method. + class TotalRowRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new TotalRowRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/totalRowRange()") + end + ## + ## Gets the range object associated with the totals row of the column. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Gets the range object associated with the totals row of the column. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a total_row_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TotalRowRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/convert_to_range/convert_to_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/convert_to_range/convert_to_range_request_builder.rb index bfb574e092..4b6dfb4a74 100644 --- a/lib/drives/item/items/item/workbook/tables/item/convert_to_range/convert_to_range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/convert_to_range/convert_to_range_request_builder.rb @@ -43,8 +43,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,16 +53,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a convert_to_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConvertToRangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/me/joined_teams/item/schedule/offer_shift_requests/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/offer_shift_requests/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..17a759437f --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/offer_shift_requests/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/cell_with_row_with_column/cell_with_row_with_column.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/offer_shift_requests/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/cell_with_row_with_column/cell_with_row_with_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..f48dba7cd8 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/clear/clear.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..d2c2e93c0c --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/clear/clear_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/clear/clear_request_builder.rb new file mode 100644 index 0000000000..6b5d1cc502 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/clear/clear_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/offer_shift_requests/offer_shift_requests.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/column_with_column/column_with_column.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/offer_shift_requests/offer_shift_requests.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/column_with_column/column_with_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..a7da8f9a0d --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/open_shift_change_requests/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/columns_after/columns_after.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/open_shift_change_requests/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/columns_after/columns_after.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..fd81f75260 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/columns_after/columns_after_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/open_shift_change_requests/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/columns_after_with_count/columns_after_with_count.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/open_shift_change_requests/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/columns_after_with_count/columns_after_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..6d1016e41d --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/open_shift_change_requests/open_shift_change_requests.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/columns_before/columns_before.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/open_shift_change_requests/open_shift_change_requests.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/columns_before/columns_before.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..f0ea29485c --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/columns_before/columns_before_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/open_shifts/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/columns_before_with_count/columns_before_with_count.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/open_shifts/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/columns_before_with_count/columns_before_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..5ea8757d14 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/data_body_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/data_body_range_request_builder.rb index faf6246abf..1496cb55f6 100644 --- a/lib/drives/item/items/item/workbook/tables/item/data_body_range/data_body_range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/data_body_range_request_builder.rb @@ -9,7 +9,38 @@ require_relative '../../../workbook' require_relative '../../tables' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' require_relative './data_body_range' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' +require_relative './unmerge/unmerge_request_builder' +require_relative './used_range/used_range_request_builder' +require_relative './used_range_with_values_only/used_range_with_values_only_request_builder' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -24,6 +55,148 @@ module DataBodyRange # Provides operations to call the dataBodyRange method. class DataBodyRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::DataBodyRange::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::DataBodyRange::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::DataBodyRange::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::DataBodyRange::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::DataBodyRange::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::DataBodyRange::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::DataBodyRange::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::DataBodyRange::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::DataBodyRange::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::DataBodyRange::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::DataBodyRange::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::DataBodyRange::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::DataBodyRange::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::DataBodyRange::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::DataBodyRange::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::DataBodyRange::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the usedRange method. + def used_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::DataBodyRange::UsedRange::UsedRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::DataBodyRange::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::DataBodyRange::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new DataBodyRangeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -43,27 +216,102 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Gets the range object associated with the data body of the table. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Provides operations to call the usedRange method. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a used_range_with_values_only_request_builder + ## + def used_range_with_values_only(values_only) + raise StandardError, 'values_only cannot be null' if values_only.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a data_body_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DataBodyRangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/delete/delete.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..7b72576dbc --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/delete/delete_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/delete/delete_request_builder.rb new file mode 100644 index 0000000000..002da4f5f9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/delete/delete_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/open_shifts/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/entire_column/entire_column.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/open_shifts/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/entire_column/entire_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..141c597c33 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/entire_column/entire_column_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/open_shifts/open_shifts.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/entire_row/entire_row.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/open_shifts/open_shifts.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/entire_row/entire_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..bd3d543ffe --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/entire_row/entire_row_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/schedule.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/format/format.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/schedule.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/format/format.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/format/format_request_builder.rb new file mode 100644 index 0000000000..5ae5227e9a --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/format/format_request_builder.rb @@ -0,0 +1,181 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/insert/insert.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..b0bb1b97fa --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/insert/insert_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/insert/insert_request_builder.rb new file mode 100644 index 0000000000..725a2dc077 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/insert/insert_request_builder.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/scheduling_groups/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/intersection_with_another_range/intersection_with_another_range.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/scheduling_groups/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/intersection_with_another_range/intersection_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..fb71cb7c80 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/scheduling_groups/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/last_cell/last_cell.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/scheduling_groups/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/last_cell/last_cell.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..603c251b6d --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/last_cell/last_cell_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/scheduling_groups/scheduling_groups.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/last_column/last_column.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/scheduling_groups/scheduling_groups.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/last_column/last_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..723cff04a4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/last_column/last_column_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/shifts/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/last_row/last_row.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/shifts/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/last_row/last_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..02493994db --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/last_row/last_row_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/merge/merge.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..6057661f4c --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/merge/merge_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/merge/merge_request_builder.rb new file mode 100644 index 0000000000..5855b0b836 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/merge/merge_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/shifts/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/shifts/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..33acaed150 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/shifts/shifts.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/shifts/shifts.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..7fff7f1b23 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/swap_shifts_change_requests/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/row_with_row/row_with_row.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/swap_shifts_change_requests/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/row_with_row/row_with_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..c66a771a90 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/swap_shifts_change_requests/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/rows_above/rows_above.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/swap_shifts_change_requests/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/rows_above/rows_above.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..7d7bebc921 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/rows_above/rows_above_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/swap_shifts_change_requests/swap_shifts_change_requests.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/rows_above_with_count/rows_above_with_count.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/swap_shifts_change_requests/swap_shifts_change_requests.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/rows_above_with_count/rows_above_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..289f8ba84f --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/time_off_reasons/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/rows_below/rows_below.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/time_off_reasons/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/rows_below/rows_below.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..d2e8dae0bd --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/rows_below/rows_below_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/time_off_reasons/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/rows_below_with_count/rows_below_with_count.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/time_off_reasons/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/rows_below_with_count/rows_below_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..89873694ef --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/time_off_reasons/time_off_reasons.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/sort/sort.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/time_off_reasons/time_off_reasons.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/sort/sort.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/sort/sort_request_builder.rb new file mode 100644 index 0000000000..ed95fed34b --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/sort/sort_request_builder.rb @@ -0,0 +1,181 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/time_off_requests/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/unmerge/unmerge.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/time_off_requests/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/unmerge/unmerge.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..1e7b6c029e --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/unmerge/unmerge_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/time_off_requests/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/used_range/used_range.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/time_off_requests/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/used_range/used_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/used_range/used_range_request_builder.rb new file mode 100644 index 0000000000..2a752c5b42 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/used_range/used_range_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './used_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module UsedRange + ## + # Provides operations to call the usedRange method. + class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/usedRange()") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/time_off_requests/time_off_requests.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/used_range_with_values_only/used_range_with_values_only.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/time_off_requests/time_off_requests.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/used_range_with_values_only/used_range_with_values_only.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb new file mode 100644 index 0000000000..00124be300 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './used_range_with_values_only' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module UsedRangeWithValuesOnly + ## + # Provides operations to call the usedRange method. + class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a void + ## + def initialize(path_parameters, request_adapter, values_only=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/usedRange(valuesOnly={valuesOnly})") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/times_off/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/visible_view/visible_view.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/times_off/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/visible_view/visible_view.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..fd38282189 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/visible_view/visible_view_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/times_off/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/worksheet/worksheet.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/times_off/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/data_body_range/worksheet/worksheet.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/data_body_range/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/data_body_range/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..c5b145a074 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/data_body_range/worksheet/worksheet_request_builder.rb @@ -0,0 +1,116 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module DataBodyRange + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/schedule/times_off/times_off.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb similarity index 100% rename from lib/me/joined_teams/item/schedule/times_off/times_off.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..db288f700e --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/tags/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/cell_with_row_with_column/cell_with_row_with_column.rb similarity index 100% rename from lib/me/joined_teams/item/tags/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/cell_with_row_with_column/cell_with_row_with_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..d961ae8867 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/clear/clear.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..e80a1a4908 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/clear/clear_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/clear/clear_request_builder.rb new file mode 100644 index 0000000000..5c9883840f --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/clear/clear_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/tags/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/column_with_column/column_with_column.rb similarity index 100% rename from lib/me/joined_teams/item/tags/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/column_with_column/column_with_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..a1773e7d91 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/tags/item/members/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/columns_after/columns_after.rb similarity index 100% rename from lib/me/joined_teams/item/tags/item/members/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/columns_after/columns_after.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..591e738cc5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/columns_after/columns_after_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/tags/item/members/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/columns_after_with_count/columns_after_with_count.rb similarity index 100% rename from lib/me/joined_teams/item/tags/item/members/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/columns_after_with_count/columns_after_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..9cc7c7ef61 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/tags/item/members/members.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/columns_before/columns_before.rb similarity index 100% rename from lib/me/joined_teams/item/tags/item/members/members.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/columns_before/columns_before.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..8f7c23f521 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/columns_before/columns_before_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/tags/tags.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/columns_before_with_count/columns_before_with_count.rb similarity index 100% rename from lib/me/joined_teams/item/tags/tags.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/columns_before_with_count/columns_before_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..84b7d549da --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/delete/delete.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..e1a904bc55 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/delete/delete_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/delete/delete_request_builder.rb new file mode 100644 index 0000000000..a1fa68014c --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/delete/delete_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/template/template.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/entire_column/entire_column.rb similarity index 100% rename from lib/me/joined_teams/item/template/template.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/entire_column/entire_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..3f7c99930d --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/entire_column/entire_column_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/unarchive/unarchive.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/entire_row/entire_row.rb similarity index 100% rename from lib/me/joined_teams/item/unarchive/unarchive.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/entire_row/entire_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..4cf727e4bc --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/entire_row/entire_row_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/joined_teams.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/format/format.rb similarity index 100% rename from lib/me/joined_teams/joined_teams.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/format/format.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/format/format_request_builder.rb new file mode 100644 index 0000000000..995c58ff4d --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/format/format_request_builder.rb @@ -0,0 +1,181 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/header_row_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/header_row_range_request_builder.rb index 4c62010a3c..adc24e7144 100644 --- a/lib/drives/item/items/item/workbook/tables/item/header_row_range/header_row_range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/header_row_range_request_builder.rb @@ -9,7 +9,38 @@ require_relative '../../../workbook' require_relative '../../tables' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' require_relative './header_row_range' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' +require_relative './unmerge/unmerge_request_builder' +require_relative './used_range/used_range_request_builder' +require_relative './used_range_with_values_only/used_range_with_values_only_request_builder' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -24,6 +55,148 @@ module HeaderRowRange # Provides operations to call the headerRowRange method. class HeaderRowRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::HeaderRowRange::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::HeaderRowRange::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::HeaderRowRange::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::HeaderRowRange::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::HeaderRowRange::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::HeaderRowRange::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::HeaderRowRange::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::HeaderRowRange::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::HeaderRowRange::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::HeaderRowRange::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::HeaderRowRange::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::HeaderRowRange::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::HeaderRowRange::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::HeaderRowRange::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::HeaderRowRange::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::HeaderRowRange::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the usedRange method. + def used_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::HeaderRowRange::UsedRange::UsedRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::HeaderRowRange::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::HeaderRowRange::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new HeaderRowRangeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -43,27 +216,102 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Gets the range object associated with header row of the table. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Provides operations to call the usedRange method. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a used_range_with_values_only_request_builder + ## + def used_range_with_values_only(values_only) + raise StandardError, 'values_only cannot be null' if values_only.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a header_row_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HeaderRowRangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/insert/insert.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..ea370b7a5a --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/insert/insert_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/insert/insert_request_builder.rb new file mode 100644 index 0000000000..7e17dc063f --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/insert/insert_request_builder.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/license_details/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/intersection_with_another_range/intersection_with_another_range.rb similarity index 100% rename from lib/me/license_details/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/intersection_with_another_range/intersection_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..9cc4ea4e75 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/license_details/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/last_cell/last_cell.rb similarity index 100% rename from lib/me/license_details/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/last_cell/last_cell.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..f7f72e215c --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/last_cell/last_cell_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/license_details/license_details.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/last_column/last_column.rb similarity index 100% rename from lib/me/license_details/license_details.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/last_column/last_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..889ca0aa27 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/last_column/last_column_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/last_row/last_row.rb similarity index 100% rename from lib/me/mail_folders/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/last_row/last_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..3adbdcf6d8 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/last_row/last_row_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/merge/merge.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..c037732911 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/merge/merge_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/merge/merge_request_builder.rb new file mode 100644 index 0000000000..f6e566babf --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/merge/merge_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/child_folders/child_folders.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb similarity index 100% rename from lib/me/mail_folders/item/child_folders/child_folders.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..466a760570 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/child_folders/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb similarity index 100% rename from lib/me/mail_folders/item/child_folders/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..b250abe794 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/child_folders/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/row_with_row/row_with_row.rb similarity index 100% rename from lib/me/mail_folders/item/child_folders/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/row_with_row/row_with_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..3f304a1d85 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/child_folders/item/message_rules/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/rows_above/rows_above.rb similarity index 100% rename from lib/me/mail_folders/item/child_folders/item/message_rules/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/rows_above/rows_above.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..da2ddac5db --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/rows_above/rows_above_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/child_folders/item/message_rules/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/rows_above_with_count/rows_above_with_count.rb similarity index 100% rename from lib/me/mail_folders/item/child_folders/item/message_rules/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/rows_above_with_count/rows_above_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..037a7e8ccf --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/child_folders/item/message_rules/message_rules.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/rows_below/rows_below.rb similarity index 100% rename from lib/me/mail_folders/item/child_folders/item/message_rules/message_rules.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/rows_below/rows_below.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..a860e5b2c5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/rows_below/rows_below_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/child_folders/item/messages/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/rows_below_with_count/rows_below_with_count.rb similarity index 100% rename from lib/me/mail_folders/item/child_folders/item/messages/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/rows_below_with_count/rows_below_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..df8078818d --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/child_folders/item/messages/item/attachments/attachments.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/sort/sort.rb similarity index 100% rename from lib/me/mail_folders/item/child_folders/item/messages/item/attachments/attachments.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/sort/sort.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/sort/sort_request_builder.rb new file mode 100644 index 0000000000..b3d7bc7dfe --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/sort/sort_request_builder.rb @@ -0,0 +1,181 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/child_folders/item/messages/item/attachments/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/unmerge/unmerge.rb similarity index 100% rename from lib/me/mail_folders/item/child_folders/item/messages/item/attachments/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/unmerge/unmerge.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..eaa5a1421c --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/unmerge/unmerge_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/child_folders/item/messages/item/attachments/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/used_range/used_range.rb similarity index 100% rename from lib/me/mail_folders/item/child_folders/item/messages/item/attachments/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/used_range/used_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/used_range/used_range_request_builder.rb new file mode 100644 index 0000000000..9ef6d5ddd1 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/used_range/used_range_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './used_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module UsedRange + ## + # Provides operations to call the usedRange method. + class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/usedRange()") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/child_folders/item/messages/item/extensions/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/used_range_with_values_only/used_range_with_values_only.rb similarity index 100% rename from lib/me/mail_folders/item/child_folders/item/messages/item/extensions/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/used_range_with_values_only/used_range_with_values_only.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb new file mode 100644 index 0000000000..f7a484a738 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './used_range_with_values_only' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module UsedRangeWithValuesOnly + ## + # Provides operations to call the usedRange method. + class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a void + ## + def initialize(path_parameters, request_adapter, values_only=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/usedRange(valuesOnly={valuesOnly})") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/child_folders/item/messages/item/extensions/extensions.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/visible_view/visible_view.rb similarity index 100% rename from lib/me/mail_folders/item/child_folders/item/messages/item/extensions/extensions.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/visible_view/visible_view.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..f1f288cc41 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/visible_view/visible_view_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/child_folders/item/messages/item/extensions/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/worksheet/worksheet.rb similarity index 100% rename from lib/me/mail_folders/item/child_folders/item/messages/item/extensions/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/header_row_range/worksheet/worksheet.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/header_row_range/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/header_row_range/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..6a246b3ccb --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/header_row_range/worksheet/worksheet_request_builder.rb @@ -0,0 +1,116 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module HeaderRowRange + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/child_folders/item/messages/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb similarity index 100% rename from lib/me/mail_folders/item/child_folders/item/messages/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..02e9fa1f82 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/child_folders/item/messages/item/send/send.rb b/lib/drives/item/items/item/workbook/tables/item/range/cell_with_row_with_column/cell_with_row_with_column.rb similarity index 100% rename from lib/me/mail_folders/item/child_folders/item/messages/item/send/send.rb rename to lib/drives/item/items/item/workbook/tables/item/range/cell_with_row_with_column/cell_with_row_with_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..501b455c67 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/range/clear/clear.rb b/lib/drives/item/items/item/workbook/tables/item/range/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/range/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/range/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..56944da488 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/clear/clear_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/range/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/clear/clear_request_builder.rb new file mode 100644 index 0000000000..e88403d1b6 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/clear/clear_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/child_folders/item/messages/item/value/value.rb b/lib/drives/item/items/item/workbook/tables/item/range/column_with_column/column_with_column.rb similarity index 100% rename from lib/me/mail_folders/item/child_folders/item/messages/item/value/value.rb rename to lib/drives/item/items/item/workbook/tables/item/range/column_with_column/column_with_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..1a75217311 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/child_folders/item/messages/messages.rb b/lib/drives/item/items/item/workbook/tables/item/range/columns_after/columns_after.rb similarity index 100% rename from lib/me/mail_folders/item/child_folders/item/messages/messages.rb rename to lib/drives/item/items/item/workbook/tables/item/range/columns_after/columns_after.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..253cb5050d --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/columns_after/columns_after_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/range/columns_after_with_count/columns_after_with_count.rb similarity index 100% rename from lib/me/mail_folders/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/range/columns_after_with_count/columns_after_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..fe8dddb290 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/message_rules/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/range/columns_before/columns_before.rb similarity index 100% rename from lib/me/mail_folders/item/message_rules/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/range/columns_before/columns_before.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..65d1c4eb10 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/columns_before/columns_before_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/message_rules/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/range/columns_before_with_count/columns_before_with_count.rb similarity index 100% rename from lib/me/mail_folders/item/message_rules/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/range/columns_before_with_count/columns_before_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..4e3206606d --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/range/delete/delete.rb b/lib/drives/item/items/item/workbook/tables/item/range/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/range/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/range/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..b4ff103013 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/delete/delete_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/range/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/delete/delete_request_builder.rb new file mode 100644 index 0000000000..a21ba83205 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/delete/delete_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/message_rules/message_rules.rb b/lib/drives/item/items/item/workbook/tables/item/range/entire_column/entire_column.rb similarity index 100% rename from lib/me/mail_folders/item/message_rules/message_rules.rb rename to lib/drives/item/items/item/workbook/tables/item/range/entire_column/entire_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..50077ed377 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/entire_column/entire_column_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/messages/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/range/entire_row/entire_row.rb similarity index 100% rename from lib/me/mail_folders/item/messages/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/range/entire_row/entire_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..154896bd3c --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/entire_row/entire_row_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/messages/item/attachments/attachments.rb b/lib/drives/item/items/item/workbook/tables/item/range/format/format.rb similarity index 100% rename from lib/me/mail_folders/item/messages/item/attachments/attachments.rb rename to lib/drives/item/items/item/workbook/tables/item/range/format/format.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/format/format_request_builder.rb new file mode 100644 index 0000000000..8a7fe1b866 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/format/format_request_builder.rb @@ -0,0 +1,181 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/range/insert/insert.rb b/lib/drives/item/items/item/workbook/tables/item/range/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/range/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/range/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..df1c86d4bd --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/insert/insert_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/range/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/insert/insert_request_builder.rb new file mode 100644 index 0000000000..6c80c6132d --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/insert/insert_request_builder.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/messages/item/attachments/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/range/intersection_with_another_range/intersection_with_another_range.rb similarity index 100% rename from lib/me/mail_folders/item/messages/item/attachments/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/range/intersection_with_another_range/intersection_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..70e3dc46fd --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/messages/item/attachments/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/range/last_cell/last_cell.rb similarity index 100% rename from lib/me/mail_folders/item/messages/item/attachments/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/range/last_cell/last_cell.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..4f318ecac4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/last_cell/last_cell_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/messages/item/extensions/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/range/last_column/last_column.rb similarity index 100% rename from lib/me/mail_folders/item/messages/item/extensions/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/range/last_column/last_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..d3c8dcdd61 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/last_column/last_column_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/messages/item/extensions/extensions.rb b/lib/drives/item/items/item/workbook/tables/item/range/last_row/last_row.rb similarity index 100% rename from lib/me/mail_folders/item/messages/item/extensions/extensions.rb rename to lib/drives/item/items/item/workbook/tables/item/range/last_row/last_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..86cea72aaa --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/last_row/last_row_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/range/merge/merge.rb b/lib/drives/item/items/item/workbook/tables/item/range/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/range/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/range/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..6f92b5fc8a --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/merge/merge_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/range/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/merge/merge_request_builder.rb new file mode 100644 index 0000000000..9621bdf51c --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/merge/merge_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/messages/item/extensions/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb similarity index 100% rename from lib/me/mail_folders/item/messages/item/extensions/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..238618bdb8 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/range/range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/range_request_builder.rb index d1036e3d79..3fe7490197 100644 --- a/lib/drives/item/items/item/workbook/tables/item/range/range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/range/range_request_builder.rb @@ -9,7 +9,38 @@ require_relative '../../../workbook' require_relative '../../tables' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' require_relative './range' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' +require_relative './unmerge/unmerge_request_builder' +require_relative './used_range/used_range_request_builder' +require_relative './used_range_with_values_only/used_range_with_values_only_request_builder' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -24,6 +55,148 @@ module Range # Provides operations to call the range method. class RangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Range::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Range::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Range::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Range::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Range::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Range::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Range::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Range::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Range::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Range::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Range::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Range::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Range::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Range::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Range::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Range::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the usedRange method. + def used_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Range::UsedRange::UsedRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Range::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Range::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new RangeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -43,27 +216,102 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Get the range object associated with the entire table. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Provides operations to call the usedRange method. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a used_range_with_values_only_request_builder + ## + def used_range_with_values_only(values_only) + raise StandardError, 'values_only cannot be null' if values_only.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/me/mail_folders/item/messages/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb similarity index 100% rename from lib/me/mail_folders/item/messages/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..40b43246a1 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/messages/item/send/send.rb b/lib/drives/item/items/item/workbook/tables/item/range/row_with_row/row_with_row.rb similarity index 100% rename from lib/me/mail_folders/item/messages/item/send/send.rb rename to lib/drives/item/items/item/workbook/tables/item/range/row_with_row/row_with_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..5b37264ca5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/messages/item/value/value.rb b/lib/drives/item/items/item/workbook/tables/item/range/rows_above/rows_above.rb similarity index 100% rename from lib/me/mail_folders/item/messages/item/value/value.rb rename to lib/drives/item/items/item/workbook/tables/item/range/rows_above/rows_above.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..0b8e088bf2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/rows_above/rows_above_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/item/messages/messages.rb b/lib/drives/item/items/item/workbook/tables/item/range/rows_above_with_count/rows_above_with_count.rb similarity index 100% rename from lib/me/mail_folders/item/messages/messages.rb rename to lib/drives/item/items/item/workbook/tables/item/range/rows_above_with_count/rows_above_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..2c0eb83bf6 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mail_folders/mail_folders.rb b/lib/drives/item/items/item/workbook/tables/item/range/rows_below/rows_below.rb similarity index 100% rename from lib/me/mail_folders/mail_folders.rb rename to lib/drives/item/items/item/workbook/tables/item/range/rows_below/rows_below.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..6a703a2e0f --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/rows_below/rows_below_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/mailbox_settings/mailbox_settings.rb b/lib/drives/item/items/item/workbook/tables/item/range/rows_below_with_count/rows_below_with_count.rb similarity index 100% rename from lib/me/mailbox_settings/mailbox_settings.rb rename to lib/drives/item/items/item/workbook/tables/item/range/rows_below_with_count/rows_below_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..ca1faeec92 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_app_registrations/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/range/sort/sort.rb similarity index 100% rename from lib/me/managed_app_registrations/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/range/sort/sort.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/sort/sort_request_builder.rb new file mode 100644 index 0000000000..3de216c818 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/sort/sort_request_builder.rb @@ -0,0 +1,181 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_app_registrations/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/range/unmerge/unmerge.rb similarity index 100% rename from lib/me/managed_app_registrations/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/range/unmerge/unmerge.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..c31836f177 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/unmerge/unmerge_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_app_registrations/managed_app_registrations.rb b/lib/drives/item/items/item/workbook/tables/item/range/used_range/used_range.rb similarity index 100% rename from lib/me/managed_app_registrations/managed_app_registrations.rb rename to lib/drives/item/items/item/workbook/tables/item/range/used_range/used_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/used_range/used_range_request_builder.rb new file mode 100644 index 0000000000..9caa7ee6fa --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/used_range/used_range_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './used_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module UsedRange + ## + # Provides operations to call the usedRange method. + class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/usedRange()") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/range/used_range_with_values_only/used_range_with_values_only.rb similarity index 100% rename from lib/me/managed_devices/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/range/used_range_with_values_only/used_range_with_values_only.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb new file mode 100644 index 0000000000..c7a262a21f --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './used_range_with_values_only' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module UsedRangeWithValuesOnly + ## + # Provides operations to call the usedRange method. + class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a void + ## + def initialize(path_parameters, request_adapter, values_only=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/usedRange(valuesOnly={valuesOnly})") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/bypass_activation_lock/bypass_activation_lock.rb b/lib/drives/item/items/item/workbook/tables/item/range/visible_view/visible_view.rb similarity index 100% rename from lib/me/managed_devices/item/bypass_activation_lock/bypass_activation_lock.rb rename to lib/drives/item/items/item/workbook/tables/item/range/visible_view/visible_view.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..4b606621b9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/visible_view/visible_view_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/device_category/device_category.rb b/lib/drives/item/items/item/workbook/tables/item/range/worksheet/worksheet.rb similarity index 100% rename from lib/me/managed_devices/item/device_category/device_category.rb rename to lib/drives/item/items/item/workbook/tables/item/range/worksheet/worksheet.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/range/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/range/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..23f592cabe --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/range/worksheet/worksheet_request_builder.rb @@ -0,0 +1,116 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Range + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/reapply_filters/reapply_filters_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/reapply_filters/reapply_filters_request_builder.rb index 254ae9bf0d..73b40cb0ed 100644 --- a/lib/drives/item/items/item/workbook/tables/item/reapply_filters/reapply_filters_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/reapply_filters/reapply_filters_request_builder.rb @@ -42,8 +42,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,15 +52,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reapply_filters_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReapplyFiltersRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/add/add_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/rows/add/add_post_request_body.rb index 4c2429343f..70b95c3e2d 100644 --- a/lib/drives/item/items/item/workbook/tables/item/rows/add/add_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/tables/item/rows/add/add_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../../models/json' require_relative '../../../../../../../../drives' require_relative '../../../../../../../item' require_relative '../../../../../../items' @@ -30,25 +29,22 @@ class AddPostRequestBody # The index property @index ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new addPostRequestBody and sets the default values. + ## Instantiates a new AddPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -70,7 +66,6 @@ def self.create_from_discriminator_value(parse_node) def get_field_deserializers() return { "index" => lambda {|n| @index = n.get_number_value() }, - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -96,24 +91,8 @@ def index=(value) def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_number_value("index", @index) - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/add/add_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/add/add_request_builder.rb index c952158e66..8ca319a040 100644 --- a/lib/drives/item/items/item/workbook/tables/item/rows/add/add_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/rows/add/add_request_builder.rb @@ -47,8 +47,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableRow.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -60,17 +59,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/rows/count/count.rb index 4f3a94e631..0dc4499e3a 100644 --- a/lib/drives/item/items/item/workbook/tables/item/rows/count/count.rb +++ b/lib/drives/item/items/item/workbook/tables/item/rows/count/count.rb @@ -1 +1 @@ -require_relative 'count_response' +require_relative 'count_get_response' diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/count/count_get_response.rb b/lib/drives/item/items/item/workbook/tables/item/rows/count/count_get_response.rb new file mode 100644 index 0000000000..241d972772 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/count/count_get_response.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../rows' +require_relative './count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Count + class CountGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new CountGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a count_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CountGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_number_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_number_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a integer + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/count/count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/count/count_request_builder.rb index 98957b88d1..d72fa509fb 100644 --- a/lib/drives/item/items/item/workbook/tables/item/rows/count/count_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/rows/count/count_request_builder.rb @@ -37,16 +37,15 @@ def initialize(path_parameters, request_adapter) ## ## Invoke function count ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of count_response + ## @return a Fiber of count_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Rows::Count::CountResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Rows::Count::CountGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function count @@ -55,16 +54,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/count/count_response.rb b/lib/drives/item/items/item/workbook/tables/item/rows/count/count_response.rb deleted file mode 100644 index 4447f217b7..0000000000 --- a/lib/drives/item/items/item/workbook/tables/item/rows/count/count_response.rb +++ /dev/null @@ -1,106 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../drives' -require_relative '../../../../../../../item' -require_relative '../../../../../../items' -require_relative '../../../../../item' -require_relative '../../../../workbook' -require_relative '../../../tables' -require_relative '../../item' -require_relative '../rows' -require_relative './count' - -module MicrosoftGraph - module Drives - module Item - module Items - module Item - module Workbook - module Tables - module Item - module Rows - module Count - class CountResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new countResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a count_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CountResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_number_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_number_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a integer - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end - end - end -end diff --git a/lib/me/managed_devices/item/device_compliance_policy_states/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb similarity index 100% rename from lib/me/managed_devices/item/device_compliance_policy_states/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..a9ffefc002 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/device_compliance_policy_states/device_compliance_policy_states.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/cell_with_row_with_column/cell_with_row_with_column.rb similarity index 100% rename from lib/me/managed_devices/item/device_compliance_policy_states/device_compliance_policy_states.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/cell_with_row_with_column/cell_with_row_with_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..a20dbf99ce --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/clear/clear.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..a4b8024d62 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/clear/clear_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/clear/clear_request_builder.rb new file mode 100644 index 0000000000..ee22b8c0a0 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/clear/clear_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/device_compliance_policy_states/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/column_with_column/column_with_column.rb similarity index 100% rename from lib/me/managed_devices/item/device_compliance_policy_states/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/column_with_column/column_with_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..b9403ef790 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/device_configuration_states/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/columns_after/columns_after.rb similarity index 100% rename from lib/me/managed_devices/item/device_configuration_states/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/columns_after/columns_after.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..78ac90b5fc --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/columns_after/columns_after_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/device_configuration_states/device_configuration_states.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/columns_after_with_count/columns_after_with_count.rb similarity index 100% rename from lib/me/managed_devices/item/device_configuration_states/device_configuration_states.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/columns_after_with_count/columns_after_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..db151a537d --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/device_configuration_states/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/columns_before/columns_before.rb similarity index 100% rename from lib/me/managed_devices/item/device_configuration_states/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/columns_before/columns_before.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..7f6fbbd26b --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/columns_before/columns_before_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/disable_lost_mode/disable_lost_mode.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/columns_before_with_count/columns_before_with_count.rb similarity index 100% rename from lib/me/managed_devices/item/disable_lost_mode/disable_lost_mode.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/columns_before_with_count/columns_before_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..a75cb9eae8 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/delete/delete.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..40e0217c2e --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/delete/delete_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/delete/delete_request_builder.rb new file mode 100644 index 0000000000..83fe75c5d4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/delete/delete_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/entire_column/entire_column.rb similarity index 100% rename from lib/me/managed_devices/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/entire_column/entire_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..790b58a62a --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/entire_column/entire_column_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/locate_device/locate_device.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/entire_row/entire_row.rb similarity index 100% rename from lib/me/managed_devices/item/locate_device/locate_device.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/entire_row/entire_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..329d9415e2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/entire_row/entire_row_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/log_collection_requests/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/format/format.rb similarity index 100% rename from lib/me/managed_devices/item/log_collection_requests/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/format/format.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/format/format_request_builder.rb new file mode 100644 index 0000000000..309d1bb71e --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/format/format_request_builder.rb @@ -0,0 +1,187 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/insert/insert.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..bed0a2287e --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/insert/insert_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/insert/insert_request_builder.rb new file mode 100644 index 0000000000..e564dbe62e --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/insert/insert_request_builder.rb @@ -0,0 +1,98 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/log_collection_requests/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/intersection_with_another_range/intersection_with_another_range.rb similarity index 100% rename from lib/me/managed_devices/item/log_collection_requests/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/intersection_with_another_range/intersection_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..677d437532 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/log_collection_requests/log_collection_requests.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/last_cell/last_cell.rb similarity index 100% rename from lib/me/managed_devices/item/log_collection_requests/log_collection_requests.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/last_cell/last_cell.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..4fc029a479 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/last_cell/last_cell_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/logout_shared_apple_device_active_user/logout_shared_apple_device_active_user.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/last_column/last_column.rb similarity index 100% rename from lib/me/managed_devices/item/logout_shared_apple_device_active_user/logout_shared_apple_device_active_user.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/last_column/last_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..0f92a4e95d --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/last_column/last_column_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/reboot_now/reboot_now.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/last_row/last_row.rb similarity index 100% rename from lib/me/managed_devices/item/reboot_now/reboot_now.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/last_row/last_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..aa35660306 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/last_row/last_row_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/merge/merge.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..36d3cc6e9e --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/merge/merge_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/merge/merge_request_builder.rb new file mode 100644 index 0000000000..985419d099 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/merge/merge_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/recover_passcode/recover_passcode.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb similarity index 100% rename from lib/me/managed_devices/item/recover_passcode/recover_passcode.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..22f329bccf --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/range_request_builder.rb index 599a21add5..2ff6c16e38 100644 --- a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/range_request_builder.rb @@ -11,7 +11,38 @@ require_relative '../../../item' require_relative '../../rows' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' require_relative './range' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' +require_relative './unmerge/unmerge_request_builder' +require_relative './used_range/used_range_request_builder' +require_relative './used_range_with_values_only/used_range_with_values_only_request_builder' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -28,6 +59,148 @@ module Range # Provides operations to call the range method. class RangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Rows::Item::Range::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Rows::Item::Range::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Rows::Item::Range::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Rows::Item::Range::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Rows::Item::Range::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Rows::Item::Range::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Rows::Item::Range::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Rows::Item::Range::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Rows::Item::Range::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Rows::Item::Range::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Rows::Item::Range::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Rows::Item::Range::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Rows::Item::Range::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Rows::Item::Range::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Rows::Item::Range::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Rows::Item::Range::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the usedRange method. + def used_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Rows::Item::Range::UsedRange::UsedRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Rows::Item::Range::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Rows::Item::Range::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new RangeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -47,27 +220,102 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Invoke function range ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Provides operations to call the usedRange method. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a used_range_with_values_only_request_builder + ## + def used_range_with_values_only(values_only) + raise StandardError, 'values_only cannot be null' if values_only.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/me/managed_devices/item/remote_lock/remote_lock.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb similarity index 100% rename from lib/me/managed_devices/item/remote_lock/remote_lock.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..df8ae4565d --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/request_remote_assistance/request_remote_assistance.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/row_with_row/row_with_row.rb similarity index 100% rename from lib/me/managed_devices/item/request_remote_assistance/request_remote_assistance.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/row_with_row/row_with_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..4c4449328c --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/reset_passcode/reset_passcode.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/rows_above/rows_above.rb similarity index 100% rename from lib/me/managed_devices/item/reset_passcode/reset_passcode.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/rows_above/rows_above.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..da7d7a0b05 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/rows_above/rows_above_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/retire/retire.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/rows_above_with_count/rows_above_with_count.rb similarity index 100% rename from lib/me/managed_devices/item/retire/retire.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/rows_above_with_count/rows_above_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..b2b9f3fa99 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/shut_down/shut_down.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/rows_below/rows_below.rb similarity index 100% rename from lib/me/managed_devices/item/shut_down/shut_down.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/rows_below/rows_below.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..0d913f7039 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/rows_below/rows_below_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/sync_device/sync_device.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/rows_below_with_count/rows_below_with_count.rb similarity index 100% rename from lib/me/managed_devices/item/sync_device/sync_device.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/rows_below_with_count/rows_below_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..2a95a143dd --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/users/users.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/sort/sort.rb similarity index 100% rename from lib/me/managed_devices/item/users/users.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/sort/sort.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/sort/sort_request_builder.rb new file mode 100644 index 0000000000..554062f03d --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/sort/sort_request_builder.rb @@ -0,0 +1,187 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/windows_defender_update_signatures/windows_defender_update_signatures.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/unmerge/unmerge.rb similarity index 100% rename from lib/me/managed_devices/item/windows_defender_update_signatures/windows_defender_update_signatures.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/unmerge/unmerge.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..070245f15b --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/unmerge/unmerge_request_builder.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/windows_protection_state/detected_malware_state/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/used_range/used_range.rb similarity index 100% rename from lib/me/managed_devices/item/windows_protection_state/detected_malware_state/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/used_range/used_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/used_range/used_range_request_builder.rb new file mode 100644 index 0000000000..344b893dee --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/used_range/used_range_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './used_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module UsedRange + ## + # Provides operations to call the usedRange method. + class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/usedRange()") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/windows_protection_state/detected_malware_state/detected_malware_state.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/used_range_with_values_only/used_range_with_values_only.rb similarity index 100% rename from lib/me/managed_devices/item/windows_protection_state/detected_malware_state/detected_malware_state.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/used_range_with_values_only/used_range_with_values_only.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb new file mode 100644 index 0000000000..cbba30c877 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './used_range_with_values_only' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module UsedRangeWithValuesOnly + ## + # Provides operations to call the usedRange method. + class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a void + ## + def initialize(path_parameters, request_adapter, values_only=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/usedRange(valuesOnly={valuesOnly})") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/windows_protection_state/detected_malware_state/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/visible_view/visible_view.rb similarity index 100% rename from lib/me/managed_devices/item/windows_protection_state/detected_malware_state/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/visible_view/visible_view.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..41b97d22f4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/visible_view/visible_view_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/managed_devices/item/windows_protection_state/windows_protection_state.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/worksheet/worksheet.rb similarity index 100% rename from lib/me/managed_devices/item/windows_protection_state/windows_protection_state.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item/range/worksheet/worksheet.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/range/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..f2bff1ccd9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/range/worksheet/worksheet_request_builder.rb @@ -0,0 +1,122 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module Item + module Range + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item/workbook_table_row_item_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item/workbook_table_row_item_request_builder.rb index 3cd9d80a71..18053c8d20 100644 --- a/lib/drives/item/items/item/workbook/tables/item/rows/item/workbook_table_row_item_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item/workbook_table_row_item_request_builder.rb @@ -39,10 +39,10 @@ def range() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}{?%24expand,%24select}") end ## - ## Deletes the row from the table. + ## Delete navigation property rows for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -51,12 +51,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of tablerow object. + ## The list of all the rows in the table. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_row ## @@ -65,12 +64,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableRow.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of tablerow object. + ## Update the navigation property rows in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_row @@ -81,46 +79,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableRow.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Deletes the row from the table. + ## Delete navigation property rows for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of tablerow object. + ## The list of all the rows in the table. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of tablerow object. + ## Update the navigation property rows in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -128,20 +126,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a workbook_table_row_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorkbookTableRowItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of tablerow object. + # The list of all the rows in the table. Read-only. class WorkbookTableRowItemRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item_at_with_index/item_at_with_index_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item_at_with_index/item_at_with_index_request_builder.rb index 3cf6923aa5..86606fb946 100644 --- a/lib/drives/item/items/item/workbook/tables/item/rows/item_at_with_index/item_at_with_index_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item_at_with_index/item_at_with_index_request_builder.rb @@ -11,6 +11,7 @@ require_relative '../../item' require_relative '../rows' require_relative './item_at_with_index' +require_relative './range/range_request_builder' module MicrosoftGraph module Drives @@ -26,6 +27,11 @@ module ItemAtWithIndex # Provides operations to call the itemAt method. class ItemAtWithIndexRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the range method. + def range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::Rows::ItemAtWithIndex::Range::RangeRequestBuilder.new(@path_parameters, @request_adapter) + end ## ## Instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. ## @param index Usage: index={index} @@ -37,7 +43,7 @@ def initialize(path_parameters, request_adapter, index=nil) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/itemAt(index={index})") end ## - ## Invoke function itemAt + ## Gets a row based on its position in the collection. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_row ## @@ -46,27 +52,35 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableRow.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function itemAt + ## Gets a row based on its position in the collection. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a item_at_with_index_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemAtWithIndexRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/me/managed_devices/managed_devices.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item_at_with_index/range/range.rb similarity index 100% rename from lib/me/managed_devices/managed_devices.rb rename to lib/drives/item/items/item/workbook/tables/item/rows/item_at_with_index/range/range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/item_at_with_index/range/range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/item_at_with_index/range/range_request_builder.rb new file mode 100644 index 0000000000..90316cfccf --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/rows/item_at_with_index/range/range_request_builder.rb @@ -0,0 +1,90 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../tables' +require_relative '../../../item' +require_relative '../../rows' +require_relative '../item_at_with_index' +require_relative './range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module Rows + module ItemAtWithIndex + module Range + ## + # Provides operations to call the range method. + class RangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/itemAt(index={index})/range()") + end + ## + ## Invoke function range + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function range + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/rows/rows_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/rows/rows_request_builder.rb index 87b453e601..6ccd7de5a0 100644 --- a/lib/drives/item/items/item/workbook/tables/item/rows/rows_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/rows/rows_request_builder.rb @@ -57,10 +57,10 @@ def by_workbook_table_row_id(workbook_table_row_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of tablerow objects. + ## The list of all the rows in the table. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_row_collection_response ## @@ -69,8 +69,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableRowCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,7 +82,7 @@ def item_at_with_index(index) return ItemAtWithIndexRequestBuilder.new(@path_parameters, @request_adapter, index) end ## - ## Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the request. + ## Create new navigation property to rows for drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_row @@ -94,30 +93,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableRow.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of tablerow objects. + ## The list of all the rows in the table. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the request. + ## Create new navigation property to rows for drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -125,20 +123,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of tablerow objects. + # The list of all the rows in the table. Read-only. class RowsRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/tables/item/sort/apply/apply_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/sort/apply/apply_post_request_body.rb index b30ebad598..b69e2297f4 100644 --- a/lib/drives/item/items/item/workbook/tables/item/sort/apply/apply_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/tables/item/sort/apply/apply_post_request_body.rb @@ -36,22 +36,22 @@ class ApplyPostRequestBody # The method property @method ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new applyPostRequestBody and sets the default values. + ## Instantiates a new ApplyPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/tables/item/sort/apply/apply_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/sort/apply/apply_request_builder.rb index 85722efe2e..6448761309 100644 --- a/lib/drives/item/items/item/workbook/tables/item/sort/apply/apply_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/sort/apply/apply_request_builder.rb @@ -46,8 +46,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,16 +58,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/sort/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/sort/clear/clear_request_builder.rb index 70a4017a03..e4c98562dc 100644 --- a/lib/drives/item/items/item/workbook/tables/item/sort/clear/clear_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/sort/clear/clear_request_builder.rb @@ -44,8 +44,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,15 +54,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/sort/reapply/reapply_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/sort/reapply/reapply_request_builder.rb index 4b73add0fa..20b1c704a7 100644 --- a/lib/drives/item/items/item/workbook/tables/item/sort/reapply/reapply_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/sort/reapply/reapply_request_builder.rb @@ -44,8 +44,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,15 +54,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reapply_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReapplyRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/tables/item/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/sort/sort_request_builder.rb index b9f040ef2f..f4b26bb282 100644 --- a/lib/drives/item/items/item/workbook/tables/item/sort/sort_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/sort/sort_request_builder.rb @@ -49,7 +49,7 @@ def reapply() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort{?%24expand,%24select}") end ## ## Delete navigation property sort for drives @@ -61,12 +61,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of tablesort object. + ## The sorting for the table. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_sort ## @@ -75,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableSort.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableSort.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,31 +99,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of tablesort object. + ## The sorting for the table. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,20 +136,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of tablesort object. + # The sorting for the table. Read-only. class SortRequestBuilderGetQueryParameters ## diff --git a/lib/me/manager/manager.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb similarity index 100% rename from lib/me/manager/manager.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..e8f98b0f25 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/manager/ref/ref.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/cell_with_row_with_column/cell_with_row_with_column.rb similarity index 100% rename from lib/me/manager/ref/ref.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/cell_with_row_with_column/cell_with_row_with_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..7f5ae468e7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/clear/clear.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..26647e1642 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/clear/clear_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/clear/clear_request_builder.rb new file mode 100644 index 0000000000..4b9899194c --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/clear/clear_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/me.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/column_with_column/column_with_column.rb similarity index 100% rename from lib/me/me.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/column_with_column/column_with_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..771e89c3d7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/member_of/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/columns_after/columns_after.rb similarity index 100% rename from lib/me/member_of/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/columns_after/columns_after.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..07736b617e --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/columns_after/columns_after_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/member_of/graph_administrative_unit/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/columns_after_with_count/columns_after_with_count.rb similarity index 100% rename from lib/me/member_of/graph_administrative_unit/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/columns_after_with_count/columns_after_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..4103e5c68a --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/member_of/graph_administrative_unit/graph_administrative_unit.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/columns_before/columns_before.rb similarity index 100% rename from lib/me/member_of/graph_administrative_unit/graph_administrative_unit.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/columns_before/columns_before.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..f8b357c245 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/columns_before/columns_before_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/member_of/graph_directory_role/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/columns_before_with_count/columns_before_with_count.rb similarity index 100% rename from lib/me/member_of/graph_directory_role/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/columns_before_with_count/columns_before_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..28d61a6145 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/delete/delete.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..635c0554e3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/delete/delete_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/delete/delete_request_builder.rb new file mode 100644 index 0000000000..33e3f2f233 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/delete/delete_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/member_of/graph_directory_role/graph_directory_role.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/entire_column/entire_column.rb similarity index 100% rename from lib/me/member_of/graph_directory_role/graph_directory_role.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/entire_column/entire_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..f0ecab28d2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/entire_column/entire_column_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/member_of/graph_group/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/entire_row/entire_row.rb similarity index 100% rename from lib/me/member_of/graph_group/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/entire_row/entire_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..91ec47df5f --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/entire_row/entire_row_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/member_of/graph_group/graph_group.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/format/format.rb similarity index 100% rename from lib/me/member_of/graph_group/graph_group.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/format/format.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/format/format_request_builder.rb new file mode 100644 index 0000000000..02e97a3b11 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/format/format_request_builder.rb @@ -0,0 +1,181 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/insert/insert.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..7838f15a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/insert/insert_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/insert/insert_request_builder.rb new file mode 100644 index 0000000000..5868199a86 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/insert/insert_request_builder.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/member_of/item/graph_administrative_unit/graph_administrative_unit.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/intersection_with_another_range/intersection_with_another_range.rb similarity index 100% rename from lib/me/member_of/item/graph_administrative_unit/graph_administrative_unit.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/intersection_with_another_range/intersection_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..445419b455 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/member_of/item/graph_directory_role/graph_directory_role.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/last_cell/last_cell.rb similarity index 100% rename from lib/me/member_of/item/graph_directory_role/graph_directory_role.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/last_cell/last_cell.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..fbff7872be --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/last_cell/last_cell_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/member_of/item/graph_group/graph_group.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/last_column/last_column.rb similarity index 100% rename from lib/me/member_of/item/graph_group/graph_group.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/last_column/last_column.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..4b968cb0b7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/last_column/last_column_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/member_of/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/last_row/last_row.rb similarity index 100% rename from lib/me/member_of/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/last_row/last_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..b560dffaca --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/last_row/last_row_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/merge/merge.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..a0708b8458 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/merge/merge_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/merge/merge_request_builder.rb new file mode 100644 index 0000000000..319013b3cb --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/merge/merge_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/member_of/member_of.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb similarity index 100% rename from lib/me/member_of/member_of.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..bd3fbdabda --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/messages/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb similarity index 100% rename from lib/me/messages/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..b75308730c --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/messages/item/attachments/attachments.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/row_with_row/row_with_row.rb similarity index 100% rename from lib/me/messages/item/attachments/attachments.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/row_with_row/row_with_row.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..ebe5a4575e --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/messages/item/attachments/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/rows_above/rows_above.rb similarity index 100% rename from lib/me/messages/item/attachments/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/rows_above/rows_above.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..6dc6d80b17 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/rows_above/rows_above_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/messages/item/attachments/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/rows_above_with_count/rows_above_with_count.rb similarity index 100% rename from lib/me/messages/item/attachments/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/rows_above_with_count/rows_above_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..5cb0dee6f6 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/messages/item/extensions/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/rows_below/rows_below.rb similarity index 100% rename from lib/me/messages/item/extensions/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/rows_below/rows_below.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..5040ed1fda --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/rows_below/rows_below_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/messages/item/extensions/extensions.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/rows_below_with_count/rows_below_with_count.rb similarity index 100% rename from lib/me/messages/item/extensions/extensions.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/rows_below_with_count/rows_below_with_count.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..6a2e977ed3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/messages/item/extensions/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/sort/sort.rb similarity index 100% rename from lib/me/messages/item/extensions/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/sort/sort.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/sort/sort_request_builder.rb new file mode 100644 index 0000000000..4d1b2e6cb6 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/sort/sort_request_builder.rb @@ -0,0 +1,181 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/total_row_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/total_row_range_request_builder.rb index 9d9e558b7e..473f63143d 100644 --- a/lib/drives/item/items/item/workbook/tables/item/total_row_range/total_row_range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/total_row_range_request_builder.rb @@ -9,7 +9,38 @@ require_relative '../../../workbook' require_relative '../../tables' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' require_relative './total_row_range' +require_relative './unmerge/unmerge_request_builder' +require_relative './used_range/used_range_request_builder' +require_relative './used_range_with_values_only/used_range_with_values_only_request_builder' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -24,6 +55,148 @@ module TotalRowRange # Provides operations to call the totalRowRange method. class TotalRowRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::TotalRowRange::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::TotalRowRange::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::TotalRowRange::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::TotalRowRange::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::TotalRowRange::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::TotalRowRange::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::TotalRowRange::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::TotalRowRange::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::TotalRowRange::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::TotalRowRange::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::TotalRowRange::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::TotalRowRange::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::TotalRowRange::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::TotalRowRange::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::TotalRowRange::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::TotalRowRange::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the usedRange method. + def used_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::TotalRowRange::UsedRange::UsedRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::TotalRowRange::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::Item::TotalRowRange::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new TotalRowRangeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -43,27 +216,102 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Gets the range object associated with totals row of the table. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Provides operations to call the usedRange method. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a used_range_with_values_only_request_builder + ## + def used_range_with_values_only(values_only) + raise StandardError, 'values_only cannot be null' if values_only.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a total_row_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TotalRowRangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/me/messages/item/item.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/unmerge/unmerge.rb similarity index 100% rename from lib/me/messages/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/unmerge/unmerge.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..2ea6d7542a --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/unmerge/unmerge_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/messages/item/send/send.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/used_range/used_range.rb similarity index 100% rename from lib/me/messages/item/send/send.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/used_range/used_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/used_range/used_range_request_builder.rb new file mode 100644 index 0000000000..b506bb2bfe --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/used_range/used_range_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './used_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module UsedRange + ## + # Provides operations to call the usedRange method. + class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/usedRange()") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/messages/item/value/value.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/used_range_with_values_only/used_range_with_values_only.rb similarity index 100% rename from lib/me/messages/item/value/value.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/used_range_with_values_only/used_range_with_values_only.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb new file mode 100644 index 0000000000..a99ce38150 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './used_range_with_values_only' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module UsedRangeWithValuesOnly + ## + # Provides operations to call the usedRange method. + class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a void + ## + def initialize(path_parameters, request_adapter, values_only=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/usedRange(valuesOnly={valuesOnly})") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/messages/messages.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/visible_view/visible_view.rb similarity index 100% rename from lib/me/messages/messages.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/visible_view/visible_view.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..6372c56427 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/visible_view/visible_view_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/oauth2_permission_grants/count/count.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/worksheet/worksheet.rb similarity index 100% rename from lib/me/oauth2_permission_grants/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item/total_row_range/worksheet/worksheet.rb diff --git a/lib/drives/item/items/item/workbook/tables/item/total_row_range/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/total_row_range/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..5dae583693 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item/total_row_range/worksheet/worksheet_request_builder.rb @@ -0,0 +1,116 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module Item + module TotalRowRange + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item/workbook_table_item_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/workbook_table_item_request_builder.rb index 39739d1a3d..fd5e92046c 100644 --- a/lib/drives/item/items/item/workbook/tables/item/workbook_table_item_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/workbook_table_item_request_builder.rb @@ -95,10 +95,10 @@ def worksheet() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}{?%24expand,%24select}") end ## - ## Deletes the table. + ## Delete navigation property tables for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -107,12 +107,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of table object. + ## Represents a collection of tables associated with the workbook. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table ## @@ -121,12 +120,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTable.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of table object. + ## Update the navigation property tables in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table @@ -137,46 +135,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTable.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Deletes the table. + ## Delete navigation property tables for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of table object. + ## Represents a collection of tables associated with the workbook. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of table object. + ## Update the navigation property tables in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -184,20 +182,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a workbook_table_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorkbookTableItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of table object. + # Represents a collection of tables associated with the workbook. Read-only. class WorkbookTableItemRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/tables/item/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item/worksheet/worksheet_request_builder.rb index 0d673cc689..9a6114ad4a 100644 --- a/lib/drives/item/items/item/workbook/tables/item/worksheet/worksheet_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item/worksheet/worksheet_request_builder.rb @@ -31,7 +31,7 @@ class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/worksheet{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/worksheet{?%24expand,%24select}") end ## ## The worksheet containing the current table. Read-only. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end ## # The worksheet containing the current table. Read-only. diff --git a/lib/me/oauth2_permission_grants/item/item.rb b/lib/drives/item/items/item/workbook/tables/item_at_with_index/clear_filters/clear_filters.rb similarity index 100% rename from lib/me/oauth2_permission_grants/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item_at_with_index/clear_filters/clear_filters.rb diff --git a/lib/drives/item/items/item/workbook/tables/item_at_with_index/clear_filters/clear_filters_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item_at_with_index/clear_filters/clear_filters_request_builder.rb new file mode 100644 index 0000000000..93e05b6135 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item_at_with_index/clear_filters/clear_filters_request_builder.rb @@ -0,0 +1,83 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../drives' +require_relative '../../../../../../item' +require_relative '../../../../../items' +require_relative '../../../../item' +require_relative '../../../workbook' +require_relative '../../tables' +require_relative '../item_at_with_index' +require_relative './clear_filters' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module ItemAtWithIndex + module ClearFilters + ## + # Provides operations to call the clearFilters method. + class ClearFiltersRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearFiltersRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/clearFilters") + end + ## + ## Clears all the filters currently applied on the table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Clears all the filters currently applied on the table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_filters_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearFiltersRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/oauth2_permission_grants/oauth2_permission_grants.rb b/lib/drives/item/items/item/workbook/tables/item_at_with_index/columns/columns.rb similarity index 100% rename from lib/me/oauth2_permission_grants/oauth2_permission_grants.rb rename to lib/drives/item/items/item/workbook/tables/item_at_with_index/columns/columns.rb diff --git a/lib/drives/item/items/item/workbook/tables/item_at_with_index/columns/columns_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item_at_with_index/columns/columns_request_builder.rb new file mode 100644 index 0000000000..ccdf4f8cc0 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item_at_with_index/columns/columns_request_builder.rb @@ -0,0 +1,179 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../models/workbook_table_column' +require_relative '../../../../../../../../models/workbook_table_column_collection_response' +require_relative '../../../../../../../drives' +require_relative '../../../../../../item' +require_relative '../../../../../items' +require_relative '../../../../item' +require_relative '../../../workbook' +require_relative '../../tables' +require_relative '../item_at_with_index' +require_relative './columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module ItemAtWithIndex + module Columns + ## + # Provides operations to manage the columns property of the microsoft.graph.workbookTable entity. + class ColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of all the columns in the table. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_table_column_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableColumnCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to columns for drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_table_column + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableColumn.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of all the columns in the table. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to columns for drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of all the columns in the table. Read-only. + class ColumnsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/count/count.rb b/lib/drives/item/items/item/workbook/tables/item_at_with_index/convert_to_range/convert_to_range.rb similarity index 100% rename from lib/me/onenote/notebooks/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item_at_with_index/convert_to_range/convert_to_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item_at_with_index/convert_to_range/convert_to_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item_at_with_index/convert_to_range/convert_to_range_request_builder.rb new file mode 100644 index 0000000000..3cfce7120f --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item_at_with_index/convert_to_range/convert_to_range_request_builder.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../models/workbook_range' +require_relative '../../../../../../../drives' +require_relative '../../../../../../item' +require_relative '../../../../../items' +require_relative '../../../../item' +require_relative '../../../workbook' +require_relative '../../tables' +require_relative '../item_at_with_index' +require_relative './convert_to_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module ItemAtWithIndex + module ConvertToRange + ## + # Provides operations to call the convertToRange method. + class ConvertToRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ConvertToRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/convertToRange") + end + ## + ## Converts the table into a normal range of cells. All data is preserved. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Converts the table into a normal range of cells. All data is preserved. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a convert_to_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConvertToRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/item.rb b/lib/drives/item/items/item/workbook/tables/item_at_with_index/data_body_range/data_body_range.rb similarity index 100% rename from lib/me/onenote/notebooks/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item_at_with_index/data_body_range/data_body_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item_at_with_index/data_body_range/data_body_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item_at_with_index/data_body_range/data_body_range_request_builder.rb new file mode 100644 index 0000000000..998ab7ed6e --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item_at_with_index/data_body_range/data_body_range_request_builder.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../models/workbook_range' +require_relative '../../../../../../../drives' +require_relative '../../../../../../item' +require_relative '../../../../../items' +require_relative '../../../../item' +require_relative '../../../workbook' +require_relative '../../tables' +require_relative '../item_at_with_index' +require_relative './data_body_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module ItemAtWithIndex + module DataBodyRange + ## + # Provides operations to call the dataBodyRange method. + class DataBodyRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DataBodyRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/dataBodyRange()") + end + ## + ## Gets the range object associated with the data body of the table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Gets the range object associated with the data body of the table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a data_body_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DataBodyRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/section_groups/count/count.rb b/lib/drives/item/items/item/workbook/tables/item_at_with_index/header_row_range/header_row_range.rb similarity index 100% rename from lib/me/onenote/notebooks/item/section_groups/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item_at_with_index/header_row_range/header_row_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item_at_with_index/header_row_range/header_row_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item_at_with_index/header_row_range/header_row_range_request_builder.rb new file mode 100644 index 0000000000..daff92142b --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item_at_with_index/header_row_range/header_row_range_request_builder.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../models/workbook_range' +require_relative '../../../../../../../drives' +require_relative '../../../../../../item' +require_relative '../../../../../items' +require_relative '../../../../item' +require_relative '../../../workbook' +require_relative '../../tables' +require_relative '../item_at_with_index' +require_relative './header_row_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module ItemAtWithIndex + module HeaderRowRange + ## + # Provides operations to call the headerRowRange method. + class HeaderRowRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new HeaderRowRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/headerRowRange()") + end + ## + ## Gets the range object associated with header row of the table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Gets the range object associated with header row of the table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a header_row_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HeaderRowRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/item_at_with_index/item_at_with_index_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item_at_with_index/item_at_with_index_request_builder.rb index 2be10b3eae..1134ed4905 100644 --- a/lib/drives/item/items/item/workbook/tables/item_at_with_index/item_at_with_index_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/item_at_with_index/item_at_with_index_request_builder.rb @@ -8,7 +8,18 @@ require_relative '../../../item' require_relative '../../workbook' require_relative '../tables' +require_relative './clear_filters/clear_filters_request_builder' +require_relative './columns/columns_request_builder' +require_relative './convert_to_range/convert_to_range_request_builder' +require_relative './data_body_range/data_body_range_request_builder' +require_relative './header_row_range/header_row_range_request_builder' require_relative './item_at_with_index' +require_relative './range/range_request_builder' +require_relative './reapply_filters/reapply_filters_request_builder' +require_relative './rows/rows_request_builder' +require_relative './sort/sort_request_builder' +require_relative './total_row_range/total_row_range_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -22,6 +33,61 @@ module ItemAtWithIndex # Provides operations to call the itemAt method. class ItemAtWithIndexRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clearFilters method. + def clear_filters() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::ItemAtWithIndex::ClearFilters::ClearFiltersRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the columns property of the microsoft.graph.workbookTable entity. + def columns() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::ItemAtWithIndex::Columns::ColumnsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the convertToRange method. + def convert_to_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::ItemAtWithIndex::ConvertToRange::ConvertToRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the dataBodyRange method. + def data_body_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::ItemAtWithIndex::DataBodyRange::DataBodyRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the headerRowRange method. + def header_row_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::ItemAtWithIndex::HeaderRowRange::HeaderRowRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the range method. + def range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::ItemAtWithIndex::Range::RangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the reapplyFilters method. + def reapply_filters() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::ItemAtWithIndex::ReapplyFilters::ReapplyFiltersRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the rows property of the microsoft.graph.workbookTable entity. + def rows() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::ItemAtWithIndex::Rows::RowsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookTable entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::ItemAtWithIndex::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the totalRowRange method. + def total_row_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::ItemAtWithIndex::TotalRowRange::TotalRowRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::ItemAtWithIndex::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end ## ## Instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. ## @param index Usage: index={index} @@ -42,8 +108,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTable.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -53,16 +118,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a item_at_with_index_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemAtWithIndexRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/me/onenote/notebooks/item/section_groups/item/item.rb b/lib/drives/item/items/item/workbook/tables/item_at_with_index/range/range.rb similarity index 100% rename from lib/me/onenote/notebooks/item/section_groups/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item_at_with_index/range/range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item_at_with_index/range/range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item_at_with_index/range/range_request_builder.rb new file mode 100644 index 0000000000..51487d7d2e --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item_at_with_index/range/range_request_builder.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../models/workbook_range' +require_relative '../../../../../../../drives' +require_relative '../../../../../../item' +require_relative '../../../../../items' +require_relative '../../../../item' +require_relative '../../../workbook' +require_relative '../../tables' +require_relative '../item_at_with_index' +require_relative './range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module ItemAtWithIndex + module Range + ## + # Provides operations to call the range method. + class RangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/range()") + end + ## + ## Get the range object associated with the entire table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the range object associated with the entire table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/section_groups/item/parent_notebook/parent_notebook.rb b/lib/drives/item/items/item/workbook/tables/item_at_with_index/reapply_filters/reapply_filters.rb similarity index 100% rename from lib/me/onenote/notebooks/item/section_groups/item/parent_notebook/parent_notebook.rb rename to lib/drives/item/items/item/workbook/tables/item_at_with_index/reapply_filters/reapply_filters.rb diff --git a/lib/drives/item/items/item/workbook/tables/item_at_with_index/reapply_filters/reapply_filters_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item_at_with_index/reapply_filters/reapply_filters_request_builder.rb new file mode 100644 index 0000000000..240f72e928 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item_at_with_index/reapply_filters/reapply_filters_request_builder.rb @@ -0,0 +1,83 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../drives' +require_relative '../../../../../../item' +require_relative '../../../../../items' +require_relative '../../../../item' +require_relative '../../../workbook' +require_relative '../../tables' +require_relative '../item_at_with_index' +require_relative './reapply_filters' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module ItemAtWithIndex + module ReapplyFilters + ## + # Provides operations to call the reapplyFilters method. + class ReapplyFiltersRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ReapplyFiltersRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/reapplyFilters") + end + ## + ## Reapplies all the filters currently on the table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Reapplies all the filters currently on the table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reapply_filters_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReapplyFiltersRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/section_groups/item/parent_section_group/parent_section_group.rb b/lib/drives/item/items/item/workbook/tables/item_at_with_index/rows/rows.rb similarity index 100% rename from lib/me/onenote/notebooks/item/section_groups/item/parent_section_group/parent_section_group.rb rename to lib/drives/item/items/item/workbook/tables/item_at_with_index/rows/rows.rb diff --git a/lib/drives/item/items/item/workbook/tables/item_at_with_index/rows/rows_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item_at_with_index/rows/rows_request_builder.rb new file mode 100644 index 0000000000..ebbb29581c --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item_at_with_index/rows/rows_request_builder.rb @@ -0,0 +1,179 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../models/workbook_table_row' +require_relative '../../../../../../../../models/workbook_table_row_collection_response' +require_relative '../../../../../../../drives' +require_relative '../../../../../../item' +require_relative '../../../../../items' +require_relative '../../../../item' +require_relative '../../../workbook' +require_relative '../../tables' +require_relative '../item_at_with_index' +require_relative './rows' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module ItemAtWithIndex + module Rows + ## + # Provides operations to manage the rows property of the microsoft.graph.workbookTable entity. + class RowsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of all the rows in the table. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_table_row_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableRowCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to rows for drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_table_row + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableRow.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of all the rows in the table. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to rows for drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of all the rows in the table. Read-only. + class RowsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/section_groups/item/section_groups/count/count.rb b/lib/drives/item/items/item/workbook/tables/item_at_with_index/sort/sort.rb similarity index 100% rename from lib/me/onenote/notebooks/item/section_groups/item/section_groups/count/count.rb rename to lib/drives/item/items/item/workbook/tables/item_at_with_index/sort/sort.rb diff --git a/lib/drives/item/items/item/workbook/tables/item_at_with_index/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item_at_with_index/sort/sort_request_builder.rb new file mode 100644 index 0000000000..f3448ea18d --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item_at_with_index/sort/sort_request_builder.rb @@ -0,0 +1,178 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../models/workbook_table_sort' +require_relative '../../../../../../../drives' +require_relative '../../../../../../item' +require_relative '../../../../../items' +require_relative '../../../../item' +require_relative '../../../workbook' +require_relative '../../tables' +require_relative '../item_at_with_index' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module ItemAtWithIndex + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookTable entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The sorting for the table. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_table_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_table_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The sorting for the table. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The sorting for the table. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/section_groups/item/section_groups/item/item.rb b/lib/drives/item/items/item/workbook/tables/item_at_with_index/total_row_range/total_row_range.rb similarity index 100% rename from lib/me/onenote/notebooks/item/section_groups/item/section_groups/item/item.rb rename to lib/drives/item/items/item/workbook/tables/item_at_with_index/total_row_range/total_row_range.rb diff --git a/lib/drives/item/items/item/workbook/tables/item_at_with_index/total_row_range/total_row_range_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item_at_with_index/total_row_range/total_row_range_request_builder.rb new file mode 100644 index 0000000000..6c21a95672 --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item_at_with_index/total_row_range/total_row_range_request_builder.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../models/workbook_range' +require_relative '../../../../../../../drives' +require_relative '../../../../../../item' +require_relative '../../../../../items' +require_relative '../../../../item' +require_relative '../../../workbook' +require_relative '../../tables' +require_relative '../item_at_with_index' +require_relative './total_row_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module ItemAtWithIndex + module TotalRowRange + ## + # Provides operations to call the totalRowRange method. + class TotalRowRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new TotalRowRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/totalRowRange()") + end + ## + ## Gets the range object associated with totals row of the table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Gets the range object associated with totals row of the table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a total_row_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TotalRowRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/section_groups/item/section_groups/section_groups.rb b/lib/drives/item/items/item/workbook/tables/item_at_with_index/worksheet/worksheet.rb similarity index 100% rename from lib/me/onenote/notebooks/item/section_groups/item/section_groups/section_groups.rb rename to lib/drives/item/items/item/workbook/tables/item_at_with_index/worksheet/worksheet.rb diff --git a/lib/drives/item/items/item/workbook/tables/item_at_with_index/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/tables/item_at_with_index/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..5ef321a1fa --- /dev/null +++ b/lib/drives/item/items/item/workbook/tables/item_at_with_index/worksheet/worksheet_request_builder.rb @@ -0,0 +1,113 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../drives' +require_relative '../../../../../../item' +require_relative '../../../../../items' +require_relative '../../../../item' +require_relative '../../../workbook' +require_relative '../../tables' +require_relative '../item_at_with_index' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Tables + module ItemAtWithIndex + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current table. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current table. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current table. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/tables/tables_request_builder.rb b/lib/drives/item/items/item/workbook/tables/tables_request_builder.rb index 686428b517..9ef51b4f02 100644 --- a/lib/drives/item/items/item/workbook/tables/tables_request_builder.rb +++ b/lib/drives/item/items/item/workbook/tables/tables_request_builder.rb @@ -53,10 +53,10 @@ def by_workbook_table_id(workbook_table_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of table objects. + ## Represents a collection of tables associated with the workbook. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_collection_response ## @@ -65,8 +65,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,26 +89,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTable.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of table objects. + ## Represents a collection of tables associated with the workbook. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -121,20 +119,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a tables_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TablesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of table objects. + # Represents a collection of tables associated with the workbook. Read-only. class TablesRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/workbook_request_builder.rb b/lib/drives/item/items/item/workbook/workbook_request_builder.rb index 12747443d7..a83188ef16 100644 --- a/lib/drives/item/items/item/workbook/workbook_request_builder.rb +++ b/lib/drives/item/items/item/workbook/workbook_request_builder.rb @@ -87,7 +87,7 @@ def worksheets() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook{?%24expand,%24select}") end ## ## Delete navigation property workbook for drives @@ -99,12 +99,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## For files that are Excel spreadsheets, accesses the workbook API to work with the spreadsheet's contents. Nullable. + ## For files that are Excel spreadsheets, access to the workbook API to work with the spreadsheet's contents. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook ## @@ -113,8 +112,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Workbook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -129,8 +127,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Workbook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -158,31 +155,32 @@ def table_row_operation_result_with_key(key) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## For files that are Excel spreadsheets, accesses the workbook API to work with the spreadsheet's contents. Nullable. + ## For files that are Excel spreadsheets, access to the workbook API to work with the spreadsheet's contents. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -194,20 +192,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a workbook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorkbookRequestBuilder.new(raw_url, @request_adapter) + end ## - # For files that are Excel spreadsheets, accesses the workbook API to work with the spreadsheet's contents. Nullable. + # For files that are Excel spreadsheets, access to the workbook API to work with the spreadsheet's contents. Nullable. class WorkbookRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/add/add_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/add/add_post_request_body.rb index aa8e1a35b7..850d3aa069 100644 --- a/lib/drives/item/items/item/workbook/worksheets/add/add_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/add/add_post_request_body.rb @@ -25,22 +25,22 @@ class AddPostRequestBody # The name property @name ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new addPostRequestBody and sets the default values. + ## Instantiates a new AddPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/worksheets/add/add_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/add/add_request_builder.rb index 67a2939ada..f949933e78 100644 --- a/lib/drives/item/items/item/workbook/worksheets/add/add_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/add/add_request_builder.rb @@ -32,7 +32,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/add") end ## - ## Adds a new worksheet to the workbook. The worksheet will be added at the end of existing worksheets. If you wish to activate the newly added worksheet, call .activate() on it. + ## Add a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you want to activate the newly added worksheet, call .activate() on it. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_worksheet @@ -43,12 +43,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Adds a new worksheet to the workbook. The worksheet will be added at the end of existing worksheets. If you wish to activate the newly added worksheet, call .activate() on it. + ## Add a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you want to activate the newly added worksheet, call .activate() on it. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/count/count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/count/count_request_builder.rb index 6ecf26be92..702b0965b4 100644 --- a/lib/drives/item/items/item/workbook/worksheets/count/count_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/me/onenote/notebooks/item/section_groups/item/sections/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/bounding_rect_with_another_range/bounding_rect_with_another_range.rb similarity index 100% rename from lib/me/onenote/notebooks/item/section_groups/item/sections/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/bounding_rect_with_another_range/bounding_rect_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..d2a09331bc --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb index bcc2809f43..50fe0d9222 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -9,7 +9,37 @@ require_relative '../../../workbook' require_relative '../../worksheets' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' require_relative './cell_with_row_with_column' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column1/column_with_column1_request_builder' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row1/row_with_row1_request_builder' +require_relative './sort/sort_request_builder' +require_relative './unmerge/unmerge_request_builder' +require_relative './used_range/used_range_request_builder' +require_relative './used_range_with_values_only/used_range_with_values_only_request_builder' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -24,6 +54,137 @@ module CellWithRowWithColumn # Provides operations to call the cell method. class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::CellWithRowWithColumn::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::CellWithRowWithColumn::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::CellWithRowWithColumn::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::CellWithRowWithColumn::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::CellWithRowWithColumn::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::CellWithRowWithColumn::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::CellWithRowWithColumn::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::CellWithRowWithColumn::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::CellWithRowWithColumn::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::CellWithRowWithColumn::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::CellWithRowWithColumn::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::CellWithRowWithColumn::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::CellWithRowWithColumn::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::CellWithRowWithColumn::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::CellWithRowWithColumn::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::CellWithRowWithColumn::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the usedRange method. + def used_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::CellWithRowWithColumn::UsedRange::UsedRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::CellWithRowWithColumn::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::CellWithRowWithColumn::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column1 Usage: column={column1} + ## @return a column_with_column1_request_builder + ## + def column_with_column1(column1) + raise StandardError, 'column1 cannot be null' if column1.nil? + return ColumnWithColumn1RequestBuilder.new(@path_parameters, @request_adapter, column1) + end ## ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. ## @param column Usage: column={column} @@ -36,7 +197,7 @@ def initialize(path_parameters, request_adapter, column=nil, row=nil) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})") end ## - ## Invoke function cell + ## Gets the range object containing the single cell based on row and column numbers. The cell can be outside the bounds of its parent range, so long as it's stays within the worksheet grid. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_range ## @@ -45,27 +206,102 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function cell + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row1 Usage: row={row1} + ## @return a row_with_row1_request_builder + ## + def row_with_row1(row1) + raise StandardError, 'row1 cannot be null' if row1.nil? + return RowWithRow1RequestBuilder.new(@path_parameters, @request_adapter, row1) + end + ## + ## Gets the range object containing the single cell based on row and column numbers. The cell can be outside the bounds of its parent range, so long as it's stays within the worksheet grid. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Provides operations to call the usedRange method. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a used_range_with_values_only_request_builder + ## + def used_range_with_values_only(values_only) + raise StandardError, 'values_only cannot be null' if values_only.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/clear/clear.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..d2daede774 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/clear/clear_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/clear/clear_request_builder.rb new file mode 100644 index 0000000000..b6471ba53b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/clear/clear_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/section_groups/item/sections/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/column_with_column1/column_with_column1.rb similarity index 100% rename from lib/me/onenote/notebooks/item/section_groups/item/sections/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/column_with_column1/column_with_column1.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/column_with_column1/column_with_column1_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/column_with_column1/column_with_column1_request_builder.rb new file mode 100644 index 0000000000..cd23700ce3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/column_with_column1/column_with_column1_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './column_with_column1' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module ColumnWithColumn1 + ## + # Provides operations to call the column method. + class ColumnWithColumn1RequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumn1RequestBuilder and sets the default values. + ## @param column1 Usage: column={column1} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column1=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/column(column={column1})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column1_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumn1RequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/section_groups/item/sections/item/pages/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/columns_after/columns_after.rb similarity index 100% rename from lib/me/onenote/notebooks/item/section_groups/item/sections/item/pages/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/columns_after/columns_after.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..f69c67801f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/columns_after/columns_after_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/section_groups/item/sections/item/pages/item/content/content.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/columns_after_with_count/columns_after_with_count.rb similarity index 100% rename from lib/me/onenote/notebooks/item/section_groups/item/sections/item/pages/item/content/content.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/columns_after_with_count/columns_after_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..96f49d9f53 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/section_groups/item/sections/item/pages/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/columns_before/columns_before.rb similarity index 100% rename from lib/me/onenote/notebooks/item/section_groups/item/sections/item/pages/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/columns_before/columns_before.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..3980f5eeba --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/columns_before/columns_before_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/section_groups/item/sections/item/pages/item/parent_notebook/parent_notebook.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/columns_before_with_count/columns_before_with_count.rb similarity index 100% rename from lib/me/onenote/notebooks/item/section_groups/item/sections/item/pages/item/parent_notebook/parent_notebook.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/columns_before_with_count/columns_before_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..c561cd20e9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/delete/delete.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..137147824d --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/delete/delete_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/delete/delete_request_builder.rb new file mode 100644 index 0000000000..89e2bd05ae --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/delete/delete_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/section_groups/item/sections/item/pages/item/parent_section/parent_section.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/entire_column/entire_column.rb similarity index 100% rename from lib/me/onenote/notebooks/item/section_groups/item/sections/item/pages/item/parent_section/parent_section.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/entire_column/entire_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..42e203c110 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/entire_column/entire_column_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/section_groups/item/sections/item/pages/item/preview/preview.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/entire_row/entire_row.rb similarity index 100% rename from lib/me/onenote/notebooks/item/section_groups/item/sections/item/pages/item/preview/preview.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/entire_row/entire_row.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..8a32b6ce4d --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/entire_row/entire_row_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/section_groups/item/sections/item/pages/pages.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/format/format.rb similarity index 100% rename from lib/me/onenote/notebooks/item/section_groups/item/sections/item/pages/pages.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/format/format.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/format/format_request_builder.rb new file mode 100644 index 0000000000..8379ff79f5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/format/format_request_builder.rb @@ -0,0 +1,181 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/insert/insert.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..4b696dff51 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/insert/insert_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/insert/insert_request_builder.rb new file mode 100644 index 0000000000..bc0d07b415 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/insert/insert_request_builder.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/section_groups/item/sections/item/parent_notebook/parent_notebook.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/intersection_with_another_range/intersection_with_another_range.rb similarity index 100% rename from lib/me/onenote/notebooks/item/section_groups/item/sections/item/parent_notebook/parent_notebook.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/intersection_with_another_range/intersection_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..664b44bcf9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/section_groups/item/sections/item/parent_section_group/parent_section_group.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/last_cell/last_cell.rb similarity index 100% rename from lib/me/onenote/notebooks/item/section_groups/item/sections/item/parent_section_group/parent_section_group.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/last_cell/last_cell.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..96de372be0 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/last_cell/last_cell_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/section_groups/item/sections/sections.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/last_column/last_column.rb similarity index 100% rename from lib/me/onenote/notebooks/item/section_groups/item/sections/sections.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/last_column/last_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..e2477cb0c4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/last_column/last_column_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/section_groups/section_groups.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/last_row/last_row.rb similarity index 100% rename from lib/me/onenote/notebooks/item/section_groups/section_groups.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/last_row/last_row.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..eade1628b9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/last_row/last_row_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/merge/merge.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..3f15c91f00 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/merge/merge_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/merge/merge_request_builder.rb new file mode 100644 index 0000000000..241fde4dd1 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/merge/merge_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/sections/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb similarity index 100% rename from lib/me/onenote/notebooks/item/sections/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..2d0ddc0109 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/sections/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb similarity index 100% rename from lib/me/onenote/notebooks/item/sections/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..e55f9f422f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/sections/item/pages/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/row_with_row1/row_with_row1.rb similarity index 100% rename from lib/me/onenote/notebooks/item/sections/item/pages/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/row_with_row1/row_with_row1.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/row_with_row1/row_with_row1_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/row_with_row1/row_with_row1_request_builder.rb new file mode 100644 index 0000000000..4f698f629c --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/row_with_row1/row_with_row1_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './row_with_row1' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module RowWithRow1 + ## + # Provides operations to call the row method. + class RowWithRow1RequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRow1RequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row1 Usage: row={row1} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row1=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/row(row={row1})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row1_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRow1RequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/sections/item/pages/item/content/content.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/rows_above/rows_above.rb similarity index 100% rename from lib/me/onenote/notebooks/item/sections/item/pages/item/content/content.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/rows_above/rows_above.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..630d5aba48 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/rows_above/rows_above_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/sections/item/pages/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/rows_above_with_count/rows_above_with_count.rb similarity index 100% rename from lib/me/onenote/notebooks/item/sections/item/pages/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/rows_above_with_count/rows_above_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..bbfbed5f8d --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/sections/item/pages/item/parent_notebook/parent_notebook.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/rows_below/rows_below.rb similarity index 100% rename from lib/me/onenote/notebooks/item/sections/item/pages/item/parent_notebook/parent_notebook.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/rows_below/rows_below.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..f38e16664c --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/rows_below/rows_below_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/sections/item/pages/item/parent_section/parent_section.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/rows_below_with_count/rows_below_with_count.rb similarity index 100% rename from lib/me/onenote/notebooks/item/sections/item/pages/item/parent_section/parent_section.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/rows_below_with_count/rows_below_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..410143e7a9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/sections/item/pages/item/preview/preview.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/sort/sort.rb similarity index 100% rename from lib/me/onenote/notebooks/item/sections/item/pages/item/preview/preview.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/sort/sort.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/sort/sort_request_builder.rb new file mode 100644 index 0000000000..223aa40db3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/sort/sort_request_builder.rb @@ -0,0 +1,181 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/sections/item/pages/pages.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/unmerge/unmerge.rb similarity index 100% rename from lib/me/onenote/notebooks/item/sections/item/pages/pages.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/unmerge/unmerge.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..d3cdcc11e3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/unmerge/unmerge_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/sections/item/parent_notebook/parent_notebook.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/used_range/used_range.rb similarity index 100% rename from lib/me/onenote/notebooks/item/sections/item/parent_notebook/parent_notebook.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/used_range/used_range.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/used_range/used_range_request_builder.rb new file mode 100644 index 0000000000..e1147d39f7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/used_range/used_range_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './used_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module UsedRange + ## + # Provides operations to call the usedRange method. + class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/usedRange()") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/sections/item/parent_section_group/parent_section_group.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/used_range_with_values_only/used_range_with_values_only.rb similarity index 100% rename from lib/me/onenote/notebooks/item/sections/item/parent_section_group/parent_section_group.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/used_range_with_values_only/used_range_with_values_only.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/used_range_with_values_only/used_range_with_values_only_request_builder.rb new file mode 100644 index 0000000000..c4ee7a98c4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './used_range_with_values_only' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module UsedRangeWithValuesOnly + ## + # Provides operations to call the usedRange method. + class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a void + ## + def initialize(path_parameters, request_adapter, values_only=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/usedRange(valuesOnly={valuesOnly})") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/item/sections/sections.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/visible_view/visible_view.rb similarity index 100% rename from lib/me/onenote/notebooks/item/sections/sections.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/visible_view/visible_view.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..d64216be77 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/visible_view/visible_view_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/notebooks/notebooks.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/worksheet/worksheet.rb similarity index 100% rename from lib/me/onenote/notebooks/notebooks.rb rename to lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/worksheet/worksheet.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..b9c06c9fde --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/cell_with_row_with_column/worksheet/worksheet_request_builder.rb @@ -0,0 +1,116 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../cell_with_row_with_column' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module CellWithRowWithColumn + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/add/add_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/add/add_post_request_body.rb index 3498128e6c..f8816619d8 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/add/add_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/add/add_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../../models/json' require_relative '../../../../../../../../drives' require_relative '../../../../../../../item' require_relative '../../../../../../items' @@ -30,28 +29,25 @@ class AddPostRequestBody # The seriesBy property @series_by ## - # The sourceData property - @source_data - ## # The type property @type ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new addPostRequestBody and sets the default values. + ## Instantiates a new AddPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -73,7 +69,6 @@ def self.create_from_discriminator_value(parse_node) def get_field_deserializers() return { "seriesBy" => lambda {|n| @series_by = n.get_string_value() }, - "sourceData" => lambda {|n| @source_data = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, "type" => lambda {|n| @type = n.get_string_value() }, } end @@ -85,7 +80,6 @@ def get_field_deserializers() def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("seriesBy", @series_by) - writer.write_object_value("sourceData", @source_data) writer.write_string_value("type", @type) writer.write_additional_data(@additional_data) end @@ -105,21 +99,6 @@ def series_by=(value) @series_by = value end ## - ## Gets the sourceData property value. The sourceData property - ## @return a json - ## - def source_data - return @source_data - end - ## - ## Sets the sourceData property value. The sourceData property - ## @param value Value to set for the sourceData property. - ## @return a void - ## - def source_data=(value) - @source_data = value - end - ## ## Gets the type property value. The type property ## @return a string ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/add/add_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/add/add_request_builder.rb index 20460afe8e..63b6438a8d 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/add/add_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/add/add_request_builder.rb @@ -47,8 +47,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChart.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -60,17 +59,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/charts_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/charts_request_builder.rb index 0cf6167831..fd439929ca 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/charts_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/charts_request_builder.rb @@ -58,10 +58,10 @@ def by_workbook_chart_id(workbook_chart_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of chart objects. + ## The list of charts that are part of the worksheet. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_collection_response ## @@ -70,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,7 +92,7 @@ def item_with_name(name) return ItemWithNameRequestBuilder.new(@path_parameters, @request_adapter, name) end ## - ## Use this API to create a new Chart. + ## Create new navigation property to charts for drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart @@ -104,30 +103,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChart.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of chart objects. + ## The list of charts that are part of the worksheet. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Use this API to create a new Chart. + ## Create new navigation property to charts for drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -135,20 +133,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a charts_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChartsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of chart objects. + # The list of charts that are part of the worksheet. Read-only. class ChartsRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/count/count.rb index 4f3a94e631..0dc4499e3a 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/count/count.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/count/count.rb @@ -1 +1 @@ -require_relative 'count_response' +require_relative 'count_get_response' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/count/count_get_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/count/count_get_response.rb new file mode 100644 index 0000000000..9739d61321 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/count/count_get_response.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../charts' +require_relative './count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module Count + class CountGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new CountGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a count_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CountGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_number_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_number_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a integer + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/count/count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/count/count_request_builder.rb index a5ce67b067..08c2ce4909 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/count/count_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/count/count_request_builder.rb @@ -37,16 +37,15 @@ def initialize(path_parameters, request_adapter) ## ## Invoke function count ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of count_response + ## @return a Fiber of count_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::Count::CountResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::Count::CountGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function count @@ -55,16 +54,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/count/count_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/count/count_response.rb deleted file mode 100644 index 07147b1567..0000000000 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/count/count_response.rb +++ /dev/null @@ -1,106 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../drives' -require_relative '../../../../../../../item' -require_relative '../../../../../../items' -require_relative '../../../../../item' -require_relative '../../../../workbook' -require_relative '../../../worksheets' -require_relative '../../item' -require_relative '../charts' -require_relative './count' - -module MicrosoftGraph - module Drives - module Item - module Items - module Item - module Workbook - module Worksheets - module Item - module Charts - module Count - class CountResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new countResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a count_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CountResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_number_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_number_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a integer - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end - end - end -end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/axes_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/axes_request_builder.rb index 5916067286..ec5cbf31d3 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/axes_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/axes_request_builder.rb @@ -53,7 +53,7 @@ def value_axis() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes{?%24expand,%24select}") end ## ## Delete navigation property axes for drives @@ -65,8 +65,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -79,8 +78,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxes.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -95,8 +93,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxes.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -106,13 +103,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,15 +120,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -142,17 +140,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a axes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AxesRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents chart axes. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/category_axis_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/category_axis_request_builder.rb index 648af3a412..251baaac77 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/category_axis_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/category_axis_request_builder.rb @@ -61,7 +61,7 @@ def title() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis{?%24expand,%24select}") end ## ## Delete navigation property categoryAxis for drives @@ -73,8 +73,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -87,8 +86,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxis.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -103,8 +101,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxis.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -114,13 +111,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -130,15 +128,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -150,17 +148,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a category_axis_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CategoryAxisRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the category axis in a chart. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/format/font/font_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/format/font/font_request_builder.rb index c31f30d8ef..ca6201b137 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/format/font/font_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/format/font/font_request_builder.rb @@ -41,7 +41,7 @@ class FontRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format/font{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format/font{?%24expand,%24select}") end ## ## Delete navigation property font for drives @@ -53,12 +53,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of chartfont object. + ## Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_font ## @@ -67,12 +66,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFont.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of chartfont object. + ## Update the navigation property font in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_font @@ -83,8 +81,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFont.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -94,35 +91,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of chartfont object. + ## Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of chartfont object. + ## Update the navigation property font in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -130,20 +128,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a font_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FontRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of chartfont object. + # Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. class FontRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/format/format_request_builder.rb index 1fa3654879..d885bfacc3 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/format/format_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/format/format_request_builder.rb @@ -51,7 +51,7 @@ def line() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format{?%24expand,%24select}") end ## ## Delete navigation property format for drives @@ -63,8 +63,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -77,8 +76,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,8 +91,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -104,13 +101,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,15 +118,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -140,17 +138,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the formatting of a chart object, which includes line and font formatting. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/format/line/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/format/line/clear/clear_request_builder.rb index 19b48bb10b..12ec24a6d3 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/format/line/clear/clear_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/format/line/clear/clear_request_builder.rb @@ -54,8 +54,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,15 +64,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/format/line/line_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/format/line/line_request_builder.rb index f352c18737..f6fab1f3df 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/format/line/line_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/format/line/line_request_builder.rb @@ -47,7 +47,7 @@ def clear() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format/line{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format/line{?%24expand,%24select}") end ## ## Delete navigation property line for drives @@ -59,12 +59,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of chartlineformat object. + ## Represents chart line formatting. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_line_format ## @@ -73,12 +72,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLineFormat.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of chartlineformat object. + ## Update the navigation property line in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_line_format @@ -89,8 +87,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLineFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -100,35 +97,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of chartlineformat object. + ## Represents chart line formatting. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of chartlineformat object. + ## Update the navigation property line in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -136,20 +134,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a line_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LineRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of chartlineformat object. + # Represents chart line formatting. Read-only. class LineRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/major_gridlines/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/major_gridlines/format/format_request_builder.rb index ba57a88337..5309e63daf 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/major_gridlines/format/format_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/major_gridlines/format/format_request_builder.rb @@ -47,7 +47,7 @@ def line() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines/format{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines/format{?%24expand,%24select}") end ## ## Delete navigation property format for drives @@ -59,8 +59,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -73,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlinesFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,8 +87,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlinesFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -100,13 +97,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,15 +114,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,17 +134,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the formatting of chart gridlines. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/major_gridlines/format/line/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/major_gridlines/format/line/clear/clear_request_builder.rb index 6f6af77c5e..72c061a3fc 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/major_gridlines/format/line/clear/clear_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/major_gridlines/format/line/clear/clear_request_builder.rb @@ -56,8 +56,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,15 +66,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/major_gridlines/format/line/line_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/major_gridlines/format/line/line_request_builder.rb index d42ca46089..5d28f59d2f 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/major_gridlines/format/line/line_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/major_gridlines/format/line/line_request_builder.rb @@ -49,7 +49,7 @@ def clear() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines/format/line{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines/format/line{?%24expand,%24select}") end ## ## Delete navigation property line for drives @@ -61,8 +61,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -75,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLineFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLineFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,13 +99,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,15 +116,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,17 +136,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a line_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LineRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents chart line formatting. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/major_gridlines/major_gridlines_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/major_gridlines/major_gridlines_request_builder.rb index cac0132fca..34611e2a2d 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/major_gridlines/major_gridlines_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/major_gridlines/major_gridlines_request_builder.rb @@ -45,7 +45,7 @@ def format() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines{?%24expand,%24select}") end ## ## Delete navigation property majorGridlines for drives @@ -57,8 +57,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -71,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlines.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,8 +85,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlines.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -98,13 +95,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,15 +112,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -134,17 +132,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a major_gridlines_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MajorGridlinesRequestBuilder.new(raw_url, @request_adapter) + end ## # Returns a gridlines object that represents the major gridlines for the specified axis. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/minor_gridlines/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/minor_gridlines/format/format_request_builder.rb index b8ed92ec18..b181beb4f0 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/minor_gridlines/format/format_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/minor_gridlines/format/format_request_builder.rb @@ -47,7 +47,7 @@ def line() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines/format{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines/format{?%24expand,%24select}") end ## ## Delete navigation property format for drives @@ -59,8 +59,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -73,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlinesFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,8 +87,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlinesFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -100,13 +97,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,15 +114,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,17 +134,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the formatting of chart gridlines. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/minor_gridlines/format/line/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/minor_gridlines/format/line/clear/clear_request_builder.rb index 944f59c285..9bfb5ce2da 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/minor_gridlines/format/line/clear/clear_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/minor_gridlines/format/line/clear/clear_request_builder.rb @@ -56,8 +56,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,15 +66,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/minor_gridlines/format/line/line_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/minor_gridlines/format/line/line_request_builder.rb index 5db93b12c0..23cacf612d 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/minor_gridlines/format/line/line_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/minor_gridlines/format/line/line_request_builder.rb @@ -49,7 +49,7 @@ def clear() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines/format/line{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines/format/line{?%24expand,%24select}") end ## ## Delete navigation property line for drives @@ -61,8 +61,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -75,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLineFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLineFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,13 +99,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,15 +116,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,17 +136,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a line_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LineRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents chart line formatting. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/minor_gridlines/minor_gridlines_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/minor_gridlines/minor_gridlines_request_builder.rb index b0727ceb65..aecd2b9f6c 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/minor_gridlines/minor_gridlines_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/minor_gridlines/minor_gridlines_request_builder.rb @@ -45,7 +45,7 @@ def format() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines{?%24expand,%24select}") end ## ## Delete navigation property minorGridlines for drives @@ -57,12 +57,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of chartgridlines object. + ## Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_gridlines ## @@ -71,12 +70,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlines.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of chartgridlines object. + ## Update the navigation property minorGridlines in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_gridlines @@ -87,8 +85,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlines.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -98,35 +95,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of chartgridlines object. + ## Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of chartgridlines object. + ## Update the navigation property minorGridlines in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -134,20 +132,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a minor_gridlines_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MinorGridlinesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of chartgridlines object. + # Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. class MinorGridlinesRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/title/format/font/font_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/title/format/font/font_request_builder.rb index 7760c13e35..fef3aecbe9 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/title/format/font/font_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/title/format/font/font_request_builder.rb @@ -43,7 +43,7 @@ class FontRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/title/format/font{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/title/format/font{?%24expand,%24select}") end ## ## Delete navigation property font for drives @@ -55,8 +55,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -69,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFont.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,8 +83,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFont.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -96,13 +93,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,15 +110,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,17 +130,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a font_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FontRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/title/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/title/format/format_request_builder.rb index 0a133178b2..952310e26b 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/title/format/format_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/title/format/format_request_builder.rb @@ -47,7 +47,7 @@ def font() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/title/format{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/title/format{?%24expand,%24select}") end ## ## Delete navigation property format for drives @@ -59,8 +59,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -73,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisTitleFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,8 +87,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisTitleFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -100,13 +97,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,15 +114,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,17 +134,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the formatting of chart axis title. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/title/title_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/title/title_request_builder.rb index ce7f0ad18c..2b08d664ab 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/title/title_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/category_axis/title/title_request_builder.rb @@ -45,7 +45,7 @@ def format() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/title{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/title{?%24expand,%24select}") end ## ## Delete navigation property title for drives @@ -57,12 +57,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of chartaxistitle object. + ## Represents the axis title. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_axis_title ## @@ -71,12 +70,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisTitle.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of chartaxistitle object. + ## Update the navigation property title in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_axis_title @@ -87,8 +85,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisTitle.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -98,35 +95,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of chartaxistitle object. + ## Represents the axis title. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of chartaxistitle object. + ## Update the navigation property title in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -134,20 +132,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a title_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TitleRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of chartaxistitle object. + # Represents the axis title. Read-only. class TitleRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/format/font/font_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/format/font/font_request_builder.rb index f71b06cb72..468772adf2 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/format/font/font_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/format/font/font_request_builder.rb @@ -41,7 +41,7 @@ class FontRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format/font{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format/font{?%24expand,%24select}") end ## ## Delete navigation property font for drives @@ -53,12 +53,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of chartfont object. + ## Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_font ## @@ -67,12 +66,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFont.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of chartfont object. + ## Update the navigation property font in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_font @@ -83,8 +81,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFont.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -94,35 +91,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of chartfont object. + ## Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of chartfont object. + ## Update the navigation property font in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -130,20 +128,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a font_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FontRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of chartfont object. + # Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. class FontRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/format/format_request_builder.rb index bbaef0f87a..1460a73309 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/format/format_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/format/format_request_builder.rb @@ -51,7 +51,7 @@ def line() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format{?%24expand,%24select}") end ## ## Delete navigation property format for drives @@ -63,8 +63,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -77,8 +76,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,8 +91,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -104,13 +101,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,15 +118,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -140,17 +138,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the formatting of a chart object, which includes line and font formatting. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/format/line/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/format/line/clear/clear_request_builder.rb index 791527f1b9..43cc9acdef 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/format/line/clear/clear_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/format/line/clear/clear_request_builder.rb @@ -54,8 +54,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,15 +64,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/format/line/line_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/format/line/line_request_builder.rb index b90e57caec..fcc99438c1 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/format/line/line_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/format/line/line_request_builder.rb @@ -47,7 +47,7 @@ def clear() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format/line{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format/line{?%24expand,%24select}") end ## ## Delete navigation property line for drives @@ -59,12 +59,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of chartlineformat object. + ## Represents chart line formatting. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_line_format ## @@ -73,12 +72,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLineFormat.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of chartlineformat object. + ## Update the navigation property line in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_line_format @@ -89,8 +87,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLineFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -100,35 +97,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of chartlineformat object. + ## Represents chart line formatting. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of chartlineformat object. + ## Update the navigation property line in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -136,20 +134,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a line_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LineRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of chartlineformat object. + # Represents chart line formatting. Read-only. class LineRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/major_gridlines/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/major_gridlines/format/format_request_builder.rb index cad989b84b..1425bd8471 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/major_gridlines/format/format_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/major_gridlines/format/format_request_builder.rb @@ -47,7 +47,7 @@ def line() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines/format{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines/format{?%24expand,%24select}") end ## ## Delete navigation property format for drives @@ -59,8 +59,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -73,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlinesFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,8 +87,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlinesFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -100,13 +97,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,15 +114,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,17 +134,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the formatting of chart gridlines. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/major_gridlines/format/line/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/major_gridlines/format/line/clear/clear_request_builder.rb index 3d59e9a609..d4af266b5e 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/major_gridlines/format/line/clear/clear_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/major_gridlines/format/line/clear/clear_request_builder.rb @@ -56,8 +56,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,15 +66,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/major_gridlines/format/line/line_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/major_gridlines/format/line/line_request_builder.rb index 76943a57c5..2decfc445f 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/major_gridlines/format/line/line_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/major_gridlines/format/line/line_request_builder.rb @@ -49,7 +49,7 @@ def clear() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines/format/line{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines/format/line{?%24expand,%24select}") end ## ## Delete navigation property line for drives @@ -61,8 +61,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -75,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLineFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLineFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,13 +99,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,15 +116,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,17 +136,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a line_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LineRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents chart line formatting. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/major_gridlines/major_gridlines_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/major_gridlines/major_gridlines_request_builder.rb index 8104e69a87..85d7f4c90f 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/major_gridlines/major_gridlines_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/major_gridlines/major_gridlines_request_builder.rb @@ -45,7 +45,7 @@ def format() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines{?%24expand,%24select}") end ## ## Delete navigation property majorGridlines for drives @@ -57,8 +57,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -71,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlines.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,8 +85,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlines.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -98,13 +95,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,15 +112,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -134,17 +132,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a major_gridlines_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MajorGridlinesRequestBuilder.new(raw_url, @request_adapter) + end ## # Returns a gridlines object that represents the major gridlines for the specified axis. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/minor_gridlines/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/minor_gridlines/format/format_request_builder.rb index d49dd3c42a..d3ba1e0ffb 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/minor_gridlines/format/format_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/minor_gridlines/format/format_request_builder.rb @@ -47,7 +47,7 @@ def line() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines/format{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines/format{?%24expand,%24select}") end ## ## Delete navigation property format for drives @@ -59,8 +59,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -73,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlinesFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,8 +87,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlinesFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -100,13 +97,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,15 +114,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,17 +134,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the formatting of chart gridlines. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/minor_gridlines/format/line/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/minor_gridlines/format/line/clear/clear_request_builder.rb index 5608bd0e2d..d27c50b4e1 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/minor_gridlines/format/line/clear/clear_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/minor_gridlines/format/line/clear/clear_request_builder.rb @@ -56,8 +56,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,15 +66,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/minor_gridlines/format/line/line_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/minor_gridlines/format/line/line_request_builder.rb index 8db6278ead..c5fdb8ebb4 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/minor_gridlines/format/line/line_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/minor_gridlines/format/line/line_request_builder.rb @@ -49,7 +49,7 @@ def clear() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines/format/line{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines/format/line{?%24expand,%24select}") end ## ## Delete navigation property line for drives @@ -61,8 +61,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -75,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLineFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLineFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,13 +99,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,15 +116,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,17 +136,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a line_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LineRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents chart line formatting. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/minor_gridlines/minor_gridlines_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/minor_gridlines/minor_gridlines_request_builder.rb index f3a521c4bb..840777154b 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/minor_gridlines/minor_gridlines_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/minor_gridlines/minor_gridlines_request_builder.rb @@ -45,7 +45,7 @@ def format() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines{?%24expand,%24select}") end ## ## Delete navigation property minorGridlines for drives @@ -57,12 +57,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of chartgridlines object. + ## Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_gridlines ## @@ -71,12 +70,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlines.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of chartgridlines object. + ## Update the navigation property minorGridlines in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_gridlines @@ -87,8 +85,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlines.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -98,35 +95,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of chartgridlines object. + ## Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of chartgridlines object. + ## Update the navigation property minorGridlines in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -134,20 +132,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a minor_gridlines_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MinorGridlinesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of chartgridlines object. + # Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. class MinorGridlinesRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/series_axis_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/series_axis_request_builder.rb index 8bade608ac..f77e17a722 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/series_axis_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/series_axis_request_builder.rb @@ -61,7 +61,7 @@ def title() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis{?%24expand,%24select}") end ## ## Delete navigation property seriesAxis for drives @@ -73,8 +73,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -87,8 +86,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxis.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -103,8 +101,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxis.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -114,13 +111,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -130,15 +128,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -150,17 +148,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a series_axis_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SeriesAxisRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the series axis of a 3-dimensional chart. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/title/format/font/font_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/title/format/font/font_request_builder.rb index d7655ebc0b..2c443511df 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/title/format/font/font_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/title/format/font/font_request_builder.rb @@ -43,7 +43,7 @@ class FontRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/title/format/font{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/title/format/font{?%24expand,%24select}") end ## ## Delete navigation property font for drives @@ -55,8 +55,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -69,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFont.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,8 +83,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFont.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -96,13 +93,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,15 +110,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,17 +130,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a font_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FontRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/title/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/title/format/format_request_builder.rb index 530e0e8652..c406e8891f 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/title/format/format_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/title/format/format_request_builder.rb @@ -47,7 +47,7 @@ def font() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/title/format{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/title/format{?%24expand,%24select}") end ## ## Delete navigation property format for drives @@ -59,8 +59,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -73,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisTitleFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,8 +87,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisTitleFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -100,13 +97,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,15 +114,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,17 +134,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the formatting of chart axis title. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/title/title_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/title/title_request_builder.rb index ee9ab7795c..5110088172 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/title/title_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/series_axis/title/title_request_builder.rb @@ -45,7 +45,7 @@ def format() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/title{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/title{?%24expand,%24select}") end ## ## Delete navigation property title for drives @@ -57,12 +57,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of chartaxistitle object. + ## Represents the axis title. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_axis_title ## @@ -71,12 +70,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisTitle.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of chartaxistitle object. + ## Update the navigation property title in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_axis_title @@ -87,8 +85,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisTitle.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -98,35 +95,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of chartaxistitle object. + ## Represents the axis title. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of chartaxistitle object. + ## Update the navigation property title in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -134,20 +132,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a title_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TitleRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of chartaxistitle object. + # Represents the axis title. Read-only. class TitleRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/format/font/font_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/format/font/font_request_builder.rb index e784992880..85cb6841ea 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/format/font/font_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/format/font/font_request_builder.rb @@ -41,7 +41,7 @@ class FontRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format/font{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format/font{?%24expand,%24select}") end ## ## Delete navigation property font for drives @@ -53,12 +53,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of chartfont object. + ## Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_font ## @@ -67,12 +66,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFont.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of chartfont object. + ## Update the navigation property font in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_font @@ -83,8 +81,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFont.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -94,35 +91,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of chartfont object. + ## Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of chartfont object. + ## Update the navigation property font in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -130,20 +128,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a font_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FontRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of chartfont object. + # Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. class FontRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/format/format_request_builder.rb index cffd29a85a..252bb149f6 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/format/format_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/format/format_request_builder.rb @@ -51,7 +51,7 @@ def line() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format{?%24expand,%24select}") end ## ## Delete navigation property format for drives @@ -63,8 +63,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -77,8 +76,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,8 +91,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -104,13 +101,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,15 +118,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -140,17 +138,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the formatting of a chart object, which includes line and font formatting. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/format/line/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/format/line/clear/clear_request_builder.rb index 5c5d4817ce..764f088604 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/format/line/clear/clear_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/format/line/clear/clear_request_builder.rb @@ -54,8 +54,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,15 +64,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/format/line/line_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/format/line/line_request_builder.rb index 38c2bb397c..c9f106c9f3 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/format/line/line_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/format/line/line_request_builder.rb @@ -47,7 +47,7 @@ def clear() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format/line{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format/line{?%24expand,%24select}") end ## ## Delete navigation property line for drives @@ -59,12 +59,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of chartlineformat object. + ## Represents chart line formatting. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_line_format ## @@ -73,12 +72,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLineFormat.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of chartlineformat object. + ## Update the navigation property line in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_line_format @@ -89,8 +87,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLineFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -100,35 +97,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of chartlineformat object. + ## Represents chart line formatting. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of chartlineformat object. + ## Update the navigation property line in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -136,20 +134,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a line_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LineRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of chartlineformat object. + # Represents chart line formatting. Read-only. class LineRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/major_gridlines/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/major_gridlines/format/format_request_builder.rb index 0caa08710f..62d5427ee6 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/major_gridlines/format/format_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/major_gridlines/format/format_request_builder.rb @@ -47,7 +47,7 @@ def line() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines/format{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines/format{?%24expand,%24select}") end ## ## Delete navigation property format for drives @@ -59,8 +59,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -73,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlinesFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,8 +87,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlinesFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -100,13 +97,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,15 +114,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,17 +134,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the formatting of chart gridlines. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/major_gridlines/format/line/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/major_gridlines/format/line/clear/clear_request_builder.rb index 5def34df5d..854565e8eb 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/major_gridlines/format/line/clear/clear_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/major_gridlines/format/line/clear/clear_request_builder.rb @@ -56,8 +56,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,15 +66,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/major_gridlines/format/line/line_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/major_gridlines/format/line/line_request_builder.rb index 040cb058a2..5e0b1c9f1d 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/major_gridlines/format/line/line_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/major_gridlines/format/line/line_request_builder.rb @@ -49,7 +49,7 @@ def clear() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines/format/line{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines/format/line{?%24expand,%24select}") end ## ## Delete navigation property line for drives @@ -61,8 +61,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -75,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLineFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLineFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,13 +99,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,15 +116,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,17 +136,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a line_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LineRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents chart line formatting. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/major_gridlines/major_gridlines_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/major_gridlines/major_gridlines_request_builder.rb index 764903de33..79f63e0c98 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/major_gridlines/major_gridlines_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/major_gridlines/major_gridlines_request_builder.rb @@ -45,7 +45,7 @@ def format() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines{?%24expand,%24select}") end ## ## Delete navigation property majorGridlines for drives @@ -57,8 +57,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -71,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlines.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,8 +85,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlines.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -98,13 +95,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,15 +112,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -134,17 +132,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a major_gridlines_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MajorGridlinesRequestBuilder.new(raw_url, @request_adapter) + end ## # Returns a gridlines object that represents the major gridlines for the specified axis. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/minor_gridlines/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/minor_gridlines/format/format_request_builder.rb index ae7b975a89..394dd67e68 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/minor_gridlines/format/format_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/minor_gridlines/format/format_request_builder.rb @@ -47,7 +47,7 @@ def line() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines/format{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines/format{?%24expand,%24select}") end ## ## Delete navigation property format for drives @@ -59,8 +59,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -73,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlinesFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,8 +87,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlinesFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -100,13 +97,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,15 +114,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,17 +134,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the formatting of chart gridlines. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/minor_gridlines/format/line/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/minor_gridlines/format/line/clear/clear_request_builder.rb index 9597dac303..d7a93c5616 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/minor_gridlines/format/line/clear/clear_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/minor_gridlines/format/line/clear/clear_request_builder.rb @@ -56,8 +56,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,15 +66,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/minor_gridlines/format/line/line_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/minor_gridlines/format/line/line_request_builder.rb index c8699bb858..8e8bdb941c 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/minor_gridlines/format/line/line_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/minor_gridlines/format/line/line_request_builder.rb @@ -49,7 +49,7 @@ def clear() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines/format/line{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines/format/line{?%24expand,%24select}") end ## ## Delete navigation property line for drives @@ -61,8 +61,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -75,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLineFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLineFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,13 +99,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,15 +116,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,17 +136,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a line_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LineRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents chart line formatting. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/minor_gridlines/minor_gridlines_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/minor_gridlines/minor_gridlines_request_builder.rb index ab7033d326..737f868d41 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/minor_gridlines/minor_gridlines_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/minor_gridlines/minor_gridlines_request_builder.rb @@ -45,7 +45,7 @@ def format() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines{?%24expand,%24select}") end ## ## Delete navigation property minorGridlines for drives @@ -57,12 +57,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of chartgridlines object. + ## Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_gridlines ## @@ -71,12 +70,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlines.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of chartgridlines object. + ## Update the navigation property minorGridlines in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_gridlines @@ -87,8 +85,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlines.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -98,35 +95,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of chartgridlines object. + ## Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of chartgridlines object. + ## Update the navigation property minorGridlines in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -134,20 +132,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a minor_gridlines_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MinorGridlinesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of chartgridlines object. + # Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. class MinorGridlinesRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/title/format/font/font_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/title/format/font/font_request_builder.rb index 95d504ab08..55be95f004 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/title/format/font/font_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/title/format/font/font_request_builder.rb @@ -43,7 +43,7 @@ class FontRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/title/format/font{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/title/format/font{?%24expand,%24select}") end ## ## Delete navigation property font for drives @@ -55,8 +55,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -69,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFont.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,8 +83,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFont.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -96,13 +93,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,15 +110,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,17 +130,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a font_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FontRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/title/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/title/format/format_request_builder.rb index 26eb55110e..983629c40c 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/title/format/format_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/title/format/format_request_builder.rb @@ -47,7 +47,7 @@ def font() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/title/format{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/title/format{?%24expand,%24select}") end ## ## Delete navigation property format for drives @@ -59,8 +59,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -73,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisTitleFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,8 +87,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisTitleFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -100,13 +97,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,15 +114,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,17 +134,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the formatting of chart axis title. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/title/title_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/title/title_request_builder.rb index 3884bf7067..9fa63b1cfb 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/title/title_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/title/title_request_builder.rb @@ -45,7 +45,7 @@ def format() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/title{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/title{?%24expand,%24select}") end ## ## Delete navigation property title for drives @@ -57,12 +57,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of chartaxistitle object. + ## Represents the axis title. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_axis_title ## @@ -71,12 +70,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisTitle.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of chartaxistitle object. + ## Update the navigation property title in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_axis_title @@ -87,8 +85,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisTitle.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -98,35 +95,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of chartaxistitle object. + ## Represents the axis title. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of chartaxistitle object. + ## Update the navigation property title in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -134,20 +132,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a title_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TitleRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of chartaxistitle object. + # Represents the axis title. Read-only. class TitleRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/value_axis_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/value_axis_request_builder.rb index 9bcb5ee40a..dc65fe6c28 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/value_axis_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/axes/value_axis/value_axis_request_builder.rb @@ -61,7 +61,7 @@ def title() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis{?%24expand,%24select}") end ## ## Delete navigation property valueAxis for drives @@ -73,12 +73,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of chartaxis object. + ## Represents the value axis in an axis. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_axis ## @@ -87,12 +86,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxis.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of chartaxis object. + ## Update the navigation property valueAxis in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_axis @@ -103,8 +101,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxis.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -114,35 +111,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of chartaxis object. + ## Represents the value axis in an axis. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of chartaxis object. + ## Update the navigation property valueAxis in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -150,20 +148,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a value_axis_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ValueAxisRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of chartaxis object. + # Represents the value axis in an axis. Read-only. class ValueAxisRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/data_labels_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/data_labels_request_builder.rb index afd3f1182a..6644fb48da 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/data_labels_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/data_labels_request_builder.rb @@ -41,7 +41,7 @@ def format() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels{?%24expand,%24select}") end ## ## Delete navigation property dataLabels for drives @@ -53,12 +53,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of chartdatalabels object. + ## Represents the data labels on the chart. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_data_labels ## @@ -67,12 +66,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartDataLabels.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of chartdatalabels object. + ## Update the navigation property dataLabels in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_data_labels @@ -83,8 +81,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartDataLabels.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -94,35 +91,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of chartdatalabels object. + ## Represents the data labels on the chart. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of chartdatalabels object. + ## Update the navigation property dataLabels in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -130,20 +128,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a data_labels_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DataLabelsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of chartdatalabels object. + # Represents the data labels on the chart. Read-only. class DataLabelsRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/fill/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/fill/clear/clear_request_builder.rb index 5ef9bcd608..4ae08068c5 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/fill/clear/clear_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/fill/clear/clear_request_builder.rb @@ -52,8 +52,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,15 +62,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/fill/fill_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/fill/fill_request_builder.rb index f07a48adbf..28bbf629b9 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/fill/fill_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/fill/fill_request_builder.rb @@ -51,7 +51,7 @@ def set_solid_color() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/fill{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/fill{?%24expand,%24select}") end ## ## Delete navigation property fill for drives @@ -63,8 +63,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -77,8 +76,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFill.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,8 +91,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFill.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -104,13 +101,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,15 +118,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -140,17 +138,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a fill_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FillRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the fill format of the current chart data label. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/fill/set_solid_color/set_solid_color_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/fill/set_solid_color/set_solid_color_post_request_body.rb index 51088cd57b..f9d29ee40d 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/fill/set_solid_color/set_solid_color_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/fill/set_solid_color/set_solid_color_post_request_body.rb @@ -37,15 +37,15 @@ class SetSolidColorPostRequestBody # The color property @color ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -67,7 +67,7 @@ def color=(value) @color = value end ## - ## Instantiates a new setSolidColorPostRequestBody and sets the default values. + ## Instantiates a new SetSolidColorPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/fill/set_solid_color/set_solid_color_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/fill/set_solid_color/set_solid_color_request_builder.rb index 95a4e79254..92d598eab9 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/fill/set_solid_color/set_solid_color_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/fill/set_solid_color/set_solid_color_request_builder.rb @@ -54,8 +54,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,16 +66,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_solid_color_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetSolidColorRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/font/font_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/font/font_request_builder.rb index d0f5fe1140..165827aa11 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/font/font_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/font/font_request_builder.rb @@ -39,7 +39,7 @@ class FontRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/font{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/font{?%24expand,%24select}") end ## ## Delete navigation property font for drives @@ -51,8 +51,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFont.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFont.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,13 +89,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,15 +106,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,17 +126,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a font_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FontRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the font attributes (font name, font size, color, etc.) for a chart data label. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/format_request_builder.rb index d909d0fe2e..290b8ca965 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/format_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/data_labels/format/format_request_builder.rb @@ -49,7 +49,7 @@ def font() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format{?%24expand,%24select}") end ## ## Delete navigation property format for drives @@ -61,8 +61,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -75,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartDataLabelFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartDataLabelFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,13 +99,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,15 +116,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,17 +136,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the format of chart data labels, which includes fill and font formatting. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/clear/clear_request_builder.rb index 751400b11a..85aa93aa52 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/clear/clear_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/clear/clear_request_builder.rb @@ -50,8 +50,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,15 +60,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/fill_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/fill_request_builder.rb index e2b8fc0a34..a5718a5119 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/fill_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/fill_request_builder.rb @@ -49,7 +49,7 @@ def set_solid_color() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/fill{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/fill{?%24expand,%24select}") end ## ## Delete navigation property fill for drives @@ -61,8 +61,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -75,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFill.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFill.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,13 +99,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,15 +116,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,17 +136,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a fill_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FillRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the fill format of an object, which includes background formatting information. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/set_solid_color/set_solid_color_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/set_solid_color/set_solid_color_post_request_body.rb index e797737b10..bc6cd28fe8 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/set_solid_color/set_solid_color_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/set_solid_color/set_solid_color_post_request_body.rb @@ -35,15 +35,15 @@ class SetSolidColorPostRequestBody # The color property @color ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -65,7 +65,7 @@ def color=(value) @color = value end ## - ## Instantiates a new setSolidColorPostRequestBody and sets the default values. + ## Instantiates a new SetSolidColorPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/set_solid_color/set_solid_color_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/set_solid_color/set_solid_color_request_builder.rb index f4b72c9398..3ff05c4d77 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/set_solid_color/set_solid_color_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/set_solid_color/set_solid_color_request_builder.rb @@ -52,8 +52,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,16 +64,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_solid_color_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetSolidColorRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/font/font_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/font/font_request_builder.rb index e8e6e41baa..347c2f8cb0 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/font/font_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/font/font_request_builder.rb @@ -37,7 +37,7 @@ class FontRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/font{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/font{?%24expand,%24select}") end ## ## Delete navigation property font for drives @@ -49,8 +49,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFont.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,8 +77,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFont.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,13 +87,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -106,15 +104,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,17 +124,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a font_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FontRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the font attributes (font name, font size, color, etc.) for the current object. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/format_request_builder.rb index 1c9d279ded..33118c757a 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/format_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/format/format_request_builder.rb @@ -47,7 +47,7 @@ def font() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format{?%24expand,%24select}") end ## ## Delete navigation property format for drives @@ -59,8 +59,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -73,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAreaFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,8 +87,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAreaFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -100,13 +97,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,15 +114,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,17 +134,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end ## # Encapsulates the format properties for the chart area. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image/image.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image/image.rb index 5b191893e1..d6a491b7bb 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image/image.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image/image.rb @@ -1 +1 @@ -require_relative 'image_response' +require_relative 'image_get_response' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image/image_get_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image/image_get_response.rb new file mode 100644 index 0000000000..e785a7078a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image/image_get_response.rb @@ -0,0 +1,109 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item' +require_relative './image' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module Item + module Image + class ImageGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new ImageGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a image_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ImageGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image/image_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image/image_request_builder.rb index 483f88fa85..e84ac355d1 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image/image_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image/image_request_builder.rb @@ -39,16 +39,15 @@ def initialize(path_parameters, request_adapter) ## ## Invoke function image ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of image_response + ## @return a Fiber of image_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::Item::Image::ImageResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::Item::Image::ImageGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function image @@ -57,16 +56,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a image_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImageRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image/image_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image/image_response.rb deleted file mode 100644 index bb17277717..0000000000 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image/image_response.rb +++ /dev/null @@ -1,109 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../../drives' -require_relative '../../../../../../../../item' -require_relative '../../../../../../../items' -require_relative '../../../../../../item' -require_relative '../../../../../workbook' -require_relative '../../../../worksheets' -require_relative '../../../item' -require_relative '../../charts' -require_relative '../item' -require_relative './image' - -module MicrosoftGraph - module Drives - module Item - module Items - module Item - module Workbook - module Worksheets - module Item - module Charts - module Item - module Image - class ImageResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new imageResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a image_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return ImageResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_string_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_string_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end - end - end - end -end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width/image_with_width.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width/image_with_width.rb index 56f8bfdd04..fadd7f3e8a 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width/image_with_width.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width/image_with_width.rb @@ -1 +1 @@ -require_relative 'image_with_width_response' +require_relative 'image_with_width_get_response' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width/image_with_width_get_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width/image_with_width_get_response.rb new file mode 100644 index 0000000000..d6c3d2d424 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width/image_with_width_get_response.rb @@ -0,0 +1,109 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item' +require_relative './image_with_width' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module Item + module ImageWithWidth + class ImageWithWidthGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new ImageWithWidthGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a image_with_width_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ImageWithWidthGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width/image_with_width_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width/image_with_width_request_builder.rb index 0d076eb046..0470dd734a 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width/image_with_width_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width/image_with_width_request_builder.rb @@ -40,16 +40,15 @@ def initialize(path_parameters, request_adapter, width=nil) ## ## Invoke function image ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of image_with_width_response + ## @return a Fiber of image_with_width_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::Item::ImageWithWidth::ImageWithWidthResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::Item::ImageWithWidth::ImageWithWidthGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function image @@ -58,16 +57,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a image_with_width_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImageWithWidthRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width/image_with_width_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width/image_with_width_response.rb deleted file mode 100644 index 9d8f418681..0000000000 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width/image_with_width_response.rb +++ /dev/null @@ -1,109 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../../drives' -require_relative '../../../../../../../../item' -require_relative '../../../../../../../items' -require_relative '../../../../../../item' -require_relative '../../../../../workbook' -require_relative '../../../../worksheets' -require_relative '../../../item' -require_relative '../../charts' -require_relative '../item' -require_relative './image_with_width' - -module MicrosoftGraph - module Drives - module Item - module Items - module Item - module Workbook - module Worksheets - module Item - module Charts - module Item - module ImageWithWidth - class ImageWithWidthResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new imageWithWidthResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a image_with_width_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return ImageWithWidthResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_string_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_string_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end - end - end - end -end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height/image_with_width_with_height.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height/image_with_width_with_height.rb index 3a22cdd56b..58ece451f6 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height/image_with_width_with_height.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height/image_with_width_with_height.rb @@ -1 +1 @@ -require_relative 'image_with_width_with_height_response' +require_relative 'image_with_width_with_height_get_response' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height/image_with_width_with_height_get_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height/image_with_width_with_height_get_response.rb new file mode 100644 index 0000000000..5c53c3ac6e --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height/image_with_width_with_height_get_response.rb @@ -0,0 +1,109 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item' +require_relative './image_with_width_with_height' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module Item + module ImageWithWidthWithHeight + class ImageWithWidthWithHeightGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new ImageWithWidthWithHeightGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a image_with_width_with_height_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ImageWithWidthWithHeightGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height/image_with_width_with_height_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height/image_with_width_with_height_request_builder.rb index 3fbc050aaf..a33e4fa7a5 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height/image_with_width_with_height_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height/image_with_width_with_height_request_builder.rb @@ -41,16 +41,15 @@ def initialize(path_parameters, request_adapter, height=nil, width=nil) ## ## Invoke function image ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of image_with_width_with_height_response + ## @return a Fiber of image_with_width_with_height_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::Item::ImageWithWidthWithHeight::ImageWithWidthWithHeightResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::Item::ImageWithWidthWithHeight::ImageWithWidthWithHeightGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function image @@ -59,16 +58,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a image_with_width_with_height_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImageWithWidthWithHeightRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height/image_with_width_with_height_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height/image_with_width_with_height_response.rb deleted file mode 100644 index 9814875db2..0000000000 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height/image_with_width_with_height_response.rb +++ /dev/null @@ -1,109 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../../drives' -require_relative '../../../../../../../../item' -require_relative '../../../../../../../items' -require_relative '../../../../../../item' -require_relative '../../../../../workbook' -require_relative '../../../../worksheets' -require_relative '../../../item' -require_relative '../../charts' -require_relative '../item' -require_relative './image_with_width_with_height' - -module MicrosoftGraph - module Drives - module Item - module Items - module Item - module Workbook - module Worksheets - module Item - module Charts - module Item - module ImageWithWidthWithHeight - class ImageWithWidthWithHeightResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new imageWithWidthWithHeightResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a image_with_width_with_height_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return ImageWithWidthWithHeightResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_string_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_string_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end - end - end - end -end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode.rb index 6ae2f9cb07..6395bd3733 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode.rb @@ -1 +1 @@ -require_relative 'image_with_width_with_height_with_fitting_mode_response' +require_relative 'image_with_width_with_height_with_fitting_mode_get_response' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_get_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_get_response.rb new file mode 100644 index 0000000000..6df0e53b1b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_get_response.rb @@ -0,0 +1,109 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item' +require_relative './image_with_width_with_height_with_fitting_mode' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module Item + module ImageWithWidthWithHeightWithFittingMode + class ImageWithWidthWithHeightWithFittingModeGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new ImageWithWidthWithHeightWithFittingModeGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a image_with_width_with_height_with_fitting_mode_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ImageWithWidthWithHeightWithFittingModeGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_request_builder.rb index f055dc012b..c2876ad6ac 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_request_builder.rb @@ -42,16 +42,15 @@ def initialize(path_parameters, request_adapter, fitting_mode=nil, height=nil, w ## ## Invoke function image ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of image_with_width_with_height_with_fitting_mode_response + ## @return a Fiber of image_with_width_with_height_with_fitting_mode_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::Item::ImageWithWidthWithHeightWithFittingMode::ImageWithWidthWithHeightWithFittingModeResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::Item::ImageWithWidthWithHeightWithFittingMode::ImageWithWidthWithHeightWithFittingModeGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function image @@ -60,16 +59,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a image_with_width_with_height_with_fitting_mode_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImageWithWidthWithHeightWithFittingModeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_response.rb deleted file mode 100644 index 1739485396..0000000000 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_response.rb +++ /dev/null @@ -1,109 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../../drives' -require_relative '../../../../../../../../item' -require_relative '../../../../../../../items' -require_relative '../../../../../../item' -require_relative '../../../../../workbook' -require_relative '../../../../worksheets' -require_relative '../../../item' -require_relative '../../charts' -require_relative '../item' -require_relative './image_with_width_with_height_with_fitting_mode' - -module MicrosoftGraph - module Drives - module Item - module Items - module Item - module Workbook - module Worksheets - module Item - module Charts - module Item - module ImageWithWidthWithHeightWithFittingMode - class ImageWithWidthWithHeightWithFittingModeResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new imageWithWidthWithHeightWithFittingModeResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a image_with_width_with_height_with_fitting_mode_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return ImageWithWidthWithHeightWithFittingModeResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_string_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_string_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end - end - end - end -end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/clear/clear_request_builder.rb index 8ab4571ea7..de61a6d1c5 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/clear/clear_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/clear/clear_request_builder.rb @@ -52,8 +52,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,15 +62,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/fill_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/fill_request_builder.rb index 9cdae9506a..f32bfdbb7f 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/fill_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/fill_request_builder.rb @@ -51,7 +51,7 @@ def set_solid_color() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/fill{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/fill{?%24expand,%24select}") end ## ## Delete navigation property fill for drives @@ -63,8 +63,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -77,8 +76,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFill.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,8 +91,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFill.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -104,13 +101,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,15 +118,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -140,17 +138,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a fill_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FillRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the fill format of an object, which includes background formating information. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/set_solid_color/set_solid_color_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/set_solid_color/set_solid_color_post_request_body.rb index 339568582f..2a155ca7c5 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/set_solid_color/set_solid_color_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/set_solid_color/set_solid_color_post_request_body.rb @@ -37,15 +37,15 @@ class SetSolidColorPostRequestBody # The color property @color ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -67,7 +67,7 @@ def color=(value) @color = value end ## - ## Instantiates a new setSolidColorPostRequestBody and sets the default values. + ## Instantiates a new SetSolidColorPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/set_solid_color/set_solid_color_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/set_solid_color/set_solid_color_request_builder.rb index 407807a110..01927b2315 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/set_solid_color/set_solid_color_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/set_solid_color/set_solid_color_request_builder.rb @@ -54,8 +54,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,16 +66,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_solid_color_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetSolidColorRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/font/font_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/font/font_request_builder.rb index dd42341ca1..618b72c040 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/font/font_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/font/font_request_builder.rb @@ -39,7 +39,7 @@ class FontRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/font{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/font{?%24expand,%24select}") end ## ## Delete navigation property font for drives @@ -51,8 +51,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFont.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFont.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,13 +89,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,15 +106,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,17 +126,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a font_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FontRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the font attributes such as font name, font size, color, etc. of a chart legend. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/format_request_builder.rb index a2f4fd8473..1ab80ed5d7 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/format_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/format_request_builder.rb @@ -49,7 +49,7 @@ def font() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format{?%24expand,%24select}") end ## ## Delete navigation property format for drives @@ -61,8 +61,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -75,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLegendFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLegendFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,13 +99,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,15 +116,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,17 +136,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the formatting of a chart legend, which includes fill and font formatting. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/legend_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/legend_request_builder.rb index d658ec776a..652e0e85d5 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/legend_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/legend/legend_request_builder.rb @@ -41,7 +41,7 @@ def format() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend{?%24expand,%24select}") end ## ## Delete navigation property legend for drives @@ -53,12 +53,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of chartlegend object. + ## Represents the legend for the chart. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_legend ## @@ -67,12 +66,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLegend.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of chartlegend object. + ## Update the navigation property legend in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_legend @@ -83,8 +81,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLegend.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -94,35 +91,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of chartlegend object. + ## Represents the legend for the chart. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of chartlegend object. + ## Update the navigation property legend in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -130,20 +128,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a legend_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LegendRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of chartlegend object. + # Represents the legend for the chart. Read-only. class LegendRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/count/count.rb index 4f3a94e631..0dc4499e3a 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/count/count.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/count/count.rb @@ -1 +1 @@ -require_relative 'count_response' +require_relative 'count_get_response' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/count/count_get_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/count/count_get_response.rb new file mode 100644 index 0000000000..fa8c8baff5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/count/count_get_response.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../charts' +require_relative '../../item' +require_relative '../series' +require_relative './count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module Item + module Series + module Count + class CountGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new CountGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a count_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CountGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_number_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_number_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a integer + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/count/count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/count/count_request_builder.rb index 5a7261d3de..db348c52bd 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/count/count_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/count/count_request_builder.rb @@ -41,16 +41,15 @@ def initialize(path_parameters, request_adapter) ## ## Invoke function count ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of count_response + ## @return a Fiber of count_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::Item::Series::Count::CountResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::Item::Series::Count::CountGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function count @@ -59,16 +58,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/count/count_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/count/count_response.rb deleted file mode 100644 index 2b1791def7..0000000000 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/count/count_response.rb +++ /dev/null @@ -1,112 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../../../drives' -require_relative '../../../../../../../../../item' -require_relative '../../../../../../../../items' -require_relative '../../../../../../../item' -require_relative '../../../../../../workbook' -require_relative '../../../../../worksheets' -require_relative '../../../../item' -require_relative '../../../charts' -require_relative '../../item' -require_relative '../series' -require_relative './count' - -module MicrosoftGraph - module Drives - module Item - module Items - module Item - module Workbook - module Worksheets - module Item - module Charts - module Item - module Series - module Count - class CountResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new countResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a count_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CountResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_number_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_number_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a integer - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end - end - end - end - end -end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/clear/clear_request_builder.rb index e46df29039..9233d59343 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/clear/clear_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/clear/clear_request_builder.rb @@ -54,8 +54,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,15 +64,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/fill_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/fill_request_builder.rb index 83acf89cbb..45998831b1 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/fill_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/fill_request_builder.rb @@ -53,7 +53,7 @@ def set_solid_color() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/fill{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/fill{?%24expand,%24select}") end ## ## Delete navigation property fill for drives @@ -65,12 +65,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Represents the fill format of a chart series, which includes background formating information. Read-only. + ## Represents the fill format of a chart series, which includes background formatting information. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_fill ## @@ -79,8 +78,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFill.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -95,8 +93,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFill.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -106,31 +103,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Represents the fill format of a chart series, which includes background formating information. Read-only. + ## Represents the fill format of a chart series, which includes background formatting information. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -142,20 +140,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a fill_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FillRequestBuilder.new(raw_url, @request_adapter) + end ## - # Represents the fill format of a chart series, which includes background formating information. Read-only. + # Represents the fill format of a chart series, which includes background formatting information. Read-only. class FillRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/set_solid_color/set_solid_color_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/set_solid_color/set_solid_color_post_request_body.rb index 5401badd45..05f4fab285 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/set_solid_color/set_solid_color_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/set_solid_color/set_solid_color_post_request_body.rb @@ -39,15 +39,15 @@ class SetSolidColorPostRequestBody # The color property @color ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -69,7 +69,7 @@ def color=(value) @color = value end ## - ## Instantiates a new setSolidColorPostRequestBody and sets the default values. + ## Instantiates a new SetSolidColorPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/set_solid_color/set_solid_color_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/set_solid_color/set_solid_color_request_builder.rb index 0bd455de63..842841fbdb 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/set_solid_color/set_solid_color_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/set_solid_color/set_solid_color_request_builder.rb @@ -56,8 +56,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -69,16 +68,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_solid_color_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetSolidColorRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/format_request_builder.rb index 73172dd7df..de6ca60c87 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/format_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/format_request_builder.rb @@ -51,7 +51,7 @@ def line() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format{?%24expand,%24select}") end ## ## Delete navigation property format for drives @@ -63,12 +63,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + ## The formatting of a chart series, which includes fill and line formatting. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_series_format ## @@ -77,8 +76,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartSeriesFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,8 +91,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartSeriesFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -104,31 +101,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + ## The formatting of a chart series, which includes fill and line formatting. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -140,20 +138,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end ## - # Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + # The formatting of a chart series, which includes fill and line formatting. Read-only. class FormatRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/line/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/line/clear/clear_request_builder.rb index b96e84f418..ab5696b7c9 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/line/clear/clear_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/line/clear/clear_request_builder.rb @@ -54,8 +54,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,15 +64,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/line/line_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/line/line_request_builder.rb index a27b717753..c82723e92c 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/line/line_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/line/line_request_builder.rb @@ -47,7 +47,7 @@ def clear() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/line{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/line{?%24expand,%24select}") end ## ## Delete navigation property line for drives @@ -59,8 +59,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -73,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLineFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,8 +87,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLineFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -100,13 +97,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,15 +114,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,17 +134,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a line_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LineRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents line formatting. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/count/count.rb index 4f3a94e631..0dc4499e3a 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/count/count.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/count/count.rb @@ -1 +1 @@ -require_relative 'count_response' +require_relative 'count_get_response' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/count/count_get_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/count/count_get_response.rb new file mode 100644 index 0000000000..ea7287ed8a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/count/count_get_response.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../charts' +require_relative '../../../../item' +require_relative '../../../series' +require_relative '../../item' +require_relative '../points' +require_relative './count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module Item + module Series + module Item + module Points + module Count + class CountGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new CountGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a count_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CountGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_number_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_number_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a integer + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/count/count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/count/count_request_builder.rb index 64a86a206c..660ae37a66 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/count/count_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/count/count_request_builder.rb @@ -45,16 +45,15 @@ def initialize(path_parameters, request_adapter) ## ## Invoke function count ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of count_response + ## @return a Fiber of count_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::Item::Series::Item::Points::Count::CountResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::Item::Series::Item::Points::Count::CountGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function count @@ -63,16 +62,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/count/count_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/count/count_response.rb deleted file mode 100644 index 0467fadb50..0000000000 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/count/count_response.rb +++ /dev/null @@ -1,118 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../../../../../drives' -require_relative '../../../../../../../../../../../item' -require_relative '../../../../../../../../../../items' -require_relative '../../../../../../../../../item' -require_relative '../../../../../../../../workbook' -require_relative '../../../../../../../worksheets' -require_relative '../../../../../../item' -require_relative '../../../../../charts' -require_relative '../../../../item' -require_relative '../../../series' -require_relative '../../item' -require_relative '../points' -require_relative './count' - -module MicrosoftGraph - module Drives - module Item - module Items - module Item - module Workbook - module Worksheets - module Item - module Charts - module Item - module Series - module Item - module Points - module Count - class CountResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new countResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a count_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CountResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_number_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_number_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a integer - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end - end - end - end - end - end - end -end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/clear/clear_request_builder.rb index f5459ce29e..292808fef0 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/clear/clear_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/clear/clear_request_builder.rb @@ -58,8 +58,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -69,15 +68,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/fill_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/fill_request_builder.rb index e4a8186f9b..9d53462b86 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/fill_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/fill_request_builder.rb @@ -57,7 +57,7 @@ def set_solid_color() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format/fill{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format/fill{?%24expand,%24select}") end ## ## Delete navigation property fill for drives @@ -69,12 +69,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Represents the fill format of a chart, which includes background formating information. Read-only. + ## Represents the fill format of a chart, which includes background formatting information. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_fill ## @@ -83,8 +82,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFill.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,8 +97,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFill.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -110,31 +107,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Represents the fill format of a chart, which includes background formating information. Read-only. + ## Represents the fill format of a chart, which includes background formatting information. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -146,20 +144,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a fill_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FillRequestBuilder.new(raw_url, @request_adapter) + end ## - # Represents the fill format of a chart, which includes background formating information. Read-only. + # Represents the fill format of a chart, which includes background formatting information. Read-only. class FillRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/set_solid_color/set_solid_color_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/set_solid_color/set_solid_color_post_request_body.rb index 7d96d5dcff..af58c64807 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/set_solid_color/set_solid_color_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/set_solid_color/set_solid_color_post_request_body.rb @@ -43,15 +43,15 @@ class SetSolidColorPostRequestBody # The color property @color ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -73,7 +73,7 @@ def color=(value) @color = value end ## - ## Instantiates a new setSolidColorPostRequestBody and sets the default values. + ## Instantiates a new SetSolidColorPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/set_solid_color/set_solid_color_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/set_solid_color/set_solid_color_request_builder.rb index e8ff66b805..ce210a23f0 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/set_solid_color/set_solid_color_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/set_solid_color/set_solid_color_request_builder.rb @@ -60,8 +60,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -73,16 +72,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_solid_color_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetSolidColorRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/format_request_builder.rb index 5ec7913a29..ee829ace7d 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/format_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/format_request_builder.rb @@ -49,7 +49,7 @@ def fill() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format{?%24expand,%24select}") end ## ## Delete navigation property format for drives @@ -61,12 +61,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Encapsulates the format properties chart point. Read-only. + ## The format properties of the chart point. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_point_format ## @@ -75,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartPointFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartPointFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,31 +99,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Encapsulates the format properties chart point. Read-only. + ## The format properties of the chart point. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,20 +136,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end ## - # Encapsulates the format properties chart point. Read-only. + # The format properties of the chart point. Read-only. class FormatRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/workbook_chart_point_item_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/workbook_chart_point_item_request_builder.rb index 647b50c5fe..bbe07ed35e 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/workbook_chart_point_item_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/workbook_chart_point_item_request_builder.rb @@ -47,7 +47,7 @@ def format() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}{?%24expand,%24select}") end ## ## Delete navigation property points for drives @@ -59,12 +59,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of chartpoint object. + ## A collection of all points in the series. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_point ## @@ -73,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartPoint.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,8 +87,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartPoint.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -100,31 +97,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of chartpoint object. + ## A collection of all points in the series. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,20 +134,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a workbook_chart_point_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorkbookChartPointItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of chartpoint object. + # A collection of all points in the series. Read-only. class WorkbookChartPointItemRequestBuilderGetQueryParameters ## diff --git a/lib/me/onenote/onenote.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item_at_with_index/format/format.rb similarity index 100% rename from lib/me/onenote/onenote.rb rename to lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item_at_with_index/format/format.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item_at_with_index/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item_at_with_index/format/format_request_builder.rb new file mode 100644 index 0000000000..abce3da6db --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item_at_with_index/format/format_request_builder.rb @@ -0,0 +1,196 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../../models/workbook_chart_point_format' +require_relative '../../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../../item' +require_relative '../../../../../../../../../../../items' +require_relative '../../../../../../../../../../item' +require_relative '../../../../../../../../../workbook' +require_relative '../../../../../../../../worksheets' +require_relative '../../../../../../../item' +require_relative '../../../../../../charts' +require_relative '../../../../../item' +require_relative '../../../../series' +require_relative '../../../item' +require_relative '../../points' +require_relative '../item_at_with_index' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module Item + module Series + module Item + module Points + module ItemAtWithIndex + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookChartPoint entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/itemAt(index={index})/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The format properties of the chart point. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_point_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartPointFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_point_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartPointFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The format properties of the chart point. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The format properties of the chart point. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item_at_with_index/item_at_with_index_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item_at_with_index/item_at_with_index_request_builder.rb index 8263514f04..51f6672274 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item_at_with_index/item_at_with_index_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item_at_with_index/item_at_with_index_request_builder.rb @@ -14,6 +14,7 @@ require_relative '../../../series' require_relative '../../item' require_relative '../points' +require_relative './format/format_request_builder' require_relative './item_at_with_index' module MicrosoftGraph @@ -34,6 +35,11 @@ module ItemAtWithIndex # Provides operations to call the itemAt method. class ItemAtWithIndexRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to manage the format property of the microsoft.graph.workbookChartPoint entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::Item::Series::Item::Points::ItemAtWithIndex::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end ## ## Instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. ## @param index Usage: index={index} @@ -45,7 +51,7 @@ def initialize(path_parameters, request_adapter, index=nil) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/itemAt(index={index})") end ## - ## Invoke function itemAt + ## Retrieve a point based on its position within the series. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_point ## @@ -54,27 +60,35 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartPoint.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function itemAt + ## Retrieve a point based on its position within the series. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a item_at_with_index_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemAtWithIndexRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/points_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/points_request_builder.rb index e718993bdf..d2fbb6eeee 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/points_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/points_request_builder.rb @@ -59,10 +59,10 @@ def by_workbook_chart_point_id(workbook_chart_point_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of chartpoints objects. + ## A collection of all points in the series. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_point_collection_response ## @@ -71,8 +71,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartPointCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,7 +84,7 @@ def item_at_with_index(index) return ItemAtWithIndexRequestBuilder.new(@path_parameters, @request_adapter, index) end ## - ## Use this API to create a new ChartPoints. + ## Create new navigation property to points for drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_point @@ -96,30 +95,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartPoint.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of chartpoints objects. + ## A collection of all points in the series. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Use this API to create a new ChartPoints. + ## Create new navigation property to points for drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -127,20 +125,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a points_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PointsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of chartpoints objects. + # A collection of all points in the series. Read-only. class PointsRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/workbook_chart_series_item_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/workbook_chart_series_item_request_builder.rb index 3374ae91e4..bced44bc93 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/workbook_chart_series_item_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/workbook_chart_series_item_request_builder.rb @@ -49,7 +49,7 @@ def points() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}{?%24expand,%24select}") end ## ## Delete navigation property series for drives @@ -61,12 +61,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of chartseries object. + ## Represents either a single series or collection of series in the chart. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_series ## @@ -75,12 +74,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartSeries.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of chartseries object. + ## Update the navigation property series in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_series @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartSeries.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,35 +99,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of chartseries object. + ## Represents either a single series or collection of series in the chart. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of chartseries object. + ## Update the navigation property series in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -138,20 +136,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a workbook_chart_series_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorkbookChartSeriesItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of chartseries object. + # Represents either a single series or collection of series in the chart. Read-only. class WorkbookChartSeriesItemRequestBuilderGetQueryParameters ## diff --git a/lib/me/onenote/operations/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item_at_with_index/format/format.rb similarity index 100% rename from lib/me/onenote/operations/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item_at_with_index/format/format.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item_at_with_index/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item_at_with_index/format/format_request_builder.rb new file mode 100644 index 0000000000..f5cfcc2a68 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item_at_with_index/format/format_request_builder.rb @@ -0,0 +1,190 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../models/workbook_chart_series_format' +require_relative '../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../item' +require_relative '../../../../../../../../../items' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../workbook' +require_relative '../../../../../../worksheets' +require_relative '../../../../../item' +require_relative '../../../../charts' +require_relative '../../../item' +require_relative '../../series' +require_relative '../item_at_with_index' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module Item + module Series + module ItemAtWithIndex + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookChartSeries entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/itemAt(index={index})/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The formatting of a chart series, which includes fill and line formatting. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_series_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartSeriesFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_series_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartSeriesFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The formatting of a chart series, which includes fill and line formatting. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The formatting of a chart series, which includes fill and line formatting. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item_at_with_index/item_at_with_index_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item_at_with_index/item_at_with_index_request_builder.rb index 4032882a0b..580b978e7f 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item_at_with_index/item_at_with_index_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item_at_with_index/item_at_with_index_request_builder.rb @@ -12,7 +12,9 @@ require_relative '../../../charts' require_relative '../../item' require_relative '../series' +require_relative './format/format_request_builder' require_relative './item_at_with_index' +require_relative './points/points_request_builder' module MicrosoftGraph module Drives @@ -30,6 +32,16 @@ module ItemAtWithIndex # Provides operations to call the itemAt method. class ItemAtWithIndexRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to manage the format property of the microsoft.graph.workbookChartSeries entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::Item::Series::ItemAtWithIndex::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the points property of the microsoft.graph.workbookChartSeries entity. + def points() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::Item::Series::ItemAtWithIndex::Points::PointsRequestBuilder.new(@path_parameters, @request_adapter) + end ## ## Instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. ## @param index Usage: index={index} @@ -41,7 +53,7 @@ def initialize(path_parameters, request_adapter, index=nil) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/itemAt(index={index})") end ## - ## Invoke function itemAt + ## Retrieves a series based on its position in the collection ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_series ## @@ -50,27 +62,35 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartSeries.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function itemAt + ## Retrieves a series based on its position in the collection ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a item_at_with_index_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemAtWithIndexRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/me/onenote/operations/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item_at_with_index/points/points.rb similarity index 100% rename from lib/me/onenote/operations/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item_at_with_index/points/points.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item_at_with_index/points/points_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item_at_with_index/points/points_request_builder.rb new file mode 100644 index 0000000000..aba9da4c35 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item_at_with_index/points/points_request_builder.rb @@ -0,0 +1,191 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../models/workbook_chart_point' +require_relative '../../../../../../../../../../../../models/workbook_chart_point_collection_response' +require_relative '../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../item' +require_relative '../../../../../../../../../items' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../workbook' +require_relative '../../../../../../worksheets' +require_relative '../../../../../item' +require_relative '../../../../charts' +require_relative '../../../item' +require_relative '../../series' +require_relative '../item_at_with_index' +require_relative './points' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module Item + module Series + module ItemAtWithIndex + module Points + ## + # Provides operations to manage the points property of the microsoft.graph.workbookChartSeries entity. + class PointsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new PointsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/itemAt(index={index})/points{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## A collection of all points in the series. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_point_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartPointCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to points for drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_point + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartPoint.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## A collection of all points in the series. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to points for drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a points_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PointsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # A collection of all points in the series. Read-only. + class PointsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/series_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/series_request_builder.rb index b1feb43fa8..ab43a8d39f 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/series_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/series_request_builder.rb @@ -55,10 +55,10 @@ def by_workbook_chart_series_id(workbook_chart_series_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of chartseries objects. + ## Represents either a single series or collection of series in the chart. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_series_collection_response ## @@ -67,8 +67,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartSeriesCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,7 +80,7 @@ def item_at_with_index(index) return ItemAtWithIndexRequestBuilder.new(@path_parameters, @request_adapter, index) end ## - ## Use this API to create a new ChartSeries. + ## Create new navigation property to series for drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_series @@ -92,30 +91,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartSeries.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of chartseries objects. + ## Represents either a single series or collection of series in the chart. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Use this API to create a new ChartSeries. + ## Create new navigation property to series for drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -123,20 +121,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a series_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SeriesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of chartseries objects. + # Represents either a single series or collection of series in the chart. Read-only. class SeriesRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/set_data/set_data_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/set_data/set_data_post_request_body.rb index 829266b675..2de85b240f 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/set_data/set_data_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/set_data/set_data_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../../../models/json' require_relative '../../../../../../../../../drives' require_relative '../../../../../../../../item' require_relative '../../../../../../../items' @@ -32,25 +31,22 @@ class SetDataPostRequestBody # The seriesBy property @series_by ## - # The sourceData property - @source_data - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new setDataPostRequestBody and sets the default values. + ## Instantiates a new SetDataPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -72,7 +68,6 @@ def self.create_from_discriminator_value(parse_node) def get_field_deserializers() return { "seriesBy" => lambda {|n| @series_by = n.get_string_value() }, - "sourceData" => lambda {|n| @source_data = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -83,7 +78,6 @@ def get_field_deserializers() def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("seriesBy", @series_by) - writer.write_object_value("sourceData", @source_data) writer.write_additional_data(@additional_data) end ## @@ -101,21 +95,6 @@ def series_by def series_by=(value) @series_by = value end - ## - ## Gets the sourceData property value. The sourceData property - ## @return a json - ## - def source_data - return @source_data - end - ## - ## Sets the sourceData property value. The sourceData property - ## @param value Value to set for the sourceData property. - ## @return a void - ## - def source_data=(value) - @source_data = value - end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/set_data/set_data_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/set_data/set_data_request_builder.rb index 6d25d474a8..d6c8a6856a 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/set_data/set_data_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/set_data/set_data_request_builder.rb @@ -48,8 +48,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,16 +60,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_data_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetDataRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/set_position/set_position_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/set_position/set_position_post_request_body.rb index 177c7bfffe..0e5bd6a821 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/set_position/set_position_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/set_position/set_position_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../../../models/json' require_relative '../../../../../../../../../drives' require_relative '../../../../../../../../item' require_relative '../../../../../../../items' @@ -29,28 +28,22 @@ class SetPositionPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The endCell property - @end_cell - ## - # The startCell property - @start_cell - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new setPositionPostRequestBody and sets the default values. + ## Instantiates a new SetPositionPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -66,28 +59,11 @@ def self.create_from_discriminator_value(parse_node) return SetPositionPostRequestBody.new end ## - ## Gets the endCell property value. The endCell property - ## @return a json - ## - def end_cell - return @end_cell - end - ## - ## Sets the endCell property value. The endCell property - ## @param value Value to set for the endCell property. - ## @return a void - ## - def end_cell=(value) - @end_cell = value - end - ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return { - "endCell" => lambda {|n| @end_cell = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, - "startCell" => lambda {|n| @start_cell = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -97,25 +73,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("endCell", @end_cell) - writer.write_object_value("startCell", @start_cell) writer.write_additional_data(@additional_data) end - ## - ## Gets the startCell property value. The startCell property - ## @return a json - ## - def start_cell - return @start_cell - end - ## - ## Sets the startCell property value. The startCell property - ## @param value Value to set for the startCell property. - ## @return a void - ## - def start_cell=(value) - @start_cell = value - end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/set_position/set_position_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/set_position/set_position_request_builder.rb index eaa508c115..abeeba10b3 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/set_position/set_position_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/set_position/set_position_request_builder.rb @@ -48,8 +48,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,16 +60,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_position_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetPositionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/clear/clear_request_builder.rb index b976f9d7f2..d38ee92e35 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/clear/clear_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/clear/clear_request_builder.rb @@ -52,8 +52,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,15 +62,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/fill_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/fill_request_builder.rb index e4cfed6352..0bf2e48361 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/fill_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/fill_request_builder.rb @@ -51,7 +51,7 @@ def set_solid_color() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/fill{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/fill{?%24expand,%24select}") end ## ## Delete navigation property fill for drives @@ -63,8 +63,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -77,8 +76,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFill.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,8 +91,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFill.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -104,13 +101,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,15 +118,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -140,17 +138,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a fill_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FillRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the fill format of an object, which includes background formatting information. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/set_solid_color/set_solid_color_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/set_solid_color/set_solid_color_post_request_body.rb index 5cc6d62add..3474751b89 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/set_solid_color/set_solid_color_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/set_solid_color/set_solid_color_post_request_body.rb @@ -37,15 +37,15 @@ class SetSolidColorPostRequestBody # The color property @color ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -67,7 +67,7 @@ def color=(value) @color = value end ## - ## Instantiates a new setSolidColorPostRequestBody and sets the default values. + ## Instantiates a new SetSolidColorPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/set_solid_color/set_solid_color_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/set_solid_color/set_solid_color_request_builder.rb index c6ff482b1d..375724c13c 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/set_solid_color/set_solid_color_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/set_solid_color/set_solid_color_request_builder.rb @@ -54,8 +54,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,16 +66,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_solid_color_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetSolidColorRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/font/font_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/font/font_request_builder.rb index 7d3a1d6d60..d0ab7a14d3 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/font/font_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/font/font_request_builder.rb @@ -39,7 +39,7 @@ class FontRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/font{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/font{?%24expand,%24select}") end ## ## Delete navigation property font for drives @@ -51,8 +51,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFont.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartFont.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,13 +89,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,15 +106,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,17 +126,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a font_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FontRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents the font attributes (font name, font size, color, etc.) for the current object. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/format_request_builder.rb index 47e961fd26..36fa6e80b7 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/format_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/format_request_builder.rb @@ -49,7 +49,7 @@ def font() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format{?%24expand,%24select}") end ## ## Delete navigation property format for drives @@ -61,12 +61,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Represents the formatting of a chart title, which includes fill and font formatting. Read-only. + ## The formatting of a chart title, which includes fill and font formatting. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_title_format ## @@ -75,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartTitleFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartTitleFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,31 +99,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Represents the formatting of a chart title, which includes fill and font formatting. Read-only. + ## The formatting of a chart title, which includes fill and font formatting. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,20 +136,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end ## - # Represents the formatting of a chart title, which includes fill and font formatting. Read-only. + # The formatting of a chart title, which includes fill and font formatting. Read-only. class FormatRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/title_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/title_request_builder.rb index c87d85794e..43aba3ec72 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/title_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/title/title_request_builder.rb @@ -41,7 +41,7 @@ def format() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title{?%24expand,%24select}") end ## ## Delete navigation property title for drives @@ -53,12 +53,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of charttitle object. + ## Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_title ## @@ -67,12 +66,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartTitle.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of charttitle object. + ## Update the navigation property title in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_title @@ -83,8 +81,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartTitle.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -94,35 +91,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of charttitle object. + ## Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of charttitle object. + ## Update the navigation property title in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -130,20 +128,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a title_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TitleRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of charttitle object. + # Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. class TitleRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/workbook_chart_item_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/workbook_chart_item_request_builder.rb index 3ad3d17e9f..4e6a5b345c 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/workbook_chart_item_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/workbook_chart_item_request_builder.rb @@ -96,10 +96,10 @@ def worksheet() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}{?%24expand,%24select}") end ## - ## Deletes the chart object. + ## Delete navigation property charts for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -108,12 +108,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of chart object. + ## The list of charts that are part of the worksheet. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart ## @@ -122,8 +121,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChart.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -160,7 +158,7 @@ def image_with_width_with_height_with_fitting_mode(fitting_mode, height, width) return ImageWithWidthWithHeightWithFittingModeRequestBuilder.new(@path_parameters, @request_adapter, fittingMode, height, width) end ## - ## Update the properties of chart object. + ## Update the navigation property charts in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart @@ -171,46 +169,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChart.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Deletes the chart object. + ## Delete navigation property charts for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of chart object. + ## The list of charts that are part of the worksheet. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of chart object. + ## Update the navigation property charts in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -218,20 +216,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a workbook_chart_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorkbookChartItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of chart object. + # The list of charts that are part of the worksheet. Read-only. class WorkbookChartItemRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/worksheet/worksheet_request_builder.rb index b0e490250c..50ecfc0159 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/worksheet/worksheet_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/worksheet/worksheet_request_builder.rb @@ -35,7 +35,7 @@ class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/worksheet{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/worksheet{?%24expand,%24select}") end ## ## The worksheet containing the current chart. Read-only. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end ## # The worksheet containing the current chart. Read-only. diff --git a/lib/me/onenote/operations/operations.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/axes/axes.rb similarity index 100% rename from lib/me/onenote/operations/operations.rb rename to lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/axes/axes.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/axes/axes_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/axes/axes_request_builder.rb new file mode 100644 index 0000000000..9d7f6bec8f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/axes/axes_request_builder.rb @@ -0,0 +1,184 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_chart_axes' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_at_with_index' +require_relative './axes' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemAtWithIndex + module Axes + ## + # Provides operations to manage the axes property of the microsoft.graph.workbookChart entity. + class AxesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new AxesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/axes{?%24expand,%24select}") + end + ## + ## Delete navigation property axes for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Represents chart axes. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_axes + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxes.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property axes in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_axes + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxes.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property axes for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Represents chart axes. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property axes in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a axes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AxesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Represents chart axes. Read-only. + class AxesRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/pages/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/data_labels/data_labels.rb similarity index 100% rename from lib/me/onenote/pages/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/data_labels/data_labels.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/data_labels/data_labels_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/data_labels/data_labels_request_builder.rb new file mode 100644 index 0000000000..4d61e88e34 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/data_labels/data_labels_request_builder.rb @@ -0,0 +1,184 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_chart_data_labels' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_at_with_index' +require_relative './data_labels' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemAtWithIndex + module DataLabels + ## + # Provides operations to manage the dataLabels property of the microsoft.graph.workbookChart entity. + class DataLabelsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DataLabelsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/dataLabels{?%24expand,%24select}") + end + ## + ## Delete navigation property dataLabels for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Represents the data labels on the chart. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_data_labels + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartDataLabels.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property dataLabels in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_data_labels + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartDataLabels.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property dataLabels for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Represents the data labels on the chart. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property dataLabels in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a data_labels_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DataLabelsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Represents the data labels on the chart. Read-only. + class DataLabelsRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/pages/item/content/content.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/format/format.rb similarity index 100% rename from lib/me/onenote/pages/item/content/content.rb rename to lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/format/format.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/format/format_request_builder.rb new file mode 100644 index 0000000000..e4f7286145 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/format/format_request_builder.rb @@ -0,0 +1,184 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_chart_area_format' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_at_with_index' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemAtWithIndex + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookChart entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Encapsulates the format properties for the chart area. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_area_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAreaFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_area_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAreaFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Encapsulates the format properties for the chart area. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Encapsulates the format properties for the chart area. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image/image.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image/image.rb new file mode 100644 index 0000000000..d6a491b7bb --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image/image.rb @@ -0,0 +1 @@ +require_relative 'image_get_response' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image/image_get_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image/image_get_response.rb new file mode 100644 index 0000000000..ec13434fde --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image/image_get_response.rb @@ -0,0 +1,109 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_at_with_index' +require_relative './image' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemAtWithIndex + module Image + class ImageGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new ImageGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a image_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ImageGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image/image_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image/image_request_builder.rb new file mode 100644 index 0000000000..07a16b31f7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image/image_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_at_with_index' +require_relative './image' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemAtWithIndex + module Image + ## + # Provides operations to call the image method. + class ImageRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ImageRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image()") + end + ## + ## Invoke function image + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of image_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemAtWithIndex::Image::ImageGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function image + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a image_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImageRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width/image_with_width.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width/image_with_width.rb new file mode 100644 index 0000000000..fadd7f3e8a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width/image_with_width.rb @@ -0,0 +1 @@ +require_relative 'image_with_width_get_response' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width/image_with_width_get_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width/image_with_width_get_response.rb new file mode 100644 index 0000000000..dca57d9247 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width/image_with_width_get_response.rb @@ -0,0 +1,109 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_at_with_index' +require_relative './image_with_width' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemAtWithIndex + module ImageWithWidth + class ImageWithWidthGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new ImageWithWidthGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a image_with_width_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ImageWithWidthGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width/image_with_width_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width/image_with_width_request_builder.rb new file mode 100644 index 0000000000..fadd49d1a3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width/image_with_width_request_builder.rb @@ -0,0 +1,90 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_at_with_index' +require_relative './image_with_width' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemAtWithIndex + module ImageWithWidth + ## + # Provides operations to call the image method. + class ImageWithWidthRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ImageWithWidthRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param width Usage: width={width} + ## @return a void + ## + def initialize(path_parameters, request_adapter, width=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image(width={width})") + end + ## + ## Invoke function image + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of image_with_width_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemAtWithIndex::ImageWithWidth::ImageWithWidthGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function image + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a image_with_width_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImageWithWidthRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width_with_height/image_with_width_with_height.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width_with_height/image_with_width_with_height.rb new file mode 100644 index 0000000000..58ece451f6 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width_with_height/image_with_width_with_height.rb @@ -0,0 +1 @@ +require_relative 'image_with_width_with_height_get_response' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width_with_height/image_with_width_with_height_get_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width_with_height/image_with_width_with_height_get_response.rb new file mode 100644 index 0000000000..bc640ce8e5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width_with_height/image_with_width_with_height_get_response.rb @@ -0,0 +1,109 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_at_with_index' +require_relative './image_with_width_with_height' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemAtWithIndex + module ImageWithWidthWithHeight + class ImageWithWidthWithHeightGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new ImageWithWidthWithHeightGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a image_with_width_with_height_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ImageWithWidthWithHeightGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width_with_height/image_with_width_with_height_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width_with_height/image_with_width_with_height_request_builder.rb new file mode 100644 index 0000000000..967220849a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width_with_height/image_with_width_with_height_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_at_with_index' +require_relative './image_with_width_with_height' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemAtWithIndex + module ImageWithWidthWithHeight + ## + # Provides operations to call the image method. + class ImageWithWidthWithHeightRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ImageWithWidthWithHeightRequestBuilder and sets the default values. + ## @param height Usage: height={height} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param width Usage: width={width} + ## @return a void + ## + def initialize(path_parameters, request_adapter, height=nil, width=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image(width={width},height={height})") + end + ## + ## Invoke function image + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of image_with_width_with_height_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemAtWithIndex::ImageWithWidthWithHeight::ImageWithWidthWithHeightGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function image + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a image_with_width_with_height_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImageWithWidthWithHeightRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode.rb new file mode 100644 index 0000000000..6395bd3733 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode.rb @@ -0,0 +1 @@ +require_relative 'image_with_width_with_height_with_fitting_mode_get_response' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_get_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_get_response.rb new file mode 100644 index 0000000000..31a8fbc971 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_get_response.rb @@ -0,0 +1,109 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_at_with_index' +require_relative './image_with_width_with_height_with_fitting_mode' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemAtWithIndex + module ImageWithWidthWithHeightWithFittingMode + class ImageWithWidthWithHeightWithFittingModeGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new ImageWithWidthWithHeightWithFittingModeGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a image_with_width_with_height_with_fitting_mode_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ImageWithWidthWithHeightWithFittingModeGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_request_builder.rb new file mode 100644 index 0000000000..7ea2377c49 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_request_builder.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_at_with_index' +require_relative './image_with_width_with_height_with_fitting_mode' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemAtWithIndex + module ImageWithWidthWithHeightWithFittingMode + ## + # Provides operations to call the image method. + class ImageWithWidthWithHeightWithFittingModeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ImageWithWidthWithHeightWithFittingModeRequestBuilder and sets the default values. + ## @param fitting_mode Usage: fittingMode='{fittingMode}' + ## @param height Usage: height={height} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param width Usage: width={width} + ## @return a void + ## + def initialize(path_parameters, request_adapter, fitting_mode=nil, height=nil, width=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image(width={width},height={height},fittingMode='{fittingMode}')") + end + ## + ## Invoke function image + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of image_with_width_with_height_with_fitting_mode_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemAtWithIndex::ImageWithWidthWithHeightWithFittingMode::ImageWithWidthWithHeightWithFittingModeGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function image + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a image_with_width_with_height_with_fitting_mode_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImageWithWidthWithHeightWithFittingModeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/item_at_with_index_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/item_at_with_index_request_builder.rb index 5e114a9f1e..bdb8c05a4c 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/item_at_with_index_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/item_at_with_index_request_builder.rb @@ -10,7 +10,20 @@ require_relative '../../../worksheets' require_relative '../../item' require_relative '../charts' +require_relative './axes/axes_request_builder' +require_relative './data_labels/data_labels_request_builder' +require_relative './format/format_request_builder' +require_relative './image/image_request_builder' +require_relative './image_with_width/image_with_width_request_builder' +require_relative './image_with_width_with_height/image_with_width_with_height_request_builder' +require_relative './image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_request_builder' require_relative './item_at_with_index' +require_relative './legend/legend_request_builder' +require_relative './series/series_request_builder' +require_relative './set_data/set_data_request_builder' +require_relative './set_position/set_position_request_builder' +require_relative './title/title_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -26,6 +39,56 @@ module ItemAtWithIndex # Provides operations to call the itemAt method. class ItemAtWithIndexRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to manage the axes property of the microsoft.graph.workbookChart entity. + def axes() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemAtWithIndex::Axes::AxesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the dataLabels property of the microsoft.graph.workbookChart entity. + def data_labels() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemAtWithIndex::DataLabels::DataLabelsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookChart entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemAtWithIndex::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the image method. + def image() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemAtWithIndex::Image::ImageRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the legend property of the microsoft.graph.workbookChart entity. + def legend() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemAtWithIndex::Legend::LegendRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the series property of the microsoft.graph.workbookChart entity. + def series() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemAtWithIndex::Series::SeriesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the setData method. + def set_data() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemAtWithIndex::SetData::SetDataRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the setPosition method. + def set_position() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemAtWithIndex::SetPosition::SetPositionRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the title property of the microsoft.graph.workbookChart entity. + def title() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemAtWithIndex::Title::TitleRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookChart entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemAtWithIndex::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end ## ## Instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. ## @param index Usage: index={index} @@ -37,7 +100,7 @@ def initialize(path_parameters, request_adapter, index=nil) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})") end ## - ## Invoke function itemAt + ## Gets a chart based on its position in the collection. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart ## @@ -46,27 +109,68 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChart.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function itemAt + ## Provides operations to call the image method. + ## @param width Usage: width={width} + ## @return a image_with_width_request_builder + ## + def image_with_width(width) + raise StandardError, 'width cannot be null' if width.nil? + return ImageWithWidthRequestBuilder.new(@path_parameters, @request_adapter, width) + end + ## + ## Provides operations to call the image method. + ## @param height Usage: height={height} + ## @param width Usage: width={width} + ## @return a image_with_width_with_height_request_builder + ## + def image_with_width_with_height(height, width) + raise StandardError, 'height cannot be null' if height.nil? + raise StandardError, 'width cannot be null' if width.nil? + return ImageWithWidthWithHeightRequestBuilder.new(@path_parameters, @request_adapter, height, width) + end + ## + ## Provides operations to call the image method. + ## @param fitting_mode Usage: fittingMode='{fittingMode}' + ## @param height Usage: height={height} + ## @param width Usage: width={width} + ## @return a image_with_width_with_height_with_fitting_mode_request_builder + ## + def image_with_width_with_height_with_fitting_mode(fitting_mode, height, width) + raise StandardError, 'fitting_mode cannot be null' if fitting_mode.nil? + raise StandardError, 'height cannot be null' if height.nil? + raise StandardError, 'width cannot be null' if width.nil? + return ImageWithWidthWithHeightWithFittingModeRequestBuilder.new(@path_parameters, @request_adapter, fittingMode, height, width) + end + ## + ## Gets a chart based on its position in the collection. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a item_at_with_index_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemAtWithIndexRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/me/onenote/pages/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/legend/legend.rb similarity index 100% rename from lib/me/onenote/pages/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/legend/legend.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/legend/legend_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/legend/legend_request_builder.rb new file mode 100644 index 0000000000..b610248205 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/legend/legend_request_builder.rb @@ -0,0 +1,184 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_chart_legend' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_at_with_index' +require_relative './legend' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemAtWithIndex + module Legend + ## + # Provides operations to manage the legend property of the microsoft.graph.workbookChart entity. + class LegendRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LegendRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/legend{?%24expand,%24select}") + end + ## + ## Delete navigation property legend for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Represents the legend for the chart. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_legend + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLegend.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property legend in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_legend + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLegend.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property legend for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Represents the legend for the chart. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property legend in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a legend_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LegendRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Represents the legend for the chart. Read-only. + class LegendRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/pages/item/parent_notebook/parent_notebook.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/series/series.rb similarity index 100% rename from lib/me/onenote/pages/item/parent_notebook/parent_notebook.rb rename to lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/series/series.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/series/series_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/series/series_request_builder.rb new file mode 100644 index 0000000000..c4a09744a6 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/series/series_request_builder.rb @@ -0,0 +1,185 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_chart_series' +require_relative '../../../../../../../../../../models/workbook_chart_series_collection_response' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_at_with_index' +require_relative './series' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemAtWithIndex + module Series + ## + # Provides operations to manage the series property of the microsoft.graph.workbookChart entity. + class SeriesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SeriesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/series{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Represents either a single series or collection of series in the chart. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_series_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartSeriesCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to series for drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_series + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartSeries.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Represents either a single series or collection of series in the chart. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to series for drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a series_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SeriesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Represents either a single series or collection of series in the chart. Read-only. + class SeriesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/set_data/set_data.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/set_data/set_data.rb new file mode 100644 index 0000000000..b46c28bb6c --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/set_data/set_data.rb @@ -0,0 +1 @@ +require_relative 'set_data_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/set_data/set_data_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/set_data/set_data_post_request_body.rb new file mode 100644 index 0000000000..043f54a096 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/set_data/set_data_post_request_body.rb @@ -0,0 +1,109 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_at_with_index' +require_relative './set_data' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemAtWithIndex + module SetData + class SetDataPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The seriesBy property + @series_by + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new SetDataPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a set_data_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return SetDataPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "seriesBy" => lambda {|n| @series_by = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("seriesBy", @series_by) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the seriesBy property value. The seriesBy property + ## @return a string + ## + def series_by + return @series_by + end + ## + ## Sets the seriesBy property value. The seriesBy property + ## @param value Value to set for the seriesBy property. + ## @return a void + ## + def series_by=(value) + @series_by = value + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/set_data/set_data_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/set_data/set_data_request_builder.rb new file mode 100644 index 0000000000..47c4b3b5ef --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/set_data/set_data_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_at_with_index' +require_relative './set_data' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemAtWithIndex + module SetData + ## + # Provides operations to call the setData method. + class SetDataRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SetDataRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/setData") + end + ## + ## Resets the source data for the chart. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Resets the source data for the chart. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_data_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetDataRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/set_position/set_position.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/set_position/set_position.rb new file mode 100644 index 0000000000..3c043d14c2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/set_position/set_position.rb @@ -0,0 +1 @@ +require_relative 'set_position_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/set_position/set_position_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/set_position/set_position_post_request_body.rb new file mode 100644 index 0000000000..fd3f10306a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/set_position/set_position_post_request_body.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_at_with_index' +require_relative './set_position' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemAtWithIndex + module SetPosition + class SetPositionPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new SetPositionPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a set_position_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return SetPositionPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/set_position/set_position_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/set_position/set_position_request_builder.rb new file mode 100644 index 0000000000..e1a98447dd --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/set_position/set_position_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_at_with_index' +require_relative './set_position' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemAtWithIndex + module SetPosition + ## + # Provides operations to call the setPosition method. + class SetPositionRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SetPositionRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/setPosition") + end + ## + ## Positions the chart relative to cells on the worksheet. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Positions the chart relative to cells on the worksheet. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_position_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetPositionRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/pages/item/parent_section/parent_section.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/title/title.rb similarity index 100% rename from lib/me/onenote/pages/item/parent_section/parent_section.rb rename to lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/title/title.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/title/title_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/title/title_request_builder.rb new file mode 100644 index 0000000000..5c344bd4ee --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/title/title_request_builder.rb @@ -0,0 +1,184 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_chart_title' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_at_with_index' +require_relative './title' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemAtWithIndex + module Title + ## + # Provides operations to manage the title property of the microsoft.graph.workbookChart entity. + class TitleRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new TitleRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/title{?%24expand,%24select}") + end + ## + ## Delete navigation property title for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_title + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartTitle.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property title in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_title + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartTitle.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property title for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property title in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a title_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TitleRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. + class TitleRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/pages/item/preview/preview.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/worksheet/worksheet.rb similarity index 100% rename from lib/me/onenote/pages/item/preview/preview.rb rename to lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/worksheet/worksheet.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..07432a5c11 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/worksheet/worksheet_request_builder.rb @@ -0,0 +1,119 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_at_with_index' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemAtWithIndex + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookChart entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current chart. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current chart. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current chart. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/pages/pages.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/axes/axes.rb similarity index 100% rename from lib/me/onenote/pages/pages.rb rename to lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/axes/axes.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/axes/axes_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/axes/axes_request_builder.rb new file mode 100644 index 0000000000..dcef192e4e --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/axes/axes_request_builder.rb @@ -0,0 +1,184 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_chart_axes' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_with_name' +require_relative './axes' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemWithName + module Axes + ## + # Provides operations to manage the axes property of the microsoft.graph.workbookChart entity. + class AxesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new AxesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/axes{?%24expand,%24select}") + end + ## + ## Delete navigation property axes for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Represents chart axes. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_axes + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxes.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property axes in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_axes + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxes.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property axes for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Represents chart axes. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property axes in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a axes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AxesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Represents chart axes. Read-only. + class AxesRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/resources/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/data_labels/data_labels.rb similarity index 100% rename from lib/me/onenote/resources/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/data_labels/data_labels.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/data_labels/data_labels_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/data_labels/data_labels_request_builder.rb new file mode 100644 index 0000000000..0a3bc25640 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/data_labels/data_labels_request_builder.rb @@ -0,0 +1,184 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_chart_data_labels' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_with_name' +require_relative './data_labels' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemWithName + module DataLabels + ## + # Provides operations to manage the dataLabels property of the microsoft.graph.workbookChart entity. + class DataLabelsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DataLabelsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/dataLabels{?%24expand,%24select}") + end + ## + ## Delete navigation property dataLabels for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Represents the data labels on the chart. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_data_labels + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartDataLabels.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property dataLabels in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_data_labels + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartDataLabels.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property dataLabels for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Represents the data labels on the chart. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property dataLabels in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a data_labels_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DataLabelsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Represents the data labels on the chart. Read-only. + class DataLabelsRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/resources/item/content/content.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/format/format.rb similarity index 100% rename from lib/me/onenote/resources/item/content/content.rb rename to lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/format/format.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/format/format_request_builder.rb new file mode 100644 index 0000000000..8b3feca913 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/format/format_request_builder.rb @@ -0,0 +1,184 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_chart_area_format' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_with_name' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemWithName + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookChart entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Encapsulates the format properties for the chart area. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_area_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAreaFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_area_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartAreaFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Encapsulates the format properties for the chart area. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Encapsulates the format properties for the chart area. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image/image.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image/image.rb new file mode 100644 index 0000000000..d6a491b7bb --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image/image.rb @@ -0,0 +1 @@ +require_relative 'image_get_response' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image/image_get_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image/image_get_response.rb new file mode 100644 index 0000000000..1a6c87f526 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image/image_get_response.rb @@ -0,0 +1,109 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_with_name' +require_relative './image' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemWithName + module Image + class ImageGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new ImageGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a image_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ImageGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image/image_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image/image_request_builder.rb new file mode 100644 index 0000000000..45ded831a7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image/image_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_with_name' +require_relative './image' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemWithName + module Image + ## + # Provides operations to call the image method. + class ImageRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ImageRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image()") + end + ## + ## Invoke function image + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of image_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemWithName::Image::ImageGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function image + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a image_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImageRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width/image_with_width.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width/image_with_width.rb new file mode 100644 index 0000000000..fadd7f3e8a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width/image_with_width.rb @@ -0,0 +1 @@ +require_relative 'image_with_width_get_response' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width/image_with_width_get_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width/image_with_width_get_response.rb new file mode 100644 index 0000000000..bd429eb6e3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width/image_with_width_get_response.rb @@ -0,0 +1,109 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_with_name' +require_relative './image_with_width' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemWithName + module ImageWithWidth + class ImageWithWidthGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new ImageWithWidthGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a image_with_width_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ImageWithWidthGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width/image_with_width_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width/image_with_width_request_builder.rb new file mode 100644 index 0000000000..0dc2ce39d9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width/image_with_width_request_builder.rb @@ -0,0 +1,90 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_with_name' +require_relative './image_with_width' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemWithName + module ImageWithWidth + ## + # Provides operations to call the image method. + class ImageWithWidthRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ImageWithWidthRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param width Usage: width={width} + ## @return a void + ## + def initialize(path_parameters, request_adapter, width=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image(width={width})") + end + ## + ## Invoke function image + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of image_with_width_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemWithName::ImageWithWidth::ImageWithWidthGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function image + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a image_with_width_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImageWithWidthRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width_with_height/image_with_width_with_height.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width_with_height/image_with_width_with_height.rb new file mode 100644 index 0000000000..58ece451f6 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width_with_height/image_with_width_with_height.rb @@ -0,0 +1 @@ +require_relative 'image_with_width_with_height_get_response' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width_with_height/image_with_width_with_height_get_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width_with_height/image_with_width_with_height_get_response.rb new file mode 100644 index 0000000000..08e5801663 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width_with_height/image_with_width_with_height_get_response.rb @@ -0,0 +1,109 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_with_name' +require_relative './image_with_width_with_height' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemWithName + module ImageWithWidthWithHeight + class ImageWithWidthWithHeightGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new ImageWithWidthWithHeightGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a image_with_width_with_height_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ImageWithWidthWithHeightGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width_with_height/image_with_width_with_height_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width_with_height/image_with_width_with_height_request_builder.rb new file mode 100644 index 0000000000..f2f4eb95a4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width_with_height/image_with_width_with_height_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_with_name' +require_relative './image_with_width_with_height' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemWithName + module ImageWithWidthWithHeight + ## + # Provides operations to call the image method. + class ImageWithWidthWithHeightRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ImageWithWidthWithHeightRequestBuilder and sets the default values. + ## @param height Usage: height={height} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param width Usage: width={width} + ## @return a void + ## + def initialize(path_parameters, request_adapter, height=nil, width=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image(width={width},height={height})") + end + ## + ## Invoke function image + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of image_with_width_with_height_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemWithName::ImageWithWidthWithHeight::ImageWithWidthWithHeightGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function image + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a image_with_width_with_height_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImageWithWidthWithHeightRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode.rb new file mode 100644 index 0000000000..6395bd3733 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode.rb @@ -0,0 +1 @@ +require_relative 'image_with_width_with_height_with_fitting_mode_get_response' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_get_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_get_response.rb new file mode 100644 index 0000000000..5976c5df34 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_get_response.rb @@ -0,0 +1,109 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_with_name' +require_relative './image_with_width_with_height_with_fitting_mode' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemWithName + module ImageWithWidthWithHeightWithFittingMode + class ImageWithWidthWithHeightWithFittingModeGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new ImageWithWidthWithHeightWithFittingModeGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a image_with_width_with_height_with_fitting_mode_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ImageWithWidthWithHeightWithFittingModeGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_request_builder.rb new file mode 100644 index 0000000000..081e93472f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_request_builder.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_with_name' +require_relative './image_with_width_with_height_with_fitting_mode' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemWithName + module ImageWithWidthWithHeightWithFittingMode + ## + # Provides operations to call the image method. + class ImageWithWidthWithHeightWithFittingModeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ImageWithWidthWithHeightWithFittingModeRequestBuilder and sets the default values. + ## @param fitting_mode Usage: fittingMode='{fittingMode}' + ## @param height Usage: height={height} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param width Usage: width={width} + ## @return a void + ## + def initialize(path_parameters, request_adapter, fitting_mode=nil, height=nil, width=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image(width={width},height={height},fittingMode='{fittingMode}')") + end + ## + ## Invoke function image + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of image_with_width_with_height_with_fitting_mode_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemWithName::ImageWithWidthWithHeightWithFittingMode::ImageWithWidthWithHeightWithFittingModeGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function image + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a image_with_width_with_height_with_fitting_mode_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ImageWithWidthWithHeightWithFittingModeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/item_with_name_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/item_with_name_request_builder.rb index f36f824a2c..012daf5bd5 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/item_with_name_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/item_with_name_request_builder.rb @@ -10,7 +10,20 @@ require_relative '../../../worksheets' require_relative '../../item' require_relative '../charts' +require_relative './axes/axes_request_builder' +require_relative './data_labels/data_labels_request_builder' +require_relative './format/format_request_builder' +require_relative './image/image_request_builder' +require_relative './image_with_width/image_with_width_request_builder' +require_relative './image_with_width_with_height/image_with_width_with_height_request_builder' +require_relative './image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_request_builder' require_relative './item_with_name' +require_relative './legend/legend_request_builder' +require_relative './series/series_request_builder' +require_relative './set_data/set_data_request_builder' +require_relative './set_position/set_position_request_builder' +require_relative './title/title_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -26,6 +39,56 @@ module ItemWithName # Provides operations to call the item method. class ItemWithNameRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to manage the axes property of the microsoft.graph.workbookChart entity. + def axes() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemWithName::Axes::AxesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the dataLabels property of the microsoft.graph.workbookChart entity. + def data_labels() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemWithName::DataLabels::DataLabelsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookChart entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemWithName::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the image method. + def image() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemWithName::Image::ImageRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the legend property of the microsoft.graph.workbookChart entity. + def legend() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemWithName::Legend::LegendRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the series property of the microsoft.graph.workbookChart entity. + def series() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemWithName::Series::SeriesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the setData method. + def set_data() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemWithName::SetData::SetDataRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the setPosition method. + def set_position() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemWithName::SetPosition::SetPositionRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the title property of the microsoft.graph.workbookChart entity. + def title() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemWithName::Title::TitleRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookChart entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Charts::ItemWithName::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end ## ## Instantiates a new ItemWithNameRequestBuilder and sets the default values. ## @param name Usage: name='{name}' @@ -46,27 +109,68 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChart.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the image method. + ## @param width Usage: width={width} + ## @return a image_with_width_request_builder + ## + def image_with_width(width) + raise StandardError, 'width cannot be null' if width.nil? + return ImageWithWidthRequestBuilder.new(@path_parameters, @request_adapter, width) + end + ## + ## Provides operations to call the image method. + ## @param height Usage: height={height} + ## @param width Usage: width={width} + ## @return a image_with_width_with_height_request_builder + ## + def image_with_width_with_height(height, width) + raise StandardError, 'height cannot be null' if height.nil? + raise StandardError, 'width cannot be null' if width.nil? + return ImageWithWidthWithHeightRequestBuilder.new(@path_parameters, @request_adapter, height, width) + end + ## + ## Provides operations to call the image method. + ## @param fitting_mode Usage: fittingMode='{fittingMode}' + ## @param height Usage: height={height} + ## @param width Usage: width={width} + ## @return a image_with_width_with_height_with_fitting_mode_request_builder + ## + def image_with_width_with_height_with_fitting_mode(fitting_mode, height, width) + raise StandardError, 'fitting_mode cannot be null' if fitting_mode.nil? + raise StandardError, 'height cannot be null' if height.nil? + raise StandardError, 'width cannot be null' if width.nil? + return ImageWithWidthWithHeightWithFittingModeRequestBuilder.new(@path_parameters, @request_adapter, fittingMode, height, width) + end + ## ## Invoke function item ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a item_with_name_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemWithNameRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/me/onenote/resources/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/legend/legend.rb similarity index 100% rename from lib/me/onenote/resources/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/legend/legend.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/legend/legend_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/legend/legend_request_builder.rb new file mode 100644 index 0000000000..d4f74a9d6a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/legend/legend_request_builder.rb @@ -0,0 +1,184 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_chart_legend' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_with_name' +require_relative './legend' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemWithName + module Legend + ## + # Provides operations to manage the legend property of the microsoft.graph.workbookChart entity. + class LegendRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LegendRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/legend{?%24expand,%24select}") + end + ## + ## Delete navigation property legend for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Represents the legend for the chart. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_legend + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLegend.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property legend in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_legend + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartLegend.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property legend for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Represents the legend for the chart. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property legend in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a legend_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LegendRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Represents the legend for the chart. Read-only. + class LegendRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/resources/resources.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/series/series.rb similarity index 100% rename from lib/me/onenote/resources/resources.rb rename to lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/series/series.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/series/series_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/series/series_request_builder.rb new file mode 100644 index 0000000000..bc533f0351 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/series/series_request_builder.rb @@ -0,0 +1,185 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_chart_series' +require_relative '../../../../../../../../../../models/workbook_chart_series_collection_response' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_with_name' +require_relative './series' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemWithName + module Series + ## + # Provides operations to manage the series property of the microsoft.graph.workbookChart entity. + class SeriesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SeriesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/series{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Represents either a single series or collection of series in the chart. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_series_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartSeriesCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to series for drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_series + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartSeries.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Represents either a single series or collection of series in the chart. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to series for drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a series_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SeriesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Represents either a single series or collection of series in the chart. Read-only. + class SeriesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/set_data/set_data.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/set_data/set_data.rb new file mode 100644 index 0000000000..b46c28bb6c --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/set_data/set_data.rb @@ -0,0 +1 @@ +require_relative 'set_data_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/set_data/set_data_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/set_data/set_data_post_request_body.rb new file mode 100644 index 0000000000..14057a0f4d --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/set_data/set_data_post_request_body.rb @@ -0,0 +1,109 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_with_name' +require_relative './set_data' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemWithName + module SetData + class SetDataPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The seriesBy property + @series_by + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new SetDataPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a set_data_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return SetDataPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "seriesBy" => lambda {|n| @series_by = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("seriesBy", @series_by) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the seriesBy property value. The seriesBy property + ## @return a string + ## + def series_by + return @series_by + end + ## + ## Sets the seriesBy property value. The seriesBy property + ## @param value Value to set for the seriesBy property. + ## @return a void + ## + def series_by=(value) + @series_by = value + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/set_data/set_data_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/set_data/set_data_request_builder.rb new file mode 100644 index 0000000000..2f81b95f64 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/set_data/set_data_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_with_name' +require_relative './set_data' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemWithName + module SetData + ## + # Provides operations to call the setData method. + class SetDataRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SetDataRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/setData") + end + ## + ## Resets the source data for the chart. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Resets the source data for the chart. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_data_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetDataRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/set_position/set_position.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/set_position/set_position.rb new file mode 100644 index 0000000000..3c043d14c2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/set_position/set_position.rb @@ -0,0 +1 @@ +require_relative 'set_position_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/set_position/set_position_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/set_position/set_position_post_request_body.rb new file mode 100644 index 0000000000..db573505fc --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/set_position/set_position_post_request_body.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_with_name' +require_relative './set_position' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemWithName + module SetPosition + class SetPositionPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new SetPositionPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a set_position_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return SetPositionPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/set_position/set_position_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/set_position/set_position_request_builder.rb new file mode 100644 index 0000000000..523e8968fc --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/set_position/set_position_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_with_name' +require_relative './set_position' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemWithName + module SetPosition + ## + # Provides operations to call the setPosition method. + class SetPositionRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SetPositionRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/setPosition") + end + ## + ## Positions the chart relative to cells on the worksheet. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Positions the chart relative to cells on the worksheet. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_position_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetPositionRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/section_groups/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/title/title.rb similarity index 100% rename from lib/me/onenote/section_groups/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/title/title.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/title/title_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/title/title_request_builder.rb new file mode 100644 index 0000000000..fd62ea9b5e --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/title/title_request_builder.rb @@ -0,0 +1,184 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_chart_title' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_with_name' +require_relative './title' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemWithName + module Title + ## + # Provides operations to manage the title property of the microsoft.graph.workbookChart entity. + class TitleRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new TitleRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/title{?%24expand,%24select}") + end + ## + ## Delete navigation property title for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_title + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartTitle.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property title in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_chart_title + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartTitle.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property title for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property title in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a title_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TitleRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. + class TitleRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/section_groups/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/worksheet/worksheet.rb similarity index 100% rename from lib/me/onenote/section_groups/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/worksheet/worksheet.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..50c3783a51 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/worksheet/worksheet_request_builder.rb @@ -0,0 +1,119 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../charts' +require_relative '../item_with_name' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Charts + module ItemWithName + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookChart entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current chart. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current chart. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current chart. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/add/add_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/add/add_post_request_body.rb index 8ff99a80f0..1b6cd09117 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/names/add/add_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/add/add_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../../models/json' require_relative '../../../../../../../../drives' require_relative '../../../../../../../item' require_relative '../../../../../../items' @@ -33,18 +32,15 @@ class AddPostRequestBody # The name property @name ## - # The reference property - @reference - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -66,7 +62,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new addPostRequestBody and sets the default values. + ## Instantiates a new AddPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -89,7 +85,6 @@ def get_field_deserializers() return { "comment" => lambda {|n| @comment = n.get_string_value() }, "name" => lambda {|n| @name = n.get_string_value() }, - "reference" => lambda {|n| @reference = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -108,21 +103,6 @@ def name=(value) @name = value end ## - ## Gets the reference property value. The reference property - ## @return a json - ## - def reference - return @reference - end - ## - ## Sets the reference property value. The reference property - ## @param value Value to set for the reference property. - ## @return a void - ## - def reference=(value) - @reference = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void @@ -131,7 +111,6 @@ def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("comment", @comment) writer.write_string_value("name", @name) - writer.write_object_value("reference", @reference) writer.write_additional_data(@additional_data) end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/add/add_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/add/add_request_builder.rb index 8e153ff2a1..2c1eb636c4 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/names/add/add_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/add/add_request_builder.rb @@ -47,8 +47,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookNamedItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -60,17 +59,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/add_formula_local/add_formula_local_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/add_formula_local/add_formula_local_post_request_body.rb index 93ea546977..c2b6d5cffb 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/names/add_formula_local/add_formula_local_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/add_formula_local/add_formula_local_post_request_body.rb @@ -35,15 +35,15 @@ class AddFormulaLocalPostRequestBody # The name property @name ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -65,7 +65,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new addFormulaLocalPostRequestBody and sets the default values. + ## Instantiates a new AddFormulaLocalPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/add_formula_local/add_formula_local_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/add_formula_local/add_formula_local_request_builder.rb index d3e76c448e..979af90da7 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/names/add_formula_local/add_formula_local_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/add_formula_local/add_formula_local_request_builder.rb @@ -47,8 +47,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookNamedItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -60,17 +59,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_formula_local_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddFormulaLocalRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/count/count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/count/count_request_builder.rb index 12f05d651d..26876bddf8 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/names/count/count_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/me/onenote/section_groups/item/parent_notebook/parent_notebook.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb similarity index 100% rename from lib/me/onenote/section_groups/item/parent_notebook/parent_notebook.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..75388cba11 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/section_groups/item/parent_section_group/parent_section_group.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/cell_with_row_with_column/cell_with_row_with_column.rb similarity index 100% rename from lib/me/onenote/section_groups/item/parent_section_group/parent_section_group.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/cell_with_row_with_column/cell_with_row_with_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..f9abb99864 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/clear/clear.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..126ad8b792 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/clear/clear_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/clear/clear_request_builder.rb new file mode 100644 index 0000000000..5efbe770bc --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/clear/clear_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/section_groups/item/section_groups/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/column_with_column/column_with_column.rb similarity index 100% rename from lib/me/onenote/section_groups/item/section_groups/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/column_with_column/column_with_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..8d3e689fd7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/section_groups/item/section_groups/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/columns_after/columns_after.rb similarity index 100% rename from lib/me/onenote/section_groups/item/section_groups/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/columns_after/columns_after.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..aea60b4b65 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/columns_after/columns_after_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/section_groups/item/section_groups/section_groups.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/columns_after_with_count/columns_after_with_count.rb similarity index 100% rename from lib/me/onenote/section_groups/item/section_groups/section_groups.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/columns_after_with_count/columns_after_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..cb691bb5ad --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/section_groups/item/sections/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/columns_before/columns_before.rb similarity index 100% rename from lib/me/onenote/section_groups/item/sections/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/columns_before/columns_before.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..1c6f49e122 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/columns_before/columns_before_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/section_groups/item/sections/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/columns_before_with_count/columns_before_with_count.rb similarity index 100% rename from lib/me/onenote/section_groups/item/sections/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/columns_before_with_count/columns_before_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..431c5fbf76 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/delete/delete.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..660d9cd158 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/delete/delete_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/delete/delete_request_builder.rb new file mode 100644 index 0000000000..81655e1c20 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/delete/delete_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/section_groups/item/sections/item/pages/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/entire_column/entire_column.rb similarity index 100% rename from lib/me/onenote/section_groups/item/sections/item/pages/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/entire_column/entire_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..347ddbea88 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/entire_column/entire_column_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/section_groups/item/sections/item/pages/item/content/content.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/entire_row/entire_row.rb similarity index 100% rename from lib/me/onenote/section_groups/item/sections/item/pages/item/content/content.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/entire_row/entire_row.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..ee3ca3b578 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/entire_row/entire_row_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/section_groups/item/sections/item/pages/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/format/format.rb similarity index 100% rename from lib/me/onenote/section_groups/item/sections/item/pages/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/format/format.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/format/format_request_builder.rb new file mode 100644 index 0000000000..6b718f7154 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/format/format_request_builder.rb @@ -0,0 +1,187 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/insert/insert.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..e6f53a303e --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/insert/insert_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/insert/insert_request_builder.rb new file mode 100644 index 0000000000..ccac90c1f3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/insert/insert_request_builder.rb @@ -0,0 +1,98 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/section_groups/item/sections/item/pages/item/parent_notebook/parent_notebook.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/intersection_with_another_range/intersection_with_another_range.rb similarity index 100% rename from lib/me/onenote/section_groups/item/sections/item/pages/item/parent_notebook/parent_notebook.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/intersection_with_another_range/intersection_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..a14b2b3f34 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/section_groups/item/sections/item/pages/item/parent_section/parent_section.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/last_cell/last_cell.rb similarity index 100% rename from lib/me/onenote/section_groups/item/sections/item/pages/item/parent_section/parent_section.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/last_cell/last_cell.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..c4a75e016c --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/last_cell/last_cell_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/section_groups/item/sections/item/pages/item/preview/preview.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/last_column/last_column.rb similarity index 100% rename from lib/me/onenote/section_groups/item/sections/item/pages/item/preview/preview.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/last_column/last_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..8d10dce712 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/last_column/last_column_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/section_groups/item/sections/item/pages/pages.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/last_row/last_row.rb similarity index 100% rename from lib/me/onenote/section_groups/item/sections/item/pages/pages.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/last_row/last_row.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..a719e3907a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/last_row/last_row_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/merge/merge.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..fe2bb12214 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/merge/merge_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/merge/merge_request_builder.rb new file mode 100644 index 0000000000..904e9f7975 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/merge/merge_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/section_groups/item/sections/item/parent_notebook/parent_notebook.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb similarity index 100% rename from lib/me/onenote/section_groups/item/sections/item/parent_notebook/parent_notebook.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..cecc227ae7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/range_request_builder.rb index 1b785014cf..808a87ccd3 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/range_request_builder.rb @@ -11,7 +11,38 @@ require_relative '../../../item' require_relative '../../names' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' require_relative './range' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' +require_relative './unmerge/unmerge_request_builder' +require_relative './used_range/used_range_request_builder' +require_relative './used_range_with_values_only/used_range_with_values_only_request_builder' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -28,6 +59,148 @@ module Range # Provides operations to call the range method. class RangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Names::Item::Range::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Names::Item::Range::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Names::Item::Range::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Names::Item::Range::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Names::Item::Range::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Names::Item::Range::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Names::Item::Range::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Names::Item::Range::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Names::Item::Range::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Names::Item::Range::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Names::Item::Range::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Names::Item::Range::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Names::Item::Range::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Names::Item::Range::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Names::Item::Range::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Names::Item::Range::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the usedRange method. + def used_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Names::Item::Range::UsedRange::UsedRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Names::Item::Range::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Names::Item::Range::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new RangeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -47,27 +220,102 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Provides operations to call the usedRange method. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a used_range_with_values_only_request_builder + ## + def used_range_with_values_only(values_only) + raise StandardError, 'values_only cannot be null' if values_only.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/me/onenote/section_groups/item/sections/item/parent_section_group/parent_section_group.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb similarity index 100% rename from lib/me/onenote/section_groups/item/sections/item/parent_section_group/parent_section_group.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..2305eb1653 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/section_groups/item/sections/sections.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/row_with_row/row_with_row.rb similarity index 100% rename from lib/me/onenote/section_groups/item/sections/sections.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/row_with_row/row_with_row.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..ce5ada8cc7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/section_groups/section_groups.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/rows_above/rows_above.rb similarity index 100% rename from lib/me/onenote/section_groups/section_groups.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/rows_above/rows_above.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..cac2552ab9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/rows_above/rows_above_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/sections/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/rows_above_with_count/rows_above_with_count.rb similarity index 100% rename from lib/me/onenote/sections/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/rows_above_with_count/rows_above_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..886f28a2c9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/sections/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/rows_below/rows_below.rb similarity index 100% rename from lib/me/onenote/sections/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/rows_below/rows_below.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..fada8a9278 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/rows_below/rows_below_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/sections/item/pages/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/rows_below_with_count/rows_below_with_count.rb similarity index 100% rename from lib/me/onenote/sections/item/pages/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/rows_below_with_count/rows_below_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..244aa1d951 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/sections/item/pages/item/content/content.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/sort/sort.rb similarity index 100% rename from lib/me/onenote/sections/item/pages/item/content/content.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/sort/sort.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/sort/sort_request_builder.rb new file mode 100644 index 0000000000..186f054044 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/sort/sort_request_builder.rb @@ -0,0 +1,187 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/sections/item/pages/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/unmerge/unmerge.rb similarity index 100% rename from lib/me/onenote/sections/item/pages/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/unmerge/unmerge.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..cf92b22204 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/unmerge/unmerge_request_builder.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/sections/item/pages/item/parent_notebook/parent_notebook.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/used_range/used_range.rb similarity index 100% rename from lib/me/onenote/sections/item/pages/item/parent_notebook/parent_notebook.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/used_range/used_range.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/used_range/used_range_request_builder.rb new file mode 100644 index 0000000000..3d7d7833bd --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/used_range/used_range_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './used_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module UsedRange + ## + # Provides operations to call the usedRange method. + class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/usedRange()") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/sections/item/pages/item/parent_section/parent_section.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/used_range_with_values_only/used_range_with_values_only.rb similarity index 100% rename from lib/me/onenote/sections/item/pages/item/parent_section/parent_section.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/used_range_with_values_only/used_range_with_values_only.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb new file mode 100644 index 0000000000..288a6f25a4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './used_range_with_values_only' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module UsedRangeWithValuesOnly + ## + # Provides operations to call the usedRange method. + class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a void + ## + def initialize(path_parameters, request_adapter, values_only=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/usedRange(valuesOnly={valuesOnly})") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/sections/item/pages/item/preview/preview.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/visible_view/visible_view.rb similarity index 100% rename from lib/me/onenote/sections/item/pages/item/preview/preview.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/visible_view/visible_view.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..115c8b36cb --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/visible_view/visible_view_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/sections/item/pages/pages.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/worksheet/worksheet.rb similarity index 100% rename from lib/me/onenote/sections/item/pages/pages.rb rename to lib/drives/item/items/item/workbook/worksheets/item/names/item/range/worksheet/worksheet.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..4769efb3a6 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/worksheet/worksheet_request_builder.rb @@ -0,0 +1,122 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../names' +require_relative '../../item' +require_relative '../range' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Names + module Item + module Range + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/workbook_named_item_item_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/workbook_named_item_item_request_builder.rb index 2c7731623b..7cf2d4e5ef 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/names/item/workbook_named_item_item_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/workbook_named_item_item_request_builder.rb @@ -45,7 +45,7 @@ def worksheet() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}{?%24expand,%24select}") end ## ## Delete navigation property names for drives @@ -57,12 +57,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Returns collection of names that are associated with the worksheet. Read-only. + ## The list of names that are associated with the worksheet. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_named_item ## @@ -71,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookNamedItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,8 +85,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookNamedItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -98,31 +95,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Returns collection of names that are associated with the worksheet. Read-only. + ## The list of names that are associated with the worksheet. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -134,20 +132,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a workbook_named_item_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorkbookNamedItemItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Returns collection of names that are associated with the worksheet. Read-only. + # The list of names that are associated with the worksheet. Read-only. class WorkbookNamedItemItemRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/worksheet/worksheet_request_builder.rb index 2c055bd41b..0fa4cb9092 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/names/item/worksheet/worksheet_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/worksheet/worksheet_request_builder.rb @@ -35,10 +35,10 @@ class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/worksheet{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/worksheet{?%24expand,%24select}") end ## - ## Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + ## Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_worksheet ## @@ -47,31 +47,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + ## Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end ## - # Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + # Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. class WorksheetRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/names_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/names_request_builder.rb index 2da9f95656..49c7ddb27a 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/names/names_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/names_request_builder.rb @@ -62,10 +62,10 @@ def by_workbook_named_item_id(workbook_named_item_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of named item associated with the worksheet. + ## The list of names that are associated with the worksheet. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_named_item_collection_response ## @@ -74,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookNamedItemCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,26 +89,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookNamedItem.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of named item associated with the worksheet. + ## The list of names that are associated with the worksheet. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -121,20 +119,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a names_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NamesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of named item associated with the worksheet. + # The list of names that are associated with the worksheet. Read-only. class NamesRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/count/count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/count/count_request_builder.rb index cd210da3be..88b18b979a 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/count/count_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/item/refresh/refresh_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/item/refresh/refresh_request_builder.rb index 09a69a34f4..80ff5ae8a4 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/item/refresh/refresh_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/item/refresh/refresh_request_builder.rb @@ -46,8 +46,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,15 +56,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a refresh_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefreshRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/item/workbook_pivot_table_item_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/item/workbook_pivot_table_item_request_builder.rb index f6d57079c0..1c4c53acbf 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/item/workbook_pivot_table_item_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/item/workbook_pivot_table_item_request_builder.rb @@ -45,7 +45,7 @@ def worksheet() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/{workbookPivotTable%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/{workbookPivotTable%2Did}{?%24expand,%24select}") end ## ## Delete navigation property pivotTables for drives @@ -57,12 +57,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of workbookPivotTable object. + ## The list of piot tables that are part of the worksheet. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_pivot_table ## @@ -71,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookPivotTable.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,8 +85,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookPivotTable.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -98,31 +95,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of workbookPivotTable object. + ## The list of piot tables that are part of the worksheet. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -134,20 +132,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a workbook_pivot_table_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorkbookPivotTableItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of workbookPivotTable object. + # The list of piot tables that are part of the worksheet. class WorkbookPivotTableItemRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/item/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/item/worksheet/worksheet_request_builder.rb index cdaecba309..81f891e337 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/item/worksheet/worksheet_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/item/worksheet/worksheet_request_builder.rb @@ -35,10 +35,10 @@ class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/{workbookPivotTable%2Did}/worksheet{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/{workbookPivotTable%2Did}/worksheet{?%24expand,%24select}") end ## - ## The worksheet containing the current PivotTable. Read-only. + ## The worksheet that contains the current pivot table. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_worksheet ## @@ -47,31 +47,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The worksheet containing the current PivotTable. Read-only. + ## The worksheet that contains the current pivot table. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end ## - # The worksheet containing the current PivotTable. Read-only. + # The worksheet that contains the current pivot table. Read-only. class WorksheetRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/pivot_tables_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/pivot_tables_request_builder.rb index 22e01e032a..16a50d512d 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/pivot_tables_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/pivot_tables_request_builder.rb @@ -56,10 +56,10 @@ def by_workbook_pivot_table_id(workbook_pivot_table_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of workbookpivottable objects. + ## The list of piot tables that are part of the worksheet. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_pivot_table_collection_response ## @@ -68,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookPivotTableCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,26 +83,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookPivotTable.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of workbookpivottable objects. + ## The list of piot tables that are part of the worksheet. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -115,20 +113,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a pivot_tables_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PivotTablesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of workbookpivottable objects. + # The list of piot tables that are part of the worksheet. class PivotTablesRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/refresh_all/refresh_all_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/refresh_all/refresh_all_request_builder.rb index 124d041ed9..a4d944130e 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/refresh_all/refresh_all_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/pivot_tables/refresh_all/refresh_all_request_builder.rb @@ -44,8 +44,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,15 +54,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a refresh_all_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefreshAllRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/protection/protect/protect_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/protection/protect/protect_post_request_body.rb index 12037aa5e2..80f23a48bd 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/protection/protect/protect_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/protection/protect/protect_post_request_body.rb @@ -30,22 +30,22 @@ class ProtectPostRequestBody # The options property @options ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new protectPostRequestBody and sets the default values. + ## Instantiates a new ProtectPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/worksheets/item/protection/protect/protect_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/protection/protect/protect_request_builder.rb index dabbdf5b65..9fd68d0b46 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/protection/protect/protect_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/protection/protect/protect_request_builder.rb @@ -46,8 +46,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,16 +58,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a protect_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ProtectRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/protection/protection_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/protection/protection_request_builder.rb index cf244d64a0..794ae5c325 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/protection/protection_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/protection/protection_request_builder.rb @@ -43,7 +43,7 @@ def unprotect() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/protection{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/protection{?%24expand,%24select}") end ## ## Delete navigation property protection for drives @@ -55,12 +55,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of worksheetprotection object. + ## The sheet protection object for a worksheet. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_worksheet_protection ## @@ -69,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheetProtection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,8 +83,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheetProtection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -96,31 +93,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of worksheetprotection object. + ## The sheet protection object for a worksheet. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,20 +130,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a protection_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ProtectionRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of worksheetprotection object. + # The sheet protection object for a worksheet. Read-only. class ProtectionRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/protection/unprotect/unprotect_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/protection/unprotect/unprotect_request_builder.rb index dd02028615..384c7db6bc 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/protection/unprotect/unprotect_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/protection/unprotect/unprotect_request_builder.rb @@ -44,8 +44,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,15 +54,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unprotect_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnprotectRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/me/onenote/sections/item/parent_notebook/parent_notebook.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb similarity index 100% rename from lib/me/onenote/sections/item/parent_notebook/parent_notebook.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..9e849e577d --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/sections/item/parent_section_group/parent_section_group.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/cell_with_row_with_column/cell_with_row_with_column.rb similarity index 100% rename from lib/me/onenote/sections/item/parent_section_group/parent_section_group.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/cell_with_row_with_column/cell_with_row_with_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..92e53982a4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/clear/clear.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..753356d0a5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/clear/clear_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/clear/clear_request_builder.rb new file mode 100644 index 0000000000..9e2a3cd9f8 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/clear/clear_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/onenote/sections/sections.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/column_with_column/column_with_column.rb similarity index 100% rename from lib/me/onenote/sections/sections.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/column_with_column/column_with_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..17f3620904 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/online_meetings/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/columns_after/columns_after.rb similarity index 100% rename from lib/me/online_meetings/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/columns_after/columns_after.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..351af9407a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/columns_after/columns_after_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/online_meetings/item/attendance_reports/attendance_reports.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/columns_after_with_count/columns_after_with_count.rb similarity index 100% rename from lib/me/online_meetings/item/attendance_reports/attendance_reports.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/columns_after_with_count/columns_after_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..9876297ff4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/online_meetings/item/attendance_reports/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/columns_before/columns_before.rb similarity index 100% rename from lib/me/online_meetings/item/attendance_reports/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/columns_before/columns_before.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..5da00e140c --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/columns_before/columns_before_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/online_meetings/item/attendance_reports/item/attendance_records/attendance_records.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/columns_before_with_count/columns_before_with_count.rb similarity index 100% rename from lib/me/online_meetings/item/attendance_reports/item/attendance_records/attendance_records.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/columns_before_with_count/columns_before_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..d971385945 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/delete/delete.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..d0c31a7756 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/delete/delete_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/delete/delete_request_builder.rb new file mode 100644 index 0000000000..44c1ce9628 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/delete/delete_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/online_meetings/item/attendance_reports/item/attendance_records/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/entire_column/entire_column.rb similarity index 100% rename from lib/me/online_meetings/item/attendance_reports/item/attendance_records/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/entire_column/entire_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..115dd9c428 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/entire_column/entire_column_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/online_meetings/item/attendance_reports/item/attendance_records/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/entire_row/entire_row.rb similarity index 100% rename from lib/me/online_meetings/item/attendance_reports/item/attendance_records/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/entire_row/entire_row.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..ea079e3fb2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/entire_row/entire_row_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/online_meetings/item/attendance_reports/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/format/format.rb similarity index 100% rename from lib/me/online_meetings/item/attendance_reports/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/format/format.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/format/format_request_builder.rb new file mode 100644 index 0000000000..a05563596f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/format/format_request_builder.rb @@ -0,0 +1,181 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/insert/insert.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..7e142dfce0 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/insert/insert_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/insert/insert_request_builder.rb new file mode 100644 index 0000000000..8e788c1890 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/insert/insert_request_builder.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/online_meetings/item/attendee_report/attendee_report.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/intersection_with_another_range/intersection_with_another_range.rb similarity index 100% rename from lib/me/online_meetings/item/attendee_report/attendee_report.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/intersection_with_another_range/intersection_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..0ac3de9fb2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/online_meetings/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/last_cell/last_cell.rb similarity index 100% rename from lib/me/online_meetings/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/last_cell/last_cell.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..ebaf18e3b8 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/last_cell/last_cell_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/online_meetings/online_meetings.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/last_column/last_column.rb similarity index 100% rename from lib/me/online_meetings/online_meetings.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/last_column/last_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..4b71f0a109 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/last_column/last_column_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/outlook/master_categories/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/last_row/last_row.rb similarity index 100% rename from lib/me/outlook/master_categories/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/last_row/last_row.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..db18c90470 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/last_row/last_row_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/merge/merge.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..5fc794f207 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/merge/merge_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/merge/merge_request_builder.rb new file mode 100644 index 0000000000..7684b1e219 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/merge/merge_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/outlook/master_categories/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb similarity index 100% rename from lib/me/outlook/master_categories/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..51e88c9940 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/range_request_builder.rb index cc75d93340..077174c82f 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/range/range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/range_request_builder.rb @@ -9,7 +9,38 @@ require_relative '../../../workbook' require_relative '../../worksheets' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' require_relative './range' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' +require_relative './unmerge/unmerge_request_builder' +require_relative './used_range/used_range_request_builder' +require_relative './used_range_with_values_only/used_range_with_values_only_request_builder' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -24,6 +55,148 @@ module Range # Provides operations to call the range method. class RangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Range::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Range::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Range::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Range::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Range::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Range::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Range::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Range::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Range::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Range::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Range::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Range::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Range::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Range::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Range::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Range::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the usedRange method. + def used_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Range::UsedRange::UsedRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Range::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Range::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new RangeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -43,27 +216,102 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Invoke function range ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Provides operations to call the usedRange method. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a used_range_with_values_only_request_builder + ## + def used_range_with_values_only(values_only) + raise StandardError, 'values_only cannot be null' if values_only.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/me/outlook/master_categories/master_categories.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb similarity index 100% rename from lib/me/outlook/master_categories/master_categories.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..ad138b3a99 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/outlook/outlook.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/row_with_row/row_with_row.rb similarity index 100% rename from lib/me/outlook/outlook.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/row_with_row/row_with_row.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..c30a9dd6e2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_devices/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/rows_above/rows_above.rb similarity index 100% rename from lib/me/owned_devices/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/rows_above/rows_above.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..225faaef64 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/rows_above/rows_above_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_devices/graph_app_role_assignment/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/rows_above_with_count/rows_above_with_count.rb similarity index 100% rename from lib/me/owned_devices/graph_app_role_assignment/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/rows_above_with_count/rows_above_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..28db80afda --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_devices/graph_app_role_assignment/graph_app_role_assignment.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/rows_below/rows_below.rb similarity index 100% rename from lib/me/owned_devices/graph_app_role_assignment/graph_app_role_assignment.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/rows_below/rows_below.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..a0a1dc6b30 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/rows_below/rows_below_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_devices/graph_device/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/rows_below_with_count/rows_below_with_count.rb similarity index 100% rename from lib/me/owned_devices/graph_device/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/rows_below_with_count/rows_below_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..073fad81df --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_devices/graph_device/graph_device.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/sort/sort.rb similarity index 100% rename from lib/me/owned_devices/graph_device/graph_device.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/sort/sort.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/sort/sort_request_builder.rb new file mode 100644 index 0000000000..2a1e1042e0 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/sort/sort_request_builder.rb @@ -0,0 +1,181 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_devices/graph_endpoint/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/unmerge/unmerge.rb similarity index 100% rename from lib/me/owned_devices/graph_endpoint/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/unmerge/unmerge.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..ec709058fd --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/unmerge/unmerge_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_devices/graph_endpoint/graph_endpoint.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/used_range/used_range.rb similarity index 100% rename from lib/me/owned_devices/graph_endpoint/graph_endpoint.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/used_range/used_range.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/used_range/used_range_request_builder.rb new file mode 100644 index 0000000000..a633171ad9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/used_range/used_range_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './used_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module UsedRange + ## + # Provides operations to call the usedRange method. + class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/usedRange()") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_devices/item/graph_app_role_assignment/graph_app_role_assignment.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/used_range_with_values_only/used_range_with_values_only.rb similarity index 100% rename from lib/me/owned_devices/item/graph_app_role_assignment/graph_app_role_assignment.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/used_range_with_values_only/used_range_with_values_only.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb new file mode 100644 index 0000000000..f0ac8545e1 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './used_range_with_values_only' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module UsedRangeWithValuesOnly + ## + # Provides operations to call the usedRange method. + class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a void + ## + def initialize(path_parameters, request_adapter, values_only=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/usedRange(valuesOnly={valuesOnly})") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_devices/item/graph_device/graph_device.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/visible_view/visible_view.rb similarity index 100% rename from lib/me/owned_devices/item/graph_device/graph_device.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/visible_view/visible_view.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..06501b7730 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/visible_view/visible_view_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_devices/item/graph_endpoint/graph_endpoint.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/worksheet/worksheet.rb similarity index 100% rename from lib/me/owned_devices/item/graph_endpoint/graph_endpoint.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range/worksheet/worksheet.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..50b59052c3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range/worksheet/worksheet_request_builder.rb @@ -0,0 +1,116 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Range + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_devices/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/bounding_rect_with_another_range/bounding_rect_with_another_range.rb similarity index 100% rename from lib/me/owned_devices/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/bounding_rect_with_another_range/bounding_rect_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..577f0fa75f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_devices/owned_devices.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/cell_with_row_with_column/cell_with_row_with_column.rb similarity index 100% rename from lib/me/owned_devices/owned_devices.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/cell_with_row_with_column/cell_with_row_with_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..1a29d94b74 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/clear/clear.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..cc674ab7cd --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/clear/clear_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/clear/clear_request_builder.rb new file mode 100644 index 0000000000..c915471b05 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/clear/clear_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_objects/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/column_with_column/column_with_column.rb similarity index 100% rename from lib/me/owned_objects/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/column_with_column/column_with_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..6c5d42759f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_objects/graph_application/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/columns_after/columns_after.rb similarity index 100% rename from lib/me/owned_objects/graph_application/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/columns_after/columns_after.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..3bb76896c4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/columns_after/columns_after_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_objects/graph_application/graph_application.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/columns_after_with_count/columns_after_with_count.rb similarity index 100% rename from lib/me/owned_objects/graph_application/graph_application.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/columns_after_with_count/columns_after_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..03f153284f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_objects/graph_group/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/columns_before/columns_before.rb similarity index 100% rename from lib/me/owned_objects/graph_group/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/columns_before/columns_before.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..49748d4b45 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/columns_before/columns_before_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_objects/graph_group/graph_group.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/columns_before_with_count/columns_before_with_count.rb similarity index 100% rename from lib/me/owned_objects/graph_group/graph_group.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/columns_before_with_count/columns_before_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..48eb0ad369 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/delete/delete.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..3e2792b413 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/delete/delete_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/delete/delete_request_builder.rb new file mode 100644 index 0000000000..f66286abfa --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/delete/delete_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_objects/graph_service_principal/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/entire_column/entire_column.rb similarity index 100% rename from lib/me/owned_objects/graph_service_principal/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/entire_column/entire_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..76c1311e8c --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/entire_column/entire_column_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_objects/graph_service_principal/graph_service_principal.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/entire_row/entire_row.rb similarity index 100% rename from lib/me/owned_objects/graph_service_principal/graph_service_principal.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/entire_row/entire_row.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..2dfc48e720 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/entire_row/entire_row_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_objects/item/graph_application/graph_application.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/format/format.rb similarity index 100% rename from lib/me/owned_objects/item/graph_application/graph_application.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/format/format.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/format/format_request_builder.rb new file mode 100644 index 0000000000..430fc18bc0 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/format/format_request_builder.rb @@ -0,0 +1,181 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/insert/insert.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..6aa5e0bbdf --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/insert/insert_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/insert/insert_request_builder.rb new file mode 100644 index 0000000000..4a54309be4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/insert/insert_request_builder.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_objects/item/graph_group/graph_group.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/intersection_with_another_range/intersection_with_another_range.rb similarity index 100% rename from lib/me/owned_objects/item/graph_group/graph_group.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/intersection_with_another_range/intersection_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..6a9ee01eb2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_objects/item/graph_service_principal/graph_service_principal.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/last_cell/last_cell.rb similarity index 100% rename from lib/me/owned_objects/item/graph_service_principal/graph_service_principal.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/last_cell/last_cell.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..f763131142 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/last_cell/last_cell_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_objects/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/last_column/last_column.rb similarity index 100% rename from lib/me/owned_objects/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/last_column/last_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..cd40b83801 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/last_column/last_column_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/owned_objects/owned_objects.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/last_row/last_row.rb similarity index 100% rename from lib/me/owned_objects/owned_objects.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/last_row/last_row.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..6c43726cdd --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/last_row/last_row_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/merge/merge.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..160a909afc --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/merge/merge_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/merge/merge_request_builder.rb new file mode 100644 index 0000000000..1563a4547b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/merge/merge_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/people/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb similarity index 100% rename from lib/me/people/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..985baf7fe2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/range_with_address_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/range_with_address_request_builder.rb index 7aaa587441..315c84573a 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/range_with_address_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/range_with_address_request_builder.rb @@ -9,7 +9,38 @@ require_relative '../../../workbook' require_relative '../../worksheets' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' require_relative './range_with_address' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' +require_relative './unmerge/unmerge_request_builder' +require_relative './used_range/used_range_request_builder' +require_relative './used_range_with_values_only/used_range_with_values_only_request_builder' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -24,6 +55,148 @@ module RangeWithAddress # Provides operations to call the range method. class RangeWithAddressRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::RangeWithAddress::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::RangeWithAddress::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::RangeWithAddress::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::RangeWithAddress::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::RangeWithAddress::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::RangeWithAddress::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::RangeWithAddress::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::RangeWithAddress::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::RangeWithAddress::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::RangeWithAddress::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::RangeWithAddress::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::RangeWithAddress::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::RangeWithAddress::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::RangeWithAddress::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::RangeWithAddress::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::RangeWithAddress::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the usedRange method. + def used_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::RangeWithAddress::UsedRange::UsedRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::RangeWithAddress::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::RangeWithAddress::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new RangeWithAddressRequestBuilder and sets the default values. ## @param address Usage: address='{address}' @@ -44,27 +217,102 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Invoke function range ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Provides operations to call the usedRange method. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a used_range_with_values_only_request_builder + ## + def used_range_with_values_only(values_only) + raise StandardError, 'values_only cannot be null' if values_only.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a range_with_address_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RangeWithAddressRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/me/people/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb similarity index 100% rename from lib/me/people/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..6b6d19aad5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/people/people.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/row_with_row/row_with_row.rb similarity index 100% rename from lib/me/people/people.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/row_with_row/row_with_row.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..32345d8bcd --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/photo/photo.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/rows_above/rows_above.rb similarity index 100% rename from lib/me/photo/photo.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/rows_above/rows_above.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..43717de95c --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/rows_above/rows_above_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/photo/value/value.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/rows_above_with_count/rows_above_with_count.rb similarity index 100% rename from lib/me/photo/value/value.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/rows_above_with_count/rows_above_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..1a8ceb7b4b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/photos/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/rows_below/rows_below.rb similarity index 100% rename from lib/me/photos/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/rows_below/rows_below.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..bdb933d9ef --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/rows_below/rows_below_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/photos/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/rows_below_with_count/rows_below_with_count.rb similarity index 100% rename from lib/me/photos/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/rows_below_with_count/rows_below_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..04507a2ece --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/photos/item/value/value.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/sort/sort.rb similarity index 100% rename from lib/me/photos/item/value/value.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/sort/sort.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/sort/sort_request_builder.rb new file mode 100644 index 0000000000..546f15727d --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/sort/sort_request_builder.rb @@ -0,0 +1,181 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/photos/photos.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/unmerge/unmerge.rb similarity index 100% rename from lib/me/photos/photos.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/unmerge/unmerge.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..2ed661d2a4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/unmerge/unmerge_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/planner.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/used_range/used_range.rb similarity index 100% rename from lib/me/planner/planner.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/used_range/used_range.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/used_range/used_range_request_builder.rb new file mode 100644 index 0000000000..0f06507ca6 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/used_range/used_range_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './used_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module UsedRange + ## + # Provides operations to call the usedRange method. + class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/usedRange()") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/plans/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/used_range_with_values_only/used_range_with_values_only.rb similarity index 100% rename from lib/me/planner/plans/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/used_range_with_values_only/used_range_with_values_only.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/used_range_with_values_only/used_range_with_values_only_request_builder.rb new file mode 100644 index 0000000000..d5aadea052 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './used_range_with_values_only' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module UsedRangeWithValuesOnly + ## + # Provides operations to call the usedRange method. + class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a void + ## + def initialize(path_parameters, request_adapter, values_only=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/usedRange(valuesOnly={valuesOnly})") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/plans/item/buckets/buckets.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/visible_view/visible_view.rb similarity index 100% rename from lib/me/planner/plans/item/buckets/buckets.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/visible_view/visible_view.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..c4a4fa8200 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/visible_view/visible_view_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/plans/item/buckets/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/worksheet/worksheet.rb similarity index 100% rename from lib/me/planner/plans/item/buckets/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/range_with_address/worksheet/worksheet.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..58fa433816 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/range_with_address/worksheet/worksheet_request_builder.rb @@ -0,0 +1,116 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../range_with_address' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module RangeWithAddress + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/add/add_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/add/add_post_request_body.rb index 6b2d170285..8d72cc5f8f 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/add/add_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/add/add_post_request_body.rb @@ -32,15 +32,15 @@ class AddPostRequestBody # The hasHeaders property @has_headers ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -62,7 +62,7 @@ def address=(value) @address = value end ## - ## Instantiates a new addPostRequestBody and sets the default values. + ## Instantiates a new AddPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/add/add_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/add/add_request_builder.rb index 1e86d6cefb..6a6df29ac0 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/add/add_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/add/add_request_builder.rb @@ -36,7 +36,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/add") end ## - ## Invoke action add + ## Use this API to create a new Table. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table @@ -47,12 +47,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTable.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke action add + ## Use this API to create a new Table. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -60,17 +59,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/count/count.rb index 4f3a94e631..0dc4499e3a 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/count/count.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/count/count.rb @@ -1 +1 @@ -require_relative 'count_response' +require_relative 'count_get_response' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/count/count_get_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/count/count_get_response.rb new file mode 100644 index 0000000000..f2770ab159 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/count/count_get_response.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../tables' +require_relative './count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Count + class CountGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new CountGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a count_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CountGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_number_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_number_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a integer + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/count/count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/count/count_request_builder.rb index 078711d8f8..6d80c6594f 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/count/count_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/count/count_request_builder.rb @@ -37,16 +37,15 @@ def initialize(path_parameters, request_adapter) ## ## Invoke function count ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of count_response + ## @return a Fiber of count_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Count::CountResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Count::CountGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function count @@ -55,16 +54,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/count/count_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/count/count_response.rb deleted file mode 100644 index 773ca6592c..0000000000 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/count/count_response.rb +++ /dev/null @@ -1,106 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../drives' -require_relative '../../../../../../../item' -require_relative '../../../../../../items' -require_relative '../../../../../item' -require_relative '../../../../workbook' -require_relative '../../../worksheets' -require_relative '../../item' -require_relative '../tables' -require_relative './count' - -module MicrosoftGraph - module Drives - module Item - module Items - module Item - module Workbook - module Worksheets - module Item - module Tables - module Count - class CountResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new countResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a count_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CountResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_number_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_number_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a integer - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end - end - end -end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/clear_filters/clear_filters_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/clear_filters/clear_filters_request_builder.rb index 3b726ee092..709f2b3bcb 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/clear_filters/clear_filters_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/clear_filters/clear_filters_request_builder.rb @@ -46,8 +46,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,15 +56,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_filters_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearFiltersRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/add/add_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/add/add_post_request_body.rb index 3bb1309fc9..6abe3202d2 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/add/add_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/add/add_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../../../../models/json' require_relative '../../../../../../../../../../drives' require_relative '../../../../../../../../../item' require_relative '../../../../../../../../items' @@ -37,25 +36,22 @@ class AddPostRequestBody # The name property @name ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new addPostRequestBody and sets the default values. + ## Instantiates a new AddPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -78,7 +74,6 @@ def get_field_deserializers() return { "index" => lambda {|n| @index = n.get_number_value() }, "name" => lambda {|n| @name = n.get_string_value() }, - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -120,24 +115,8 @@ def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_number_value("index", @index) writer.write_string_value("name", @name) - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/add/add_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/add/add_request_builder.rb index 4642f4958d..e457288a04 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/add/add_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/add/add_request_builder.rb @@ -51,8 +51,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableColumn.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/columns_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/columns_request_builder.rb index dff7481e95..251b133a64 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/columns_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/columns_request_builder.rb @@ -61,10 +61,10 @@ def by_workbook_table_column_id(workbook_table_column_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of tablecolumn objects. + ## The list of all the columns in the table. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_column_collection_response ## @@ -73,8 +73,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableColumnCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,7 +86,7 @@ def item_at_with_index(index) return ItemAtWithIndexRequestBuilder.new(@path_parameters, @request_adapter, index) end ## - ## Use this API to create a new TableColumn. + ## Create new navigation property to columns for drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_column @@ -98,30 +97,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableColumn.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of tablecolumn objects. + ## The list of all the columns in the table. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Use this API to create a new TableColumn. + ## Create new navigation property to columns for drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -129,20 +127,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of tablecolumn objects. + # The list of all the columns in the table. Read-only. class ColumnsRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/count/count.rb index 4f3a94e631..0dc4499e3a 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/count/count.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/count/count.rb @@ -1 +1 @@ -require_relative 'count_response' +require_relative 'count_get_response' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/count/count_get_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/count/count_get_response.rb new file mode 100644 index 0000000000..4a2d350bd1 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/count/count_get_response.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../columns' +require_relative './count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Count + class CountGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new CountGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a count_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CountGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_number_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_number_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a integer + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/count/count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/count/count_request_builder.rb index 80bed3911d..4433a643a7 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/count/count_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/count/count_request_builder.rb @@ -41,16 +41,15 @@ def initialize(path_parameters, request_adapter) ## ## Invoke function count ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of count_response + ## @return a Fiber of count_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Count::CountResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Count::CountGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function count @@ -59,16 +58,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/count/count_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/count/count_response.rb deleted file mode 100644 index 0f18bcd27b..0000000000 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/count/count_response.rb +++ /dev/null @@ -1,112 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../../../drives' -require_relative '../../../../../../../../../item' -require_relative '../../../../../../../../items' -require_relative '../../../../../../../item' -require_relative '../../../../../../workbook' -require_relative '../../../../../worksheets' -require_relative '../../../../item' -require_relative '../../../tables' -require_relative '../../item' -require_relative '../columns' -require_relative './count' - -module MicrosoftGraph - module Drives - module Item - module Items - module Item - module Workbook - module Worksheets - module Item - module Tables - module Item - module Columns - module Count - class CountResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new countResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a count_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CountResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_number_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_number_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a integer - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end - end - end - end - end -end diff --git a/lib/me/planner/plans/item/buckets/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb similarity index 100% rename from lib/me/planner/plans/item/buckets/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..7ab1da8e42 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/plans/item/buckets/item/tasks/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/cell_with_row_with_column/cell_with_row_with_column.rb similarity index 100% rename from lib/me/planner/plans/item/buckets/item/tasks/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/cell_with_row_with_column/cell_with_row_with_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..73ecc54a8b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,101 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/clear/clear.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..b230cf94fb --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/clear/clear_post_request_body.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/clear/clear_request_builder.rb new file mode 100644 index 0000000000..bf416db973 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/clear/clear_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/plans/item/buckets/item/tasks/item/assigned_to_task_board_format/assigned_to_task_board_format.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/column_with_column/column_with_column.rb similarity index 100% rename from lib/me/planner/plans/item/buckets/item/tasks/item/assigned_to_task_board_format/assigned_to_task_board_format.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/column_with_column/column_with_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..69e405e1b7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/plans/item/buckets/item/tasks/item/bucket_task_board_format/bucket_task_board_format.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/columns_after/columns_after.rb similarity index 100% rename from lib/me/planner/plans/item/buckets/item/tasks/item/bucket_task_board_format/bucket_task_board_format.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/columns_after/columns_after.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..b86bb945ac --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/columns_after/columns_after_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/plans/item/buckets/item/tasks/item/details/details.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/columns_after_with_count/columns_after_with_count.rb similarity index 100% rename from lib/me/planner/plans/item/buckets/item/tasks/item/details/details.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/columns_after_with_count/columns_after_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..c3b4718f3a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/plans/item/buckets/item/tasks/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/columns_before/columns_before.rb similarity index 100% rename from lib/me/planner/plans/item/buckets/item/tasks/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/columns_before/columns_before.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..1d0a2177f7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/columns_before/columns_before_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/plans/item/buckets/item/tasks/item/progress_task_board_format/progress_task_board_format.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/columns_before_with_count/columns_before_with_count.rb similarity index 100% rename from lib/me/planner/plans/item/buckets/item/tasks/item/progress_task_board_format/progress_task_board_format.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/columns_before_with_count/columns_before_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..36dbb717e6 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/data_body_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/data_body_range_request_builder.rb index 8aaabc112c..b66a0f5c93 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/data_body_range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/data_body_range_request_builder.rb @@ -13,7 +13,38 @@ require_relative '../../../item' require_relative '../../columns' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' require_relative './data_body_range' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' +require_relative './unmerge/unmerge_request_builder' +require_relative './used_range/used_range_request_builder' +require_relative './used_range_with_values_only/used_range_with_values_only_request_builder' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -32,6 +63,148 @@ module DataBodyRange # Provides operations to call the dataBodyRange method. class DataBodyRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::DataBodyRange::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::DataBodyRange::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::DataBodyRange::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::DataBodyRange::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::DataBodyRange::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::DataBodyRange::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::DataBodyRange::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::DataBodyRange::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::DataBodyRange::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::DataBodyRange::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::DataBodyRange::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::DataBodyRange::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::DataBodyRange::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::DataBodyRange::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::DataBodyRange::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::DataBodyRange::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the usedRange method. + def used_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::DataBodyRange::UsedRange::UsedRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::DataBodyRange::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::DataBodyRange::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new DataBodyRangeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -51,27 +224,102 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Gets the range object associated with the data body of the column. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Provides operations to call the usedRange method. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a used_range_with_values_only_request_builder + ## + def used_range_with_values_only(values_only) + raise StandardError, 'values_only cannot be null' if values_only.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a data_body_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DataBodyRangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/delete/delete.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..a26f2634f2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/delete/delete_post_request_body.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/delete/delete_request_builder.rb new file mode 100644 index 0000000000..ef3a28c229 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/delete/delete_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/plans/item/buckets/item/tasks/tasks.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/entire_column/entire_column.rb similarity index 100% rename from lib/me/planner/plans/item/buckets/item/tasks/tasks.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/entire_column/entire_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..090a92e12f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/entire_column/entire_column_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/plans/item/details/details.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/entire_row/entire_row.rb similarity index 100% rename from lib/me/planner/plans/item/details/details.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/entire_row/entire_row.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..97a641ea3c --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/entire_row/entire_row_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/plans/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/format/format.rb similarity index 100% rename from lib/me/planner/plans/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/format/format.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/format/format_request_builder.rb new file mode 100644 index 0000000000..f4f430f612 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/format/format_request_builder.rb @@ -0,0 +1,193 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/insert/insert.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..530c2701a4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/insert/insert_post_request_body.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/insert/insert_request_builder.rb new file mode 100644 index 0000000000..8936dba15f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/insert/insert_request_builder.rb @@ -0,0 +1,104 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/plans/item/tasks/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/intersection_with_another_range/intersection_with_another_range.rb similarity index 100% rename from lib/me/planner/plans/item/tasks/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/intersection_with_another_range/intersection_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..8e5a96970e --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/plans/item/tasks/item/assigned_to_task_board_format/assigned_to_task_board_format.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/last_cell/last_cell.rb similarity index 100% rename from lib/me/planner/plans/item/tasks/item/assigned_to_task_board_format/assigned_to_task_board_format.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/last_cell/last_cell.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..3593973e7c --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/last_cell/last_cell_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/plans/item/tasks/item/bucket_task_board_format/bucket_task_board_format.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/last_column/last_column.rb similarity index 100% rename from lib/me/planner/plans/item/tasks/item/bucket_task_board_format/bucket_task_board_format.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/last_column/last_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..7a78d357fe --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/last_column/last_column_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/plans/item/tasks/item/details/details.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/last_row/last_row.rb similarity index 100% rename from lib/me/planner/plans/item/tasks/item/details/details.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/last_row/last_row.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..ab3cf15aef --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/last_row/last_row_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/merge/merge.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..f2c8075ab2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/merge/merge_post_request_body.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/merge/merge_request_builder.rb new file mode 100644 index 0000000000..5c96591d9a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/merge/merge_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/plans/item/tasks/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb similarity index 100% rename from lib/me/planner/plans/item/tasks/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..1c39826c62 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,101 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/plans/item/tasks/item/progress_task_board_format/progress_task_board_format.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb similarity index 100% rename from lib/me/planner/plans/item/tasks/item/progress_task_board_format/progress_task_board_format.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..b61afc6bdc --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,101 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/plans/item/tasks/tasks.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/row_with_row/row_with_row.rb similarity index 100% rename from lib/me/planner/plans/item/tasks/tasks.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/row_with_row/row_with_row.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..b3097bcffc --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/plans/plans.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/rows_above/rows_above.rb similarity index 100% rename from lib/me/planner/plans/plans.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/rows_above/rows_above.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..31af6be7a5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/rows_above/rows_above_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/tasks/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/rows_above_with_count/rows_above_with_count.rb similarity index 100% rename from lib/me/planner/tasks/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/rows_above_with_count/rows_above_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..749d6bdcdf --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/tasks/item/assigned_to_task_board_format/assigned_to_task_board_format.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/rows_below/rows_below.rb similarity index 100% rename from lib/me/planner/tasks/item/assigned_to_task_board_format/assigned_to_task_board_format.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/rows_below/rows_below.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..814309972f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/rows_below/rows_below_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/tasks/item/bucket_task_board_format/bucket_task_board_format.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/rows_below_with_count/rows_below_with_count.rb similarity index 100% rename from lib/me/planner/tasks/item/bucket_task_board_format/bucket_task_board_format.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/rows_below_with_count/rows_below_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..a00f6f667e --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/tasks/item/details/details.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/sort/sort.rb similarity index 100% rename from lib/me/planner/tasks/item/details/details.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/sort/sort.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/sort/sort_request_builder.rb new file mode 100644 index 0000000000..779f553f66 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/sort/sort_request_builder.rb @@ -0,0 +1,193 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/tasks/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/unmerge/unmerge.rb similarity index 100% rename from lib/me/planner/tasks/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/unmerge/unmerge.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..0a0c3c6143 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/unmerge/unmerge_request_builder.rb @@ -0,0 +1,98 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/tasks/item/progress_task_board_format/progress_task_board_format.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/used_range/used_range.rb similarity index 100% rename from lib/me/planner/tasks/item/progress_task_board_format/progress_task_board_format.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/used_range/used_range.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/used_range/used_range_request_builder.rb new file mode 100644 index 0000000000..562f1576dc --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/used_range/used_range_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './used_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module UsedRange + ## + # Provides operations to call the usedRange method. + class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/usedRange()") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/planner/tasks/tasks.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/used_range_with_values_only/used_range_with_values_only.rb similarity index 100% rename from lib/me/planner/tasks/tasks.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/used_range_with_values_only/used_range_with_values_only.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb new file mode 100644 index 0000000000..73cdbc68b3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './used_range_with_values_only' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module UsedRangeWithValuesOnly + ## + # Provides operations to call the usedRange method. + class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a void + ## + def initialize(path_parameters, request_adapter, values_only=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/usedRange(valuesOnly={valuesOnly})") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/presence/clear_user_preferred_presence/clear_user_preferred_presence.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/visible_view/visible_view.rb similarity index 100% rename from lib/me/presence/clear_user_preferred_presence/clear_user_preferred_presence.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/visible_view/visible_view.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..4bdca1dfdd --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/visible_view/visible_view_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/presence/presence.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/worksheet/worksheet.rb similarity index 100% rename from lib/me/presence/presence.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/worksheet/worksheet.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..6da9ee14d7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/data_body_range/worksheet/worksheet_request_builder.rb @@ -0,0 +1,128 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module DataBodyRange + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/apply_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/apply_post_request_body.rb index 52204ed41b..9896677508 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/apply_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/apply_post_request_body.rb @@ -38,22 +38,22 @@ class ApplyPostRequestBody # The criteria property @criteria ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new applyPostRequestBody and sets the default values. + ## Instantiates a new ApplyPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/apply_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/apply_request_builder.rb index 07e68dba25..927dfe956a 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/apply_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/apply_request_builder.rb @@ -54,8 +54,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,16 +66,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_bottom_items_filter/apply_bottom_items_filter_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_bottom_items_filter/apply_bottom_items_filter_post_request_body.rb index cb62ec5bd7..e2e6758d14 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_bottom_items_filter/apply_bottom_items_filter_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_bottom_items_filter/apply_bottom_items_filter_post_request_body.rb @@ -37,22 +37,22 @@ class ApplyBottomItemsFilterPostRequestBody # The count property @count ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new applyBottomItemsFilterPostRequestBody and sets the default values. + ## Instantiates a new ApplyBottomItemsFilterPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_bottom_items_filter/apply_bottom_items_filter_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_bottom_items_filter/apply_bottom_items_filter_request_builder.rb index 23dcd14ebc..7a04aae811 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_bottom_items_filter/apply_bottom_items_filter_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_bottom_items_filter/apply_bottom_items_filter_request_builder.rb @@ -54,8 +54,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,16 +66,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_bottom_items_filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyBottomItemsFilterRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_bottom_percent_filter/apply_bottom_percent_filter_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_bottom_percent_filter/apply_bottom_percent_filter_post_request_body.rb index 22ebc49a33..52b63a241e 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_bottom_percent_filter/apply_bottom_percent_filter_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_bottom_percent_filter/apply_bottom_percent_filter_post_request_body.rb @@ -37,22 +37,22 @@ class ApplyBottomPercentFilterPostRequestBody # The percent property @percent ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new applyBottomPercentFilterPostRequestBody and sets the default values. + ## Instantiates a new ApplyBottomPercentFilterPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_bottom_percent_filter/apply_bottom_percent_filter_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_bottom_percent_filter/apply_bottom_percent_filter_request_builder.rb index fbe96671c7..2af9a98817 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_bottom_percent_filter/apply_bottom_percent_filter_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_bottom_percent_filter/apply_bottom_percent_filter_request_builder.rb @@ -54,8 +54,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,16 +66,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_bottom_percent_filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyBottomPercentFilterRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_cell_color_filter/apply_cell_color_filter_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_cell_color_filter/apply_cell_color_filter_post_request_body.rb index a378d6babe..9a598a3e3d 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_cell_color_filter/apply_cell_color_filter_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_cell_color_filter/apply_cell_color_filter_post_request_body.rb @@ -37,15 +37,15 @@ class ApplyCellColorFilterPostRequestBody # The color property @color ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -67,7 +67,7 @@ def color=(value) @color = value end ## - ## Instantiates a new applyCellColorFilterPostRequestBody and sets the default values. + ## Instantiates a new ApplyCellColorFilterPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_cell_color_filter/apply_cell_color_filter_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_cell_color_filter/apply_cell_color_filter_request_builder.rb index ff85e4a915..b9a7f65e44 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_cell_color_filter/apply_cell_color_filter_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_cell_color_filter/apply_cell_color_filter_request_builder.rb @@ -54,8 +54,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,16 +66,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_cell_color_filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyCellColorFilterRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_custom_filter/apply_custom_filter_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_custom_filter/apply_custom_filter_post_request_body.rb index 38c92e458b..12e4a89562 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_custom_filter/apply_custom_filter_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_custom_filter/apply_custom_filter_post_request_body.rb @@ -43,22 +43,22 @@ class ApplyCustomFilterPostRequestBody # The oper property @oper ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new applyCustomFilterPostRequestBody and sets the default values. + ## Instantiates a new ApplyCustomFilterPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_custom_filter/apply_custom_filter_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_custom_filter/apply_custom_filter_request_builder.rb index f0e85ec9f7..bf4895359d 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_custom_filter/apply_custom_filter_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_custom_filter/apply_custom_filter_request_builder.rb @@ -54,8 +54,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,16 +66,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_custom_filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyCustomFilterRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_dynamic_filter/apply_dynamic_filter_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_dynamic_filter/apply_dynamic_filter_post_request_body.rb index 95db0c98bf..9c7b650025 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_dynamic_filter/apply_dynamic_filter_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_dynamic_filter/apply_dynamic_filter_post_request_body.rb @@ -37,22 +37,22 @@ class ApplyDynamicFilterPostRequestBody # The criteria property @criteria ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new applyDynamicFilterPostRequestBody and sets the default values. + ## Instantiates a new ApplyDynamicFilterPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_dynamic_filter/apply_dynamic_filter_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_dynamic_filter/apply_dynamic_filter_request_builder.rb index bc86c1cdc9..197939c05c 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_dynamic_filter/apply_dynamic_filter_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_dynamic_filter/apply_dynamic_filter_request_builder.rb @@ -54,8 +54,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,16 +66,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_dynamic_filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyDynamicFilterRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_font_color_filter/apply_font_color_filter_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_font_color_filter/apply_font_color_filter_post_request_body.rb index c17e319ca1..4d589ab410 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_font_color_filter/apply_font_color_filter_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_font_color_filter/apply_font_color_filter_post_request_body.rb @@ -37,15 +37,15 @@ class ApplyFontColorFilterPostRequestBody # The color property @color ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -67,7 +67,7 @@ def color=(value) @color = value end ## - ## Instantiates a new applyFontColorFilterPostRequestBody and sets the default values. + ## Instantiates a new ApplyFontColorFilterPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_font_color_filter/apply_font_color_filter_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_font_color_filter/apply_font_color_filter_request_builder.rb index dc31608f1d..c91e97d8f5 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_font_color_filter/apply_font_color_filter_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_font_color_filter/apply_font_color_filter_request_builder.rb @@ -54,8 +54,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,16 +66,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_font_color_filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyFontColorFilterRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_icon_filter/apply_icon_filter_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_icon_filter/apply_icon_filter_post_request_body.rb index a4691a9fad..97d3986d3f 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_icon_filter/apply_icon_filter_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_icon_filter/apply_icon_filter_post_request_body.rb @@ -38,22 +38,22 @@ class ApplyIconFilterPostRequestBody # The icon property @icon ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new applyIconFilterPostRequestBody and sets the default values. + ## Instantiates a new ApplyIconFilterPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_icon_filter/apply_icon_filter_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_icon_filter/apply_icon_filter_request_builder.rb index 31659e918c..c5e1ab1edd 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_icon_filter/apply_icon_filter_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_icon_filter/apply_icon_filter_request_builder.rb @@ -54,8 +54,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,16 +66,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_icon_filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyIconFilterRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_top_items_filter/apply_top_items_filter_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_top_items_filter/apply_top_items_filter_post_request_body.rb index 61b976f7e4..426bb0b9c2 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_top_items_filter/apply_top_items_filter_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_top_items_filter/apply_top_items_filter_post_request_body.rb @@ -37,22 +37,22 @@ class ApplyTopItemsFilterPostRequestBody # The count property @count ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new applyTopItemsFilterPostRequestBody and sets the default values. + ## Instantiates a new ApplyTopItemsFilterPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_top_items_filter/apply_top_items_filter_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_top_items_filter/apply_top_items_filter_request_builder.rb index 103e0c5978..55cbb2b0f8 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_top_items_filter/apply_top_items_filter_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_top_items_filter/apply_top_items_filter_request_builder.rb @@ -54,8 +54,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,16 +66,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_top_items_filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyTopItemsFilterRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_top_percent_filter/apply_top_percent_filter_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_top_percent_filter/apply_top_percent_filter_post_request_body.rb index 56c4c32c97..606b789974 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_top_percent_filter/apply_top_percent_filter_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_top_percent_filter/apply_top_percent_filter_post_request_body.rb @@ -37,22 +37,22 @@ class ApplyTopPercentFilterPostRequestBody # The percent property @percent ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new applyTopPercentFilterPostRequestBody and sets the default values. + ## Instantiates a new ApplyTopPercentFilterPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_top_percent_filter/apply_top_percent_filter_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_top_percent_filter/apply_top_percent_filter_request_builder.rb index 7e13220c1c..c738ea16fd 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_top_percent_filter/apply_top_percent_filter_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_top_percent_filter/apply_top_percent_filter_request_builder.rb @@ -54,8 +54,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,16 +66,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_top_percent_filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyTopPercentFilterRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_values_filter/apply_values_filter_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_values_filter/apply_values_filter_post_request_body.rb index 915f5c1530..648a1e3ab6 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_values_filter/apply_values_filter_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_values_filter/apply_values_filter_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../../../../../../models/json' require_relative '../../../../../../../../../../../../drives' require_relative '../../../../../../../../../../../item' require_relative '../../../../../../../../../../items' @@ -35,25 +34,22 @@ class ApplyValuesFilterPostRequestBody # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @additional_data ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new applyValuesFilterPostRequestBody and sets the default values. + ## Instantiates a new ApplyValuesFilterPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -74,7 +70,6 @@ def self.create_from_discriminator_value(parse_node) ## def get_field_deserializers() return { - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -84,24 +79,8 @@ def get_field_deserializers() ## def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_values_filter/apply_values_filter_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_values_filter/apply_values_filter_request_builder.rb index 2f6f5a2772..e6d7dee397 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_values_filter/apply_values_filter_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply_values_filter/apply_values_filter_request_builder.rb @@ -54,8 +54,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,16 +66,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_values_filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyValuesFilterRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/clear/clear_request_builder.rb index 683fa33a0f..7b96dab9e2 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/clear/clear_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/clear/clear_request_builder.rb @@ -52,8 +52,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,15 +62,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/filter_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/filter_request_builder.rb index 781d098ab0..78cb39ce94 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/filter_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/filter_request_builder.rb @@ -111,7 +111,7 @@ def clear() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter{?%24expand,%24select}") end ## ## Delete navigation property filter for drives @@ -123,12 +123,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the filter applied to the column. Read-only. + ## The filter applied to the column. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_filter ## @@ -137,8 +136,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFilter.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -153,8 +151,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFilter.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -164,31 +161,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the filter applied to the column. Read-only. + ## The filter applied to the column. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -200,20 +198,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilterRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the filter applied to the column. Read-only. + # The filter applied to the column. Read-only. class FilterRequestBuilderGetQueryParameters ## diff --git a/lib/me/registered_devices/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb similarity index 100% rename from lib/me/registered_devices/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..419231901d --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/registered_devices/graph_app_role_assignment/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/cell_with_row_with_column/cell_with_row_with_column.rb similarity index 100% rename from lib/me/registered_devices/graph_app_role_assignment/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/cell_with_row_with_column/cell_with_row_with_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..5948c8b8e3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,101 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/clear/clear.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..05649b06b9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/clear/clear_post_request_body.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/clear/clear_request_builder.rb new file mode 100644 index 0000000000..f7802e3f5f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/clear/clear_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/registered_devices/graph_app_role_assignment/graph_app_role_assignment.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/column_with_column/column_with_column.rb similarity index 100% rename from lib/me/registered_devices/graph_app_role_assignment/graph_app_role_assignment.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/column_with_column/column_with_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..746f8b6fc0 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/registered_devices/graph_device/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/columns_after/columns_after.rb similarity index 100% rename from lib/me/registered_devices/graph_device/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/columns_after/columns_after.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..333f0650e0 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/columns_after/columns_after_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/registered_devices/graph_device/graph_device.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/columns_after_with_count/columns_after_with_count.rb similarity index 100% rename from lib/me/registered_devices/graph_device/graph_device.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/columns_after_with_count/columns_after_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..b87ee9b45c --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/registered_devices/graph_endpoint/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/columns_before/columns_before.rb similarity index 100% rename from lib/me/registered_devices/graph_endpoint/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/columns_before/columns_before.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..153f346330 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/columns_before/columns_before_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/registered_devices/graph_endpoint/graph_endpoint.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/columns_before_with_count/columns_before_with_count.rb similarity index 100% rename from lib/me/registered_devices/graph_endpoint/graph_endpoint.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/columns_before_with_count/columns_before_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..331c76b80b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/delete/delete.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..eaa95d2594 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/delete/delete_post_request_body.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/delete/delete_request_builder.rb new file mode 100644 index 0000000000..085c191be0 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/delete/delete_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/registered_devices/item/graph_app_role_assignment/graph_app_role_assignment.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/entire_column/entire_column.rb similarity index 100% rename from lib/me/registered_devices/item/graph_app_role_assignment/graph_app_role_assignment.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/entire_column/entire_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..203eabdeaa --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/entire_column/entire_column_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/registered_devices/item/graph_device/graph_device.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/entire_row/entire_row.rb similarity index 100% rename from lib/me/registered_devices/item/graph_device/graph_device.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/entire_row/entire_row.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..8fe04541fa --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/entire_row/entire_row_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/registered_devices/item/graph_endpoint/graph_endpoint.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/format/format.rb similarity index 100% rename from lib/me/registered_devices/item/graph_endpoint/graph_endpoint.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/format/format.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/format/format_request_builder.rb new file mode 100644 index 0000000000..3d057f5d3b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/format/format_request_builder.rb @@ -0,0 +1,193 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/header_row_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/header_row_range_request_builder.rb index d2db365365..6e436b8757 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/header_row_range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/header_row_range_request_builder.rb @@ -13,7 +13,38 @@ require_relative '../../../item' require_relative '../../columns' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' require_relative './header_row_range' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' +require_relative './unmerge/unmerge_request_builder' +require_relative './used_range/used_range_request_builder' +require_relative './used_range_with_values_only/used_range_with_values_only_request_builder' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -32,6 +63,148 @@ module HeaderRowRange # Provides operations to call the headerRowRange method. class HeaderRowRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::HeaderRowRange::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::HeaderRowRange::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::HeaderRowRange::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::HeaderRowRange::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::HeaderRowRange::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::HeaderRowRange::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::HeaderRowRange::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::HeaderRowRange::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::HeaderRowRange::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::HeaderRowRange::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::HeaderRowRange::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::HeaderRowRange::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::HeaderRowRange::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::HeaderRowRange::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::HeaderRowRange::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::HeaderRowRange::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the usedRange method. + def used_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::HeaderRowRange::UsedRange::UsedRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::HeaderRowRange::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::HeaderRowRange::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new HeaderRowRangeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -51,27 +224,102 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Gets the range object associated with the header row of the column. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Provides operations to call the usedRange method. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a used_range_with_values_only_request_builder + ## + def used_range_with_values_only(values_only) + raise StandardError, 'values_only cannot be null' if values_only.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a header_row_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HeaderRowRangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/insert/insert.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..166655cb57 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/insert/insert_post_request_body.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/insert/insert_request_builder.rb new file mode 100644 index 0000000000..f4dc5dd79f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/insert/insert_request_builder.rb @@ -0,0 +1,104 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/registered_devices/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/intersection_with_another_range/intersection_with_another_range.rb similarity index 100% rename from lib/me/registered_devices/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/intersection_with_another_range/intersection_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..97a17f7b76 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/registered_devices/registered_devices.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/last_cell/last_cell.rb similarity index 100% rename from lib/me/registered_devices/registered_devices.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/last_cell/last_cell.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..053bad689e --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/last_cell/last_cell_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/remove_all_devices_from_management/remove_all_devices_from_management.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/last_column/last_column.rb similarity index 100% rename from lib/me/remove_all_devices_from_management/remove_all_devices_from_management.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/last_column/last_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..c597ee0bcc --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/last_column/last_column_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/reprocess_license_assignment/reprocess_license_assignment.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/last_row/last_row.rb similarity index 100% rename from lib/me/reprocess_license_assignment/reprocess_license_assignment.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/last_row/last_row.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..664290fc3b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/last_row/last_row_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/merge/merge.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..cf87c197c5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/merge/merge_post_request_body.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/merge/merge_request_builder.rb new file mode 100644 index 0000000000..fb5d7fa646 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/merge/merge_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/restore/restore.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb similarity index 100% rename from lib/me/restore/restore.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..984f12eaa2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,101 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/scoped_role_member_of/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb similarity index 100% rename from lib/me/scoped_role_member_of/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..743e4d5b6a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,101 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/scoped_role_member_of/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/row_with_row/row_with_row.rb similarity index 100% rename from lib/me/scoped_role_member_of/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/row_with_row/row_with_row.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..69ed69c135 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/scoped_role_member_of/scoped_role_member_of.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/rows_above/rows_above.rb similarity index 100% rename from lib/me/scoped_role_member_of/scoped_role_member_of.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/rows_above/rows_above.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..00f4ad5a48 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/rows_above/rows_above_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/settings/settings.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/rows_above_with_count/rows_above_with_count.rb similarity index 100% rename from lib/me/settings/settings.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/rows_above_with_count/rows_above_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..4dc64215af --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/settings/shift_preferences/shift_preferences.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/rows_below/rows_below.rb similarity index 100% rename from lib/me/settings/shift_preferences/shift_preferences.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/rows_below/rows_below.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..748336f53d --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/rows_below/rows_below_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/teamwork/associated_teams/associated_teams.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/rows_below_with_count/rows_below_with_count.rb similarity index 100% rename from lib/me/teamwork/associated_teams/associated_teams.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/rows_below_with_count/rows_below_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..276f51777a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/teamwork/associated_teams/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/sort/sort.rb similarity index 100% rename from lib/me/teamwork/associated_teams/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/sort/sort.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/sort/sort_request_builder.rb new file mode 100644 index 0000000000..0d2fb66f97 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/sort/sort_request_builder.rb @@ -0,0 +1,193 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/teamwork/associated_teams/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/unmerge/unmerge.rb similarity index 100% rename from lib/me/teamwork/associated_teams/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/unmerge/unmerge.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..c7cf83e6fa --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/unmerge/unmerge_request_builder.rb @@ -0,0 +1,98 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/teamwork/associated_teams/item/team/team.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/used_range/used_range.rb similarity index 100% rename from lib/me/teamwork/associated_teams/item/team/team.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/used_range/used_range.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/used_range/used_range_request_builder.rb new file mode 100644 index 0000000000..946e727e2c --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/used_range/used_range_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './used_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module UsedRange + ## + # Provides operations to call the usedRange method. + class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/usedRange()") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/teamwork/installed_apps/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/used_range_with_values_only/used_range_with_values_only.rb similarity index 100% rename from lib/me/teamwork/installed_apps/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/used_range_with_values_only/used_range_with_values_only.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb new file mode 100644 index 0000000000..102190aa1d --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './used_range_with_values_only' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module UsedRangeWithValuesOnly + ## + # Provides operations to call the usedRange method. + class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a void + ## + def initialize(path_parameters, request_adapter, values_only=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/usedRange(valuesOnly={valuesOnly})") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/teamwork/installed_apps/installed_apps.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/visible_view/visible_view.rb similarity index 100% rename from lib/me/teamwork/installed_apps/installed_apps.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/visible_view/visible_view.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..ec81137224 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/visible_view/visible_view_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/teamwork/installed_apps/item/chat/chat.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/worksheet/worksheet.rb similarity index 100% rename from lib/me/teamwork/installed_apps/item/chat/chat.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/worksheet/worksheet.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..c32ae7109f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/header_row_range/worksheet/worksheet_request_builder.rb @@ -0,0 +1,128 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module HeaderRowRange + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/teamwork/installed_apps/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb similarity index 100% rename from lib/me/teamwork/installed_apps/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..01815e23ea --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/teamwork/installed_apps/item/teams_app/teams_app.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/cell_with_row_with_column/cell_with_row_with_column.rb similarity index 100% rename from lib/me/teamwork/installed_apps/item/teams_app/teams_app.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/cell_with_row_with_column/cell_with_row_with_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..4f6326cc70 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,101 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/clear/clear.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..64c999ce3e --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/clear/clear_post_request_body.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/clear/clear_request_builder.rb new file mode 100644 index 0000000000..f58ff93480 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/clear/clear_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/teamwork/installed_apps/item/teams_app_definition/teams_app_definition.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/column_with_column/column_with_column.rb similarity index 100% rename from lib/me/teamwork/installed_apps/item/teams_app_definition/teams_app_definition.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/column_with_column/column_with_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..27e72b4826 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/teamwork/teamwork.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/columns_after/columns_after.rb similarity index 100% rename from lib/me/teamwork/teamwork.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/columns_after/columns_after.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..22662a63ad --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/columns_after/columns_after_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/columns_after_with_count/columns_after_with_count.rb similarity index 100% rename from lib/me/todo/lists/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/columns_after_with_count/columns_after_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..22e575b250 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/item/extensions/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/columns_before/columns_before.rb similarity index 100% rename from lib/me/todo/lists/item/extensions/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/columns_before/columns_before.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..53c0e6204b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/columns_before/columns_before_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/item/extensions/extensions.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/columns_before_with_count/columns_before_with_count.rb similarity index 100% rename from lib/me/todo/lists/item/extensions/extensions.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/columns_before_with_count/columns_before_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..2a9ed7acfa --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/delete/delete.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..9b5229b005 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/delete/delete_post_request_body.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/delete/delete_request_builder.rb new file mode 100644 index 0000000000..598624b699 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/delete/delete_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/item/extensions/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/entire_column/entire_column.rb similarity index 100% rename from lib/me/todo/lists/item/extensions/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/entire_column/entire_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..f1e36de2e4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/entire_column/entire_column_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/entire_row/entire_row.rb similarity index 100% rename from lib/me/todo/lists/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/entire_row/entire_row.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..8c575701ab --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/entire_row/entire_row_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/item/tasks/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/format/format.rb similarity index 100% rename from lib/me/todo/lists/item/tasks/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/format/format.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/format/format_request_builder.rb new file mode 100644 index 0000000000..472d3393b8 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/format/format_request_builder.rb @@ -0,0 +1,193 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/insert/insert.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..cfb6638e85 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/insert/insert_post_request_body.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/insert/insert_request_builder.rb new file mode 100644 index 0000000000..efac0cfadd --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/insert/insert_request_builder.rb @@ -0,0 +1,104 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/item/tasks/item/attachment_sessions/attachment_sessions.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/intersection_with_another_range/intersection_with_another_range.rb similarity index 100% rename from lib/me/todo/lists/item/tasks/item/attachment_sessions/attachment_sessions.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/intersection_with_another_range/intersection_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..41cee7fdf1 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/item/tasks/item/attachment_sessions/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/last_cell/last_cell.rb similarity index 100% rename from lib/me/todo/lists/item/tasks/item/attachment_sessions/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/last_cell/last_cell.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..6ebfe57877 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/last_cell/last_cell_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/item/tasks/item/attachment_sessions/item/content/content.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/last_column/last_column.rb similarity index 100% rename from lib/me/todo/lists/item/tasks/item/attachment_sessions/item/content/content.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/last_column/last_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..629ef739a9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/last_column/last_column_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/item/tasks/item/attachment_sessions/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/last_row/last_row.rb similarity index 100% rename from lib/me/todo/lists/item/tasks/item/attachment_sessions/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/last_row/last_row.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..8f8c7987ad --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/last_row/last_row_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/merge/merge.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..8afb710a12 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/merge/merge_post_request_body.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/merge/merge_request_builder.rb new file mode 100644 index 0000000000..e94bbc3b2f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/merge/merge_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/item/tasks/item/attachments/attachments.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb similarity index 100% rename from lib/me/todo/lists/item/tasks/item/attachments/attachments.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..d95805201d --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,101 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/range_request_builder.rb index d2a75e0656..8cb40798fc 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/range_request_builder.rb @@ -13,7 +13,38 @@ require_relative '../../../item' require_relative '../../columns' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' require_relative './range' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' +require_relative './unmerge/unmerge_request_builder' +require_relative './used_range/used_range_request_builder' +require_relative './used_range_with_values_only/used_range_with_values_only_request_builder' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -32,6 +63,148 @@ module Range # Provides operations to call the range method. class RangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::Range::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::Range::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::Range::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::Range::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::Range::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::Range::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::Range::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::Range::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::Range::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::Range::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::Range::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::Range::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::Range::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::Range::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::Range::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::Range::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the usedRange method. + def used_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::Range::UsedRange::UsedRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::Range::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::Range::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new RangeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -51,27 +224,102 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Gets the range object associated with the entire column. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Provides operations to call the usedRange method. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a used_range_with_values_only_request_builder + ## + def used_range_with_values_only(values_only) + raise StandardError, 'values_only cannot be null' if values_only.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/me/todo/lists/item/tasks/item/attachments/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb similarity index 100% rename from lib/me/todo/lists/item/tasks/item/attachments/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..89e1e3cf2a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,101 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/item/tasks/item/attachments/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/row_with_row/row_with_row.rb similarity index 100% rename from lib/me/todo/lists/item/tasks/item/attachments/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/row_with_row/row_with_row.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..179afc5262 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/item/tasks/item/attachments/item/value/value.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/rows_above/rows_above.rb similarity index 100% rename from lib/me/todo/lists/item/tasks/item/attachments/item/value/value.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/rows_above/rows_above.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..5fc9d73e53 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/rows_above/rows_above_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/item/tasks/item/checklist_items/checklist_items.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/rows_above_with_count/rows_above_with_count.rb similarity index 100% rename from lib/me/todo/lists/item/tasks/item/checklist_items/checklist_items.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/rows_above_with_count/rows_above_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..05fe0ad956 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/item/tasks/item/checklist_items/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/rows_below/rows_below.rb similarity index 100% rename from lib/me/todo/lists/item/tasks/item/checklist_items/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/rows_below/rows_below.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..a03ffdfc83 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/rows_below/rows_below_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/item/tasks/item/checklist_items/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/rows_below_with_count/rows_below_with_count.rb similarity index 100% rename from lib/me/todo/lists/item/tasks/item/checklist_items/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/rows_below_with_count/rows_below_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..78d564f2df --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/item/tasks/item/extensions/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/sort/sort.rb similarity index 100% rename from lib/me/todo/lists/item/tasks/item/extensions/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/sort/sort.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/sort/sort_request_builder.rb new file mode 100644 index 0000000000..38ed0755d1 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/sort/sort_request_builder.rb @@ -0,0 +1,193 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/item/tasks/item/extensions/extensions.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/unmerge/unmerge.rb similarity index 100% rename from lib/me/todo/lists/item/tasks/item/extensions/extensions.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/unmerge/unmerge.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..738d139d66 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/unmerge/unmerge_request_builder.rb @@ -0,0 +1,98 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/item/tasks/item/extensions/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/used_range/used_range.rb similarity index 100% rename from lib/me/todo/lists/item/tasks/item/extensions/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/used_range/used_range.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/used_range/used_range_request_builder.rb new file mode 100644 index 0000000000..b1da1a03f3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/used_range/used_range_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './used_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module UsedRange + ## + # Provides operations to call the usedRange method. + class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/usedRange()") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/item/tasks/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/used_range_with_values_only/used_range_with_values_only.rb similarity index 100% rename from lib/me/todo/lists/item/tasks/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/used_range_with_values_only/used_range_with_values_only.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb new file mode 100644 index 0000000000..647a991ba2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './used_range_with_values_only' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module UsedRangeWithValuesOnly + ## + # Provides operations to call the usedRange method. + class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a void + ## + def initialize(path_parameters, request_adapter, values_only=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/usedRange(valuesOnly={valuesOnly})") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/item/tasks/item/linked_resources/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/visible_view/visible_view.rb similarity index 100% rename from lib/me/todo/lists/item/tasks/item/linked_resources/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/visible_view/visible_view.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..c9fc4965ea --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/visible_view/visible_view_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/item/tasks/item/linked_resources/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/worksheet/worksheet.rb similarity index 100% rename from lib/me/todo/lists/item/tasks/item/linked_resources/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/worksheet/worksheet.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..c3a8c2c1ca --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/worksheet/worksheet_request_builder.rb @@ -0,0 +1,128 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../range' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module Range + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/item/tasks/item/linked_resources/linked_resources.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb similarity index 100% rename from lib/me/todo/lists/item/tasks/item/linked_resources/linked_resources.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..800e429191 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/item/tasks/tasks.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/cell_with_row_with_column/cell_with_row_with_column.rb similarity index 100% rename from lib/me/todo/lists/item/tasks/tasks.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/cell_with_row_with_column/cell_with_row_with_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..af29b040fa --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,101 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/clear/clear.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..f39b004b4f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/clear/clear_post_request_body.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/clear/clear_request_builder.rb new file mode 100644 index 0000000000..a90e561d9d --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/clear/clear_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/lists/lists.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/column_with_column/column_with_column.rb similarity index 100% rename from lib/me/todo/lists/lists.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/column_with_column/column_with_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..fb6bae8ea2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/todo/todo.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/columns_after/columns_after.rb similarity index 100% rename from lib/me/todo/todo.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/columns_after/columns_after.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..34a1f19ebf --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/columns_after/columns_after_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/transitive_member_of/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/columns_after_with_count/columns_after_with_count.rb similarity index 100% rename from lib/me/transitive_member_of/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/columns_after_with_count/columns_after_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..4b9b86e5ef --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/transitive_member_of/graph_administrative_unit/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/columns_before/columns_before.rb similarity index 100% rename from lib/me/transitive_member_of/graph_administrative_unit/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/columns_before/columns_before.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..cf918e4d41 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/columns_before/columns_before_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/columns_before_with_count/columns_before_with_count.rb similarity index 100% rename from lib/me/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/columns_before_with_count/columns_before_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..5c43167244 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/delete/delete.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..01dadfe6dd --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/delete/delete_post_request_body.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/delete/delete_request_builder.rb new file mode 100644 index 0000000000..b33edddd99 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/delete/delete_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/transitive_member_of/graph_directory_role/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/entire_column/entire_column.rb similarity index 100% rename from lib/me/transitive_member_of/graph_directory_role/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/entire_column/entire_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..4d0d233a7e --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/entire_column/entire_column_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/transitive_member_of/graph_directory_role/graph_directory_role.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/entire_row/entire_row.rb similarity index 100% rename from lib/me/transitive_member_of/graph_directory_role/graph_directory_role.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/entire_row/entire_row.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..d445db5138 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/entire_row/entire_row_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/transitive_member_of/graph_group/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/format/format.rb similarity index 100% rename from lib/me/transitive_member_of/graph_group/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/format/format.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/format/format_request_builder.rb new file mode 100644 index 0000000000..ed3ccf9c78 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/format/format_request_builder.rb @@ -0,0 +1,193 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/insert/insert.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..4775de3f1a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/insert/insert_post_request_body.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/insert/insert_request_builder.rb new file mode 100644 index 0000000000..734178effd --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/insert/insert_request_builder.rb @@ -0,0 +1,104 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/transitive_member_of/graph_group/graph_group.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/intersection_with_another_range/intersection_with_another_range.rb similarity index 100% rename from lib/me/transitive_member_of/graph_group/graph_group.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/intersection_with_another_range/intersection_with_another_range.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..6c4e350cd4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/last_cell/last_cell.rb similarity index 100% rename from lib/me/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/last_cell/last_cell.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..ed5b059876 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/last_cell/last_cell_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/transitive_member_of/item/graph_directory_role/graph_directory_role.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/last_column/last_column.rb similarity index 100% rename from lib/me/transitive_member_of/item/graph_directory_role/graph_directory_role.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/last_column/last_column.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..9e4387ff6b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/last_column/last_column_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/transitive_member_of/item/graph_group/graph_group.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/last_row/last_row.rb similarity index 100% rename from lib/me/transitive_member_of/item/graph_group/graph_group.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/last_row/last_row.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..d6fc05775b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/last_row/last_row_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/merge/merge.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..ba70f867e7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/merge/merge_post_request_body.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/merge/merge_request_builder.rb new file mode 100644 index 0000000000..34ce7ca43f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/merge/merge_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/transitive_member_of/item/item.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb similarity index 100% rename from lib/me/transitive_member_of/item/item.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..64d20cef1c --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,101 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/transitive_member_of/transitive_member_of.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb similarity index 100% rename from lib/me/transitive_member_of/transitive_member_of.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..2189b34103 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,101 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teams/item/permission_grants/item/restore/restore.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/row_with_row/row_with_row.rb similarity index 100% rename from lib/teams/item/permission_grants/item/restore/restore.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/row_with_row/row_with_row.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..e107ada2dd --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/users/item/chats/item/permission_grants/item/restore/restore.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/rows_above/rows_above.rb similarity index 100% rename from lib/users/item/chats/item/permission_grants/item/restore/restore.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/rows_above/rows_above.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..57b72f040c --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/rows_above/rows_above_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/users/item/joined_teams/item/permission_grants/item/restore/restore.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/rows_above_with_count/rows_above_with_count.rb similarity index 100% rename from lib/users/item/joined_teams/item/permission_grants/item/restore/restore.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/rows_above_with_count/rows_above_with_count.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..d27aa54da0 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/users/item/photos/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/rows_below/rows_below.rb similarity index 100% rename from lib/users/item/photos/count/count.rb rename to lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/rows_below/rows_below.rb diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..36623ea483 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/rows_below/rows_below_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/rows_below_with_count/rows_below_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/rows_below_with_count/rows_below_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..5ecf0dfa33 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/sort/sort.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/sort/sort.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/sort/sort_request_builder.rb new file mode 100644 index 0000000000..6a426dc272 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/sort/sort_request_builder.rb @@ -0,0 +1,193 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/total_row_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/total_row_range_request_builder.rb index 236b749c43..6cfce133d8 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/total_row_range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/total_row_range_request_builder.rb @@ -13,7 +13,38 @@ require_relative '../../../item' require_relative '../../columns' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' require_relative './total_row_range' +require_relative './unmerge/unmerge_request_builder' +require_relative './used_range/used_range_request_builder' +require_relative './used_range_with_values_only/used_range_with_values_only_request_builder' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -32,6 +63,148 @@ module TotalRowRange # Provides operations to call the totalRowRange method. class TotalRowRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::TotalRowRange::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::TotalRowRange::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::TotalRowRange::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::TotalRowRange::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::TotalRowRange::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::TotalRowRange::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::TotalRowRange::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::TotalRowRange::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::TotalRowRange::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::TotalRowRange::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::TotalRowRange::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::TotalRowRange::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::TotalRowRange::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::TotalRowRange::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::TotalRowRange::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::TotalRowRange::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the usedRange method. + def used_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::TotalRowRange::UsedRange::UsedRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::TotalRowRange::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::Item::TotalRowRange::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new TotalRowRangeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -51,27 +224,102 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Gets the range object associated with the totals row of the column. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Provides operations to call the usedRange method. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a used_range_with_values_only_request_builder + ## + def used_range_with_values_only(values_only) + raise StandardError, 'values_only cannot be null' if values_only.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a total_row_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TotalRowRangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/unmerge/unmerge.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/unmerge/unmerge.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..a5f3267a81 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/unmerge/unmerge_request_builder.rb @@ -0,0 +1,98 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/used_range/used_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/used_range/used_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/used_range/used_range_request_builder.rb new file mode 100644 index 0000000000..40bc95fcad --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/used_range/used_range_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './used_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module UsedRange + ## + # Provides operations to call the usedRange method. + class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/usedRange()") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/used_range_with_values_only/used_range_with_values_only.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/used_range_with_values_only/used_range_with_values_only.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb new file mode 100644 index 0000000000..4cea6d4487 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './used_range_with_values_only' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module UsedRangeWithValuesOnly + ## + # Provides operations to call the usedRange method. + class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a void + ## + def initialize(path_parameters, request_adapter, values_only=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/usedRange(valuesOnly={valuesOnly})") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/visible_view/visible_view.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/visible_view/visible_view.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..0640974538 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/visible_view/visible_view_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/worksheet/worksheet.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/worksheet/worksheet.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..0b40b31724 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/total_row_range/worksheet/worksheet_request_builder.rb @@ -0,0 +1,128 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module Item + module TotalRowRange + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/workbook_table_column_item_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/workbook_table_column_item_request_builder.rb index 5ad26c2633..bf0ea645eb 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/workbook_table_column_item_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/workbook_table_column_item_request_builder.rb @@ -67,10 +67,10 @@ def total_row_range() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}{?%24expand,%24select}") end ## - ## Deletes the column from the table. + ## Delete navigation property columns for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -79,12 +79,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of tablecolumn object. + ## The list of all the columns in the table. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_column ## @@ -93,12 +92,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableColumn.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of tablecolumn object. + ## Update the navigation property columns in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_column @@ -109,46 +107,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableColumn.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Deletes the column from the table. + ## Delete navigation property columns for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of tablecolumn object. + ## The list of all the columns in the table. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of tablecolumn object. + ## Update the navigation property columns in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -156,20 +154,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a workbook_table_column_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorkbookTableColumnItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of tablecolumn object. + # The list of all the columns in the table. Read-only. class WorkbookTableColumnItemRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/data_body_range/data_body_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/data_body_range/data_body_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/data_body_range/data_body_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/data_body_range/data_body_range_request_builder.rb new file mode 100644 index 0000000000..5ef64f4a8a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/data_body_range/data_body_range_request_builder.rb @@ -0,0 +1,96 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../item' +require_relative '../../../../../../../../../items' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../workbook' +require_relative '../../../../../../worksheets' +require_relative '../../../../../item' +require_relative '../../../../tables' +require_relative '../../../item' +require_relative '../../columns' +require_relative '../item_at_with_index' +require_relative './data_body_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module ItemAtWithIndex + module DataBodyRange + ## + # Provides operations to call the dataBodyRange method. + class DataBodyRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DataBodyRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/dataBodyRange()") + end + ## + ## Gets the range object associated with the data body of the column. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Gets the range object associated with the data body of the column. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a data_body_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DataBodyRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/filter/filter.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/filter/filter.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/filter/filter_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/filter/filter_request_builder.rb new file mode 100644 index 0000000000..d0e559a11c --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/filter/filter_request_builder.rb @@ -0,0 +1,190 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../models/workbook_filter' +require_relative '../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../item' +require_relative '../../../../../../../../../items' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../workbook' +require_relative '../../../../../../worksheets' +require_relative '../../../../../item' +require_relative '../../../../tables' +require_relative '../../../item' +require_relative '../../columns' +require_relative '../item_at_with_index' +require_relative './filter' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module ItemAtWithIndex + module Filter + ## + # Provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. + class FilterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FilterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/filter{?%24expand,%24select}") + end + ## + ## Delete navigation property filter for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The filter applied to the column. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_filter + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFilter.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property filter in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_filter + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookFilter.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property filter for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The filter applied to the column. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property filter in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a filter_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilterRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The filter applied to the column. Read-only. + class FilterRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/header_row_range/header_row_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/header_row_range/header_row_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/header_row_range/header_row_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/header_row_range/header_row_range_request_builder.rb new file mode 100644 index 0000000000..f931cd1261 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/header_row_range/header_row_range_request_builder.rb @@ -0,0 +1,96 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../item' +require_relative '../../../../../../../../../items' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../workbook' +require_relative '../../../../../../worksheets' +require_relative '../../../../../item' +require_relative '../../../../tables' +require_relative '../../../item' +require_relative '../../columns' +require_relative '../item_at_with_index' +require_relative './header_row_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module ItemAtWithIndex + module HeaderRowRange + ## + # Provides operations to call the headerRowRange method. + class HeaderRowRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new HeaderRowRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/headerRowRange()") + end + ## + ## Gets the range object associated with the header row of the column. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Gets the range object associated with the header row of the column. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a header_row_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HeaderRowRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/item_at_with_index_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/item_at_with_index_request_builder.rb index b70bf2ff9b..4924745d2c 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/item_at_with_index_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/item_at_with_index_request_builder.rb @@ -12,7 +12,12 @@ require_relative '../../../tables' require_relative '../../item' require_relative '../columns' +require_relative './data_body_range/data_body_range_request_builder' +require_relative './filter/filter_request_builder' +require_relative './header_row_range/header_row_range_request_builder' require_relative './item_at_with_index' +require_relative './range/range_request_builder' +require_relative './total_row_range/total_row_range_request_builder' module MicrosoftGraph module Drives @@ -30,6 +35,31 @@ module ItemAtWithIndex # Provides operations to call the itemAt method. class ItemAtWithIndexRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the dataBodyRange method. + def data_body_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::ItemAtWithIndex::DataBodyRange::DataBodyRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. + def filter() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::ItemAtWithIndex::Filter::FilterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the headerRowRange method. + def header_row_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::ItemAtWithIndex::HeaderRowRange::HeaderRowRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the range method. + def range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::ItemAtWithIndex::Range::RangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the totalRowRange method. + def total_row_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Columns::ItemAtWithIndex::TotalRowRange::TotalRowRangeRequestBuilder.new(@path_parameters, @request_adapter) + end ## ## Instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. ## @param index Usage: index={index} @@ -41,7 +71,7 @@ def initialize(path_parameters, request_adapter, index=nil) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})") end ## - ## Invoke function itemAt + ## Gets a column based on its position in the collection. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_column ## @@ -50,27 +80,35 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableColumn.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function itemAt + ## Gets a column based on its position in the collection. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a item_at_with_index_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemAtWithIndexRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/range/range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/range/range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/range/range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/range/range_request_builder.rb new file mode 100644 index 0000000000..f7c3cfb0fa --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/range/range_request_builder.rb @@ -0,0 +1,96 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../item' +require_relative '../../../../../../../../../items' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../workbook' +require_relative '../../../../../../worksheets' +require_relative '../../../../../item' +require_relative '../../../../tables' +require_relative '../../../item' +require_relative '../../columns' +require_relative '../item_at_with_index' +require_relative './range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module ItemAtWithIndex + module Range + ## + # Provides operations to call the range method. + class RangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/range()") + end + ## + ## Gets the range object associated with the entire column. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Gets the range object associated with the entire column. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/total_row_range/total_row_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/total_row_range/total_row_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/total_row_range/total_row_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/total_row_range/total_row_range_request_builder.rb new file mode 100644 index 0000000000..0b7dff3c39 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item_at_with_index/total_row_range/total_row_range_request_builder.rb @@ -0,0 +1,96 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../item' +require_relative '../../../../../../../../../items' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../workbook' +require_relative '../../../../../../worksheets' +require_relative '../../../../../item' +require_relative '../../../../tables' +require_relative '../../../item' +require_relative '../../columns' +require_relative '../item_at_with_index' +require_relative './total_row_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Columns + module ItemAtWithIndex + module TotalRowRange + ## + # Provides operations to call the totalRowRange method. + class TotalRowRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new TotalRowRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/totalRowRange()") + end + ## + ## Gets the range object associated with the totals row of the column. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Gets the range object associated with the totals row of the column. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a total_row_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TotalRowRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/convert_to_range/convert_to_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/convert_to_range/convert_to_range_request_builder.rb index 2958d2e18f..648ccd14a4 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/convert_to_range/convert_to_range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/convert_to_range/convert_to_range_request_builder.rb @@ -47,8 +47,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,16 +57,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a convert_to_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConvertToRangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..44e64af33d --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/cell_with_row_with_column/cell_with_row_with_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/cell_with_row_with_column/cell_with_row_with_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..afdc7df432 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/clear/clear.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..ae1327b1e6 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/clear/clear_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/clear/clear_request_builder.rb new file mode 100644 index 0000000000..91d22dd229 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/clear/clear_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/column_with_column/column_with_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/column_with_column/column_with_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..051f40cab0 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/columns_after/columns_after.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/columns_after/columns_after.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..4294392d29 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/columns_after/columns_after_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/columns_after_with_count/columns_after_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/columns_after_with_count/columns_after_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..f9f541b0fc --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/columns_before/columns_before.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/columns_before/columns_before.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..61b56518da --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/columns_before/columns_before_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/columns_before_with_count/columns_before_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/columns_before_with_count/columns_before_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..72f51b3a6d --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/data_body_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/data_body_range_request_builder.rb index 1c2e53be36..77e2563cc7 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/data_body_range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/data_body_range_request_builder.rb @@ -11,7 +11,38 @@ require_relative '../../../item' require_relative '../../tables' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' require_relative './data_body_range' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' +require_relative './unmerge/unmerge_request_builder' +require_relative './used_range/used_range_request_builder' +require_relative './used_range_with_values_only/used_range_with_values_only_request_builder' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -28,6 +59,148 @@ module DataBodyRange # Provides operations to call the dataBodyRange method. class DataBodyRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::DataBodyRange::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::DataBodyRange::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::DataBodyRange::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::DataBodyRange::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::DataBodyRange::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::DataBodyRange::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::DataBodyRange::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::DataBodyRange::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::DataBodyRange::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::DataBodyRange::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::DataBodyRange::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::DataBodyRange::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::DataBodyRange::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::DataBodyRange::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::DataBodyRange::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::DataBodyRange::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the usedRange method. + def used_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::DataBodyRange::UsedRange::UsedRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::DataBodyRange::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::DataBodyRange::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new DataBodyRangeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -47,27 +220,102 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Gets the range object associated with the data body of the table. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Provides operations to call the usedRange method. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a used_range_with_values_only_request_builder + ## + def used_range_with_values_only(values_only) + raise StandardError, 'values_only cannot be null' if values_only.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a data_body_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DataBodyRangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/delete/delete.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..361f3d357d --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/delete/delete_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/delete/delete_request_builder.rb new file mode 100644 index 0000000000..94b0e9758a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/delete/delete_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/entire_column/entire_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/entire_column/entire_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..4ba07d5ea1 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/entire_column/entire_column_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/entire_row/entire_row.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/entire_row/entire_row.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..216b417659 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/entire_row/entire_row_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/format/format.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/format/format.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/format/format_request_builder.rb new file mode 100644 index 0000000000..4e29fc4ecc --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/format/format_request_builder.rb @@ -0,0 +1,187 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/insert/insert.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..2d6892119a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/insert/insert_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/insert/insert_request_builder.rb new file mode 100644 index 0000000000..721d5b39c7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/insert/insert_request_builder.rb @@ -0,0 +1,98 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/intersection_with_another_range/intersection_with_another_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/intersection_with_another_range/intersection_with_another_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..5d371f975c --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/last_cell/last_cell.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/last_cell/last_cell.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..665566317c --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/last_cell/last_cell_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/last_column/last_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/last_column/last_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..4d4ac2ccd4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/last_column/last_column_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/last_row/last_row.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/last_row/last_row.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..eb40b2a53a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/last_row/last_row_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/merge/merge.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..7497323004 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/merge/merge_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/merge/merge_request_builder.rb new file mode 100644 index 0000000000..4a3d076f50 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/merge/merge_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..015935a01b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..d5ada32317 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/row_with_row/row_with_row.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/row_with_row/row_with_row.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..4bf3648830 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/rows_above/rows_above.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/rows_above/rows_above.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..c70c82736c --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/rows_above/rows_above_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/rows_above_with_count/rows_above_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/rows_above_with_count/rows_above_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..5fd5c2e366 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/rows_below/rows_below.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/rows_below/rows_below.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..2e72833eba --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/rows_below/rows_below_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/rows_below_with_count/rows_below_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/rows_below_with_count/rows_below_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..f8068e87fb --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/sort/sort.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/sort/sort.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/sort/sort_request_builder.rb new file mode 100644 index 0000000000..7be6282a2f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/sort/sort_request_builder.rb @@ -0,0 +1,187 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/unmerge/unmerge.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/unmerge/unmerge.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..757feb6a4b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/unmerge/unmerge_request_builder.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/used_range/used_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/used_range/used_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/used_range/used_range_request_builder.rb new file mode 100644 index 0000000000..308c32d894 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/used_range/used_range_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './used_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module UsedRange + ## + # Provides operations to call the usedRange method. + class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/usedRange()") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/used_range_with_values_only/used_range_with_values_only.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/used_range_with_values_only/used_range_with_values_only.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb new file mode 100644 index 0000000000..072a383705 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './used_range_with_values_only' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module UsedRangeWithValuesOnly + ## + # Provides operations to call the usedRange method. + class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a void + ## + def initialize(path_parameters, request_adapter, values_only=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/usedRange(valuesOnly={valuesOnly})") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/visible_view/visible_view.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/visible_view/visible_view.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..2c42f1344a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/visible_view/visible_view_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/worksheet/worksheet.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/worksheet/worksheet.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..18e6c4a6ac --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/data_body_range/worksheet/worksheet_request_builder.rb @@ -0,0 +1,122 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../data_body_range' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module DataBodyRange + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..fdba3abbd9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/cell_with_row_with_column/cell_with_row_with_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/cell_with_row_with_column/cell_with_row_with_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..948590b0d0 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/clear/clear.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..144b41e8d9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/clear/clear_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/clear/clear_request_builder.rb new file mode 100644 index 0000000000..37942a5e4f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/clear/clear_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/column_with_column/column_with_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/column_with_column/column_with_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..49e3547179 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/columns_after/columns_after.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/columns_after/columns_after.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..a2645b8916 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/columns_after/columns_after_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/columns_after_with_count/columns_after_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/columns_after_with_count/columns_after_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..f760d92756 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/columns_before/columns_before.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/columns_before/columns_before.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..53916010da --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/columns_before/columns_before_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/columns_before_with_count/columns_before_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/columns_before_with_count/columns_before_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..5fb1db4acb --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/delete/delete.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..18c878f245 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/delete/delete_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/delete/delete_request_builder.rb new file mode 100644 index 0000000000..f746849c7d --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/delete/delete_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/entire_column/entire_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/entire_column/entire_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..748db503f5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/entire_column/entire_column_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/entire_row/entire_row.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/entire_row/entire_row.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..945918c8dc --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/entire_row/entire_row_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/format/format.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/format/format.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/format/format_request_builder.rb new file mode 100644 index 0000000000..f0242ed0a4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/format/format_request_builder.rb @@ -0,0 +1,187 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/header_row_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/header_row_range_request_builder.rb index 555462c4c2..926e7806b2 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/header_row_range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/header_row_range_request_builder.rb @@ -11,7 +11,38 @@ require_relative '../../../item' require_relative '../../tables' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' require_relative './header_row_range' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' +require_relative './unmerge/unmerge_request_builder' +require_relative './used_range/used_range_request_builder' +require_relative './used_range_with_values_only/used_range_with_values_only_request_builder' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -28,6 +59,148 @@ module HeaderRowRange # Provides operations to call the headerRowRange method. class HeaderRowRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::HeaderRowRange::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::HeaderRowRange::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::HeaderRowRange::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::HeaderRowRange::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::HeaderRowRange::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::HeaderRowRange::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::HeaderRowRange::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::HeaderRowRange::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::HeaderRowRange::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::HeaderRowRange::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::HeaderRowRange::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::HeaderRowRange::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::HeaderRowRange::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::HeaderRowRange::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::HeaderRowRange::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::HeaderRowRange::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the usedRange method. + def used_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::HeaderRowRange::UsedRange::UsedRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::HeaderRowRange::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::HeaderRowRange::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new HeaderRowRangeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -47,27 +220,102 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Gets the range object associated with header row of the table. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Provides operations to call the usedRange method. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a used_range_with_values_only_request_builder + ## + def used_range_with_values_only(values_only) + raise StandardError, 'values_only cannot be null' if values_only.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a header_row_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HeaderRowRangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/insert/insert.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..668f2d8e1e --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/insert/insert_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/insert/insert_request_builder.rb new file mode 100644 index 0000000000..a6690bd1c3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/insert/insert_request_builder.rb @@ -0,0 +1,98 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/intersection_with_another_range/intersection_with_another_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/intersection_with_another_range/intersection_with_another_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..b9557e61a9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/last_cell/last_cell.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/last_cell/last_cell.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..40c6b77b9f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/last_cell/last_cell_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/last_column/last_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/last_column/last_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..8aad6ccca9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/last_column/last_column_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/last_row/last_row.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/last_row/last_row.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..68d23a12b7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/last_row/last_row_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/merge/merge.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..7d90ec7cbe --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/merge/merge_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/merge/merge_request_builder.rb new file mode 100644 index 0000000000..5def447e91 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/merge/merge_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..2991ba9af8 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..c9e0598fd9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/row_with_row/row_with_row.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/row_with_row/row_with_row.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..501d4b7f67 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/rows_above/rows_above.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/rows_above/rows_above.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..fb9f0bacf9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/rows_above/rows_above_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/rows_above_with_count/rows_above_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/rows_above_with_count/rows_above_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..25f2c007b7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/rows_below/rows_below.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/rows_below/rows_below.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..d3789efa62 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/rows_below/rows_below_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/rows_below_with_count/rows_below_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/rows_below_with_count/rows_below_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..953288edb0 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/sort/sort.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/sort/sort.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/sort/sort_request_builder.rb new file mode 100644 index 0000000000..4a0eaff6fb --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/sort/sort_request_builder.rb @@ -0,0 +1,187 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/unmerge/unmerge.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/unmerge/unmerge.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..f023c62772 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/unmerge/unmerge_request_builder.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/used_range/used_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/used_range/used_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/used_range/used_range_request_builder.rb new file mode 100644 index 0000000000..c45346bdd7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/used_range/used_range_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './used_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module UsedRange + ## + # Provides operations to call the usedRange method. + class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/usedRange()") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/used_range_with_values_only/used_range_with_values_only.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/used_range_with_values_only/used_range_with_values_only.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb new file mode 100644 index 0000000000..7133b09b3b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './used_range_with_values_only' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module UsedRangeWithValuesOnly + ## + # Provides operations to call the usedRange method. + class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a void + ## + def initialize(path_parameters, request_adapter, values_only=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/usedRange(valuesOnly={valuesOnly})") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/visible_view/visible_view.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/visible_view/visible_view.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..9f0b551699 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/visible_view/visible_view_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/worksheet/worksheet.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/worksheet/worksheet.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..f565caa01e --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/header_row_range/worksheet/worksheet_request_builder.rb @@ -0,0 +1,122 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../header_row_range' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module HeaderRowRange + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..a34e364e20 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/cell_with_row_with_column/cell_with_row_with_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/cell_with_row_with_column/cell_with_row_with_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..a220099cc3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/clear/clear.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..00b8a1d189 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/clear/clear_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/clear/clear_request_builder.rb new file mode 100644 index 0000000000..2408d6b68c --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/clear/clear_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/column_with_column/column_with_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/column_with_column/column_with_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..2aebb53cbf --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/columns_after/columns_after.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/columns_after/columns_after.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..d50a09d930 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/columns_after/columns_after_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/columns_after_with_count/columns_after_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/columns_after_with_count/columns_after_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..2daf52b13b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/columns_before/columns_before.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/columns_before/columns_before.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..6a877bcd40 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/columns_before/columns_before_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/columns_before_with_count/columns_before_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/columns_before_with_count/columns_before_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..be8d6e7bdc --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/delete/delete.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..09f11de7ad --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/delete/delete_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/delete/delete_request_builder.rb new file mode 100644 index 0000000000..c3f758d028 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/delete/delete_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/entire_column/entire_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/entire_column/entire_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..1c3a09c494 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/entire_column/entire_column_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/entire_row/entire_row.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/entire_row/entire_row.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..4b62b0e0f7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/entire_row/entire_row_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/format/format.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/format/format.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/format/format_request_builder.rb new file mode 100644 index 0000000000..647a3b2887 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/format/format_request_builder.rb @@ -0,0 +1,187 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/insert/insert.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..87829b579b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/insert/insert_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/insert/insert_request_builder.rb new file mode 100644 index 0000000000..af8d1185b0 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/insert/insert_request_builder.rb @@ -0,0 +1,98 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/intersection_with_another_range/intersection_with_another_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/intersection_with_another_range/intersection_with_another_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..553b35599b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/last_cell/last_cell.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/last_cell/last_cell.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..ac7e50671f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/last_cell/last_cell_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/last_column/last_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/last_column/last_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..f005f03e16 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/last_column/last_column_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/last_row/last_row.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/last_row/last_row.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..ecb15a6ddf --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/last_row/last_row_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/merge/merge.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..729c7a6fd6 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/merge/merge_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/merge/merge_request_builder.rb new file mode 100644 index 0000000000..ecd1c36c2f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/merge/merge_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..0336460259 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/range_request_builder.rb index df289b4fa1..7afd8f85dc 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/range_request_builder.rb @@ -11,7 +11,38 @@ require_relative '../../../item' require_relative '../../tables' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' require_relative './range' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' +require_relative './unmerge/unmerge_request_builder' +require_relative './used_range/used_range_request_builder' +require_relative './used_range_with_values_only/used_range_with_values_only_request_builder' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -28,6 +59,148 @@ module Range # Provides operations to call the range method. class RangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Range::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Range::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Range::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Range::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Range::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Range::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Range::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Range::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Range::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Range::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Range::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Range::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Range::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Range::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Range::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Range::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the usedRange method. + def used_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Range::UsedRange::UsedRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Range::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Range::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new RangeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -47,27 +220,102 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Get the range object associated with the entire table. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Provides operations to call the usedRange method. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a used_range_with_values_only_request_builder + ## + def used_range_with_values_only(values_only) + raise StandardError, 'values_only cannot be null' if values_only.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..117c31f87f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/row_with_row/row_with_row.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/row_with_row/row_with_row.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..f6d581efcc --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/rows_above/rows_above.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/rows_above/rows_above.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..6924f88ce1 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/rows_above/rows_above_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/rows_above_with_count/rows_above_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/rows_above_with_count/rows_above_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..82ccacddbb --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/rows_below/rows_below.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/rows_below/rows_below.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..45c67dea04 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/rows_below/rows_below_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/rows_below_with_count/rows_below_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/rows_below_with_count/rows_below_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..4a50367762 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/sort/sort.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/sort/sort.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/sort/sort_request_builder.rb new file mode 100644 index 0000000000..c4cfa1467b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/sort/sort_request_builder.rb @@ -0,0 +1,187 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/unmerge/unmerge.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/unmerge/unmerge.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..484e67148d --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/unmerge/unmerge_request_builder.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/used_range/used_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/used_range/used_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/used_range/used_range_request_builder.rb new file mode 100644 index 0000000000..2f8672da90 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/used_range/used_range_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './used_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module UsedRange + ## + # Provides operations to call the usedRange method. + class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/usedRange()") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/used_range_with_values_only/used_range_with_values_only.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/used_range_with_values_only/used_range_with_values_only.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb new file mode 100644 index 0000000000..462c65f89f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './used_range_with_values_only' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module UsedRangeWithValuesOnly + ## + # Provides operations to call the usedRange method. + class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a void + ## + def initialize(path_parameters, request_adapter, values_only=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/usedRange(valuesOnly={valuesOnly})") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/visible_view/visible_view.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/visible_view/visible_view.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..eeaf5b1857 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/visible_view/visible_view_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/worksheet/worksheet.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/worksheet/worksheet.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..8a52ed03eb --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/range/worksheet/worksheet_request_builder.rb @@ -0,0 +1,122 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../range' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Range + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/reapply_filters/reapply_filters_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/reapply_filters/reapply_filters_request_builder.rb index 992bb8d98e..6407d3e0a1 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/reapply_filters/reapply_filters_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/reapply_filters/reapply_filters_request_builder.rb @@ -46,8 +46,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,15 +56,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reapply_filters_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReapplyFiltersRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/add/add_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/add/add_post_request_body.rb index d0c5da2e32..7aae1c6666 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/add/add_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/add/add_post_request_body.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../../../../models/json' require_relative '../../../../../../../../../../drives' require_relative '../../../../../../../../../item' require_relative '../../../../../../../../items' @@ -34,25 +33,22 @@ class AddPostRequestBody # The index property @index ## - # The values property - @values - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new addPostRequestBody and sets the default values. + ## Instantiates a new AddPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -74,7 +70,6 @@ def self.create_from_discriminator_value(parse_node) def get_field_deserializers() return { "index" => lambda {|n| @index = n.get_number_value() }, - "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end ## @@ -100,24 +95,8 @@ def index=(value) def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_number_value("index", @index) - writer.write_object_value("values", @values) writer.write_additional_data(@additional_data) end - ## - ## Gets the values property value. The values property - ## @return a json - ## - def values - return @values - end - ## - ## Sets the values property value. The values property - ## @param value Value to set for the values property. - ## @return a void - ## - def values=(value) - @values = value - end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/add/add_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/add/add_request_builder.rb index 85fdd99dc5..6093c2d415 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/add/add_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/add/add_request_builder.rb @@ -51,8 +51,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableRow.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/count/count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/count/count.rb index 4f3a94e631..0dc4499e3a 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/count/count.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/count/count.rb @@ -1 +1 @@ -require_relative 'count_response' +require_relative 'count_get_response' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/count/count_get_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/count/count_get_response.rb new file mode 100644 index 0000000000..3d605bbde2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/count/count_get_response.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../rows' +require_relative './count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Count + class CountGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new CountGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a count_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CountGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_number_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_number_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a integer + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/count/count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/count/count_request_builder.rb index 500dc9b720..0850ab130f 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/count/count_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/count/count_request_builder.rb @@ -41,16 +41,15 @@ def initialize(path_parameters, request_adapter) ## ## Invoke function count ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of count_response + ## @return a Fiber of count_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Rows::Count::CountResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Rows::Count::CountGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function count @@ -59,16 +58,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/count/count_response.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/count/count_response.rb deleted file mode 100644 index 8e224a24cd..0000000000 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/count/count_response.rb +++ /dev/null @@ -1,112 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../../../drives' -require_relative '../../../../../../../../../item' -require_relative '../../../../../../../../items' -require_relative '../../../../../../../item' -require_relative '../../../../../../workbook' -require_relative '../../../../../worksheets' -require_relative '../../../../item' -require_relative '../../../tables' -require_relative '../../item' -require_relative '../rows' -require_relative './count' - -module MicrosoftGraph - module Drives - module Item - module Items - module Item - module Workbook - module Worksheets - module Item - module Tables - module Item - module Rows - module Count - class CountResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new countResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a count_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CountResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_number_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_number_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a integer - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end - end - end - end - end -end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..de778ce4f2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/cell_with_row_with_column/cell_with_row_with_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/cell_with_row_with_column/cell_with_row_with_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..3754536e50 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,101 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/clear/clear.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..2c7e63b9f4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/clear/clear_post_request_body.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/clear/clear_request_builder.rb new file mode 100644 index 0000000000..4f26e36b05 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/clear/clear_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/column_with_column/column_with_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/column_with_column/column_with_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..48ca576bed --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/columns_after/columns_after.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/columns_after/columns_after.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..61a1dcec00 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/columns_after/columns_after_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/columns_after_with_count/columns_after_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/columns_after_with_count/columns_after_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..ce19511746 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/columns_before/columns_before.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/columns_before/columns_before.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..b175c6995b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/columns_before/columns_before_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/columns_before_with_count/columns_before_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/columns_before_with_count/columns_before_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..6597da0034 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/delete/delete.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..c4c6d70dab --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/delete/delete_post_request_body.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/delete/delete_request_builder.rb new file mode 100644 index 0000000000..dcc4e98d75 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/delete/delete_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/entire_column/entire_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/entire_column/entire_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..3131697b64 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/entire_column/entire_column_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/entire_row/entire_row.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/entire_row/entire_row.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..96d0d8eab9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/entire_row/entire_row_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/format/format.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/format/format.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/format/format_request_builder.rb new file mode 100644 index 0000000000..1b507a0f3f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/format/format_request_builder.rb @@ -0,0 +1,193 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/insert/insert.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..9f3e066ae7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/insert/insert_post_request_body.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/insert/insert_request_builder.rb new file mode 100644 index 0000000000..54c88d52aa --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/insert/insert_request_builder.rb @@ -0,0 +1,104 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/intersection_with_another_range/intersection_with_another_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/intersection_with_another_range/intersection_with_another_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..52d3380736 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/last_cell/last_cell.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/last_cell/last_cell.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..afad3bfbaa --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/last_cell/last_cell_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/last_column/last_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/last_column/last_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..d7a41394db --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/last_column/last_column_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/last_row/last_row.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/last_row/last_row.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..fe1b02af4f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/last_row/last_row_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/merge/merge.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..c279ce8533 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/merge/merge_post_request_body.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/merge/merge_request_builder.rb new file mode 100644 index 0000000000..f231628987 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/merge/merge_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..1d02aec5a3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,101 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/range_request_builder.rb index f44754a988..d0169e1813 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/range_request_builder.rb @@ -13,7 +13,38 @@ require_relative '../../../item' require_relative '../../rows' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' require_relative './range' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' +require_relative './unmerge/unmerge_request_builder' +require_relative './used_range/used_range_request_builder' +require_relative './used_range_with_values_only/used_range_with_values_only_request_builder' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -32,6 +63,148 @@ module Range # Provides operations to call the range method. class RangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Rows::Item::Range::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Rows::Item::Range::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Rows::Item::Range::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Rows::Item::Range::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Rows::Item::Range::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Rows::Item::Range::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Rows::Item::Range::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Rows::Item::Range::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Rows::Item::Range::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Rows::Item::Range::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Rows::Item::Range::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Rows::Item::Range::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Rows::Item::Range::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Rows::Item::Range::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Rows::Item::Range::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Rows::Item::Range::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the usedRange method. + def used_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Rows::Item::Range::UsedRange::UsedRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Rows::Item::Range::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Rows::Item::Range::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new RangeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -51,27 +224,102 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Invoke function range ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Provides operations to call the usedRange method. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a used_range_with_values_only_request_builder + ## + def used_range_with_values_only(values_only) + raise StandardError, 'values_only cannot be null' if values_only.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..50bfd86aa7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,101 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/row_with_row/row_with_row.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/row_with_row/row_with_row.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..4dec18630b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/rows_above/rows_above.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/rows_above/rows_above.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..59982f4ee3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/rows_above/rows_above_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/rows_above_with_count/rows_above_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/rows_above_with_count/rows_above_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..3a9ab5c801 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/rows_below/rows_below.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/rows_below/rows_below.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..f25eab0544 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/rows_below/rows_below_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/rows_below_with_count/rows_below_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/rows_below_with_count/rows_below_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..70093a8cef --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/sort/sort.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/sort/sort.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/sort/sort_request_builder.rb new file mode 100644 index 0000000000..6628239db1 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/sort/sort_request_builder.rb @@ -0,0 +1,193 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/unmerge/unmerge.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/unmerge/unmerge.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..090827a410 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/unmerge/unmerge_request_builder.rb @@ -0,0 +1,98 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/used_range/used_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/used_range/used_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/used_range/used_range_request_builder.rb new file mode 100644 index 0000000000..be6b9f1587 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/used_range/used_range_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './used_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module UsedRange + ## + # Provides operations to call the usedRange method. + class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/usedRange()") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/used_range_with_values_only/used_range_with_values_only.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/used_range_with_values_only/used_range_with_values_only.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb new file mode 100644 index 0000000000..44a8a021b8 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './used_range_with_values_only' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module UsedRangeWithValuesOnly + ## + # Provides operations to call the usedRange method. + class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a void + ## + def initialize(path_parameters, request_adapter, values_only=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/usedRange(valuesOnly={valuesOnly})") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/visible_view/visible_view.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/visible_view/visible_view.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..82afb4a743 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/visible_view/visible_view_request_builder.rb @@ -0,0 +1,99 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/worksheet/worksheet.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/worksheet/worksheet.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..a404fcc80f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/worksheet/worksheet_request_builder.rb @@ -0,0 +1,128 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../items' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../workbook' +require_relative '../../../../../../../worksheets' +require_relative '../../../../../../item' +require_relative '../../../../../tables' +require_relative '../../../../item' +require_relative '../../../rows' +require_relative '../../item' +require_relative '../range' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module Item + module Range + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/workbook_table_row_item_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/workbook_table_row_item_request_builder.rb index 17cc71d7a8..521e79ddde 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/workbook_table_row_item_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/workbook_table_row_item_request_builder.rb @@ -43,10 +43,10 @@ def range() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}{?%24expand,%24select}") end ## - ## Deletes the row from the table. + ## Delete navigation property rows for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -55,12 +55,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of tablerow object. + ## The list of all the rows in the table. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_row ## @@ -69,12 +68,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableRow.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of tablerow object. + ## Update the navigation property rows in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_row @@ -85,46 +83,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableRow.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Deletes the row from the table. + ## Delete navigation property rows for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of tablerow object. + ## The list of all the rows in the table. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of tablerow object. + ## Update the navigation property rows in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -132,20 +130,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a workbook_table_row_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorkbookTableRowItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of tablerow object. + # The list of all the rows in the table. Read-only. class WorkbookTableRowItemRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item_at_with_index/item_at_with_index_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item_at_with_index/item_at_with_index_request_builder.rb index 4843556987..2a4a3b7e3a 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item_at_with_index/item_at_with_index_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item_at_with_index/item_at_with_index_request_builder.rb @@ -13,6 +13,7 @@ require_relative '../../item' require_relative '../rows' require_relative './item_at_with_index' +require_relative './range/range_request_builder' module MicrosoftGraph module Drives @@ -30,6 +31,11 @@ module ItemAtWithIndex # Provides operations to call the itemAt method. class ItemAtWithIndexRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the range method. + def range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::Rows::ItemAtWithIndex::Range::RangeRequestBuilder.new(@path_parameters, @request_adapter) + end ## ## Instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. ## @param index Usage: index={index} @@ -41,7 +47,7 @@ def initialize(path_parameters, request_adapter, index=nil) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/itemAt(index={index})") end ## - ## Invoke function itemAt + ## Gets a row based on its position in the collection. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_row ## @@ -50,27 +56,35 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableRow.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function itemAt + ## Gets a row based on its position in the collection. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a item_at_with_index_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemAtWithIndexRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item_at_with_index/range/range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item_at_with_index/range/range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item_at_with_index/range/range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item_at_with_index/range/range_request_builder.rb new file mode 100644 index 0000000000..604c878d22 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item_at_with_index/range/range_request_builder.rb @@ -0,0 +1,96 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../../drives' +require_relative '../../../../../../../../../../item' +require_relative '../../../../../../../../../items' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../workbook' +require_relative '../../../../../../worksheets' +require_relative '../../../../../item' +require_relative '../../../../tables' +require_relative '../../../item' +require_relative '../../rows' +require_relative '../item_at_with_index' +require_relative './range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module Rows + module ItemAtWithIndex + module Range + ## + # Provides operations to call the range method. + class RangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/itemAt(index={index})/range()") + end + ## + ## Invoke function range + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function range + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/rows_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/rows_request_builder.rb index 4e154f9a31..2e66cc1465 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/rows_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/rows/rows_request_builder.rb @@ -61,10 +61,10 @@ def by_workbook_table_row_id(workbook_table_row_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of tablerow objects. + ## The list of all the rows in the table. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_row_collection_response ## @@ -73,8 +73,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableRowCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,7 +86,7 @@ def item_at_with_index(index) return ItemAtWithIndexRequestBuilder.new(@path_parameters, @request_adapter, index) end ## - ## Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the request. + ## Create new navigation property to rows for drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_row @@ -98,30 +97,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableRow.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of tablerow objects. + ## The list of all the rows in the table. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the request. + ## Create new navigation property to rows for drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -129,20 +127,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of tablerow objects. + # The list of all the rows in the table. Read-only. class RowsRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/sort/apply/apply_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/sort/apply/apply_post_request_body.rb index a1a3b9a8a2..e0ff1f3d05 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/sort/apply/apply_post_request_body.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/sort/apply/apply_post_request_body.rb @@ -40,22 +40,22 @@ class ApplyPostRequestBody # The method property @method ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new applyPostRequestBody and sets the default values. + ## Instantiates a new ApplyPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/sort/apply/apply_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/sort/apply/apply_request_builder.rb index 69573fc710..52c6e25877 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/sort/apply/apply_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/sort/apply/apply_request_builder.rb @@ -50,8 +50,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,16 +62,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/sort/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/sort/clear/clear_request_builder.rb index 5735b0b03b..e6581b9edc 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/sort/clear/clear_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/sort/clear/clear_request_builder.rb @@ -48,8 +48,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,15 +58,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/sort/reapply/reapply_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/sort/reapply/reapply_request_builder.rb index 5733931ed2..73e2d09442 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/sort/reapply/reapply_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/sort/reapply/reapply_request_builder.rb @@ -48,8 +48,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,15 +58,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reapply_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReapplyRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/sort/sort_request_builder.rb index dd4daf65c5..743c0c23b8 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/sort/sort_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/sort/sort_request_builder.rb @@ -53,7 +53,7 @@ def reapply() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort{?%24expand,%24select}") end ## ## Delete navigation property sort for drives @@ -65,12 +65,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of tablesort object. + ## The sorting for the table. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_sort ## @@ -79,8 +78,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableSort.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -95,8 +93,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableSort.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -106,31 +103,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of tablesort object. + ## The sorting for the table. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -142,20 +140,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of tablesort object. + # The sorting for the table. Read-only. class SortRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..1d86037d8a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/cell_with_row_with_column/cell_with_row_with_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/cell_with_row_with_column/cell_with_row_with_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..25204fd028 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/clear/clear.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..84833eacf0 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/clear/clear_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/clear/clear_request_builder.rb new file mode 100644 index 0000000000..047768c5e5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/clear/clear_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/column_with_column/column_with_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/column_with_column/column_with_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..b532af8abf --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/columns_after/columns_after.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/columns_after/columns_after.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..b314c00ab4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/columns_after/columns_after_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/columns_after_with_count/columns_after_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/columns_after_with_count/columns_after_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..98fbd1bcb7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/columns_before/columns_before.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/columns_before/columns_before.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..835d6f6fcf --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/columns_before/columns_before_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/columns_before_with_count/columns_before_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/columns_before_with_count/columns_before_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..9512fb8f3e --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/delete/delete.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..3b02167ff2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/delete/delete_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/delete/delete_request_builder.rb new file mode 100644 index 0000000000..ef9f142777 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/delete/delete_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/entire_column/entire_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/entire_column/entire_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..0628db88ba --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/entire_column/entire_column_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/entire_row/entire_row.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/entire_row/entire_row.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..613f4091dd --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/entire_row/entire_row_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/format/format.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/format/format.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/format/format_request_builder.rb new file mode 100644 index 0000000000..6b5d983da2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/format/format_request_builder.rb @@ -0,0 +1,187 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/insert/insert.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..6b2416e889 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/insert/insert_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/insert/insert_request_builder.rb new file mode 100644 index 0000000000..73c278254a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/insert/insert_request_builder.rb @@ -0,0 +1,98 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/intersection_with_another_range/intersection_with_another_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/intersection_with_another_range/intersection_with_another_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..747dc30692 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/last_cell/last_cell.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/last_cell/last_cell.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..5db23c9906 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/last_cell/last_cell_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/last_column/last_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/last_column/last_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..f6d7f8bcd8 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/last_column/last_column_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/last_row/last_row.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/last_row/last_row.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..e0aa428119 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/last_row/last_row_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/merge/merge.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..d5e2c2a983 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/merge/merge_post_request_body.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/merge/merge_request_builder.rb new file mode 100644 index 0000000000..08f185ac28 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/merge/merge_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..5327b9b2b2 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..dbe400f804 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/row_with_row/row_with_row.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/row_with_row/row_with_row.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..b4abaa0e4a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/rows_above/rows_above.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/rows_above/rows_above.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..66803e415a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/rows_above/rows_above_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/rows_above_with_count/rows_above_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/rows_above_with_count/rows_above_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..eef4d8f142 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/rows_below/rows_below.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/rows_below/rows_below.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..34d340ef5e --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/rows_below/rows_below_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/rows_below_with_count/rows_below_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/rows_below_with_count/rows_below_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..307526c061 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/sort/sort.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/sort/sort.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/sort/sort_request_builder.rb new file mode 100644 index 0000000000..2eb3311fe4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/sort/sort_request_builder.rb @@ -0,0 +1,187 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/total_row_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/total_row_range_request_builder.rb index 76a30d9c91..654a8a4008 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/total_row_range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/total_row_range_request_builder.rb @@ -11,7 +11,38 @@ require_relative '../../../item' require_relative '../../tables' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' require_relative './total_row_range' +require_relative './unmerge/unmerge_request_builder' +require_relative './used_range/used_range_request_builder' +require_relative './used_range_with_values_only/used_range_with_values_only_request_builder' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -28,6 +59,148 @@ module TotalRowRange # Provides operations to call the totalRowRange method. class TotalRowRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::TotalRowRange::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::TotalRowRange::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::TotalRowRange::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::TotalRowRange::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::TotalRowRange::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::TotalRowRange::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::TotalRowRange::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::TotalRowRange::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::TotalRowRange::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::TotalRowRange::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::TotalRowRange::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::TotalRowRange::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::TotalRowRange::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::TotalRowRange::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::TotalRowRange::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::TotalRowRange::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the usedRange method. + def used_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::TotalRowRange::UsedRange::UsedRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::TotalRowRange::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::Item::TotalRowRange::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new TotalRowRangeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -47,27 +220,102 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Gets the range object associated with totals row of the table. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Provides operations to call the usedRange method. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a used_range_with_values_only_request_builder + ## + def used_range_with_values_only(values_only) + raise StandardError, 'values_only cannot be null' if values_only.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a total_row_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TotalRowRangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/unmerge/unmerge.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/unmerge/unmerge.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..dee8931bb9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/unmerge/unmerge_request_builder.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/used_range/used_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/used_range/used_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/used_range/used_range_request_builder.rb new file mode 100644 index 0000000000..b551e77513 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/used_range/used_range_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './used_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module UsedRange + ## + # Provides operations to call the usedRange method. + class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/usedRange()") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/used_range_with_values_only/used_range_with_values_only.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/used_range_with_values_only/used_range_with_values_only.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb new file mode 100644 index 0000000000..21194e9ca6 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './used_range_with_values_only' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module UsedRangeWithValuesOnly + ## + # Provides operations to call the usedRange method. + class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param values_only Usage: valuesOnly={valuesOnly} + ## @return a void + ## + def initialize(path_parameters, request_adapter, values_only=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/usedRange(valuesOnly={valuesOnly})") + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function usedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/visible_view/visible_view.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/visible_view/visible_view.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..19b0ac3f38 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/visible_view/visible_view_request_builder.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/worksheet/worksheet.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/worksheet/worksheet.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..156f23621b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/total_row_range/worksheet/worksheet_request_builder.rb @@ -0,0 +1,122 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../../../drives' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../items' +require_relative '../../../../../../../item' +require_relative '../../../../../../workbook' +require_relative '../../../../../worksheets' +require_relative '../../../../item' +require_relative '../../../tables' +require_relative '../../item' +require_relative '../total_row_range' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module Item + module TotalRowRange + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/workbook_table_item_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/workbook_table_item_request_builder.rb index 675b8669de..3e2f0a44f9 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/workbook_table_item_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/workbook_table_item_request_builder.rb @@ -99,7 +99,7 @@ def worksheet() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}{?%24expand,%24select}") end ## ## Delete navigation property tables for drives @@ -111,12 +111,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Collection of tables that are part of the worksheet. Read-only. + ## The list of tables that are part of the worksheet. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table ## @@ -125,8 +124,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTable.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -141,8 +139,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTable.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -152,31 +149,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Collection of tables that are part of the worksheet. Read-only. + ## The list of tables that are part of the worksheet. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -188,20 +186,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a workbook_table_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorkbookTableItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Collection of tables that are part of the worksheet. Read-only. + # The list of tables that are part of the worksheet. Read-only. class WorkbookTableItemRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/worksheet/worksheet_request_builder.rb index 223dea69ff..04320f3b15 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item/worksheet/worksheet_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item/worksheet/worksheet_request_builder.rb @@ -35,7 +35,7 @@ class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/worksheet{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/worksheet{?%24expand,%24select}") end ## ## The worksheet containing the current table. Read-only. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end ## # The worksheet containing the current table. Read-only. diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/clear_filters/clear_filters.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/clear_filters/clear_filters.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/clear_filters/clear_filters_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/clear_filters/clear_filters_request_builder.rb new file mode 100644 index 0000000000..212659bcf3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/clear_filters/clear_filters_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../tables' +require_relative '../item_at_with_index' +require_relative './clear_filters' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module ItemAtWithIndex + module ClearFilters + ## + # Provides operations to call the clearFilters method. + class ClearFiltersRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearFiltersRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/clearFilters") + end + ## + ## Clears all the filters currently applied on the table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Clears all the filters currently applied on the table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_filters_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearFiltersRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/columns/columns.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/columns/columns.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/columns/columns_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/columns/columns_request_builder.rb new file mode 100644 index 0000000000..e1847108ac --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/columns/columns_request_builder.rb @@ -0,0 +1,185 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_table_column' +require_relative '../../../../../../../../../../models/workbook_table_column_collection_response' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../tables' +require_relative '../item_at_with_index' +require_relative './columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module ItemAtWithIndex + module Columns + ## + # Provides operations to manage the columns property of the microsoft.graph.workbookTable entity. + class ColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of all the columns in the table. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_table_column_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableColumnCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to columns for drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_table_column + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableColumn.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of all the columns in the table. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to columns for drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of all the columns in the table. Read-only. + class ColumnsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/convert_to_range/convert_to_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/convert_to_range/convert_to_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/convert_to_range/convert_to_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/convert_to_range/convert_to_range_request_builder.rb new file mode 100644 index 0000000000..2c36f7288b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/convert_to_range/convert_to_range_request_builder.rb @@ -0,0 +1,90 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../tables' +require_relative '../item_at_with_index' +require_relative './convert_to_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module ItemAtWithIndex + module ConvertToRange + ## + # Provides operations to call the convertToRange method. + class ConvertToRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ConvertToRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/convertToRange") + end + ## + ## Converts the table into a normal range of cells. All data is preserved. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Converts the table into a normal range of cells. All data is preserved. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a convert_to_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConvertToRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/data_body_range/data_body_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/data_body_range/data_body_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/data_body_range/data_body_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/data_body_range/data_body_range_request_builder.rb new file mode 100644 index 0000000000..1def45c226 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/data_body_range/data_body_range_request_builder.rb @@ -0,0 +1,90 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../tables' +require_relative '../item_at_with_index' +require_relative './data_body_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module ItemAtWithIndex + module DataBodyRange + ## + # Provides operations to call the dataBodyRange method. + class DataBodyRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DataBodyRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/dataBodyRange()") + end + ## + ## Gets the range object associated with the data body of the table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Gets the range object associated with the data body of the table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a data_body_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DataBodyRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/header_row_range/header_row_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/header_row_range/header_row_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/header_row_range/header_row_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/header_row_range/header_row_range_request_builder.rb new file mode 100644 index 0000000000..2c9e4f51d3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/header_row_range/header_row_range_request_builder.rb @@ -0,0 +1,90 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../tables' +require_relative '../item_at_with_index' +require_relative './header_row_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module ItemAtWithIndex + module HeaderRowRange + ## + # Provides operations to call the headerRowRange method. + class HeaderRowRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new HeaderRowRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/headerRowRange()") + end + ## + ## Gets the range object associated with header row of the table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Gets the range object associated with header row of the table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a header_row_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HeaderRowRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/item_at_with_index_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/item_at_with_index_request_builder.rb index 9dc41eaa16..f97dc1bafd 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/item_at_with_index_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/item_at_with_index_request_builder.rb @@ -10,7 +10,18 @@ require_relative '../../../worksheets' require_relative '../../item' require_relative '../tables' +require_relative './clear_filters/clear_filters_request_builder' +require_relative './columns/columns_request_builder' +require_relative './convert_to_range/convert_to_range_request_builder' +require_relative './data_body_range/data_body_range_request_builder' +require_relative './header_row_range/header_row_range_request_builder' require_relative './item_at_with_index' +require_relative './range/range_request_builder' +require_relative './reapply_filters/reapply_filters_request_builder' +require_relative './rows/rows_request_builder' +require_relative './sort/sort_request_builder' +require_relative './total_row_range/total_row_range_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -26,6 +37,61 @@ module ItemAtWithIndex # Provides operations to call the itemAt method. class ItemAtWithIndexRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clearFilters method. + def clear_filters() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::ItemAtWithIndex::ClearFilters::ClearFiltersRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the columns property of the microsoft.graph.workbookTable entity. + def columns() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::ItemAtWithIndex::Columns::ColumnsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the convertToRange method. + def convert_to_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::ItemAtWithIndex::ConvertToRange::ConvertToRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the dataBodyRange method. + def data_body_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::ItemAtWithIndex::DataBodyRange::DataBodyRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the headerRowRange method. + def header_row_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::ItemAtWithIndex::HeaderRowRange::HeaderRowRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the range method. + def range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::ItemAtWithIndex::Range::RangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the reapplyFilters method. + def reapply_filters() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::ItemAtWithIndex::ReapplyFilters::ReapplyFiltersRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the rows property of the microsoft.graph.workbookTable entity. + def rows() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::ItemAtWithIndex::Rows::RowsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookTable entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::ItemAtWithIndex::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the totalRowRange method. + def total_row_range() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::ItemAtWithIndex::TotalRowRange::TotalRowRangeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::Tables::ItemAtWithIndex::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end ## ## Instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. ## @param index Usage: index={index} @@ -46,8 +112,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTable.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -57,16 +122,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a item_at_with_index_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemAtWithIndexRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/range/range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/range/range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/range/range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/range/range_request_builder.rb new file mode 100644 index 0000000000..1aa6218d74 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/range/range_request_builder.rb @@ -0,0 +1,90 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../tables' +require_relative '../item_at_with_index' +require_relative './range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module ItemAtWithIndex + module Range + ## + # Provides operations to call the range method. + class RangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/range()") + end + ## + ## Get the range object associated with the entire table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the range object associated with the entire table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/reapply_filters/reapply_filters.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/reapply_filters/reapply_filters.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/reapply_filters/reapply_filters_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/reapply_filters/reapply_filters_request_builder.rb new file mode 100644 index 0000000000..b750cd5e59 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/reapply_filters/reapply_filters_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../tables' +require_relative '../item_at_with_index' +require_relative './reapply_filters' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module ItemAtWithIndex + module ReapplyFilters + ## + # Provides operations to call the reapplyFilters method. + class ReapplyFiltersRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ReapplyFiltersRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/reapplyFilters") + end + ## + ## Reapplies all the filters currently on the table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Reapplies all the filters currently on the table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reapply_filters_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReapplyFiltersRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/rows/rows.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/rows/rows.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/rows/rows_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/rows/rows_request_builder.rb new file mode 100644 index 0000000000..e97856bd01 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/rows/rows_request_builder.rb @@ -0,0 +1,185 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_table_row' +require_relative '../../../../../../../../../../models/workbook_table_row_collection_response' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../tables' +require_relative '../item_at_with_index' +require_relative './rows' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module ItemAtWithIndex + module Rows + ## + # Provides operations to manage the rows property of the microsoft.graph.workbookTable entity. + class RowsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The list of all the rows in the table. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_table_row_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableRowCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to rows for drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_table_row + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableRow.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The list of all the rows in the table. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to rows for drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The list of all the rows in the table. Read-only. + class RowsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/sort/sort.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/sort/sort.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/sort/sort_request_builder.rb new file mode 100644 index 0000000000..ea627f2615 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/sort/sort_request_builder.rb @@ -0,0 +1,184 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_table_sort' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../tables' +require_relative '../item_at_with_index' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module ItemAtWithIndex + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookTable entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The sorting for the table. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_table_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_table_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The sorting for the table. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The sorting for the table. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/total_row_range/total_row_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/total_row_range/total_row_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/total_row_range/total_row_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/total_row_range/total_row_range_request_builder.rb new file mode 100644 index 0000000000..386f7c1784 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/total_row_range/total_row_range_request_builder.rb @@ -0,0 +1,90 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../tables' +require_relative '../item_at_with_index' +require_relative './total_row_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module ItemAtWithIndex + module TotalRowRange + ## + # Provides operations to call the totalRowRange method. + class TotalRowRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new TotalRowRangeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/totalRowRange()") + end + ## + ## Gets the range object associated with totals row of the table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Gets the range object associated with totals row of the table. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a total_row_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TotalRowRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/worksheet/worksheet.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/worksheet/worksheet.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..46ea1aefe4 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/worksheet/worksheet_request_builder.rb @@ -0,0 +1,119 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../../drives' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../items' +require_relative '../../../../../../item' +require_relative '../../../../../workbook' +require_relative '../../../../worksheets' +require_relative '../../../item' +require_relative '../../tables' +require_relative '../item_at_with_index' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module Tables + module ItemAtWithIndex + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current table. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current table. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current table. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/tables/tables_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/tables/tables_request_builder.rb index f908fe418a..ac248726bf 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/tables/tables_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/tables/tables_request_builder.rb @@ -57,10 +57,10 @@ def by_workbook_table_id(workbook_table_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of table objects. + ## The list of tables that are part of the worksheet. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_table_collection_response ## @@ -69,8 +69,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTableCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -94,26 +93,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookTable.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of table objects. + ## The list of tables that are part of the worksheet. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -125,20 +123,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a tables_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TablesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of table objects. + # The list of tables that are part of the worksheet. Read-only. class TablesRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/bounding_rect_with_another_range/bounding_rect_with_another_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..ecfb83f337 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/cell_with_row_with_column/cell_with_row_with_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/cell_with_row_with_column/cell_with_row_with_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..441c833984 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/clear/clear.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..6748de839b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/clear/clear_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/clear/clear_request_builder.rb new file mode 100644 index 0000000000..8f725ad829 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/clear/clear_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/column_with_column/column_with_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/column_with_column/column_with_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..f1af241612 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/columns_after/columns_after.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/columns_after/columns_after.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..c88eec7ff0 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/columns_after/columns_after_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/columns_after_with_count/columns_after_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/columns_after_with_count/columns_after_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..7c3e0792a0 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/columns_before/columns_before.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/columns_before/columns_before.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..c279e33e68 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/columns_before/columns_before_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/columns_before_with_count/columns_before_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/columns_before_with_count/columns_before_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..3b90e49b1e --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/delete/delete.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..34226d18a5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/delete/delete_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/delete/delete_request_builder.rb new file mode 100644 index 0000000000..37c60f3db0 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/delete/delete_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/entire_column/entire_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/entire_column/entire_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..732592a535 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/entire_column/entire_column_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/entire_row/entire_row.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/entire_row/entire_row.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..1f94976da6 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/entire_row/entire_row_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/format/format.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/format/format.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/format/format_request_builder.rb new file mode 100644 index 0000000000..ad2a43a1be --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/format/format_request_builder.rb @@ -0,0 +1,181 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/insert/insert.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..1e9b22ef33 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/insert/insert_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/insert/insert_request_builder.rb new file mode 100644 index 0000000000..888139fbbf --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/insert/insert_request_builder.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/intersection_with_another_range/intersection_with_another_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/intersection_with_another_range/intersection_with_another_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..31d8989536 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/last_cell/last_cell.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/last_cell/last_cell.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..20c1d951fb --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/last_cell/last_cell_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/last_column/last_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/last_column/last_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..7abf004ffd --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/last_column/last_column_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/last_row/last_row.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/last_row/last_row.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..bb3d919115 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/last_row/last_row_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/merge/merge.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..ee91a8e5bb --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/merge/merge_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/merge/merge_request_builder.rb new file mode 100644 index 0000000000..a9d31e9218 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/merge/merge_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..0bb464de25 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..8dbda31a7b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/row_with_row/row_with_row.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/row_with_row/row_with_row.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..6b8aed1f5d --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/rows_above/rows_above.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/rows_above/rows_above.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..0486ffb36a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/rows_above/rows_above_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/rows_above_with_count/rows_above_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/rows_above_with_count/rows_above_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..6cfebc0915 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/rows_below/rows_below.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/rows_below/rows_below.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..6c55659b70 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/rows_below/rows_below_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/rows_below_with_count/rows_below_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/rows_below_with_count/rows_below_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..437f9e4e24 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/sort/sort.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/sort/sort.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/sort/sort_request_builder.rb new file mode 100644 index 0000000000..91b52e4843 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/sort/sort_request_builder.rb @@ -0,0 +1,181 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/unmerge/unmerge.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/unmerge/unmerge.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..93bf5bf63c --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/unmerge/unmerge_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/used_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/used_range_request_builder.rb index edc2c9f701..f1d56cbfd3 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/used_range/used_range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/used_range_request_builder.rb @@ -9,7 +9,36 @@ require_relative '../../../workbook' require_relative '../../worksheets' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' +require_relative './unmerge/unmerge_request_builder' require_relative './used_range' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -24,6 +53,143 @@ module UsedRange # Provides operations to call the usedRange method. class UsedRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRange::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRange::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRange::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRange::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRange::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRange::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRange::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRange::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRange::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRange::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRange::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRange::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRange::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRange::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRange::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRange::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRange::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRange::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new UsedRangeRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -43,27 +209,93 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Invoke function usedRange ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/visible_view/visible_view.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/visible_view/visible_view.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..15ee4807b7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/visible_view/visible_view_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/worksheet/worksheet.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/worksheet/worksheet.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..1236d5081f --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range/worksheet/worksheet_request_builder.rb @@ -0,0 +1,116 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRange + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/bounding_rect_with_another_range/bounding_rect_with_another_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/bounding_rect_with_another_range/bounding_rect_with_another_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb new file mode 100644 index 0000000000..3d3bdc0c46 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './bounding_rect_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module BoundingRectWithAnotherRange + ## + # Provides operations to call the boundingRect method. + class BoundingRectWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new BoundingRectWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/boundingRect(anotherRange='{anotherRange}')") + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function boundingRect + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bounding_rect_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/cell_with_row_with_column/cell_with_row_with_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/cell_with_row_with_column/cell_with_row_with_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb new file mode 100644 index 0000000000..ecfc08a9e3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/cell_with_row_with_column/cell_with_row_with_column_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './cell_with_row_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module CellWithRowWithColumn + ## + # Provides operations to call the cell method. + class CellWithRowWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CellWithRowWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/cell(row={row},column={column})") + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function cell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cell_with_row_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CellWithRowWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/clear/clear.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/clear/clear.rb new file mode 100644 index 0000000000..f6f9b35a0a --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/clear/clear.rb @@ -0,0 +1 @@ +require_relative 'clear_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/clear/clear_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/clear/clear_post_request_body.rb new file mode 100644 index 0000000000..2bd7a98e37 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/clear/clear_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module Clear + class ClearPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The applyTo property + @apply_to + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the applyTo property value. The applyTo property + ## @return a string + ## + def apply_to + return @apply_to + end + ## + ## Sets the applyTo property value. The applyTo property + ## @param value Value to set for the applyTo property. + ## @return a void + ## + def apply_to=(value) + @apply_to = value + end + ## + ## Instantiates a new ClearPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clear_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClearPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "applyTo" => lambda {|n| @apply_to = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("applyTo", @apply_to) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/clear/clear_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/clear/clear_request_builder.rb new file mode 100644 index 0000000000..4d45138658 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/clear/clear_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './clear' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module Clear + ## + # Provides operations to call the clear method. + class ClearRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClearRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/clear") + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action clear + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clear_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClearRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/column_with_column/column_with_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/column_with_column/column_with_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/column_with_column/column_with_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/column_with_column/column_with_column_request_builder.rb new file mode 100644 index 0000000000..e60ba449b9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/column_with_column/column_with_column_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './column_with_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module ColumnWithColumn + ## + # Provides operations to call the column method. + class ColumnWithColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnWithColumnRequestBuilder and sets the default values. + ## @param column Usage: column={column} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, column=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/column(column={column})") + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function column + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_with_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnWithColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/columns_after/columns_after.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/columns_after/columns_after.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/columns_after/columns_after_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/columns_after/columns_after_request_builder.rb new file mode 100644 index 0000000000..75b8a9d896 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/columns_after/columns_after_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './columns_after' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module ColumnsAfter + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/columnsAfter()") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/columns_after_with_count/columns_after_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/columns_after_with_count/columns_after_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/columns_after_with_count/columns_after_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/columns_after_with_count/columns_after_with_count_request_builder.rb new file mode 100644 index 0000000000..ff1b59208c --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/columns_after_with_count/columns_after_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './columns_after_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module ColumnsAfterWithCount + ## + # Provides operations to call the columnsAfter method. + class ColumnsAfterWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsAfterWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/columnsAfter(count={count})") + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsAfter + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_after_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsAfterWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/columns_before/columns_before.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/columns_before/columns_before.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/columns_before/columns_before_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/columns_before/columns_before_request_builder.rb new file mode 100644 index 0000000000..cd6b1a3f61 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/columns_before/columns_before_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './columns_before' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module ColumnsBefore + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/columnsBefore()") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/columns_before_with_count/columns_before_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/columns_before_with_count/columns_before_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/columns_before_with_count/columns_before_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/columns_before_with_count/columns_before_with_count_request_builder.rb new file mode 100644 index 0000000000..53634815c9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/columns_before_with_count/columns_before_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './columns_before_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module ColumnsBeforeWithCount + ## + # Provides operations to call the columnsBefore method. + class ColumnsBeforeWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsBeforeWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/columnsBefore(count={count})") + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function columnsBefore + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_before_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsBeforeWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/delete/delete.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/delete/delete.rb new file mode 100644 index 0000000000..bd799e0a60 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/delete/delete.rb @@ -0,0 +1 @@ +require_relative 'delete_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/delete/delete_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/delete/delete_post_request_body.rb new file mode 100644 index 0000000000..5973a65de0 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/delete/delete_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module Delete + class DeletePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DeletePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delete_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/delete/delete_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/delete/delete_request_builder.rb new file mode 100644 index 0000000000..4ea0875837 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/delete/delete_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './delete' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module Delete + ## + # Provides operations to call the delete method. + class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/delete") + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action delete + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/entire_column/entire_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/entire_column/entire_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/entire_column/entire_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/entire_column/entire_column_request_builder.rb new file mode 100644 index 0000000000..dfd3dde681 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/entire_column/entire_column_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './entire_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module EntireColumn + ## + # Provides operations to call the entireColumn method. + class EntireColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/entireColumn()") + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/entire_row/entire_row.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/entire_row/entire_row.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/entire_row/entire_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/entire_row/entire_row_request_builder.rb new file mode 100644 index 0000000000..c6f013da2e --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/entire_row/entire_row_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './entire_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module EntireRow + ## + # Provides operations to call the entireRow method. + class EntireRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EntireRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/entireRow()") + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function entireRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entire_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntireRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/format/format.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/format/format.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/format/format_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/format/format_request_builder.rb new file mode 100644 index 0000000000..52bb6256f3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/format/format_request_builder.rb @@ -0,0 +1,181 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_format' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './format' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module Format + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + class FormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new FormatRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/format{?%24expand,%24select}") + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_format + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeFormat.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property format for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property format in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FormatRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + class FormatRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/insert/insert.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/insert/insert.rb new file mode 100644 index 0000000000..4e56379cd3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/insert/insert.rb @@ -0,0 +1 @@ +require_relative 'insert_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/insert/insert_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/insert/insert_post_request_body.rb new file mode 100644 index 0000000000..593d98a23e --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/insert/insert_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module Insert + class InsertPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shift property + @shift + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new InsertPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a insert_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return InsertPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shift" => lambda {|n| @shift = n.get_string_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_string_value("shift", @shift) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shift property value. The shift property + ## @return a string + ## + def shift + return @shift + end + ## + ## Sets the shift property value. The shift property + ## @param value Value to set for the shift property. + ## @return a void + ## + def shift=(value) + @shift = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/insert/insert_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/insert/insert_request_builder.rb new file mode 100644 index 0000000000..aac1779070 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/insert/insert_request_builder.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './insert' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module Insert + ## + # Provides operations to call the insert method. + class InsertRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new InsertRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/insert") + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action insert + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insert_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsertRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/intersection_with_another_range/intersection_with_another_range.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/intersection_with_another_range/intersection_with_another_range.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/intersection_with_another_range/intersection_with_another_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/intersection_with_another_range/intersection_with_another_range_request_builder.rb new file mode 100644 index 0000000000..bcfaaa23b6 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/intersection_with_another_range/intersection_with_another_range_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './intersection_with_another_range' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module IntersectionWithAnotherRange + ## + # Provides operations to call the intersection method. + class IntersectionWithAnotherRangeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new IntersectionWithAnotherRangeRequestBuilder and sets the default values. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, another_range=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/intersection(anotherRange='{anotherRange}')") + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function intersection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a intersection_with_another_range_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/last_cell/last_cell.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/last_cell/last_cell.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/last_cell/last_cell_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/last_cell/last_cell_request_builder.rb new file mode 100644 index 0000000000..bc51c01d9b --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/last_cell/last_cell_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './last_cell' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module LastCell + ## + # Provides operations to call the lastCell method. + class LastCellRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastCellRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/lastCell()") + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastCell + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_cell_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastCellRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/last_column/last_column.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/last_column/last_column.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/last_column/last_column_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/last_column/last_column_request_builder.rb new file mode 100644 index 0000000000..df9fbb8d98 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/last_column/last_column_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './last_column' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module LastColumn + ## + # Provides operations to call the lastColumn method. + class LastColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastColumnRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/lastColumn()") + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastColumn + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastColumnRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/last_row/last_row.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/last_row/last_row.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/last_row/last_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/last_row/last_row_request_builder.rb new file mode 100644 index 0000000000..b29e60c8df --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/last_row/last_row_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './last_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module LastRow + ## + # Provides operations to call the lastRow method. + class LastRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/lastRow()") + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function lastRow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/merge/merge.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/merge/merge.rb new file mode 100644 index 0000000000..75726e1cf5 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/merge/merge.rb @@ -0,0 +1 @@ +require_relative 'merge_post_request_body' diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/merge/merge_post_request_body.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/merge/merge_post_request_body.rb new file mode 100644 index 0000000000..22e6f123e7 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/merge/merge_post_request_body.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module Merge + class MergePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # The across property + @across + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + ## Gets the across property value. The across property + ## @return a boolean + ## + def across + return @across + end + ## + ## Sets the across property value. The across property + ## @param value Value to set for the across property. + ## @return a void + ## + def across=(value) + @across = value + end + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new MergePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a merge_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return MergePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "across" => lambda {|n| @across = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("across", @across) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/merge/merge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/merge/merge_request_builder.rb new file mode 100644 index 0000000000..6b46a6c298 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/merge/merge_request_builder.rb @@ -0,0 +1,91 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './merge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module Merge + ## + # Provides operations to call the merge method. + class MergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/merge") + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action merge + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a merge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb new file mode 100644 index 0000000000..b9d01010a9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './offset_range_with_row_offset_with_column_offset' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module OffsetRangeWithRowOffsetWithColumnOffset + ## + # Provides operations to call the offsetRange method. + class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a void + ## + def initialize(path_parameters, request_adapter, column_offset=nil, row_offset=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})") + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function offsetRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb new file mode 100644 index 0000000000..0cd8e8fcf6 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder.rb @@ -0,0 +1,89 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './resized_range_with_delta_rows_with_delta_columns' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module ResizedRangeWithDeltaRowsWithDeltaColumns + ## + # Provides operations to call the resizedRange method. + class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, delta_columns=nil, delta_rows=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})") + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function resizedRange + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/row_with_row/row_with_row.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/row_with_row/row_with_row.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/row_with_row/row_with_row_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/row_with_row/row_with_row_request_builder.rb new file mode 100644 index 0000000000..adc14ee92e --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/row_with_row/row_with_row_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './row_with_row' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module RowWithRow + ## + # Provides operations to call the row method. + class RowWithRowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowWithRowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param row Usage: row={row} + ## @return a void + ## + def initialize(path_parameters, request_adapter, row=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/row(row={row})") + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function row + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a row_with_row_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowWithRowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/rows_above/rows_above.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/rows_above/rows_above.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/rows_above/rows_above_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/rows_above/rows_above_request_builder.rb new file mode 100644 index 0000000000..c4daf8d8cd --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/rows_above/rows_above_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './rows_above' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module RowsAbove + ## + # Provides operations to call the rowsAbove method. + class RowsAboveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/rowsAbove()") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/rows_above_with_count/rows_above_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/rows_above_with_count/rows_above_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/rows_above_with_count/rows_above_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/rows_above_with_count/rows_above_with_count_request_builder.rb new file mode 100644 index 0000000000..e83ea92a11 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/rows_above_with_count/rows_above_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './rows_above_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module RowsAboveWithCount + ## + # Provides operations to call the rowsAbove method. + class RowsAboveWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsAboveWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/rowsAbove(count={count})") + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsAbove + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_above_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsAboveWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/rows_below/rows_below.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/rows_below/rows_below.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/rows_below/rows_below_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/rows_below/rows_below_request_builder.rb new file mode 100644 index 0000000000..b8b0620b00 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/rows_below/rows_below_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './rows_below' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module RowsBelow + ## + # Provides operations to call the rowsBelow method. + class RowsBelowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/rowsBelow()") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/rows_below_with_count/rows_below_with_count.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/rows_below_with_count/rows_below_with_count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/rows_below_with_count/rows_below_with_count_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/rows_below_with_count/rows_below_with_count_request_builder.rb new file mode 100644 index 0000000000..60ec0ba123 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/rows_below_with_count/rows_below_with_count_request_builder.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './rows_below_with_count' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module RowsBelowWithCount + ## + # Provides operations to call the rowsBelow method. + class RowsBelowWithCountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RowsBelowWithCountRequestBuilder and sets the default values. + ## @param count Usage: count={count} + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, count=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/rowsBelow(count={count})") + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function rowsBelow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rows_below_with_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RowsBelowWithCountRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/sort/sort.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/sort/sort.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/sort/sort_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/sort/sort_request_builder.rb new file mode 100644 index 0000000000..a85dd47ab3 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/sort/sort_request_builder.rb @@ -0,0 +1,181 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_sort' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './sort' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module Sort + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + class SortRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SortRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/sort{?%24expand,%24select}") + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_sort + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeSort.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sort for drives + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property sort in drives + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sort_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SortRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class SortRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/unmerge/unmerge.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/unmerge/unmerge.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/unmerge/unmerge_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/unmerge/unmerge_request_builder.rb new file mode 100644 index 0000000000..da29982726 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/unmerge/unmerge_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './unmerge' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module Unmerge + ## + # Provides operations to call the unmerge method. + class UnmergeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnmergeRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/unmerge") + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action unmerge + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unmerge_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnmergeRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/used_range_with_values_only_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/used_range_with_values_only_request_builder.rb index 8a683bf866..d6ee16e559 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/used_range_with_values_only_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/used_range_with_values_only_request_builder.rb @@ -9,7 +9,36 @@ require_relative '../../../workbook' require_relative '../../worksheets' require_relative '../item' +require_relative './bounding_rect_with_another_range/bounding_rect_with_another_range_request_builder' +require_relative './cell_with_row_with_column/cell_with_row_with_column_request_builder' +require_relative './clear/clear_request_builder' +require_relative './columns_after/columns_after_request_builder' +require_relative './columns_after_with_count/columns_after_with_count_request_builder' +require_relative './columns_before/columns_before_request_builder' +require_relative './columns_before_with_count/columns_before_with_count_request_builder' +require_relative './column_with_column/column_with_column_request_builder' +require_relative './delete/delete_request_builder' +require_relative './entire_column/entire_column_request_builder' +require_relative './entire_row/entire_row_request_builder' +require_relative './format/format_request_builder' +require_relative './insert/insert_request_builder' +require_relative './intersection_with_another_range/intersection_with_another_range_request_builder' +require_relative './last_cell/last_cell_request_builder' +require_relative './last_column/last_column_request_builder' +require_relative './last_row/last_row_request_builder' +require_relative './merge/merge_request_builder' +require_relative './offset_range_with_row_offset_with_column_offset/offset_range_with_row_offset_with_column_offset_request_builder' +require_relative './resized_range_with_delta_rows_with_delta_columns/resized_range_with_delta_rows_with_delta_columns_request_builder' +require_relative './rows_above/rows_above_request_builder' +require_relative './rows_above_with_count/rows_above_with_count_request_builder' +require_relative './rows_below/rows_below_request_builder' +require_relative './rows_below_with_count/rows_below_with_count_request_builder' +require_relative './row_with_row/row_with_row_request_builder' +require_relative './sort/sort_request_builder' +require_relative './unmerge/unmerge_request_builder' require_relative './used_range_with_values_only' +require_relative './visible_view/visible_view_request_builder' +require_relative './worksheet/worksheet_request_builder' module MicrosoftGraph module Drives @@ -24,6 +53,143 @@ module UsedRangeWithValuesOnly # Provides operations to call the usedRange method. class UsedRangeWithValuesOnlyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the clear method. + def clear() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRangeWithValuesOnly::Clear::ClearRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsAfter method. + def columns_after() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRangeWithValuesOnly::ColumnsAfter::ColumnsAfterRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the columnsBefore method. + def columns_before() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRangeWithValuesOnly::ColumnsBefore::ColumnsBeforeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delete method. + def delete_path() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRangeWithValuesOnly::Delete::DeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireColumn method. + def entire_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRangeWithValuesOnly::EntireColumn::EntireColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the entireRow method. + def entire_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRangeWithValuesOnly::EntireRow::EntireRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + def format() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRangeWithValuesOnly::Format::FormatRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the insert method. + def insert() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRangeWithValuesOnly::Insert::InsertRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastCell method. + def last_cell() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRangeWithValuesOnly::LastCell::LastCellRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastColumn method. + def last_column() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRangeWithValuesOnly::LastColumn::LastColumnRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the lastRow method. + def last_row() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRangeWithValuesOnly::LastRow::LastRowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the merge method. + def merge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRangeWithValuesOnly::Merge::MergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsAbove method. + def rows_above() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRangeWithValuesOnly::RowsAbove::RowsAboveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the rowsBelow method. + def rows_below() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRangeWithValuesOnly::RowsBelow::RowsBelowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + def sort() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRangeWithValuesOnly::Sort::SortRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unmerge method. + def unmerge() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRangeWithValuesOnly::Unmerge::UnmergeRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the visibleView method. + def visible_view() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRangeWithValuesOnly::VisibleView::VisibleViewRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + def worksheet() + return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::Item::UsedRangeWithValuesOnly::Worksheet::WorksheetRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to call the boundingRect method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a bounding_rect_with_another_range_request_builder + ## + def bounding_rect_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return BoundingRectWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the cell method. + ## @param column Usage: column={column} + ## @param row Usage: row={row} + ## @return a cell_with_row_with_column_request_builder + ## + def cell_with_row_with_column(column, row) + raise StandardError, 'column cannot be null' if column.nil? + raise StandardError, 'row cannot be null' if row.nil? + return CellWithRowWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column, row) + end + ## + ## Provides operations to call the columnsAfter method. + ## @param count Usage: count={count} + ## @return a columns_after_with_count_request_builder + ## + def columns_after_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsAfterWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the columnsBefore method. + ## @param count Usage: count={count} + ## @return a columns_before_with_count_request_builder + ## + def columns_before_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return ColumnsBeforeWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the column method. + ## @param column Usage: column={column} + ## @return a column_with_column_request_builder + ## + def column_with_column(column) + raise StandardError, 'column cannot be null' if column.nil? + return ColumnWithColumnRequestBuilder.new(@path_parameters, @request_adapter, column) + end ## ## Instantiates a new UsedRangeWithValuesOnlyRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -44,27 +210,93 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the intersection method. + ## @param another_range Usage: anotherRange='{anotherRange}' + ## @return a intersection_with_another_range_request_builder + ## + def intersection_with_another_range(another_range) + raise StandardError, 'another_range cannot be null' if another_range.nil? + return IntersectionWithAnotherRangeRequestBuilder.new(@path_parameters, @request_adapter, anotherRange) + end + ## + ## Provides operations to call the offsetRange method. + ## @param column_offset Usage: columnOffset={columnOffset} + ## @param row_offset Usage: rowOffset={rowOffset} + ## @return a offset_range_with_row_offset_with_column_offset_request_builder + ## + def offset_range_with_row_offset_with_column_offset(column_offset, row_offset) + raise StandardError, 'column_offset cannot be null' if column_offset.nil? + raise StandardError, 'row_offset cannot be null' if row_offset.nil? + return OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.new(@path_parameters, @request_adapter, columnOffset, rowOffset) + end + ## + ## Provides operations to call the resizedRange method. + ## @param delta_columns Usage: deltaColumns={deltaColumns} + ## @param delta_rows Usage: deltaRows={deltaRows} + ## @return a resized_range_with_delta_rows_with_delta_columns_request_builder + ## + def resized_range_with_delta_rows_with_delta_columns(delta_columns, delta_rows) + raise StandardError, 'delta_columns cannot be null' if delta_columns.nil? + raise StandardError, 'delta_rows cannot be null' if delta_rows.nil? + return ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.new(@path_parameters, @request_adapter, deltaColumns, deltaRows) + end + ## + ## Provides operations to call the rowsAbove method. + ## @param count Usage: count={count} + ## @return a rows_above_with_count_request_builder + ## + def rows_above_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsAboveWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the rowsBelow method. + ## @param count Usage: count={count} + ## @return a rows_below_with_count_request_builder + ## + def rows_below_with_count(count) + raise StandardError, 'count cannot be null' if count.nil? + return RowsBelowWithCountRequestBuilder.new(@path_parameters, @request_adapter, count) + end + ## + ## Provides operations to call the row method. + ## @param row Usage: row={row} + ## @return a row_with_row_request_builder + ## + def row_with_row(row) + raise StandardError, 'row cannot be null' if row.nil? + return RowWithRowRequestBuilder.new(@path_parameters, @request_adapter, row) + end + ## ## Invoke function usedRange ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a used_range_with_values_only_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsedRangeWithValuesOnlyRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/visible_view/visible_view.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/visible_view/visible_view.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/visible_view/visible_view_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/visible_view/visible_view_request_builder.rb new file mode 100644 index 0000000000..fa5ea99159 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/visible_view/visible_view_request_builder.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_range_view' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './visible_view' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module VisibleView + ## + # Provides operations to call the visibleView method. + class VisibleViewRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new VisibleViewRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/visibleView()") + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_range_view + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function visibleView + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a visible_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VisibleViewRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/worksheet/worksheet.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/worksheet/worksheet.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/worksheet/worksheet_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/worksheet/worksheet_request_builder.rb new file mode 100644 index 0000000000..af5dc938a9 --- /dev/null +++ b/lib/drives/item/items/item/workbook/worksheets/item/used_range_with_values_only/worksheet/worksheet_request_builder.rb @@ -0,0 +1,116 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/workbook_worksheet' +require_relative '../../../../../../../../drives' +require_relative '../../../../../../../item' +require_relative '../../../../../../items' +require_relative '../../../../../item' +require_relative '../../../../workbook' +require_relative '../../../worksheets' +require_relative '../../item' +require_relative '../used_range_with_values_only' +require_relative './worksheet' + +module MicrosoftGraph + module Drives + module Item + module Items + module Item + module Workbook + module Worksheets + module Item + module UsedRangeWithValuesOnly + module Worksheet + ## + # Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + class WorksheetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new WorksheetRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/worksheet{?%24expand,%24select}") + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of workbook_worksheet + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The worksheet containing the current range. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheet_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The worksheet containing the current range. Read-only. + class WorksheetRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/items/item/workbook/worksheets/item/workbook_worksheet_item_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/workbook_worksheet_item_request_builder.rb index 5525ece149..42b7a36739 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/workbook_worksheet_item_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/workbook_worksheet_item_request_builder.rb @@ -85,10 +85,10 @@ def cell_with_row_with_column(column, row) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}{?%24expand,%24select}") end ## - ## Deletes the worksheet from the workbook. + ## Delete navigation property worksheets for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -97,12 +97,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of worksheet object. + ## Represents a collection of worksheets associated with the workbook. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_worksheet ## @@ -111,12 +110,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of worksheet object. + ## Update the navigation property worksheets in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_worksheet @@ -127,8 +125,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -141,41 +138,42 @@ def range_with_address(address) return RangeWithAddressRequestBuilder.new(@path_parameters, @request_adapter, address) end ## - ## Deletes the worksheet from the workbook. + ## Delete navigation property worksheets for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of worksheet object. + ## Represents a collection of worksheets associated with the workbook. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of worksheet object. + ## Update the navigation property worksheets in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -183,15 +181,15 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -203,9 +201,18 @@ def used_range_with_values_only(values_only) raise StandardError, 'values_only cannot be null' if values_only.nil? return UsedRangeWithValuesOnlyRequestBuilder.new(@path_parameters, @request_adapter, valuesOnly) end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a workbook_worksheet_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorkbookWorksheetItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of worksheet object. + # Represents a collection of worksheets associated with the workbook. Read-only. class WorkbookWorksheetItemRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/worksheets_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/worksheets_request_builder.rb index 1a9a729a60..c8e5e442d0 100644 --- a/lib/drives/item/items/item/workbook/worksheets/worksheets_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/worksheets_request_builder.rb @@ -52,10 +52,10 @@ def by_workbook_worksheet_id(workbook_worksheet_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of worksheet objects. + ## Represents a collection of worksheets associated with the workbook. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_worksheet_collection_response ## @@ -64,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheetCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,26 +79,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of worksheet objects. + ## Represents a collection of worksheets associated with the workbook. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -111,20 +109,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a worksheets_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WorksheetsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of worksheet objects. + # Represents a collection of worksheets associated with the workbook. Read-only. class WorksheetsRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/items_request_builder.rb b/lib/drives/item/items/items_request_builder.rb index 8c44326438..bace655ef6 100644 --- a/lib/drives/item/items/items_request_builder.rb +++ b/lib/drives/item/items/items_request_builder.rb @@ -40,10 +40,10 @@ def by_drive_item_id(drive_item_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## All items contained in the drive. Read-only. Nullable. + ## Get a list of driveItem objects shared with the owner of a drive. The driveItems returned from the sharedWithMe method always include the remoteItem facet that indicates they are items from a different drive. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of drive_item_collection_response ## @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItemCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,26 +67,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## - ## All items contained in the drive. Read-only. Nullable. + ## Get a list of driveItem objects shared with the owner of a drive. The driveItems returned from the sharedWithMe method always include the remoteItem facet that indicates they are items from a different drive. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,20 +97,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a items_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemsRequestBuilder.new(raw_url, @request_adapter) + end ## - # All items contained in the drive. Read-only. Nullable. + # Get a list of driveItem objects shared with the owner of a drive. The driveItems returned from the sharedWithMe method always include the remoteItem facet that indicates they are items from a different drive. class ItemsRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/last_modified_by_user/last_modified_by_user_request_builder.rb b/lib/drives/item/last_modified_by_user/last_modified_by_user_request_builder.rb index e21251797b..ebfa0818e9 100644 --- a/lib/drives/item/last_modified_by_user/last_modified_by_user_request_builder.rb +++ b/lib/drives/item/last_modified_by_user/last_modified_by_user_request_builder.rb @@ -6,6 +6,7 @@ require_relative '../item' require_relative './last_modified_by_user' require_relative './mailbox_settings/mailbox_settings_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' module MicrosoftGraph module Drives @@ -21,13 +22,18 @@ def mailbox_settings() return MicrosoftGraph::Drives::Item::LastModifiedByUser::MailboxSettings::MailboxSettingsRequestBuilder.new(@path_parameters, @request_adapter) end ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Drives::Item::LastModifiedByUser::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/lastModifiedByUser{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/lastModifiedByUser{?%24expand,%24select}") end ## ## Identity of the user who last modified the item. Read-only. @@ -39,8 +45,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +55,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_modified_by_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastModifiedByUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Identity of the user who last modified the item. Read-only. diff --git a/lib/drives/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb b/lib/drives/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb index ad468fcf07..d3fba45a3b 100644 --- a/lib/drives/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb +++ b/lib/drives/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb @@ -23,10 +23,10 @@ class MailboxSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/lastModifiedByUser/mailboxSettings{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}") end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of mailbox_settings ## @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -51,26 +50,25 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -82,20 +80,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mailbox_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MailboxSettingsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. class MailboxSettingsRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/last_modified_by_user/service_provisioning_errors/count/count.rb b/lib/drives/item/last_modified_by_user/service_provisioning_errors/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb b/lib/drives/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..34c27a966d --- /dev/null +++ b/lib/drives/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../drives' +require_relative '../../../item' +require_relative '../../last_modified_by_user' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Drives + module Item + module LastModifiedByUser + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors.rb b/lib/drives/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/drives/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..d329dc15c4 --- /dev/null +++ b/lib/drives/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,137 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../../models/service_provisioning_error_collection_response' +require_relative '../../../drives' +require_relative '../../item' +require_relative '../last_modified_by_user' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Drives + module Item + module LastModifiedByUser + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \drives\{drive-id}\lastModifiedByUser\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Drives::Item::LastModifiedByUser::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/list/columns/columns_request_builder.rb b/lib/drives/item/list/columns/columns_request_builder.rb index e44d218356..d817768b3e 100644 --- a/lib/drives/item/list/columns/columns_request_builder.rb +++ b/lib/drives/item/list/columns/columns_request_builder.rb @@ -42,10 +42,10 @@ def by_column_definition_id(column_definition_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + ## The collection of field definitions for this list. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of column_definition_collection_response ## @@ -54,12 +54,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinitionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. + ## Create new navigation property to columns for drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of column_definition @@ -70,30 +69,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + ## The collection of field definitions for this list. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. + ## Create new navigation property to columns for drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -101,20 +99,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + # The collection of field definitions for this list. class ColumnsRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/list/columns/count/count_request_builder.rb b/lib/drives/item/list/columns/count/count_request_builder.rb index d9411a6e5e..a45e4732b2 100644 --- a/lib/drives/item/list/columns/count/count_request_builder.rb +++ b/lib/drives/item/list/columns/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/columns/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/columns/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/list/columns/item/column_definition_item_request_builder.rb b/lib/drives/item/list/columns/item/column_definition_item_request_builder.rb index 1283d28915..7f4175c77f 100644 --- a/lib/drives/item/list/columns/item/column_definition_item_request_builder.rb +++ b/lib/drives/item/list/columns/item/column_definition_item_request_builder.rb @@ -31,7 +31,7 @@ def source_column() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/columns/{columnDefinition%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/columns/{columnDefinition%2Did}{?%24expand,%24select}") end ## ## Delete navigation property columns for drives @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,15 +98,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_definition_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnDefinitionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of field definitions for this list. diff --git a/lib/drives/item/list/columns/item/source_column/source_column_request_builder.rb b/lib/drives/item/list/columns/item/source_column/source_column_request_builder.rb index 739d9f3b3f..ab1480b00b 100644 --- a/lib/drives/item/list/columns/item/source_column/source_column_request_builder.rb +++ b/lib/drives/item/list/columns/item/source_column/source_column_request_builder.rb @@ -27,7 +27,7 @@ class SourceColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilde ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/columns/{columnDefinition%2Did}/sourceColumn{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/columns/{columnDefinition%2Did}/sourceColumn{?%24expand,%24select}") end ## ## The source column for the content type column. @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a source_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SourceColumnRequestBuilder.new(raw_url, @request_adapter) + end ## # The source column for the content type column. diff --git a/lib/drives/item/list/content_types/add_copy/add_copy_post_request_body.rb b/lib/drives/item/list/content_types/add_copy/add_copy_post_request_body.rb index f69a6214b4..3c28c422fd 100644 --- a/lib/drives/item/list/content_types/add_copy/add_copy_post_request_body.rb +++ b/lib/drives/item/list/content_types/add_copy/add_copy_post_request_body.rb @@ -21,22 +21,22 @@ class AddCopyPostRequestBody # The contentType property @content_type ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new addCopyPostRequestBody and sets the default values. + ## Instantiates a new AddCopyPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/list/content_types/add_copy/add_copy_request_builder.rb b/lib/drives/item/list/content_types/add_copy/add_copy_request_builder.rb index e4b425faa4..9d0b3a3fdc 100644 --- a/lib/drives/item/list/content_types/add_copy/add_copy_request_builder.rb +++ b/lib/drives/item/list/content_types/add_copy/add_copy_request_builder.rb @@ -28,7 +28,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/addCopy") end ## - ## Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + ## Add a copy of a content type from a site to a list. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of content_type @@ -39,12 +39,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + ## Add a copy of a content type from a site to a list. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -52,17 +51,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_copy_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddCopyRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/list/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_post_request_body.rb b/lib/drives/item/list/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_post_request_body.rb index f57dfc2a28..3697d96315 100644 --- a/lib/drives/item/list/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_post_request_body.rb +++ b/lib/drives/item/list/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_post_request_body.rb @@ -21,22 +21,22 @@ class AddCopyFromContentTypeHubPostRequestBody # The contentTypeId property @content_type_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new addCopyFromContentTypeHubPostRequestBody and sets the default values. + ## Instantiates a new AddCopyFromContentTypeHubPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/list/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_request_builder.rb b/lib/drives/item/list/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_request_builder.rb index e8bade1095..861ab66425 100644 --- a/lib/drives/item/list/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_request_builder.rb +++ b/lib/drives/item/list/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_request_builder.rb @@ -39,8 +39,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_copy_from_content_type_hub_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddCopyFromContentTypeHubRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/list/content_types/content_types_request_builder.rb b/lib/drives/item/list/content_types/content_types_request_builder.rb index 93407de9c8..362b489a77 100644 --- a/lib/drives/item/list/content_types/content_types_request_builder.rb +++ b/lib/drives/item/list/content_types/content_types_request_builder.rb @@ -60,10 +60,10 @@ def by_content_type_id(content_type_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the collection of [contentType][contentType] resources in a [list][]. + ## The collection of content types present in this list. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of content_type_collection_response ## @@ -72,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentTypeCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,26 +87,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the collection of [contentType][contentType] resources in a [list][]. + ## The collection of content types present in this list. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -119,20 +117,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_types_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentTypesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the collection of [contentType][contentType] resources in a [list][]. + # The collection of content types present in this list. class ContentTypesRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/list/content_types/count/count_request_builder.rb b/lib/drives/item/list/content_types/count/count_request_builder.rb index cb70c4eae7..0dcbbfa2d0 100644 --- a/lib/drives/item/list/content_types/count/count_request_builder.rb +++ b/lib/drives/item/list/content_types/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/list/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types.rb b/lib/drives/item/list/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types.rb index 6908c8ff63..58d326dbe5 100644 --- a/lib/drives/item/list/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types.rb +++ b/lib/drives/item/list/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types.rb @@ -1 +1 @@ -require_relative 'get_compatible_hub_content_types_response' +require_relative 'get_compatible_hub_content_types_get_response' diff --git a/lib/drives/item/list/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_get_response.rb b/lib/drives/item/list/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_get_response.rb new file mode 100644 index 0000000000..a732b13ad2 --- /dev/null +++ b/lib/drives/item/list/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_get_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../models/content_type' +require_relative '../../../../drives' +require_relative '../../../item' +require_relative '../../list' +require_relative '../content_types' +require_relative './get_compatible_hub_content_types' + +module MicrosoftGraph + module Drives + module Item + module List + module ContentTypes + module GetCompatibleHubContentTypes + class GetCompatibleHubContentTypesGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetCompatibleHubContentTypesGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_compatible_hub_content_types_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetCompatibleHubContentTypesGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a content_type + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/list/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_request_builder.rb b/lib/drives/item/list/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_request_builder.rb index 402220c848..51959308a7 100644 --- a/lib/drives/item/list/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_request_builder.rb +++ b/lib/drives/item/list/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_request_builder.rb @@ -24,49 +24,60 @@ class GetCompatibleHubContentTypesRequestBuilder < MicrosoftKiotaAbstractions::B ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/getCompatibleHubContentTypes(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/getCompatibleHubContentTypes(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function getCompatibleHubContentTypes + ## Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates – August 2021. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_compatible_hub_content_types_response + ## @return a Fiber of get_compatible_hub_content_types_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::List::ContentTypes::GetCompatibleHubContentTypes::GetCompatibleHubContentTypesResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::List::ContentTypes::GetCompatibleHubContentTypes::GetCompatibleHubContentTypesGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function getCompatibleHubContentTypes + ## Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates – August 2021. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_compatible_hub_content_types_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetCompatibleHubContentTypesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function getCompatibleHubContentTypes + # Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates – August 2021. class GetCompatibleHubContentTypesRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -94,6 +105,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/drives/item/list/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_response.rb b/lib/drives/item/list/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_response.rb deleted file mode 100644 index 0ce127a681..0000000000 --- a/lib/drives/item/list/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_response.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../models/content_type' -require_relative '../../../../drives' -require_relative '../../../item' -require_relative '../../list' -require_relative '../content_types' -require_relative './get_compatible_hub_content_types' - -module MicrosoftGraph - module Drives - module Item - module List - module ContentTypes - module GetCompatibleHubContentTypes - class GetCompatibleHubContentTypesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getCompatibleHubContentTypesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_compatible_hub_content_types_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetCompatibleHubContentTypesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a content_type - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/drives/item/list/content_types/item/associate_with_hub_sites/associate_with_hub_sites_post_request_body.rb b/lib/drives/item/list/content_types/item/associate_with_hub_sites/associate_with_hub_sites_post_request_body.rb index 36ade3db27..7c2d5b142f 100644 --- a/lib/drives/item/list/content_types/item/associate_with_hub_sites/associate_with_hub_sites_post_request_body.rb +++ b/lib/drives/item/list/content_types/item/associate_with_hub_sites/associate_with_hub_sites_post_request_body.rb @@ -26,22 +26,22 @@ class AssociateWithHubSitesPostRequestBody # The propagateToExistingLists property @propagate_to_existing_lists ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new associateWithHubSitesPostRequestBody and sets the default values. + ## Instantiates a new AssociateWithHubSitesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/list/content_types/item/associate_with_hub_sites/associate_with_hub_sites_request_builder.rb b/lib/drives/item/list/content_types/item/associate_with_hub_sites/associate_with_hub_sites_request_builder.rb index b5c5d1be05..6d7ec59e69 100644 --- a/lib/drives/item/list/content_types/item/associate_with_hub_sites/associate_with_hub_sites_request_builder.rb +++ b/lib/drives/item/list/content_types/item/associate_with_hub_sites/associate_with_hub_sites_request_builder.rb @@ -29,7 +29,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/associateWithHubSites") end ## - ## Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + ## Associate a published content type present in a content type hub with a list of hub sites. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -40,12 +40,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + ## Associate a published content type present in a content type hub with a list of hub sites. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -53,16 +52,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a associate_with_hub_sites_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssociateWithHubSitesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/list/content_types/item/base/base_request_builder_escaped.rb b/lib/drives/item/list/content_types/item/base/base_request_builder_escaped.rb index f155997a17..f17322fed3 100644 --- a/lib/drives/item/list/content_types/item/base/base_request_builder_escaped.rb +++ b/lib/drives/item/list/content_types/item/base/base_request_builder_escaped.rb @@ -21,13 +21,13 @@ module Base class BaseRequestBuilder_escaped < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new BaseRequestBuilder and sets the default values. + ## Instantiates a new BaseRequestBuilder_escaped and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/base{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/base{?%24expand,%24select}") end ## ## Parent contentType from which this content type is derived. @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a base_request_builder_escaped + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BaseRequestBuilder_escaped.new(raw_url, @request_adapter) + end ## # Parent contentType from which this content type is derived. diff --git a/lib/drives/item/list/content_types/item/base_types/base_types_request_builder.rb b/lib/drives/item/list/content_types/item/base_types/base_types_request_builder.rb index 0f8ccd72cb..d9519a9a31 100644 --- a/lib/drives/item/list/content_types/item/base_types/base_types_request_builder.rb +++ b/lib/drives/item/list/content_types/item/base_types/base_types_request_builder.rb @@ -45,7 +45,7 @@ def by_content_type_id1(content_type_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/baseTypes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/baseTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The collection of content types that are ancestors of this content type. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentTypeCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a base_types_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BaseTypesRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of content types that are ancestors of this content type. diff --git a/lib/drives/item/list/content_types/item/base_types/count/count_request_builder.rb b/lib/drives/item/list/content_types/item/base_types/count/count_request_builder.rb index 13a8571bd3..7392b92d69 100644 --- a/lib/drives/item/list/content_types/item/base_types/count/count_request_builder.rb +++ b/lib/drives/item/list/content_types/item/base_types/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/baseTypes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/baseTypes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/list/content_types/item/base_types/item/content_type_item_request_builder.rb b/lib/drives/item/list/content_types/item/base_types/item/content_type_item_request_builder.rb index b0af8fae1c..adea3aa8a6 100644 --- a/lib/drives/item/list/content_types/item/base_types/item/content_type_item_request_builder.rb +++ b/lib/drives/item/list/content_types/item/base_types/item/content_type_item_request_builder.rb @@ -29,7 +29,7 @@ class ContentTypeItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/baseTypes/{contentType%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/baseTypes/{contentType%2Did1}{?%24expand,%24select}") end ## ## The collection of content types that are ancestors of this content type. @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_type_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentTypeItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of content types that are ancestors of this content type. diff --git a/lib/drives/item/list/content_types/item/column_links/column_links_request_builder.rb b/lib/drives/item/list/content_types/item/column_links/column_links_request_builder.rb index e309103663..72d7b13eb3 100644 --- a/lib/drives/item/list/content_types/item/column_links/column_links_request_builder.rb +++ b/lib/drives/item/list/content_types/item/column_links/column_links_request_builder.rb @@ -46,7 +46,7 @@ def by_column_link_id(column_link_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnLinks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnLinks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The collection of columns that are required by this content type. @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnLinkCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,8 +73,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnLink.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,15 +83,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,17 +103,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_links_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnLinksRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of columns that are required by this content type. diff --git a/lib/drives/item/list/content_types/item/column_links/count/count_request_builder.rb b/lib/drives/item/list/content_types/item/column_links/count/count_request_builder.rb index c9fe1a4a25..0d37a9b1ab 100644 --- a/lib/drives/item/list/content_types/item/column_links/count/count_request_builder.rb +++ b/lib/drives/item/list/content_types/item/column_links/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnLinks/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnLinks/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/list/content_types/item/column_links/item/column_link_item_request_builder.rb b/lib/drives/item/list/content_types/item/column_links/item/column_link_item_request_builder.rb index 86cae2c729..454dd3d6ae 100644 --- a/lib/drives/item/list/content_types/item/column_links/item/column_link_item_request_builder.rb +++ b/lib/drives/item/list/content_types/item/column_links/item/column_link_item_request_builder.rb @@ -29,7 +29,7 @@ class ColumnLinkItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnLinks/{columnLink%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnLinks/{columnLink%2Did}{?%24expand,%24select}") end ## ## Delete navigation property columnLinks for drives @@ -41,8 +41,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnLink.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnLink.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,13 +79,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -98,15 +96,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,17 +116,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_link_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnLinkItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of columns that are required by this content type. diff --git a/lib/drives/item/list/content_types/item/column_positions/column_positions_request_builder.rb b/lib/drives/item/list/content_types/item/column_positions/column_positions_request_builder.rb index b7f4c20a5f..aafb2eccff 100644 --- a/lib/drives/item/list/content_types/item/column_positions/column_positions_request_builder.rb +++ b/lib/drives/item/list/content_types/item/column_positions/column_positions_request_builder.rb @@ -45,7 +45,7 @@ def by_column_definition_id(column_definition_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnPositions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnPositions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Column order information in a content type. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinitionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_positions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnPositionsRequestBuilder.new(raw_url, @request_adapter) + end ## # Column order information in a content type. diff --git a/lib/drives/item/list/content_types/item/column_positions/count/count_request_builder.rb b/lib/drives/item/list/content_types/item/column_positions/count/count_request_builder.rb index 61abba3b5f..e493330d38 100644 --- a/lib/drives/item/list/content_types/item/column_positions/count/count_request_builder.rb +++ b/lib/drives/item/list/content_types/item/column_positions/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnPositions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnPositions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/list/content_types/item/column_positions/item/column_definition_item_request_builder.rb b/lib/drives/item/list/content_types/item/column_positions/item/column_definition_item_request_builder.rb index cfa342399d..e03867fec1 100644 --- a/lib/drives/item/list/content_types/item/column_positions/item/column_definition_item_request_builder.rb +++ b/lib/drives/item/list/content_types/item/column_positions/item/column_definition_item_request_builder.rb @@ -29,7 +29,7 @@ class ColumnDefinitionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReque ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnPositions/{columnDefinition%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnPositions/{columnDefinition%2Did}{?%24expand,%24select}") end ## ## Column order information in a content type. @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_definition_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnDefinitionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Column order information in a content type. diff --git a/lib/drives/item/list/content_types/item/columns/columns_request_builder.rb b/lib/drives/item/list/content_types/item/columns/columns_request_builder.rb index 33cfb6b8f7..e448e8a86c 100644 --- a/lib/drives/item/list/content_types/item/columns/columns_request_builder.rb +++ b/lib/drives/item/list/content_types/item/columns/columns_request_builder.rb @@ -46,10 +46,10 @@ def by_column_definition_id(column_definition_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + ## The collection of column definitions for this content type. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of column_definition_collection_response ## @@ -58,12 +58,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinitionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + ## Create new navigation property to columns for drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of column_definition @@ -74,30 +73,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + ## The collection of column definitions for this content type. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + ## Create new navigation property to columns for drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + # The collection of column definitions for this content type. class ColumnsRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/list/content_types/item/columns/count/count_request_builder.rb b/lib/drives/item/list/content_types/item/columns/count/count_request_builder.rb index fa7167837e..afbdabe835 100644 --- a/lib/drives/item/list/content_types/item/columns/count/count_request_builder.rb +++ b/lib/drives/item/list/content_types/item/columns/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columns/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columns/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/list/content_types/item/columns/item/column_definition_item_request_builder.rb b/lib/drives/item/list/content_types/item/columns/item/column_definition_item_request_builder.rb index 01ca456ff3..9a9eae1c1b 100644 --- a/lib/drives/item/list/content_types/item/columns/item/column_definition_item_request_builder.rb +++ b/lib/drives/item/list/content_types/item/columns/item/column_definition_item_request_builder.rb @@ -35,10 +35,10 @@ def source_column() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}{?%24expand,%24select}") end ## - ## Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + ## Delete navigation property columns for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -47,12 +47,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + ## The collection of column definitions for this content type. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of column_definition ## @@ -61,12 +60,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + ## Update the navigation property columns in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of column_definition @@ -77,46 +75,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + ## Delete navigation property columns for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + ## The collection of column definitions for this content type. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + ## Update the navigation property columns in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -124,20 +122,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_definition_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnDefinitionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + # The collection of column definitions for this content type. class ColumnDefinitionItemRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/list/content_types/item/columns/item/source_column/source_column_request_builder.rb b/lib/drives/item/list/content_types/item/columns/item/source_column/source_column_request_builder.rb index 8dca2381a0..a1a26c1548 100644 --- a/lib/drives/item/list/content_types/item/columns/item/source_column/source_column_request_builder.rb +++ b/lib/drives/item/list/content_types/item/columns/item/source_column/source_column_request_builder.rb @@ -31,7 +31,7 @@ class SourceColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilde ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%24expand,%24select}") end ## ## The source column for the content type column. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a source_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SourceColumnRequestBuilder.new(raw_url, @request_adapter) + end ## # The source column for the content type column. diff --git a/lib/drives/item/list/content_types/item/content_type_item_request_builder.rb b/lib/drives/item/list/content_types/item/content_type_item_request_builder.rb index 995d1c9d34..9caacb0b9f 100644 --- a/lib/drives/item/list/content_types/item/content_type_item_request_builder.rb +++ b/lib/drives/item/list/content_types/item/content_type_item_request_builder.rb @@ -85,7 +85,7 @@ def unpublish() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}{?%24expand,%24select}") end ## ## Delete navigation property contentTypes for drives @@ -97,8 +97,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -111,8 +110,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -127,8 +125,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -138,13 +135,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -154,15 +152,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -174,17 +172,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_type_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentTypeItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of content types present in this list. diff --git a/lib/drives/item/list/content_types/item/copy_to_default_content_location/copy_to_default_content_location_post_request_body.rb b/lib/drives/item/list/content_types/item/copy_to_default_content_location/copy_to_default_content_location_post_request_body.rb index 4fe7307ec1..5805f762bb 100644 --- a/lib/drives/item/list/content_types/item/copy_to_default_content_location/copy_to_default_content_location_post_request_body.rb +++ b/lib/drives/item/list/content_types/item/copy_to_default_content_location/copy_to_default_content_location_post_request_body.rb @@ -27,22 +27,22 @@ class CopyToDefaultContentLocationPostRequestBody # The sourceFile property @source_file ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToDefaultContentLocationPostRequestBody and sets the default values. + ## Instantiates a new CopyToDefaultContentLocationPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/drives/item/list/content_types/item/copy_to_default_content_location/copy_to_default_content_location_request_builder.rb b/lib/drives/item/list/content_types/item/copy_to_default_content_location/copy_to_default_content_location_request_builder.rb index 65f7e2f5a5..c0d0af4067 100644 --- a/lib/drives/item/list/content_types/item/copy_to_default_content_location/copy_to_default_content_location_request_builder.rb +++ b/lib/drives/item/list/content_types/item/copy_to_default_content_location/copy_to_default_content_location_request_builder.rb @@ -29,7 +29,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/copyToDefaultContentLocation") end ## - ## Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + ## Copy a file to a default content location in a content type. The file can then be added as a default file or template via a POST operation. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -40,12 +40,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + ## Copy a file to a default content location in a content type. The file can then be added as a default file or template via a POST operation. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -53,16 +52,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_default_content_location_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToDefaultContentLocationRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/list/content_types/item/is_published/is_published.rb b/lib/drives/item/list/content_types/item/is_published/is_published.rb index b926a8ba4d..ee45196a75 100644 --- a/lib/drives/item/list/content_types/item/is_published/is_published.rb +++ b/lib/drives/item/list/content_types/item/is_published/is_published.rb @@ -1 +1 @@ -require_relative 'is_published_response' +require_relative 'is_published_get_response' diff --git a/lib/drives/item/list/content_types/item/is_published/is_published_get_response.rb b/lib/drives/item/list/content_types/item/is_published/is_published_get_response.rb new file mode 100644 index 0000000000..afec0713c4 --- /dev/null +++ b/lib/drives/item/list/content_types/item/is_published/is_published_get_response.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../drives' +require_relative '../../../../item' +require_relative '../../../list' +require_relative '../../content_types' +require_relative '../item' +require_relative './is_published' + +module MicrosoftGraph + module Drives + module Item + module List + module ContentTypes + module Item + module IsPublished + class IsPublishedGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new IsPublishedGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a is_published_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return IsPublishedGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a boolean + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/list/content_types/item/is_published/is_published_request_builder.rb b/lib/drives/item/list/content_types/item/is_published/is_published_request_builder.rb index c8dfbb5d12..0f7a83c306 100644 --- a/lib/drives/item/list/content_types/item/is_published/is_published_request_builder.rb +++ b/lib/drives/item/list/content_types/item/is_published/is_published_request_builder.rb @@ -29,36 +29,44 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/isPublished()") end ## - ## Invoke function isPublished + ## Check the publishing status of a contentType in a content type hub site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of is_published_response + ## @return a Fiber of is_published_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::List::ContentTypes::Item::IsPublished::IsPublishedResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::List::ContentTypes::Item::IsPublished::IsPublishedGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function isPublished + ## Check the publishing status of a contentType in a content type hub site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a is_published_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IsPublishedRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/list/content_types/item/is_published/is_published_response.rb b/lib/drives/item/list/content_types/item/is_published/is_published_response.rb deleted file mode 100644 index 8f3d2d38e8..0000000000 --- a/lib/drives/item/list/content_types/item/is_published/is_published_response.rb +++ /dev/null @@ -1,97 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../drives' -require_relative '../../../../item' -require_relative '../../../list' -require_relative '../../content_types' -require_relative '../item' -require_relative './is_published' - -module MicrosoftGraph - module Drives - module Item - module List - module ContentTypes - module Item - module IsPublished - class IsPublishedResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new isPublishedResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a is_published_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return IsPublishedResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_boolean_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a boolean - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/drives/item/list/content_types/item/publish/publish_request_builder.rb b/lib/drives/item/list/content_types/item/publish/publish_request_builder.rb index b45d11f230..6813457afb 100644 --- a/lib/drives/item/list/content_types/item/publish/publish_request_builder.rb +++ b/lib/drives/item/list/content_types/item/publish/publish_request_builder.rb @@ -29,7 +29,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/publish") end ## - ## Publishes a [contentType][] present in the content type hub site. + ## Publishes a contentType present in the content type hub site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -38,26 +38,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Publishes a [contentType][] present in the content type hub site. + ## Publishes a contentType present in the content type hub site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a publish_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PublishRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/list/content_types/item/unpublish/unpublish_request_builder.rb b/lib/drives/item/list/content_types/item/unpublish/unpublish_request_builder.rb index 81a7aff666..56f4a506a2 100644 --- a/lib/drives/item/list/content_types/item/unpublish/unpublish_request_builder.rb +++ b/lib/drives/item/list/content_types/item/unpublish/unpublish_request_builder.rb @@ -29,7 +29,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/unpublish") end ## - ## Unpublish a [contentType][] from a content type hub site. + ## Unpublish a contentType from a content type hub site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -38,26 +38,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Unpublish a [contentType][] from a content type hub site. + ## Unpublish a contentType from a content type hub site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unpublish_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnpublishRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/list/created_by_user/created_by_user_request_builder.rb b/lib/drives/item/list/created_by_user/created_by_user_request_builder.rb index 550b9c946e..2583c214fa 100644 --- a/lib/drives/item/list/created_by_user/created_by_user_request_builder.rb +++ b/lib/drives/item/list/created_by_user/created_by_user_request_builder.rb @@ -7,6 +7,7 @@ require_relative '../list' require_relative './created_by_user' require_relative './mailbox_settings/mailbox_settings_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' module MicrosoftGraph module Drives @@ -23,13 +24,18 @@ def mailbox_settings() return MicrosoftGraph::Drives::Item::List::CreatedByUser::MailboxSettings::MailboxSettingsRequestBuilder.new(@path_parameters, @request_adapter) end ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Drives::Item::List::CreatedByUser::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Instantiates a new CreatedByUserRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/createdByUser{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/createdByUser{?%24expand,%24select}") end ## ## Identity of the user who created the item. Read-only. @@ -41,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a created_by_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreatedByUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Identity of the user who created the item. Read-only. diff --git a/lib/drives/item/list/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb b/lib/drives/item/list/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb index 60d258f4e4..8664c1482f 100644 --- a/lib/drives/item/list/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb +++ b/lib/drives/item/list/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb @@ -25,10 +25,10 @@ class MailboxSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/createdByUser/mailboxSettings{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/createdByUser/mailboxSettings{?%24expand,%24select}") end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of mailbox_settings ## @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -53,26 +52,25 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -84,20 +82,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mailbox_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MailboxSettingsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. class MailboxSettingsRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/list/created_by_user/service_provisioning_errors/count/count.rb b/lib/drives/item/list/created_by_user/service_provisioning_errors/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/list/created_by_user/service_provisioning_errors/count/count_request_builder.rb b/lib/drives/item/list/created_by_user/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..6b14c1614a --- /dev/null +++ b/lib/drives/item/list/created_by_user/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../drives' +require_relative '../../../../item' +require_relative '../../../list' +require_relative '../../created_by_user' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Drives + module Item + module List + module CreatedByUser + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/list/created_by_user/service_provisioning_errors/service_provisioning_errors.rb b/lib/drives/item/list/created_by_user/service_provisioning_errors/service_provisioning_errors.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/list/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/drives/item/list/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..6d33b0cfa7 --- /dev/null +++ b/lib/drives/item/list/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,140 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../models/service_provisioning_error_collection_response' +require_relative '../../../../drives' +require_relative '../../../item' +require_relative '../../list' +require_relative '../created_by_user' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Drives + module Item + module List + module CreatedByUser + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \drives\{drive-id}\list\createdByUser\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Drives::Item::List::CreatedByUser::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/list/drive/drive_request_builder.rb b/lib/drives/item/list/drive/drive_request_builder.rb index 7f3cf32da3..dde64eafb5 100644 --- a/lib/drives/item/list/drive/drive_request_builder.rb +++ b/lib/drives/item/list/drive/drive_request_builder.rb @@ -23,10 +23,10 @@ class DriveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/drive{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/drive{?%24expand,%24select}") end ## - ## Only present on document libraries. Allows access to the list as a [drive][] resource with [driveItems][driveItem]. + ## Allows access to the list as a drive resource with driveItems. Only present on document libraries. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of drive ## @@ -35,31 +35,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Drive.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Only present on document libraries. Allows access to the list as a [drive][] resource with [driveItems][driveItem]. + ## Allows access to the list as a drive resource with driveItems. Only present on document libraries. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a drive_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DriveRequestBuilder.new(raw_url, @request_adapter) + end ## - # Only present on document libraries. Allows access to the list as a [drive][] resource with [driveItems][driveItem]. + # Allows access to the list as a drive resource with driveItems. Only present on document libraries. class DriveRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/list/items/count/count_request_builder.rb b/lib/drives/item/list/items/count/count_request_builder.rb index 31ffa794d2..5452855743 100644 --- a/lib/drives/item/list/items/count/count_request_builder.rb +++ b/lib/drives/item/list/items/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/list/items/delta/delta.rb b/lib/drives/item/list/items/delta/delta.rb new file mode 100644 index 0000000000..8a3dc08b72 --- /dev/null +++ b/lib/drives/item/list/items/delta/delta.rb @@ -0,0 +1 @@ +require_relative 'delta_get_response' diff --git a/lib/drives/item/list/items/delta/delta_get_response.rb b/lib/drives/item/list/items/delta/delta_get_response.rb new file mode 100644 index 0000000000..dceb2db0ab --- /dev/null +++ b/lib/drives/item/list/items/delta/delta_get_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_delta_function_response' +require_relative '../../../../../models/list_item' +require_relative '../../../../drives' +require_relative '../../../item' +require_relative '../../list' +require_relative '../items' +require_relative './delta' + +module MicrosoftGraph + module Drives + module Item + module List + module Items + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ListItem.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a list_item + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/list/items/delta/delta_request_builder.rb b/lib/drives/item/list/items/delta/delta_request_builder.rb new file mode 100644 index 0000000000..bac91fafb4 --- /dev/null +++ b/lib/drives/item/list/items/delta/delta_request_builder.rb @@ -0,0 +1,133 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../drives' +require_relative '../../../item' +require_relative '../../list' +require_relative '../items' +require_relative './delta' + +module MicrosoftGraph + module Drives + module Item + module List + module Items + module Delta + ## + # Provides operations to call the delta method. + class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeltaRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get newly created, updated, or deleted list items without having to perform a full read of the entire items collection. Your app begins by calling delta without any parameters.The service starts enumerating the hierarchy of the list, returning pages of items, and either an @odata.nextLink or an @odata.deltaLink.Your app should continue calling with the @odata.nextLink until you see an @odata.deltaLink returned. After you received all the changes, you can apply them to your local state.To check for changes in the future, call delta again with the @odata.deltaLink from the previous response. The delta feed shows the latest state for each item, not each change. If an item was renamed twice, it only shows up once, with its latest name.The same item might appear more than once in a delta feed, for various reasons. You should use the last occurrence you see. Items with this property should be removed from your local state. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of delta_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::List::Items::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get newly created, updated, or deleted list items without having to perform a full read of the entire items collection. Your app begins by calling delta without any parameters.The service starts enumerating the hierarchy of the list, returning pages of items, and either an @odata.nextLink or an @odata.deltaLink.Your app should continue calling with the @odata.nextLink until you see an @odata.deltaLink returned. After you received all the changes, you can apply them to your local state.To check for changes in the future, call delta again with the @odata.deltaLink from the previous response. The delta feed shows the latest state for each item, not each change. If an item was renamed twice, it only shows up once, with its latest name.The same item might appear more than once in a delta feed, for various reasons. You should use the last occurrence you see. Items with this property should be removed from your local state. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get newly created, updated, or deleted list items without having to perform a full read of the entire items collection. Your app begins by calling delta without any parameters.The service starts enumerating the hierarchy of the list, returning pages of items, and either an @odata.nextLink or an @odata.deltaLink.Your app should continue calling with the @odata.nextLink until you see an @odata.deltaLink returned. After you received all the changes, you can apply them to your local state.To check for changes in the future, call delta again with the @odata.deltaLink from the previous response. The delta feed shows the latest state for each item, not each change. If an item was renamed twice, it only shows up once, with its latest name.The same item might appear more than once in a delta feed, for various reasons. You should use the last occurrence you see. Items with this property should be removed from your local state. + class DeltaRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/list/items/delta_with_token/delta_with_token.rb b/lib/drives/item/list/items/delta_with_token/delta_with_token.rb new file mode 100644 index 0000000000..c470085280 --- /dev/null +++ b/lib/drives/item/list/items/delta_with_token/delta_with_token.rb @@ -0,0 +1 @@ +require_relative 'delta_with_token_get_response' diff --git a/lib/drives/item/list/items/delta_with_token/delta_with_token_get_response.rb b/lib/drives/item/list/items/delta_with_token/delta_with_token_get_response.rb new file mode 100644 index 0000000000..c2b674fd35 --- /dev/null +++ b/lib/drives/item/list/items/delta_with_token/delta_with_token_get_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_delta_function_response' +require_relative '../../../../../models/list_item' +require_relative '../../../../drives' +require_relative '../../../item' +require_relative '../../list' +require_relative '../items' +require_relative './delta_with_token' + +module MicrosoftGraph + module Drives + module Item + module List + module Items + module DeltaWithToken + class DeltaWithTokenGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaWithTokenGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_with_token_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaWithTokenGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ListItem.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a list_item + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/list/items/delta_with_token/delta_with_token_request_builder.rb b/lib/drives/item/list/items/delta_with_token/delta_with_token_request_builder.rb new file mode 100644 index 0000000000..4980f9fc3b --- /dev/null +++ b/lib/drives/item/list/items/delta_with_token/delta_with_token_request_builder.rb @@ -0,0 +1,134 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../drives' +require_relative '../../../item' +require_relative '../../list' +require_relative '../items' +require_relative './delta_with_token' + +module MicrosoftGraph + module Drives + module Item + module List + module Items + module DeltaWithToken + ## + # Provides operations to call the delta method. + class DeltaWithTokenRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeltaWithTokenRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param token Usage: token='{token}' + ## @return a void + ## + def initialize(path_parameters, request_adapter, token=nil) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/delta(token='{token}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Invoke function delta + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of delta_with_token_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::List::Items::DeltaWithToken::DeltaWithTokenGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function delta + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_with_token_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaWithTokenRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Invoke function delta + class DeltaWithTokenRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/list/items/item/analytics/analytics_request_builder.rb b/lib/drives/item/list/items/item/analytics/analytics_request_builder.rb index a42c5c2a41..02141a17a7 100644 --- a/lib/drives/item/list/items/item/analytics/analytics_request_builder.rb +++ b/lib/drives/item/list/items/item/analytics/analytics_request_builder.rb @@ -27,7 +27,7 @@ class AnalyticsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/analytics{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/analytics{?%24expand,%24select}") end ## ## Analytics about the view activities that took place on this item. @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemAnalytics.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a analytics_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AnalyticsRequestBuilder.new(raw_url, @request_adapter) + end ## # Analytics about the view activities that took place on this item. diff --git a/lib/drives/item/list/items/item/create_link/create_link.rb b/lib/drives/item/list/items/item/create_link/create_link.rb new file mode 100644 index 0000000000..27eac25458 --- /dev/null +++ b/lib/drives/item/list/items/item/create_link/create_link.rb @@ -0,0 +1 @@ +require_relative 'create_link_post_request_body' diff --git a/lib/drives/item/list/items/item/create_link/create_link_post_request_body.rb b/lib/drives/item/list/items/item/create_link/create_link_post_request_body.rb new file mode 100644 index 0000000000..5b6905bb2d --- /dev/null +++ b/lib/drives/item/list/items/item/create_link/create_link_post_request_body.rb @@ -0,0 +1,239 @@ +require 'date' +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/drive_recipient' +require_relative '../../../../../drives' +require_relative '../../../../item' +require_relative '../../../list' +require_relative '../../items' +require_relative '../item' +require_relative './create_link' + +module MicrosoftGraph + module Drives + module Item + module List + module Items + module Item + module CreateLink + class CreateLinkPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The expirationDateTime property + @expiration_date_time + ## + # The message property + @message + ## + # The password property + @password + ## + # The recipients property + @recipients + ## + # The retainInheritedPermissions property + @retain_inherited_permissions + ## + # The scope property + @scope + ## + # The sendNotification property + @send_notification + ## + # The type property + @type + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new CreateLinkPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a create_link_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CreateLinkPostRequestBody.new + end + ## + ## Gets the expirationDateTime property value. The expirationDateTime property + ## @return a date_time + ## + def expiration_date_time + return @expiration_date_time + end + ## + ## Sets the expirationDateTime property value. The expirationDateTime property + ## @param value Value to set for the expirationDateTime property. + ## @return a void + ## + def expiration_date_time=(value) + @expiration_date_time = value + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "expirationDateTime" => lambda {|n| @expiration_date_time = n.get_date_time_value() }, + "message" => lambda {|n| @message = n.get_string_value() }, + "password" => lambda {|n| @password = n.get_string_value() }, + "recipients" => lambda {|n| @recipients = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DriveRecipient.create_from_discriminator_value(pn) }) }, + "retainInheritedPermissions" => lambda {|n| @retain_inherited_permissions = n.get_boolean_value() }, + "scope" => lambda {|n| @scope = n.get_string_value() }, + "sendNotification" => lambda {|n| @send_notification = n.get_boolean_value() }, + "type" => lambda {|n| @type = n.get_string_value() }, + } + end + ## + ## Gets the message property value. The message property + ## @return a string + ## + def message + return @message + end + ## + ## Sets the message property value. The message property + ## @param value Value to set for the message property. + ## @return a void + ## + def message=(value) + @message = value + end + ## + ## Gets the password property value. The password property + ## @return a string + ## + def password + return @password + end + ## + ## Sets the password property value. The password property + ## @param value Value to set for the password property. + ## @return a void + ## + def password=(value) + @password = value + end + ## + ## Gets the recipients property value. The recipients property + ## @return a drive_recipient + ## + def recipients + return @recipients + end + ## + ## Sets the recipients property value. The recipients property + ## @param value Value to set for the recipients property. + ## @return a void + ## + def recipients=(value) + @recipients = value + end + ## + ## Gets the retainInheritedPermissions property value. The retainInheritedPermissions property + ## @return a boolean + ## + def retain_inherited_permissions + return @retain_inherited_permissions + end + ## + ## Sets the retainInheritedPermissions property value. The retainInheritedPermissions property + ## @param value Value to set for the retainInheritedPermissions property. + ## @return a void + ## + def retain_inherited_permissions=(value) + @retain_inherited_permissions = value + end + ## + ## Gets the scope property value. The scope property + ## @return a string + ## + def scope + return @scope + end + ## + ## Sets the scope property value. The scope property + ## @param value Value to set for the scope property. + ## @return a void + ## + def scope=(value) + @scope = value + end + ## + ## Gets the sendNotification property value. The sendNotification property + ## @return a boolean + ## + def send_notification + return @send_notification + end + ## + ## Sets the sendNotification property value. The sendNotification property + ## @param value Value to set for the sendNotification property. + ## @return a void + ## + def send_notification=(value) + @send_notification = value + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_date_time_value("expirationDateTime", @expiration_date_time) + writer.write_string_value("message", @message) + writer.write_string_value("password", @password) + writer.write_collection_of_object_values("recipients", @recipients) + writer.write_boolean_value("retainInheritedPermissions", @retain_inherited_permissions) + writer.write_string_value("scope", @scope) + writer.write_boolean_value("sendNotification", @send_notification) + writer.write_string_value("type", @type) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the type property value. The type property + ## @return a string + ## + def type + return @type + end + ## + ## Sets the type property value. The type property + ## @param value Value to set for the type property. + ## @return a void + ## + def type=(value) + @type = value + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/list/items/item/create_link/create_link_request_builder.rb b/lib/drives/item/list/items/item/create_link/create_link_request_builder.rb new file mode 100644 index 0000000000..f8a660f09e --- /dev/null +++ b/lib/drives/item/list/items/item/create_link/create_link_request_builder.rb @@ -0,0 +1,83 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../models/permission' +require_relative '../../../../../drives' +require_relative '../../../../item' +require_relative '../../../list' +require_relative '../../items' +require_relative '../item' +require_relative './create_link' + +module MicrosoftGraph + module Drives + module Item + module List + module Items + module Item + module CreateLink + ## + # Provides operations to call the createLink method. + class CreateLinkRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CreateLinkRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/createLink") + end + ## + ## Invoke action createLink + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of permission + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Permission.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action createLink + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a create_link_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreateLinkRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/list/items/item/created_by_user/created_by_user_request_builder.rb b/lib/drives/item/list/items/item/created_by_user/created_by_user_request_builder.rb index 8f0b6ea97c..0e946c4bff 100644 --- a/lib/drives/item/list/items/item/created_by_user/created_by_user_request_builder.rb +++ b/lib/drives/item/list/items/item/created_by_user/created_by_user_request_builder.rb @@ -9,6 +9,7 @@ require_relative '../item' require_relative './created_by_user' require_relative './mailbox_settings/mailbox_settings_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' module MicrosoftGraph module Drives @@ -27,13 +28,18 @@ def mailbox_settings() return MicrosoftGraph::Drives::Item::List::Items::Item::CreatedByUser::MailboxSettings::MailboxSettingsRequestBuilder.new(@path_parameters, @request_adapter) end ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Drives::Item::List::Items::Item::CreatedByUser::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Instantiates a new CreatedByUserRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/createdByUser{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/createdByUser{?%24expand,%24select}") end ## ## Identity of the user who created the item. Read-only. @@ -45,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a created_by_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreatedByUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Identity of the user who created the item. Read-only. diff --git a/lib/drives/item/list/items/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb b/lib/drives/item/list/items/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb index aafcec335f..5d86f02365 100644 --- a/lib/drives/item/list/items/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb +++ b/lib/drives/item/list/items/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb @@ -29,10 +29,10 @@ class MailboxSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/createdByUser/mailboxSettings{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}") end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of mailbox_settings ## @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -57,26 +56,25 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -88,20 +86,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mailbox_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MailboxSettingsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. class MailboxSettingsRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/list/items/item/created_by_user/service_provisioning_errors/count/count.rb b/lib/drives/item/list/items/item/created_by_user/service_provisioning_errors/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/list/items/item/created_by_user/service_provisioning_errors/count/count_request_builder.rb b/lib/drives/item/list/items/item/created_by_user/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..a3f61a46c3 --- /dev/null +++ b/lib/drives/item/list/items/item/created_by_user/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../drives' +require_relative '../../../../../../item' +require_relative '../../../../../list' +require_relative '../../../../items' +require_relative '../../../item' +require_relative '../../created_by_user' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Drives + module Item + module List + module Items + module Item + module CreatedByUser + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/list/items/item/created_by_user/service_provisioning_errors/service_provisioning_errors.rb b/lib/drives/item/list/items/item/created_by_user/service_provisioning_errors/service_provisioning_errors.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/list/items/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/drives/item/list/items/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..0f0ff078c1 --- /dev/null +++ b/lib/drives/item/list/items/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,146 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../models/service_provisioning_error_collection_response' +require_relative '../../../../../../drives' +require_relative '../../../../../item' +require_relative '../../../../list' +require_relative '../../../items' +require_relative '../../item' +require_relative '../created_by_user' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Drives + module Item + module List + module Items + module Item + module CreatedByUser + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \drives\{drive-id}\list\items\{listItem-id}\createdByUser\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Drives::Item::List::Items::Item::CreatedByUser::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/list/items/item/document_set_versions/count/count_request_builder.rb b/lib/drives/item/list/items/item/document_set_versions/count/count_request_builder.rb index a9f29c0861..c35afe86ea 100644 --- a/lib/drives/item/list/items/item/document_set_versions/count/count_request_builder.rb +++ b/lib/drives/item/list/items/item/document_set_versions/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/documentSetVersions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/documentSetVersions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/list/items/item/document_set_versions/document_set_versions_request_builder.rb b/lib/drives/item/list/items/item/document_set_versions/document_set_versions_request_builder.rb index 7b7400c57a..879977fafb 100644 --- a/lib/drives/item/list/items/item/document_set_versions/document_set_versions_request_builder.rb +++ b/lib/drives/item/list/items/item/document_set_versions/document_set_versions_request_builder.rb @@ -46,10 +46,10 @@ def by_document_set_version_id(document_set_version_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/documentSetVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/documentSetVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get a list of the versions of a document set item in a list. + ## Version information for a document set version created by a user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of document_set_version_collection_response ## @@ -58,12 +58,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DocumentSetVersionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new version of a document set item in a list. + ## Create new navigation property to documentSetVersions for drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of document_set_version @@ -74,30 +73,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DocumentSetVersion.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get a list of the versions of a document set item in a list. + ## Version information for a document set version created by a user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new version of a document set item in a list. + ## Create new navigation property to documentSetVersions for drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a document_set_versions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DocumentSetVersionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a list of the versions of a document set item in a list. + # Version information for a document set version created by a user. class DocumentSetVersionsRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/list/items/item/document_set_versions/item/document_set_version_item_request_builder.rb b/lib/drives/item/list/items/item/document_set_versions/item/document_set_version_item_request_builder.rb index cd8d7e0775..3f8b8af275 100644 --- a/lib/drives/item/list/items/item/document_set_versions/item/document_set_version_item_request_builder.rb +++ b/lib/drives/item/list/items/item/document_set_versions/item/document_set_version_item_request_builder.rb @@ -41,10 +41,10 @@ def restore() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}{?%24expand,%24select}") end ## - ## Delete a version of a document set in a list. + ## Delete navigation property documentSetVersions for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -53,12 +53,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read the properties and relationships of a documentSetVersion object. + ## Version information for a document set version created by a user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of document_set_version ## @@ -67,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DocumentSetVersion.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,42 +81,42 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DocumentSetVersion.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a version of a document set in a list. + ## Delete navigation property documentSetVersions for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read the properties and relationships of a documentSetVersion object. + ## Version information for a document set version created by a user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -130,20 +128,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a document_set_version_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DocumentSetVersionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a documentSetVersion object. + # Version information for a document set version created by a user. class DocumentSetVersionItemRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/list/items/item/document_set_versions/item/fields/fields_request_builder.rb b/lib/drives/item/list/items/item/document_set_versions/item/fields/fields_request_builder.rb index 916442d964..65d319c1f0 100644 --- a/lib/drives/item/list/items/item/document_set_versions/item/fields/fields_request_builder.rb +++ b/lib/drives/item/list/items/item/document_set_versions/item/fields/fields_request_builder.rb @@ -31,7 +31,7 @@ class FieldsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}/fields{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}/fields{?%24expand,%24select}") end ## ## Delete navigation property fields for drives @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::FieldValueSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::FieldValueSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,15 +98,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a fields_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FieldsRequestBuilder.new(raw_url, @request_adapter) + end ## # A collection of the fields and values for this version of the list item. diff --git a/lib/drives/item/list/items/item/document_set_versions/item/restore/restore_request_builder.rb b/lib/drives/item/list/items/item/document_set_versions/item/restore/restore_request_builder.rb index c2e675099a..91dda6ff34 100644 --- a/lib/drives/item/list/items/item/document_set_versions/item/restore/restore_request_builder.rb +++ b/lib/drives/item/list/items/item/document_set_versions/item/restore/restore_request_builder.rb @@ -42,8 +42,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,15 +52,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a restore_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RestoreRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/list/items/item/drive_item/content/content_request_builder.rb b/lib/drives/item/list/items/item/drive_item/content/content_request_builder.rb index b81adb96c7..292b5b2eff 100644 --- a/lib/drives/item/list/items/item/drive_item/content/content_request_builder.rb +++ b/lib/drives/item/list/items/item/drive_item/content/content_request_builder.rb @@ -29,7 +29,20 @@ class ContentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/driveItem/content") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/driveItem/content{?%24format*}") + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) end ## ## The content stream, if the item represents a file. @@ -41,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -57,8 +69,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,15 +77,34 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -86,17 +116,49 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The content stream, if the item represents a file. + class ContentRequestBuilderGetQueryParameters + + ## + # Format of the content + attr_accessor :format + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "format" + return "%24format" + else + return original_name + end + end + end end end end diff --git a/lib/drives/item/list/items/item/drive_item/drive_item_request_builder.rb b/lib/drives/item/list/items/item/drive_item/drive_item_request_builder.rb index dddae381f2..6d820bf6e4 100644 --- a/lib/drives/item/list/items/item/drive_item/drive_item_request_builder.rb +++ b/lib/drives/item/list/items/item/drive_item/drive_item_request_builder.rb @@ -33,10 +33,10 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/driveItem{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/driveItem{?%24expand,%24select}") end ## - ## For document libraries, the driveItem relationship exposes the listItem as a [driveItem][] + ## For document libraries, the driveItem relationship exposes the listItem as a driveItem ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of drive_item ## @@ -45,31 +45,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## - ## For document libraries, the driveItem relationship exposes the listItem as a [driveItem][] + ## For document libraries, the driveItem relationship exposes the listItem as a driveItem ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a drive_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DriveItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # For document libraries, the driveItem relationship exposes the listItem as a [driveItem][] + # For document libraries, the driveItem relationship exposes the listItem as a driveItem class DriveItemRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/list/items/item/fields/fields_request_builder.rb b/lib/drives/item/list/items/item/fields/fields_request_builder.rb index d5491b3b2e..c62a33ca06 100644 --- a/lib/drives/item/list/items/item/fields/fields_request_builder.rb +++ b/lib/drives/item/list/items/item/fields/fields_request_builder.rb @@ -27,7 +27,7 @@ class FieldsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/fields{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/fields{?%24expand,%24select}") end ## ## Delete navigation property fields for drives @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,12 +52,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::FieldValueSet.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties on a [listItem][]. + ## Update the navigation property fields in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of field_value_set @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::FieldValueSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,13 +77,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,19 +94,19 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties on a [listItem][]. + ## Update the navigation property fields in drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -116,17 +114,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a fields_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FieldsRequestBuilder.new(raw_url, @request_adapter) + end ## # The values of the columns set on this list item. diff --git a/lib/drives/item/list/items/item/get_activities_by_interval/get_activities_by_interval.rb b/lib/drives/item/list/items/item/get_activities_by_interval/get_activities_by_interval.rb index 392eb95c99..ab461e5b20 100644 --- a/lib/drives/item/list/items/item/get_activities_by_interval/get_activities_by_interval.rb +++ b/lib/drives/item/list/items/item/get_activities_by_interval/get_activities_by_interval.rb @@ -1 +1 @@ -require_relative 'get_activities_by_interval_response' +require_relative 'get_activities_by_interval_get_response' diff --git a/lib/drives/item/list/items/item/get_activities_by_interval/get_activities_by_interval_get_response.rb b/lib/drives/item/list/items/item/get_activities_by_interval/get_activities_by_interval_get_response.rb new file mode 100644 index 0000000000..62ccf5bbe1 --- /dev/null +++ b/lib/drives/item/list/items/item/get_activities_by_interval/get_activities_by_interval_get_response.rb @@ -0,0 +1,81 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../models/item_activity_stat' +require_relative '../../../../../drives' +require_relative '../../../../item' +require_relative '../../../list' +require_relative '../../items' +require_relative '../item' +require_relative './get_activities_by_interval' + +module MicrosoftGraph + module Drives + module Item + module List + module Items + module Item + module GetActivitiesByInterval + class GetActivitiesByIntervalGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetActivitiesByIntervalGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_activities_by_interval_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetActivitiesByIntervalGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a item_activity_stat + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/list/items/item/get_activities_by_interval/get_activities_by_interval_request_builder.rb b/lib/drives/item/list/items/item/get_activities_by_interval/get_activities_by_interval_request_builder.rb index d1bce65d63..d99903b4b5 100644 --- a/lib/drives/item/list/items/item/get_activities_by_interval/get_activities_by_interval_request_builder.rb +++ b/lib/drives/item/list/items/item/get_activities_by_interval/get_activities_by_interval_request_builder.rb @@ -26,21 +26,20 @@ class GetActivitiesByIntervalRequestBuilder < MicrosoftKiotaAbstractions::BaseRe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/getActivitiesByInterval(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/getActivitiesByInterval(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Invoke function getActivitiesByInterval ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_activities_by_interval_response + ## @return a Fiber of get_activities_by_interval_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::List::Items::Item::GetActivitiesByInterval::GetActivitiesByIntervalResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::List::Items::Item::GetActivitiesByInterval::GetActivitiesByIntervalGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function getActivitiesByInterval @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_activities_by_interval_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetActivitiesByIntervalRequestBuilder.new(raw_url, @request_adapter) + end ## # Invoke function getActivitiesByInterval @@ -69,6 +77,9 @@ class GetActivitiesByIntervalRequestBuilderGetQueryParameters # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -96,6 +107,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/drives/item/list/items/item/get_activities_by_interval/get_activities_by_interval_response.rb b/lib/drives/item/list/items/item/get_activities_by_interval/get_activities_by_interval_response.rb deleted file mode 100644 index dc677a5ea7..0000000000 --- a/lib/drives/item/list/items/item/get_activities_by_interval/get_activities_by_interval_response.rb +++ /dev/null @@ -1,81 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../../models/item_activity_stat' -require_relative '../../../../../drives' -require_relative '../../../../item' -require_relative '../../../list' -require_relative '../../items' -require_relative '../item' -require_relative './get_activities_by_interval' - -module MicrosoftGraph - module Drives - module Item - module List - module Items - module Item - module GetActivitiesByInterval - class GetActivitiesByIntervalResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getActivitiesByIntervalResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_activities_by_interval_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetActivitiesByIntervalResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a item_activity_stat - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/drives/item/list/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/dab1c2feb9ecf2d349721478e4ff8fe9c46b97a0c44110851b2b17a08d22383e.rb b/lib/drives/item/list/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/dab1c2feb9ecf2d349721478e4ff8fe9c46b97a0c44110851b2b17a08d22383e.rb index ab884c67ce..287474f321 100644 --- a/lib/drives/item/list/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/dab1c2feb9ecf2d349721478e4ff8fe9c46b97a0c44110851b2b17a08d22383e.rb +++ b/lib/drives/item/list/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/dab1c2feb9ecf2d349721478e4ff8fe9c46b97a0c44110851b2b17a08d22383e.rb @@ -29,21 +29,20 @@ class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequest ## @return a void ## def initialize(path_parameters, request_adapter, end_date_time=nil, interval=nil, start_date_time=nil) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Invoke function getActivitiesByInterval ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response + ## @return a Fiber of get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::List::Items::Item::GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval::GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::List::Items::Item::GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval::GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function getActivitiesByInterval @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.new(raw_url, @request_adapter) + end ## # Invoke function getActivitiesByInterval @@ -72,6 +80,9 @@ class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequest # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -99,6 +110,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/drives/item/list/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval.rb b/lib/drives/item/list/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval.rb index a8604aeec9..d4ef65f826 100644 --- a/lib/drives/item/list/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval.rb +++ b/lib/drives/item/list/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval.rb @@ -1 +1 @@ -require_relative 'get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response' +require_relative 'get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response' diff --git a/lib/drives/item/list/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response.rb b/lib/drives/item/list/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response.rb new file mode 100644 index 0000000000..42b6e77627 --- /dev/null +++ b/lib/drives/item/list/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response.rb @@ -0,0 +1,81 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../models/item_activity_stat' +require_relative '../../../../../drives' +require_relative '../../../../item' +require_relative '../../../list' +require_relative '../../items' +require_relative '../item' +require_relative './get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval' + +module MicrosoftGraph + module Drives + module Item + module List + module Items + module Item + module GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval + class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a item_activity_stat + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/list/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response.rb b/lib/drives/item/list/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response.rb deleted file mode 100644 index dc47b02cc1..0000000000 --- a/lib/drives/item/list/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response.rb +++ /dev/null @@ -1,81 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../../models/item_activity_stat' -require_relative '../../../../../drives' -require_relative '../../../../item' -require_relative '../../../list' -require_relative '../../items' -require_relative '../item' -require_relative './get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval' - -module MicrosoftGraph - module Drives - module Item - module List - module Items - module Item - module GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval - class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a item_activity_stat - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/drives/item/list/items/item/last_modified_by_user/last_modified_by_user_request_builder.rb b/lib/drives/item/list/items/item/last_modified_by_user/last_modified_by_user_request_builder.rb index 033a195213..c88c03a6a5 100644 --- a/lib/drives/item/list/items/item/last_modified_by_user/last_modified_by_user_request_builder.rb +++ b/lib/drives/item/list/items/item/last_modified_by_user/last_modified_by_user_request_builder.rb @@ -9,6 +9,7 @@ require_relative '../item' require_relative './last_modified_by_user' require_relative './mailbox_settings/mailbox_settings_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' module MicrosoftGraph module Drives @@ -27,13 +28,18 @@ def mailbox_settings() return MicrosoftGraph::Drives::Item::List::Items::Item::LastModifiedByUser::MailboxSettings::MailboxSettingsRequestBuilder.new(@path_parameters, @request_adapter) end ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Drives::Item::List::Items::Item::LastModifiedByUser::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/lastModifiedByUser{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/lastModifiedByUser{?%24expand,%24select}") end ## ## Identity of the user who last modified the item. Read-only. @@ -45,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_modified_by_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastModifiedByUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Identity of the user who last modified the item. Read-only. diff --git a/lib/drives/item/list/items/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb b/lib/drives/item/list/items/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb index 090428e1be..748d4b0465 100644 --- a/lib/drives/item/list/items/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb +++ b/lib/drives/item/list/items/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb @@ -29,10 +29,10 @@ class MailboxSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/lastModifiedByUser/mailboxSettings{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}") end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of mailbox_settings ## @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -57,26 +56,25 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -88,20 +86,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mailbox_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MailboxSettingsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. class MailboxSettingsRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/list/items/item/last_modified_by_user/service_provisioning_errors/count/count.rb b/lib/drives/item/list/items/item/last_modified_by_user/service_provisioning_errors/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/list/items/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb b/lib/drives/item/list/items/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..3771d4910c --- /dev/null +++ b/lib/drives/item/list/items/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../drives' +require_relative '../../../../../../item' +require_relative '../../../../../list' +require_relative '../../../../items' +require_relative '../../../item' +require_relative '../../last_modified_by_user' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Drives + module Item + module List + module Items + module Item + module LastModifiedByUser + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/list/items/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors.rb b/lib/drives/item/list/items/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/list/items/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/drives/item/list/items/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..7f00d99b3a --- /dev/null +++ b/lib/drives/item/list/items/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,146 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../models/service_provisioning_error_collection_response' +require_relative '../../../../../../drives' +require_relative '../../../../../item' +require_relative '../../../../list' +require_relative '../../../items' +require_relative '../../item' +require_relative '../last_modified_by_user' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Drives + module Item + module List + module Items + module Item + module LastModifiedByUser + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \drives\{drive-id}\list\items\{listItem-id}\lastModifiedByUser\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Drives::Item::List::Items::Item::LastModifiedByUser::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/list/items/item/list_item_item_request_builder.rb b/lib/drives/item/list/items/item/list_item_item_request_builder.rb index 386b4d294a..95944df762 100644 --- a/lib/drives/item/list/items/item/list_item_item_request_builder.rb +++ b/lib/drives/item/list/items/item/list_item_item_request_builder.rb @@ -8,6 +8,7 @@ require_relative '../items' require_relative './analytics/analytics_request_builder' require_relative './created_by_user/created_by_user_request_builder' +require_relative './create_link/create_link_request_builder' require_relative './document_set_versions/document_set_versions_request_builder' require_relative './drive_item/drive_item_request_builder' require_relative './fields/fields_request_builder' @@ -38,6 +39,11 @@ def created_by_user() return MicrosoftGraph::Drives::Item::List::Items::Item::CreatedByUser::CreatedByUserRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the createLink method. + def create_link() + return MicrosoftGraph::Drives::Item::List::Items::Item::CreateLink::CreateLinkRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to manage the documentSetVersions property of the microsoft.graph.listItem entity. def document_set_versions() return MicrosoftGraph::Drives::Item::List::Items::Item::DocumentSetVersions::DocumentSetVersionsRequestBuilder.new(@path_parameters, @request_adapter) @@ -74,10 +80,10 @@ def versions() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}{?%24expand,%24select}") end ## - ## Removes an item from a [list][]. + ## Delete navigation property items for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -86,12 +92,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Returns the metadata for an [item][] in a [list][]. + ## All items contained in the list. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of list_item ## @@ -100,8 +105,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ListItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -129,42 +133,42 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ListItem.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Removes an item from a [list][]. + ## Delete navigation property items for drives ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Returns the metadata for an [item][] in a [list][]. + ## All items contained in the list. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -176,20 +180,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a list_item_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ListItemItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Returns the metadata for an [item][] in a [list][]. + # All items contained in the list. class ListItemItemRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/list/items/item/versions/count/count_request_builder.rb b/lib/drives/item/list/items/item/versions/count/count_request_builder.rb index 5bfc512963..789472dd5e 100644 --- a/lib/drives/item/list/items/item/versions/count/count_request_builder.rb +++ b/lib/drives/item/list/items/item/versions/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/versions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/versions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/list/items/item/versions/item/fields/fields_request_builder.rb b/lib/drives/item/list/items/item/versions/item/fields/fields_request_builder.rb index 9202d0a9b4..12eb3e065b 100644 --- a/lib/drives/item/list/items/item/versions/item/fields/fields_request_builder.rb +++ b/lib/drives/item/list/items/item/versions/item/fields/fields_request_builder.rb @@ -31,7 +31,7 @@ class FieldsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/versions/{listItemVersion%2Did}/fields{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/versions/{listItemVersion%2Did}/fields{?%24expand,%24select}") end ## ## Delete navigation property fields for drives @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::FieldValueSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::FieldValueSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,15 +98,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a fields_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FieldsRequestBuilder.new(raw_url, @request_adapter) + end ## # A collection of the fields and values for this version of the list item. diff --git a/lib/drives/item/list/items/item/versions/item/list_item_version_item_request_builder.rb b/lib/drives/item/list/items/item/versions/item/list_item_version_item_request_builder.rb index 3bb64f6b6b..2b7c489172 100644 --- a/lib/drives/item/list/items/item/versions/item/list_item_version_item_request_builder.rb +++ b/lib/drives/item/list/items/item/versions/item/list_item_version_item_request_builder.rb @@ -41,7 +41,7 @@ def restore_version() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/versions/{listItemVersion%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/versions/{listItemVersion%2Did}{?%24expand,%24select}") end ## ## Delete navigation property versions for drives @@ -53,12 +53,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the metadata for a specific version of a ListItem. + ## The list of previous versions of the list item. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of list_item_version ## @@ -67,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ListItemVersion.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,8 +81,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ListItemVersion.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -94,31 +91,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the metadata for a specific version of a ListItem. + ## The list of previous versions of the list item. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -130,20 +128,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a list_item_version_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ListItemVersionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the metadata for a specific version of a ListItem. + # The list of previous versions of the list item. class ListItemVersionItemRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/list/items/item/versions/item/restore_version/restore_version_request_builder.rb b/lib/drives/item/list/items/item/versions/item/restore_version/restore_version_request_builder.rb index 568ca0912d..779d7b7d25 100644 --- a/lib/drives/item/list/items/item/versions/item/restore_version/restore_version_request_builder.rb +++ b/lib/drives/item/list/items/item/versions/item/restore_version/restore_version_request_builder.rb @@ -42,8 +42,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,15 +52,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a restore_version_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RestoreVersionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/list/items/item/versions/versions_request_builder.rb b/lib/drives/item/list/items/item/versions/versions_request_builder.rb index 51a4f0278d..e41f210ad4 100644 --- a/lib/drives/item/list/items/item/versions/versions_request_builder.rb +++ b/lib/drives/item/list/items/item/versions/versions_request_builder.rb @@ -46,10 +46,10 @@ def by_list_item_version_id(list_item_version_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/versions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/versions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + ## The list of previous versions of the list item. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of list_item_version_collection_response ## @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ListItemVersionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,26 +73,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ListItemVersion.create_from_discriminator_value(pn) }, error_mapping) end ## - ## SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + ## The list of previous versions of the list item. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a versions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VersionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + # The list of previous versions of the list item. class VersionsRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/list/items/items_request_builder.rb b/lib/drives/item/list/items/items_request_builder.rb index c3de7ff107..6b0d6a27e3 100644 --- a/lib/drives/item/list/items/items_request_builder.rb +++ b/lib/drives/item/list/items/items_request_builder.rb @@ -7,6 +7,8 @@ require_relative '../../item' require_relative '../list' require_relative './count/count_request_builder' +require_relative './delta/delta_request_builder' +require_relative './delta_with_token/delta_with_token_request_builder' require_relative './item/list_item_item_request_builder' require_relative './items' @@ -25,6 +27,11 @@ def count() return MicrosoftGraph::Drives::Item::List::Items::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the delta method. + def delta() + return MicrosoftGraph::Drives::Item::List::Items::Delta::DeltaRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Provides operations to manage the items property of the microsoft.graph.list entity. ## @param list_item_id The unique identifier of listItem ## @return a list_item_item_request_builder @@ -42,10 +49,19 @@ def by_list_item_id(list_item_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items{?%24top,%24skip,%24search,%24filter,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Provides operations to call the delta method. + ## @param token Usage: token='{token}' + ## @return a delta_with_token_request_builder + ## + def delta_with_token(token) + raise StandardError, 'token cannot be null' if token.nil? + return DeltaWithTokenRequestBuilder.new(@path_parameters, @request_adapter, token) end ## - ## Get the collection of [items][item] in a [list][]. + ## All items contained in the list. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of list_item_collection_response ## @@ -54,12 +70,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ListItemCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new [listItem][] in a [list][]. + ## Create new navigation property to items for drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of list_item @@ -70,30 +85,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ListItem.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the collection of [items][item] in a [list][]. + ## All items contained in the list. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new [listItem][] in a [list][]. + ## Create new navigation property to items for drives ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -101,22 +115,34 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a items_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the collection of [items][item] in a [list][]. + # All items contained in the list. class ItemsRequestBuilderGetQueryParameters + ## + # Include count of items + attr_accessor :count ## # Expand related entities attr_accessor :expand @@ -146,6 +172,8 @@ class ItemsRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "count" + return "%24count" when "expand" return "%24expand" when "filter" diff --git a/lib/drives/item/list/last_modified_by_user/last_modified_by_user_request_builder.rb b/lib/drives/item/list/last_modified_by_user/last_modified_by_user_request_builder.rb index 5c8bf5e54f..45f97d064b 100644 --- a/lib/drives/item/list/last_modified_by_user/last_modified_by_user_request_builder.rb +++ b/lib/drives/item/list/last_modified_by_user/last_modified_by_user_request_builder.rb @@ -7,6 +7,7 @@ require_relative '../list' require_relative './last_modified_by_user' require_relative './mailbox_settings/mailbox_settings_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' module MicrosoftGraph module Drives @@ -23,13 +24,18 @@ def mailbox_settings() return MicrosoftGraph::Drives::Item::List::LastModifiedByUser::MailboxSettings::MailboxSettingsRequestBuilder.new(@path_parameters, @request_adapter) end ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Drives::Item::List::LastModifiedByUser::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/lastModifiedByUser{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/lastModifiedByUser{?%24expand,%24select}") end ## ## Identity of the user who last modified the item. Read-only. @@ -41,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_modified_by_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastModifiedByUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Identity of the user who last modified the item. Read-only. diff --git a/lib/drives/item/list/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb b/lib/drives/item/list/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb index 418bf2137d..2abde97e78 100644 --- a/lib/drives/item/list/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb +++ b/lib/drives/item/list/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb @@ -25,10 +25,10 @@ class MailboxSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/lastModifiedByUser/mailboxSettings{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/lastModifiedByUser/mailboxSettings{?%24expand,%24select}") end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of mailbox_settings ## @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -53,26 +52,25 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -84,20 +82,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mailbox_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MailboxSettingsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. class MailboxSettingsRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/list/last_modified_by_user/service_provisioning_errors/count/count.rb b/lib/drives/item/list/last_modified_by_user/service_provisioning_errors/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/list/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb b/lib/drives/item/list/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..bf986aaa3c --- /dev/null +++ b/lib/drives/item/list/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../drives' +require_relative '../../../../item' +require_relative '../../../list' +require_relative '../../last_modified_by_user' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Drives + module Item + module List + module LastModifiedByUser + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/list/last_modified_by_user/service_provisioning_errors/service_provisioning_errors.rb b/lib/drives/item/list/last_modified_by_user/service_provisioning_errors/service_provisioning_errors.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/drives/item/list/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/drives/item/list/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..a7e4a0e835 --- /dev/null +++ b/lib/drives/item/list/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,140 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../models/service_provisioning_error_collection_response' +require_relative '../../../../drives' +require_relative '../../../item' +require_relative '../../list' +require_relative '../last_modified_by_user' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Drives + module Item + module List + module LastModifiedByUser + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \drives\{drive-id}\list\lastModifiedByUser\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Drives::Item::List::LastModifiedByUser::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/drives/item/list/list_request_builder.rb b/lib/drives/item/list/list_request_builder.rb index 54585a0ef3..e8c42ac50a 100644 --- a/lib/drives/item/list/list_request_builder.rb +++ b/lib/drives/item/list/list_request_builder.rb @@ -69,7 +69,7 @@ def subscriptions() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list{?%24expand,%24select}") end ## ## Delete navigation property list for drives @@ -81,8 +81,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -95,8 +94,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::List.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -111,8 +109,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::List.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -122,13 +119,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,15 +136,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -158,17 +156,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a list_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ListRequestBuilder.new(raw_url, @request_adapter) + end ## # For drives in SharePoint, the underlying document library list. Read-only. Nullable. diff --git a/lib/drives/item/list/operations/count/count_request_builder.rb b/lib/drives/item/list/operations/count/count_request_builder.rb index 0891b1c25d..c06a06b2c4 100644 --- a/lib/drives/item/list/operations/count/count_request_builder.rb +++ b/lib/drives/item/list/operations/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/operations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/operations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/list/operations/item/rich_long_running_operation_item_request_builder.rb b/lib/drives/item/list/operations/item/rich_long_running_operation_item_request_builder.rb index 5f9478de67..19c70bc78b 100644 --- a/lib/drives/item/list/operations/item/rich_long_running_operation_item_request_builder.rb +++ b/lib/drives/item/list/operations/item/rich_long_running_operation_item_request_builder.rb @@ -25,7 +25,7 @@ class RichLongRunningOperationItemRequestBuilder < MicrosoftKiotaAbstractions::B ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/operations/{richLongRunningOperation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/operations/{richLongRunningOperation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property operations for drives @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RichLongRunningOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RichLongRunningOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rich_long_running_operation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RichLongRunningOperationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of long-running operations on the list. diff --git a/lib/drives/item/list/operations/operations_request_builder.rb b/lib/drives/item/list/operations/operations_request_builder.rb index fc3993f01c..9dd941f6a0 100644 --- a/lib/drives/item/list/operations/operations_request_builder.rb +++ b/lib/drives/item/list/operations/operations_request_builder.rb @@ -42,7 +42,7 @@ def by_rich_long_running_operation_id(rich_long_running_operation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The collection of long-running operations on the list. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RichLongRunningOperationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RichLongRunningOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a operations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OperationsRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of long-running operations on the list. diff --git a/lib/drives/item/list/subscriptions/count/count_request_builder.rb b/lib/drives/item/list/subscriptions/count/count_request_builder.rb index 9feeeb94b2..d911b4065f 100644 --- a/lib/drives/item/list/subscriptions/count/count_request_builder.rb +++ b/lib/drives/item/list/subscriptions/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/subscriptions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/subscriptions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/list/subscriptions/item/reauthorize/reauthorize_request_builder.rb b/lib/drives/item/list/subscriptions/item/reauthorize/reauthorize_request_builder.rb index 4cf5bf1cd2..9009a4e584 100644 --- a/lib/drives/item/list/subscriptions/item/reauthorize/reauthorize_request_builder.rb +++ b/lib/drives/item/list/subscriptions/item/reauthorize/reauthorize_request_builder.rb @@ -38,8 +38,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,15 +48,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reauthorize_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReauthorizeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/drives/item/list/subscriptions/item/subscription_item_request_builder.rb b/lib/drives/item/list/subscriptions/item/subscription_item_request_builder.rb index 6f1da28383..5195f83bc4 100644 --- a/lib/drives/item/list/subscriptions/item/subscription_item_request_builder.rb +++ b/lib/drives/item/list/subscriptions/item/subscription_item_request_builder.rb @@ -31,7 +31,7 @@ def reauthorize() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/subscriptions/{subscription%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/subscriptions/{subscription%2Did}{?%24expand,%24select}") end ## ## Delete navigation property subscriptions for drives @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Subscription.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Subscription.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,15 +98,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a subscription_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SubscriptionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The set of subscriptions on the list. diff --git a/lib/drives/item/list/subscriptions/subscriptions_request_builder.rb b/lib/drives/item/list/subscriptions/subscriptions_request_builder.rb index 1df375e1a3..15e669c95b 100644 --- a/lib/drives/item/list/subscriptions/subscriptions_request_builder.rb +++ b/lib/drives/item/list/subscriptions/subscriptions_request_builder.rb @@ -42,7 +42,7 @@ def by_subscription_id(subscription_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/subscriptions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/list/subscriptions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The set of subscriptions on the list. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SubscriptionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Subscription.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a subscriptions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SubscriptionsRequestBuilder.new(raw_url, @request_adapter) + end ## # The set of subscriptions on the list. diff --git a/lib/drives/item/recent/recent.rb b/lib/drives/item/recent/recent.rb index e118c8d3c1..5acd45a552 100644 --- a/lib/drives/item/recent/recent.rb +++ b/lib/drives/item/recent/recent.rb @@ -1 +1 @@ -require_relative 'recent_response' +require_relative 'recent_get_response' diff --git a/lib/drives/item/recent/recent_get_response.rb b/lib/drives/item/recent/recent_get_response.rb new file mode 100644 index 0000000000..86556d944f --- /dev/null +++ b/lib/drives/item/recent/recent_get_response.rb @@ -0,0 +1,72 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../../models/drive_item' +require_relative '../../drives' +require_relative '../item' +require_relative './recent' + +module MicrosoftGraph + module Drives + module Item + module Recent + class RecentGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new RecentGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a recent_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return RecentGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a drive_item + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/drives/item/recent/recent_request_builder.rb b/lib/drives/item/recent/recent_request_builder.rb index e7f89eff3f..25b6936348 100644 --- a/lib/drives/item/recent/recent_request_builder.rb +++ b/lib/drives/item/recent/recent_request_builder.rb @@ -20,49 +20,60 @@ class RecentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/recent(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/recent(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function recent + ## List a set of items that have been recently used by the signed in user.This collection includes items that are in the user's drive and items they have access to from other drives. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of recent_response + ## @return a Fiber of recent_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Recent::RecentResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::Recent::RecentGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function recent + ## List a set of items that have been recently used by the signed in user.This collection includes items that are in the user's drive and items they have access to from other drives. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a recent_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RecentRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function recent + # List a set of items that have been recently used by the signed in user.This collection includes items that are in the user's drive and items they have access to from other drives. class RecentRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -90,6 +101,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/drives/item/recent/recent_response.rb b/lib/drives/item/recent/recent_response.rb deleted file mode 100644 index 13d5ac884d..0000000000 --- a/lib/drives/item/recent/recent_response.rb +++ /dev/null @@ -1,72 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../../models/drive_item' -require_relative '../../drives' -require_relative '../item' -require_relative './recent' - -module MicrosoftGraph - module Drives - module Item - module Recent - class RecentResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new recentResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a recent_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return RecentResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a drive_item - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/drives/item/root/content/content_request_builder.rb b/lib/drives/item/root/content/content_request_builder.rb index 9052b09223..fb5dbf2644 100644 --- a/lib/drives/item/root/content/content_request_builder.rb +++ b/lib/drives/item/root/content/content_request_builder.rb @@ -23,7 +23,20 @@ class ContentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/root/content") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/root/content{?%24format*}") + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) end ## ## The content stream, if the item represents a file. @@ -35,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -51,8 +63,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -60,15 +71,34 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -80,17 +110,49 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The content stream, if the item represents a file. + class ContentRequestBuilderGetQueryParameters + + ## + # Format of the content + attr_accessor :format + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "format" + return "%24format" + else + return original_name + end + end + end end end end diff --git a/lib/drives/item/root/root_request_builder.rb b/lib/drives/item/root/root_request_builder.rb index c1ae496e31..a96737d476 100644 --- a/lib/drives/item/root/root_request_builder.rb +++ b/lib/drives/item/root/root_request_builder.rb @@ -27,10 +27,10 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/root{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/root{?%24expand,%24select}") end ## - ## Retrieve the metadata for a driveItem in a drive by file system path or ID.item-id is the ID of a driveItem. It may also be the unique ID of a SharePoint list item. + ## The root folder of the drive. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of drive_item ## @@ -39,31 +39,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve the metadata for a driveItem in a drive by file system path or ID.item-id is the ID of a driveItem. It may also be the unique ID of a SharePoint list item. + ## The root folder of the drive. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a root_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RootRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the metadata for a driveItem in a drive by file system path or ID.item-id is the ID of a driveItem. It may also be the unique ID of a SharePoint list item. + # The root folder of the drive. Read-only. class RootRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/search_with_q/search_with_q.rb b/lib/drives/item/search_with_q/search_with_q.rb index e49209c0c2..4f6b6adf7d 100644 --- a/lib/drives/item/search_with_q/search_with_q.rb +++ b/lib/drives/item/search_with_q/search_with_q.rb @@ -1 +1 @@ -require_relative 'search_with_q_response' +require_relative 'search_with_q_get_response' diff --git a/lib/drives/item/search_with_q/search_with_q_get_response.rb b/lib/drives/item/search_with_q/search_with_q_get_response.rb new file mode 100644 index 0000000000..6cd561bb43 --- /dev/null +++ b/lib/drives/item/search_with_q/search_with_q_get_response.rb @@ -0,0 +1,72 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../../models/drive_item' +require_relative '../../drives' +require_relative '../item' +require_relative './search_with_q' + +module MicrosoftGraph + module Drives + module Item + module SearchWithQ + class SearchWithQGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new SearchWithQGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a search_with_q_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return SearchWithQGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a drive_item + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/drives/item/search_with_q/search_with_q_request_builder.rb b/lib/drives/item/search_with_q/search_with_q_request_builder.rb index a98ae2b23e..857e232265 100644 --- a/lib/drives/item/search_with_q/search_with_q_request_builder.rb +++ b/lib/drives/item/search_with_q/search_with_q_request_builder.rb @@ -21,49 +21,60 @@ class SearchWithQRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter, q=nil) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/search(q='{q}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/search(q='{q}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function search + ## Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of search_with_q_response + ## @return a Fiber of search_with_q_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::SearchWithQ::SearchWithQResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::SearchWithQ::SearchWithQGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function search + ## Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a search_with_q_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SearchWithQRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function search + # Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. class SearchWithQRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -91,6 +102,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/drives/item/search_with_q/search_with_q_response.rb b/lib/drives/item/search_with_q/search_with_q_response.rb deleted file mode 100644 index 91f52c087a..0000000000 --- a/lib/drives/item/search_with_q/search_with_q_response.rb +++ /dev/null @@ -1,72 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../../models/drive_item' -require_relative '../../drives' -require_relative '../item' -require_relative './search_with_q' - -module MicrosoftGraph - module Drives - module Item - module SearchWithQ - class SearchWithQResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new searchWithQResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a search_with_q_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return SearchWithQResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a drive_item - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/drives/item/shared_with_me/shared_with_me.rb b/lib/drives/item/shared_with_me/shared_with_me.rb index 08a7a99dca..57a7b4fab8 100644 --- a/lib/drives/item/shared_with_me/shared_with_me.rb +++ b/lib/drives/item/shared_with_me/shared_with_me.rb @@ -1 +1 @@ -require_relative 'shared_with_me_response' +require_relative 'shared_with_me_get_response' diff --git a/lib/drives/item/shared_with_me/shared_with_me_get_response.rb b/lib/drives/item/shared_with_me/shared_with_me_get_response.rb new file mode 100644 index 0000000000..96c1a6675a --- /dev/null +++ b/lib/drives/item/shared_with_me/shared_with_me_get_response.rb @@ -0,0 +1,72 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../../models/drive_item' +require_relative '../../drives' +require_relative '../item' +require_relative './shared_with_me' + +module MicrosoftGraph + module Drives + module Item + module SharedWithMe + class SharedWithMeGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new SharedWithMeGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a shared_with_me_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return SharedWithMeGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a drive_item + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/drives/item/shared_with_me/shared_with_me_request_builder.rb b/lib/drives/item/shared_with_me/shared_with_me_request_builder.rb index ff54284e48..d2ee573ab8 100644 --- a/lib/drives/item/shared_with_me/shared_with_me_request_builder.rb +++ b/lib/drives/item/shared_with_me/shared_with_me_request_builder.rb @@ -20,49 +20,60 @@ class SharedWithMeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilde ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/sharedWithMe(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/sharedWithMe(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function sharedWithMe + ## Get a list of driveItem objects shared with the owner of a drive. The driveItems returned from the sharedWithMe method always include the remoteItem facet that indicates they are items from a different drive. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of shared_with_me_response + ## @return a Fiber of shared_with_me_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::SharedWithMe::SharedWithMeResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Drives::Item::SharedWithMe::SharedWithMeGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function sharedWithMe + ## Get a list of driveItem objects shared with the owner of a drive. The driveItems returned from the sharedWithMe method always include the remoteItem facet that indicates they are items from a different drive. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a shared_with_me_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SharedWithMeRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function sharedWithMe + # Get a list of driveItem objects shared with the owner of a drive. The driveItems returned from the sharedWithMe method always include the remoteItem facet that indicates they are items from a different drive. class SharedWithMeRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -90,6 +101,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/drives/item/shared_with_me/shared_with_me_response.rb b/lib/drives/item/shared_with_me/shared_with_me_response.rb deleted file mode 100644 index 8a6e030ff8..0000000000 --- a/lib/drives/item/shared_with_me/shared_with_me_response.rb +++ /dev/null @@ -1,72 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../../models/drive_item' -require_relative '../../drives' -require_relative '../item' -require_relative './shared_with_me' - -module MicrosoftGraph - module Drives - module Item - module SharedWithMe - class SharedWithMeResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new sharedWithMeResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a shared_with_me_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return SharedWithMeResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a drive_item - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/drives/item/special/count/count_request_builder.rb b/lib/drives/item/special/count/count_request_builder.rb index 631f923242..6affe7ea4e 100644 --- a/lib/drives/item/special/count/count_request_builder.rb +++ b/lib/drives/item/special/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/special/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/special/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/drives/item/special/item/content/content_request_builder.rb b/lib/drives/item/special/item/content/content_request_builder.rb index c842138a9e..64b180a7ce 100644 --- a/lib/drives/item/special/item/content/content_request_builder.rb +++ b/lib/drives/item/special/item/content/content_request_builder.rb @@ -25,7 +25,20 @@ class ContentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/special/{driveItem%2Did}/content") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/special/{driveItem%2Did}/content{?%24format*}") + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) end ## ## The content stream, if the item represents a file. @@ -37,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -53,8 +65,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,15 +73,34 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -82,17 +112,49 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The content stream, if the item represents a file. + class ContentRequestBuilderGetQueryParameters + + ## + # Format of the content + attr_accessor :format + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "format" + return "%24format" + else + return original_name + end + end + end end end end diff --git a/lib/drives/item/special/item/drive_item_item_request_builder.rb b/lib/drives/item/special/item/drive_item_item_request_builder.rb index dcf9b39781..7fc2a72eca 100644 --- a/lib/drives/item/special/item/drive_item_item_request_builder.rb +++ b/lib/drives/item/special/item/drive_item_item_request_builder.rb @@ -29,10 +29,10 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/special/{driveItem%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/special/{driveItem%2Did}{?%24expand,%24select}") end ## - ## Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. + ## Collection of common folders available in OneDrive. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of drive_item ## @@ -41,31 +41,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. + ## Collection of common folders available in OneDrive. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a drive_item_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DriveItemItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. + # Collection of common folders available in OneDrive. Read-only. Nullable. class DriveItemItemRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/special/special_request_builder.rb b/lib/drives/item/special/special_request_builder.rb index 86bee14806..0503e45e46 100644 --- a/lib/drives/item/special/special_request_builder.rb +++ b/lib/drives/item/special/special_request_builder.rb @@ -39,10 +39,10 @@ def by_drive_item_id(drive_item_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/special{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/special{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. + ## Collection of common folders available in OneDrive. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of drive_item_collection_response ## @@ -51,31 +51,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItemCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. + ## Collection of common folders available in OneDrive. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a special_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SpecialRequestBuilder.new(raw_url, @request_adapter) + end ## - # Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. + # Collection of common folders available in OneDrive. Read-only. Nullable. class SpecialRequestBuilderGetQueryParameters ## diff --git a/lib/education/classes/classes_request_builder.rb b/lib/education/classes/classes_request_builder.rb index 160038b041..52d01cb464 100644 --- a/lib/education/classes/classes_request_builder.rb +++ b/lib/education/classes/classes_request_builder.rb @@ -44,7 +44,7 @@ def by_education_class_id(education_class_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a list of the educationClass objects and their properties. @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationClassCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,8 +71,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationClass.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,15 +81,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,17 +101,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a classes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClassesRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a list of the educationClass objects and their properties. diff --git a/lib/education/classes/count/count_request_builder.rb b/lib/education/classes/count/count_request_builder.rb index 8e50fba7e2..1810d2abc9 100644 --- a/lib/education/classes/count/count_request_builder.rb +++ b/lib/education/classes/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/classes/delta/delta.rb b/lib/education/classes/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/education/classes/delta/delta.rb +++ b/lib/education/classes/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/education/classes/delta/delta_get_response.rb b/lib/education/classes/delta/delta_get_response.rb new file mode 100644 index 0000000000..a1d70feda1 --- /dev/null +++ b/lib/education/classes/delta/delta_get_response.rb @@ -0,0 +1,72 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_delta_function_response' +require_relative '../../../models/education_class' +require_relative '../../education' +require_relative '../classes' +require_relative './delta' + +module MicrosoftGraph + module Education + module Classes + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationClass.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a education_class + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/education/classes/delta/delta_request_builder.rb b/lib/education/classes/delta/delta_request_builder.rb index 193bb3b325..57294ae617 100644 --- a/lib/education/classes/delta/delta_request_builder.rb +++ b/lib/education/classes/delta/delta_request_builder.rb @@ -20,49 +20,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## Get newly created or updated classes, including membership changes, without having to perform a full read of the entire class collection. See Use delta query for details. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Education::Classes::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Education::Classes::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## Get newly created or updated classes, including membership changes, without having to perform a full read of the entire class collection. See Use delta query for details. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # Get newly created or updated classes, including membership changes, without having to perform a full read of the entire class collection. See Use delta query for details. class DeltaRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -90,6 +101,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/education/classes/delta/delta_response.rb b/lib/education/classes/delta/delta_response.rb deleted file mode 100644 index bf8bd55e36..0000000000 --- a/lib/education/classes/delta/delta_response.rb +++ /dev/null @@ -1,72 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_delta_function_response' -require_relative '../../../models/education_class' -require_relative '../../education' -require_relative '../classes' -require_relative './delta' - -module MicrosoftGraph - module Education - module Classes - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationClass.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a education_class - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/education/classes/item/assignment_categories/assignment_categories_request_builder.rb b/lib/education/classes/item/assignment_categories/assignment_categories_request_builder.rb index f66769c7c0..ade64c0538 100644 --- a/lib/education/classes/item/assignment_categories/assignment_categories_request_builder.rb +++ b/lib/education/classes/item/assignment_categories/assignment_categories_request_builder.rb @@ -48,7 +48,7 @@ def by_education_category_id(education_category_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentCategories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentCategories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of educationCategory objects. Only teachers can perform this operation. @@ -60,12 +60,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Creates a new educationCategory on an educationClass. Only teachers can perform this operation. + ## Create a new educationCategory on an educationClass. Only teachers can perform this operation. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_category @@ -76,8 +75,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,19 +85,19 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Creates a new educationCategory on an educationClass. Only teachers can perform this operation. + ## Create a new educationCategory on an educationClass. Only teachers can perform this operation. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -107,17 +105,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignment_categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentCategoriesRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of educationCategory objects. Only teachers can perform this operation. diff --git a/lib/education/classes/item/assignment_categories/count/count_request_builder.rb b/lib/education/classes/item/assignment_categories/count/count_request_builder.rb index a3eca66710..c4c3e5584b 100644 --- a/lib/education/classes/item/assignment_categories/count/count_request_builder.rb +++ b/lib/education/classes/item/assignment_categories/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentCategories/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentCategories/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/classes/item/assignment_categories/delta/delta.rb b/lib/education/classes/item/assignment_categories/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/education/classes/item/assignment_categories/delta/delta.rb +++ b/lib/education/classes/item/assignment_categories/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/education/classes/item/assignment_categories/delta/delta_get_response.rb b/lib/education/classes/item/assignment_categories/delta/delta_get_response.rb new file mode 100644 index 0000000000..75dd8ca2e7 --- /dev/null +++ b/lib/education/classes/item/assignment_categories/delta/delta_get_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_delta_function_response' +require_relative '../../../../../models/education_category' +require_relative '../../../../education' +require_relative '../../../classes' +require_relative '../../item' +require_relative '../assignment_categories' +require_relative './delta' + +module MicrosoftGraph + module Education + module Classes + module Item + module AssignmentCategories + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationCategory.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a education_category + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/education/classes/item/assignment_categories/delta/delta_request_builder.rb b/lib/education/classes/item/assignment_categories/delta/delta_request_builder.rb index 9b5d6ad43b..b32ebb550e 100644 --- a/lib/education/classes/item/assignment_categories/delta/delta_request_builder.rb +++ b/lib/education/classes/item/assignment_categories/delta/delta_request_builder.rb @@ -24,49 +24,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentCategories/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentCategories/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## Get a list of newly created or updated educationCategory objects without having to perform a full read of the collection. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Education::Classes::Item::AssignmentCategories::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Education::Classes::Item::AssignmentCategories::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## Get a list of newly created or updated educationCategory objects without having to perform a full read of the collection. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # Get a list of newly created or updated educationCategory objects without having to perform a full read of the collection. class DeltaRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -94,6 +105,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/education/classes/item/assignment_categories/delta/delta_response.rb b/lib/education/classes/item/assignment_categories/delta/delta_response.rb deleted file mode 100644 index d76c910a9f..0000000000 --- a/lib/education/classes/item/assignment_categories/delta/delta_response.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_delta_function_response' -require_relative '../../../../../models/education_category' -require_relative '../../../../education' -require_relative '../../../classes' -require_relative '../../item' -require_relative '../assignment_categories' -require_relative './delta' - -module MicrosoftGraph - module Education - module Classes - module Item - module AssignmentCategories - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationCategory.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a education_category - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/education/classes/item/assignment_categories/item/education_category_item_request_builder.rb b/lib/education/classes/item/assignment_categories/item/education_category_item_request_builder.rb index 45f5c9d5fe..8ff0c5ba08 100644 --- a/lib/education/classes/item/assignment_categories/item/education_category_item_request_builder.rb +++ b/lib/education/classes/item/assignment_categories/item/education_category_item_request_builder.rb @@ -25,7 +25,7 @@ class EducationCategoryItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentCategories/{educationCategory%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentCategories/{educationCategory%2Did}{?%24expand,%24select}") end ## ## Delete an existing category. Only teachers can perform this operation. @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_category_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationCategoryItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve an educationCategory object. Only teachers, students, and applications with application permissions can perform this operation. diff --git a/lib/education/classes/item/assignment_defaults/assignment_defaults_request_builder.rb b/lib/education/classes/item/assignment_defaults/assignment_defaults_request_builder.rb index ee9157f0b2..eeb6567c41 100644 --- a/lib/education/classes/item/assignment_defaults/assignment_defaults_request_builder.rb +++ b/lib/education/classes/item/assignment_defaults/assignment_defaults_request_builder.rb @@ -23,7 +23,7 @@ class AssignmentDefaultsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentDefaults{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentDefaults{?%24expand,%24select}") end ## ## Delete navigation property assignmentDefaults for education @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignmentDefaults.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignmentDefaults.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignment_defaults_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentDefaultsRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of an educationAssignmentDefaults object. These are the class-level assignment defaults respected by new assignments created in the class. Callers can continue to specify custom values on each assignment creation if they don't want the default behaviors. Only teachers can perform this operation. diff --git a/lib/education/classes/item/assignment_settings/assignment_settings_request_builder.rb b/lib/education/classes/item/assignment_settings/assignment_settings_request_builder.rb index 733ec7683f..89f32d1644 100644 --- a/lib/education/classes/item/assignment_settings/assignment_settings_request_builder.rb +++ b/lib/education/classes/item/assignment_settings/assignment_settings_request_builder.rb @@ -6,6 +6,7 @@ require_relative '../../classes' require_relative '../item' require_relative './assignment_settings' +require_relative './grading_categories/grading_categories_request_builder' module MicrosoftGraph module Education @@ -16,6 +17,11 @@ module AssignmentSettings # Provides operations to manage the assignmentSettings property of the microsoft.graph.educationClass entity. class AssignmentSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to manage the gradingCategories property of the microsoft.graph.educationAssignmentSettings entity. + def grading_categories() + return MicrosoftGraph::Education::Classes::Item::AssignmentSettings::GradingCategories::GradingCategoriesRequestBuilder.new(@path_parameters, @request_adapter) + end ## ## Instantiates a new AssignmentSettingsRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -23,7 +29,7 @@ class AssignmentSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings{?%24expand,%24select}") end ## ## Delete navigation property assignmentSettings for education @@ -35,8 +41,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,12 +54,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignmentSettings.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of an educationAssignmentSettings object. Only Teachers can update these settings. + ## Update the properties of an educationAssignmentSettings object. Only teachers can update these settings. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_assignment_settings @@ -65,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignmentSettings.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +79,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,19 +96,19 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of an educationAssignmentSettings object. Only Teachers can update these settings. + ## Update the properties of an educationAssignmentSettings object. Only teachers can update these settings. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -112,17 +116,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignment_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentSettingsRequestBuilder.new(raw_url, @request_adapter) + end ## # Specifies class-level assignments settings. diff --git a/lib/education/classes/item/assignment_settings/grading_categories/count/count.rb b/lib/education/classes/item/assignment_settings/grading_categories/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/classes/item/assignment_settings/grading_categories/count/count_request_builder.rb b/lib/education/classes/item/assignment_settings/grading_categories/count/count_request_builder.rb new file mode 100644 index 0000000000..93153d56e9 --- /dev/null +++ b/lib/education/classes/item/assignment_settings/grading_categories/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../education' +require_relative '../../../../classes' +require_relative '../../../item' +require_relative '../../assignment_settings' +require_relative '../grading_categories' +require_relative './count' + +module MicrosoftGraph + module Education + module Classes + module Item + module AssignmentSettings + module GradingCategories + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingCategories/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/education/classes/item/assignment_settings/grading_categories/grading_categories.rb b/lib/education/classes/item/assignment_settings/grading_categories/grading_categories.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/classes/item/assignment_settings/grading_categories/grading_categories_request_builder.rb b/lib/education/classes/item/assignment_settings/grading_categories/grading_categories_request_builder.rb new file mode 100644 index 0000000000..d919e1afed --- /dev/null +++ b/lib/education/classes/item/assignment_settings/grading_categories/grading_categories_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/education_grading_category' +require_relative '../../../../../models/education_grading_category_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../education' +require_relative '../../../classes' +require_relative '../../item' +require_relative '../assignment_settings' +require_relative './count/count_request_builder' +require_relative './grading_categories' +require_relative './item/education_grading_category_item_request_builder' + +module MicrosoftGraph + module Education + module Classes + module Item + module AssignmentSettings + module GradingCategories + ## + # Provides operations to manage the gradingCategories property of the microsoft.graph.educationAssignmentSettings entity. + class GradingCategoriesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Education::Classes::Item::AssignmentSettings::GradingCategories::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the gradingCategories property of the microsoft.graph.educationAssignmentSettings entity. + ## @param education_grading_category_id The unique identifier of educationGradingCategory + ## @return a education_grading_category_item_request_builder + ## + def by_education_grading_category_id(education_grading_category_id) + raise StandardError, 'education_grading_category_id cannot be null' if education_grading_category_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["educationGradingCategory%2Did"] = education_grading_category_id + return MicrosoftGraph::Education::Classes::Item::AssignmentSettings::GradingCategories::Item::EducationGradingCategoryItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new GradingCategoriesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingCategories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## When set, enables users to weight assignments differently when computing a class average grade. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_grading_category_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationGradingCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to gradingCategories for education + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_grading_category + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationGradingCategory.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## When set, enables users to weight assignments differently when computing a class average grade. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to gradingCategories for education + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a grading_categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GradingCategoriesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # When set, enables users to weight assignments differently when computing a class average grade. + class GradingCategoriesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/education/classes/item/assignment_settings/grading_categories/item/education_grading_category_item_request_builder.rb b/lib/education/classes/item/assignment_settings/grading_categories/item/education_grading_category_item_request_builder.rb new file mode 100644 index 0000000000..d6374620ef --- /dev/null +++ b/lib/education/classes/item/assignment_settings/grading_categories/item/education_grading_category_item_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/education_grading_category' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../education' +require_relative '../../../../classes' +require_relative '../../../item' +require_relative '../../assignment_settings' +require_relative '../grading_categories' +require_relative './item' + +module MicrosoftGraph + module Education + module Classes + module Item + module AssignmentSettings + module GradingCategories + module Item + ## + # Provides operations to manage the gradingCategories property of the microsoft.graph.educationAssignmentSettings entity. + class EducationGradingCategoryItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EducationGradingCategoryItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingCategories/{educationGradingCategory%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property gradingCategories for education + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## When set, enables users to weight assignments differently when computing a class average grade. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_grading_category + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationGradingCategory.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update a single gradingCategory on the educationAssignmentSettings. Only teachers can perform this operation. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_grading_category + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationGradingCategory.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property gradingCategories for education + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## When set, enables users to weight assignments differently when computing a class average grade. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update a single gradingCategory on the educationAssignmentSettings. Only teachers can perform this operation. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_grading_category_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationGradingCategoryItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # When set, enables users to weight assignments differently when computing a class average grade. + class EducationGradingCategoryItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/education/classes/item/assignment_settings/grading_categories/item/item.rb b/lib/education/classes/item/assignment_settings/grading_categories/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/classes/item/assignments/assignments_request_builder.rb b/lib/education/classes/item/assignments/assignments_request_builder.rb index 710dab6efa..c3b8db7554 100644 --- a/lib/education/classes/item/assignments/assignments_request_builder.rb +++ b/lib/education/classes/item/assignments/assignments_request_builder.rb @@ -48,10 +48,10 @@ def by_education_assignment_id(education_assignment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application executing with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. + ## Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher, or an application running with application permissions, can see all assignment objects for the class. Students can only see assignments that are assigned to them. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_assignment_collection_response ## @@ -60,12 +60,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new assignment. Only teachers in a class can create an assignment. Assignments start in the Draft state, which means that students will not see the assignment until publication. + ## Create a new assignment. Only teachers in a class can create an assignment. Assignments start in draft status, which means that students can't see the assignment until it's published. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_assignment @@ -76,30 +75,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application executing with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. + ## Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher, or an application running with application permissions, can see all assignment objects for the class. Students can only see assignments that are assigned to them. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new assignment. Only teachers in a class can create an assignment. Assignments start in the Draft state, which means that students will not see the assignment until publication. + ## Create a new assignment. Only teachers in a class can create an assignment. Assignments start in draft status, which means that students can't see the assignment until it's published. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -107,20 +105,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application executing with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. + # Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher, or an application running with application permissions, can see all assignment objects for the class. Students can only see assignments that are assigned to them. class AssignmentsRequestBuilderGetQueryParameters ## diff --git a/lib/education/classes/item/assignments/count/count_request_builder.rb b/lib/education/classes/item/assignments/count/count_request_builder.rb index bdf578d502..56cb6375ef 100644 --- a/lib/education/classes/item/assignments/count/count_request_builder.rb +++ b/lib/education/classes/item/assignments/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/classes/item/assignments/delta/delta.rb b/lib/education/classes/item/assignments/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/education/classes/item/assignments/delta/delta.rb +++ b/lib/education/classes/item/assignments/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/education/classes/item/assignments/delta/delta_get_response.rb b/lib/education/classes/item/assignments/delta/delta_get_response.rb new file mode 100644 index 0000000000..72c50f0f4f --- /dev/null +++ b/lib/education/classes/item/assignments/delta/delta_get_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_delta_function_response' +require_relative '../../../../../models/education_assignment' +require_relative '../../../../education' +require_relative '../../../classes' +require_relative '../../item' +require_relative '../assignments' +require_relative './delta' + +module MicrosoftGraph + module Education + module Classes + module Item + module Assignments + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a education_assignment + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/education/classes/item/assignments/delta/delta_request_builder.rb b/lib/education/classes/item/assignments/delta/delta_request_builder.rb index ad2a3346dd..ec2dfe24ca 100644 --- a/lib/education/classes/item/assignments/delta/delta_request_builder.rb +++ b/lib/education/classes/item/assignments/delta/delta_request_builder.rb @@ -24,49 +24,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## Get a list of newly-created or updated assignments without reading the whole collection. A teacher or an application running with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Education::Classes::Item::Assignments::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Education::Classes::Item::Assignments::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## Get a list of newly-created or updated assignments without reading the whole collection. A teacher or an application running with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # Get a list of newly-created or updated assignments without reading the whole collection. A teacher or an application running with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. class DeltaRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -94,6 +105,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/education/classes/item/assignments/delta/delta_response.rb b/lib/education/classes/item/assignments/delta/delta_response.rb deleted file mode 100644 index 4dc4d78f46..0000000000 --- a/lib/education/classes/item/assignments/delta/delta_response.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_delta_function_response' -require_relative '../../../../../models/education_assignment' -require_relative '../../../../education' -require_relative '../../../classes' -require_relative '../../item' -require_relative '../assignments' -require_relative './delta' - -module MicrosoftGraph - module Education - module Classes - module Item - module Assignments - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a education_assignment - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/education/classes/item/assignments/item/activate/activate.rb b/lib/education/classes/item/assignments/item/activate/activate.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/classes/item/assignments/item/activate/activate_request_builder.rb b/lib/education/classes/item/assignments/item/activate/activate_request_builder.rb new file mode 100644 index 0000000000..58627f58ec --- /dev/null +++ b/lib/education/classes/item/assignments/item/activate/activate_request_builder.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/education_assignment' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../education' +require_relative '../../../../classes' +require_relative '../../../item' +require_relative '../../assignments' +require_relative '../item' +require_relative './activate' + +module MicrosoftGraph + module Education + module Classes + module Item + module Assignments + module Item + module Activate + ## + # Provides operations to call the activate method. + class ActivateRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ActivateRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/activate") + end + ## + ## Activate an inactive educationAssignment to signal that the assignment has further action items for teachers or students. This action can only be performed by a teacher on currently inactive assignments. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_assignment + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Activate an inactive educationAssignment to signal that the assignment has further action items for teachers or students. This action can only be performed by a teacher on currently inactive assignments. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a activate_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ActivateRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end +end diff --git a/lib/education/classes/item/assignments/item/categories/categories_request_builder.rb b/lib/education/classes/item/assignments/item/categories/categories_request_builder.rb index 987c50a231..14c15dbba8 100644 --- a/lib/education/classes/item/assignments/item/categories/categories_request_builder.rb +++ b/lib/education/classes/item/assignments/item/categories/categories_request_builder.rb @@ -42,7 +42,7 @@ def ref() end ## ## Gets an item from the MicrosoftGraph.education.classes.item.assignments.item.categories.item collection - ## @param education_category_id Unique identifier of the item + ## @param education_category_id The unique identifier of educationCategory ## @return a education_category_item_request_builder ## def by_education_category_id(education_category_id) @@ -58,7 +58,7 @@ def by_education_category_id(education_category_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. @@ -70,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,8 +85,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationCategory.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -97,15 +95,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -117,17 +115,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CategoriesRequestBuilder.new(raw_url, @request_adapter) + end ## # List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. diff --git a/lib/education/classes/item/assignments/item/categories/count/count_request_builder.rb b/lib/education/classes/item/assignments/item/categories/count/count_request_builder.rb index 892927fda3..0b97286dcd 100644 --- a/lib/education/classes/item/assignments/item/categories/count/count_request_builder.rb +++ b/lib/education/classes/item/assignments/item/categories/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/classes/item/assignments/item/categories/delta/delta.rb b/lib/education/classes/item/assignments/item/categories/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/education/classes/item/assignments/item/categories/delta/delta.rb +++ b/lib/education/classes/item/assignments/item/categories/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/education/classes/item/assignments/item/categories/delta/delta_get_response.rb b/lib/education/classes/item/assignments/item/categories/delta/delta_get_response.rb new file mode 100644 index 0000000000..27f04435a8 --- /dev/null +++ b/lib/education/classes/item/assignments/item/categories/delta/delta_get_response.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/base_delta_function_response' +require_relative '../../../../../../../models/education_category' +require_relative '../../../../../../education' +require_relative '../../../../../classes' +require_relative '../../../../item' +require_relative '../../../assignments' +require_relative '../../item' +require_relative '../categories' +require_relative './delta' + +module MicrosoftGraph + module Education + module Classes + module Item + module Assignments + module Item + module Categories + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationCategory.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a education_category + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/education/classes/item/assignments/item/categories/delta/delta_request_builder.rb b/lib/education/classes/item/assignments/item/categories/delta/delta_request_builder.rb index e53d099096..abc1a4867a 100644 --- a/lib/education/classes/item/assignments/item/categories/delta/delta_request_builder.rb +++ b/lib/education/classes/item/assignments/item/categories/delta/delta_request_builder.rb @@ -28,49 +28,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## Get a list of newly created or updated educationCategory objects without having to perform a full read of the collection. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Education::Classes::Item::Assignments::Item::Categories::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Education::Classes::Item::Assignments::Item::Categories::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## Get a list of newly created or updated educationCategory objects without having to perform a full read of the collection. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # Get a list of newly created or updated educationCategory objects without having to perform a full read of the collection. class DeltaRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -98,6 +109,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/education/classes/item/assignments/item/categories/delta/delta_response.rb b/lib/education/classes/item/assignments/item/categories/delta/delta_response.rb deleted file mode 100644 index a083735c9a..0000000000 --- a/lib/education/classes/item/assignments/item/categories/delta/delta_response.rb +++ /dev/null @@ -1,84 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/base_delta_function_response' -require_relative '../../../../../../../models/education_category' -require_relative '../../../../../../education' -require_relative '../../../../../classes' -require_relative '../../../../item' -require_relative '../../../assignments' -require_relative '../../item' -require_relative '../categories' -require_relative './delta' - -module MicrosoftGraph - module Education - module Classes - module Item - module Assignments - module Item - module Categories - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationCategory.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a education_category - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end -end diff --git a/lib/education/classes/item/assignments/item/categories/item/ref/ref_request_builder.rb b/lib/education/classes/item/assignments/item/categories/item/ref/ref_request_builder.rb index 5c1af6ddab..fcd7fda59f 100644 --- a/lib/education/classes/item/assignments/item/categories/item/ref/ref_request_builder.rb +++ b/lib/education/classes/item/assignments/item/categories/item/ref/ref_request_builder.rb @@ -30,7 +30,7 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref") end ## ## Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. @@ -42,8 +42,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,38 +52,24 @@ def delete(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/education/classes/item/assignments/item/categories/ref/ref_request_builder.rb b/lib/education/classes/item/assignments/item/categories/ref/ref_request_builder.rb index 181700cde0..88e6fcab28 100644 --- a/lib/education/classes/item/assignments/item/categories/ref/ref_request_builder.rb +++ b/lib/education/classes/item/assignments/item/categories/ref/ref_request_builder.rb @@ -30,7 +30,20 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") + end + ## + ## Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) end ## ## List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. @@ -42,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,26 +70,43 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## + ## Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$ref?@id={%40id}' + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## ## List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -89,16 +118,49 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end ## # List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. diff --git a/lib/education/classes/item/assignments/item/deactivate/deactivate.rb b/lib/education/classes/item/assignments/item/deactivate/deactivate.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/classes/item/assignments/item/deactivate/deactivate_request_builder.rb b/lib/education/classes/item/assignments/item/deactivate/deactivate_request_builder.rb new file mode 100644 index 0000000000..f9f35da3bb --- /dev/null +++ b/lib/education/classes/item/assignments/item/deactivate/deactivate_request_builder.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/education_assignment' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../education' +require_relative '../../../../classes' +require_relative '../../../item' +require_relative '../../assignments' +require_relative '../item' +require_relative './deactivate' + +module MicrosoftGraph + module Education + module Classes + module Item + module Assignments + module Item + module Deactivate + ## + # Provides operations to call the deactivate method. + class DeactivateRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeactivateRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/deactivate") + end + ## + ## Mark an assigned educationAssignment as inactive to signal that the assignment has no further action items for teachers and students. This action can only be performed by a teacher on assigned assignments. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_assignment + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Mark an assigned educationAssignment as inactive to signal that the assignment has no further action items for teachers and students. This action can only be performed by a teacher on assigned assignments. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a deactivate_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeactivateRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end +end diff --git a/lib/education/classes/item/assignments/item/education_assignment_item_request_builder.rb b/lib/education/classes/item/assignments/item/education_assignment_item_request_builder.rb index e511661eb6..ab502fec3e 100644 --- a/lib/education/classes/item/assignments/item/education_assignment_item_request_builder.rb +++ b/lib/education/classes/item/assignments/item/education_assignment_item_request_builder.rb @@ -6,7 +6,10 @@ require_relative '../../../classes' require_relative '../../item' require_relative '../assignments' +require_relative './activate/activate_request_builder' require_relative './categories/categories_request_builder' +require_relative './deactivate/deactivate_request_builder' +require_relative './grading_category/grading_category_request_builder' require_relative './item' require_relative './publish/publish_request_builder' require_relative './resources/resources_request_builder' @@ -25,12 +28,27 @@ module Item # Provides operations to manage the assignments property of the microsoft.graph.educationClass entity. class EducationAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the activate method. + def activate() + return MicrosoftGraph::Education::Classes::Item::Assignments::Item::Activate::ActivateRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Provides operations to manage the categories property of the microsoft.graph.educationAssignment entity. def categories() return MicrosoftGraph::Education::Classes::Item::Assignments::Item::Categories::CategoriesRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the deactivate method. + def deactivate() + return MicrosoftGraph::Education::Classes::Item::Assignments::Item::Deactivate::DeactivateRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the gradingCategory property of the microsoft.graph.educationAssignment entity. + def grading_category() + return MicrosoftGraph::Education::Classes::Item::Assignments::Item::GradingCategory::GradingCategoryRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to call the publish method. def publish() return MicrosoftGraph::Education::Classes::Item::Assignments::Item::Publish::PublishRequestBuilder.new(@path_parameters, @request_adapter) @@ -67,7 +85,7 @@ def submissions() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}{?%24expand,%24select}") end ## ## Delete an existing assignment. Only teachers within a class can delete assignments. @@ -79,12 +97,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. + ## Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, the response value for the status property is unknownFutureValue. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_assignment ## @@ -93,8 +110,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -109,8 +125,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -120,31 +135,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. + ## Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, the response value for the status property is unknownFutureValue. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -156,20 +172,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. + # Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, the response value for the status property is unknownFutureValue. class EducationAssignmentItemRequestBuilderGetQueryParameters ## diff --git a/lib/education/classes/item/assignments/item/grading_category/grading_category.rb b/lib/education/classes/item/assignments/item/grading_category/grading_category.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/classes/item/assignments/item/grading_category/grading_category_request_builder.rb b/lib/education/classes/item/assignments/item/grading_category/grading_category_request_builder.rb new file mode 100644 index 0000000000..e01ce7df27 --- /dev/null +++ b/lib/education/classes/item/assignments/item/grading_category/grading_category_request_builder.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/education_grading_category' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../education' +require_relative '../../../../classes' +require_relative '../../../item' +require_relative '../../assignments' +require_relative '../item' +require_relative './grading_category' + +module MicrosoftGraph + module Education + module Classes + module Item + module Assignments + module Item + module GradingCategory + ## + # Provides operations to manage the gradingCategory property of the microsoft.graph.educationAssignment entity. + class GradingCategoryRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new GradingCategoryRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/gradingCategory{?%24expand,%24select}") + end + ## + ## When set, enables users to weight assignments differently when computing a class average grade. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_grading_category + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationGradingCategory.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## When set, enables users to weight assignments differently when computing a class average grade. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a grading_category_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GradingCategoryRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # When set, enables users to weight assignments differently when computing a class average grade. + class GradingCategoryRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/education/classes/item/assignments/item/publish/publish_request_builder.rb b/lib/education/classes/item/assignments/item/publish/publish_request_builder.rb index b312ab43c8..b99e98ac29 100644 --- a/lib/education/classes/item/assignments/item/publish/publish_request_builder.rb +++ b/lib/education/classes/item/assignments/item/publish/publish_request_builder.rb @@ -30,7 +30,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/publish") end ## - ## Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + ## Publish an education assignment. Change the status of an educationAssignment from its original draft status to the published status. You can change the status from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The status of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_assignment ## @@ -39,27 +39,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + ## Publish an education assignment. Change the status of an educationAssignment from its original draft status to the published status. You can change the status from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The status of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a publish_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PublishRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/classes/item/assignments/item/resources/count/count_request_builder.rb b/lib/education/classes/item/assignments/item/resources/count/count_request_builder.rb index 675410f6c3..5b7999666f 100644 --- a/lib/education/classes/item/assignments/item/resources/count/count_request_builder.rb +++ b/lib/education/classes/item/assignments/item/resources/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/resources/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/resources/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/classes/item/assignments/item/resources/item/education_assignment_resource_item_request_builder.rb b/lib/education/classes/item/assignments/item/resources/item/education_assignment_resource_item_request_builder.rb index 55244cbd31..c5bb733cea 100644 --- a/lib/education/classes/item/assignments/item/resources/item/education_assignment_resource_item_request_builder.rb +++ b/lib/education/classes/item/assignments/item/resources/item/education_assignment_resource_item_request_builder.rb @@ -29,10 +29,10 @@ class EducationAssignmentResourceItemRequestBuilder < MicrosoftKiotaAbstractions ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/resources/{educationAssignmentResource%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/resources/{educationAssignmentResource%2Did}{?%24expand,%24select}") end ## - ## Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. + ## Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers can't remove resources marked as 'distributeToStudents', after the assignment has been published to students. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -41,8 +41,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignmentResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,24 +69,24 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignmentResource.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. + ## Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers can't remove resources marked as 'distributeToStudents', after the assignment has been published to students. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -98,15 +96,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,17 +116,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_assignment_resource_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationAssignmentResourceItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. diff --git a/lib/education/classes/item/assignments/item/resources/resources_request_builder.rb b/lib/education/classes/item/assignments/item/resources/resources_request_builder.rb index 9a888229da..467a536929 100644 --- a/lib/education/classes/item/assignments/item/resources/resources_request_builder.rb +++ b/lib/education/classes/item/assignments/item/resources/resources_request_builder.rb @@ -46,7 +46,7 @@ def by_education_assignment_resource_id(education_assignment_resource_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/resources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignmentResourceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,8 +73,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignmentResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,15 +83,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,17 +103,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resources_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourcesRequestBuilder.new(raw_url, @request_adapter) + end ## # Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. diff --git a/lib/education/classes/item/assignments/item/rubric/ref/ref_request_builder.rb b/lib/education/classes/item/assignments/item/rubric/ref/ref_request_builder.rb index a52de3e137..cc1b717997 100644 --- a/lib/education/classes/item/assignments/item/rubric/ref/ref_request_builder.rb +++ b/lib/education/classes/item/assignments/item/rubric/ref/ref_request_builder.rb @@ -32,7 +32,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/rubric/$ref") end ## - ## Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + ## Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -41,8 +41,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, string, error_mapping) end ## @@ -71,24 +69,24 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + ## Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -98,14 +96,14 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -117,16 +115,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/classes/item/assignments/item/rubric/rubric_request_builder.rb b/lib/education/classes/item/assignments/item/rubric/rubric_request_builder.rb index c135129c7c..4d57e144e7 100644 --- a/lib/education/classes/item/assignments/item/rubric/rubric_request_builder.rb +++ b/lib/education/classes/item/assignments/item/rubric/rubric_request_builder.rb @@ -33,10 +33,10 @@ def ref() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/rubric{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/rubric{?%24expand,%24select}") end ## - ## Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + ## Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationRubric.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,24 +73,24 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationRubric.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + ## Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -102,15 +100,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,17 +120,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rubric_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RubricRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. diff --git a/lib/education/classes/item/assignments/item/set_up_feedback_resources_folder/set_up_feedback_resources_folder_request_builder.rb b/lib/education/classes/item/assignments/item/set_up_feedback_resources_folder/set_up_feedback_resources_folder_request_builder.rb index 010d66b70b..8af30e98c9 100644 --- a/lib/education/classes/item/assignments/item/set_up_feedback_resources_folder/set_up_feedback_resources_folder_request_builder.rb +++ b/lib/education/classes/item/assignments/item/set_up_feedback_resources_folder/set_up_feedback_resources_folder_request_builder.rb @@ -39,8 +39,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,16 +49,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_up_feedback_resources_folder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetUpFeedbackResourcesFolderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/classes/item/assignments/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb b/lib/education/classes/item/assignments/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb index 959c5f3db8..1f7258f059 100644 --- a/lib/education/classes/item/assignments/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb +++ b/lib/education/classes/item/assignments/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb @@ -39,8 +39,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,16 +49,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_up_resources_folder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetUpResourcesFolderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/classes/item/assignments/item/submissions/count/count_request_builder.rb b/lib/education/classes/item/assignments/item/submissions/count/count_request_builder.rb index be91bab5a4..49c40756b4 100644 --- a/lib/education/classes/item/assignments/item/submissions/count/count_request_builder.rb +++ b/lib/education/classes/item/assignments/item/submissions/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/classes/item/assignments/item/submissions/item/education_submission_item_request_builder.rb b/lib/education/classes/item/assignments/item/submissions/item/education_submission_item_request_builder.rb index 6d6fc37264..470d553281 100644 --- a/lib/education/classes/item/assignments/item/submissions/item/education_submission_item_request_builder.rb +++ b/lib/education/classes/item/assignments/item/submissions/item/education_submission_item_request_builder.rb @@ -8,6 +8,7 @@ require_relative '../../../assignments' require_relative '../../item' require_relative '../submissions' +require_relative './excuse/excuse_request_builder' require_relative './item' require_relative './outcomes/outcomes_request_builder' require_relative './reassign/reassign_request_builder' @@ -30,6 +31,11 @@ module Item # Provides operations to manage the submissions property of the microsoft.graph.educationAssignment entity. class EducationSubmissionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the excuse method. + def excuse() + return MicrosoftGraph::Education::Classes::Item::Assignments::Item::Submissions::Item::Excuse::ExcuseRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Provides operations to manage the outcomes property of the microsoft.graph.educationSubmission entity. def outcomes() @@ -77,7 +83,7 @@ def unsubmit() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}{?%24expand,%24select}") end ## ## Delete navigation property submissions for education @@ -89,8 +95,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -103,8 +108,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -119,8 +123,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -130,13 +133,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -146,15 +150,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -166,17 +170,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_submission_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationSubmissionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. diff --git a/lib/education/classes/item/assignments/item/submissions/item/excuse/excuse.rb b/lib/education/classes/item/assignments/item/submissions/item/excuse/excuse.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/classes/item/assignments/item/submissions/item/excuse/excuse_request_builder.rb b/lib/education/classes/item/assignments/item/submissions/item/excuse/excuse_request_builder.rb new file mode 100644 index 0000000000..2a2f941c1a --- /dev/null +++ b/lib/education/classes/item/assignments/item/submissions/item/excuse/excuse_request_builder.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/education_submission' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../education' +require_relative '../../../../../../classes' +require_relative '../../../../../item' +require_relative '../../../../assignments' +require_relative '../../../item' +require_relative '../../submissions' +require_relative '../item' +require_relative './excuse' + +module MicrosoftGraph + module Education + module Classes + module Item + module Assignments + module Item + module Submissions + module Item + module Excuse + ## + # Provides operations to call the excuse method. + class ExcuseRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ExcuseRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/excuse") + end + ## + ## Excuse a submission. Excused submissions aren't included in average grade calculations. Grading rubrics and feedback are deleted. Only teachers can perform this action. If the Prefer: include-unknown-enum-members request header is provided, the excused submission shows the excused status. Otherwise, the submission status retains the returned status. For more information about how to use this header, see the Examples section. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_submission + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Excuse a submission. Excused submissions aren't included in average grade calculations. Grading rubrics and feedback are deleted. Only teachers can perform this action. If the Prefer: include-unknown-enum-members request header is provided, the excused submission shows the excused status. Otherwise, the submission status retains the returned status. For more information about how to use this header, see the Examples section. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a excuse_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExcuseRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/education/classes/item/assignments/item/submissions/item/outcomes/count/count_request_builder.rb b/lib/education/classes/item/assignments/item/submissions/item/outcomes/count/count_request_builder.rb index 8bf1c223a6..e53063e56f 100644 --- a/lib/education/classes/item/assignments/item/submissions/item/outcomes/count/count_request_builder.rb +++ b/lib/education/classes/item/assignments/item/submissions/item/outcomes/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/classes/item/assignments/item/submissions/item/outcomes/item/education_outcome_item_request_builder.rb b/lib/education/classes/item/assignments/item/submissions/item/outcomes/item/education_outcome_item_request_builder.rb index d8fa16c8ea..6cf3579f1f 100644 --- a/lib/education/classes/item/assignments/item/submissions/item/outcomes/item/education_outcome_item_request_builder.rb +++ b/lib/education/classes/item/assignments/item/submissions/item/outcomes/item/education_outcome_item_request_builder.rb @@ -33,7 +33,7 @@ class EducationOutcomeItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReque ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/{educationOutcome%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/{educationOutcome%2Did}{?%24expand,%24select}") end ## ## Delete a feedback resource from a submission. This can only be done by a teacher. @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationOutcome.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationOutcome.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,13 +83,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -102,15 +100,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,17 +120,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_outcome_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationOutcomeItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get outcomes from education diff --git a/lib/education/classes/item/assignments/item/submissions/item/outcomes/outcomes_request_builder.rb b/lib/education/classes/item/assignments/item/submissions/item/outcomes/outcomes_request_builder.rb index 4e5ed8749b..18cb539833 100644 --- a/lib/education/classes/item/assignments/item/submissions/item/outcomes/outcomes_request_builder.rb +++ b/lib/education/classes/item/assignments/item/submissions/item/outcomes/outcomes_request_builder.rb @@ -50,10 +50,10 @@ def by_education_outcome_id(education_outcome_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + ## Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) has an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) has both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), has an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, has an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource has an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_outcome_collection_response ## @@ -62,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationOutcomeCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,26 +77,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationOutcome.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + ## Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) has an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) has both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), has an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, has an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource has an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a outcomes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OutcomesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + # Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) has an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) has both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), has an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, has an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource has an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. class OutcomesRequestBuilderGetQueryParameters ## diff --git a/lib/education/classes/item/assignments/item/submissions/item/reassign/reassign_request_builder.rb b/lib/education/classes/item/assignments/item/submissions/item/reassign/reassign_request_builder.rb index 62d9c6c711..3263b1bf09 100644 --- a/lib/education/classes/item/assignments/item/submissions/item/reassign/reassign_request_builder.rb +++ b/lib/education/classes/item/assignments/item/submissions/item/reassign/reassign_request_builder.rb @@ -34,7 +34,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/reassign") end ## - ## Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + ## Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission is treated as a returned submission. This means that the reassigned status is mapped to the returned status, and reassignedDateTime and reassignedBy properties are mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_submission ## @@ -43,27 +43,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + ## Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission is treated as a returned submission. This means that the reassigned status is mapped to the returned status, and reassignedDateTime and reassignedBy properties are mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reassign_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReassignRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/classes/item/assignments/item/submissions/item/resources/count/count_request_builder.rb b/lib/education/classes/item/assignments/item/submissions/item/resources/count/count_request_builder.rb index a2b05081be..00ca172151 100644 --- a/lib/education/classes/item/assignments/item/submissions/item/resources/count/count_request_builder.rb +++ b/lib/education/classes/item/assignments/item/submissions/item/resources/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/classes/item/assignments/item/submissions/item/resources/item/education_submission_resource_item_request_builder.rb b/lib/education/classes/item/assignments/item/submissions/item/resources/item/education_submission_resource_item_request_builder.rb index d9a7f8d8b0..edc0a91a9b 100644 --- a/lib/education/classes/item/assignments/item/submissions/item/resources/item/education_submission_resource_item_request_builder.rb +++ b/lib/education/classes/item/assignments/item/submissions/item/resources/item/education_submission_resource_item_request_builder.rb @@ -33,10 +33,10 @@ class EducationSubmissionResourceItemRequestBuilder < MicrosoftKiotaAbstractions ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/{educationSubmissionResource%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/{educationSubmissionResource%2Did}{?%24expand,%24select}") end ## - ## Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource was not copied from the assignment but was added from the student, the resource is simply deleted. + ## Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource wasn't copied from the assignment but was added from the student, the resource is deleted. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,24 +73,24 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResource.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource was not copied from the assignment but was added from the student, the resource is simply deleted. + ## Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource wasn't copied from the assignment but was added from the student, the resource is deleted. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -102,15 +100,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,17 +120,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_submission_resource_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationSubmissionResourceItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. diff --git a/lib/education/classes/item/assignments/item/submissions/item/resources/resources_request_builder.rb b/lib/education/classes/item/assignments/item/submissions/item/resources/resources_request_builder.rb index d6bd235540..5e25eab176 100644 --- a/lib/education/classes/item/assignments/item/submissions/item/resources/resources_request_builder.rb +++ b/lib/education/classes/item/assignments/item/submissions/item/resources/resources_request_builder.rb @@ -50,10 +50,10 @@ def by_education_submission_resource_id(education_submission_resource_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + ## List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this resource was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that were officially submitted for grading. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_submission_resource_collection_response ## @@ -62,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResourceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,26 +77,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResource.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + ## List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this resource was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that were officially submitted for grading. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resources_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourcesRequestBuilder.new(raw_url, @request_adapter) + end ## - # List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + # List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this resource was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that were officially submitted for grading. class ResourcesRequestBuilderGetQueryParameters ## diff --git a/lib/education/classes/item/assignments/item/submissions/item/return_escaped/return_request_builder.rb b/lib/education/classes/item/assignments/item/submissions/item/return_escaped/return_request_builder.rb index fe67b97dc5..22a8133bee 100644 --- a/lib/education/classes/item/assignments/item/submissions/item/return_escaped/return_request_builder.rb +++ b/lib/education/classes/item/assignments/item/submissions/item/return_escaped/return_request_builder.rb @@ -43,8 +43,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,16 +53,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a return_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReturnRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/classes/item/assignments/item/submissions/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb b/lib/education/classes/item/assignments/item/submissions/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb index ac3b603b65..95736680f9 100644 --- a/lib/education/classes/item/assignments/item/submissions/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb +++ b/lib/education/classes/item/assignments/item/submissions/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb @@ -43,8 +43,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,16 +53,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_up_resources_folder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetUpResourcesFolderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/classes/item/assignments/item/submissions/item/submit/submit_request_builder.rb b/lib/education/classes/item/assignments/item/submissions/item/submit/submit_request_builder.rb index 46d5a4ccef..ac188a596b 100644 --- a/lib/education/classes/item/assignments/item/submissions/item/submit/submit_request_builder.rb +++ b/lib/education/classes/item/assignments/item/submissions/item/submit/submit_request_builder.rb @@ -43,8 +43,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,16 +53,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a submit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SubmitRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/classes/item/assignments/item/submissions/item/submitted_resources/count/count_request_builder.rb b/lib/education/classes/item/assignments/item/submissions/item/submitted_resources/count/count_request_builder.rb index f75c03bca9..abbde91ba5 100644 --- a/lib/education/classes/item/assignments/item/submissions/item/submitted_resources/count/count_request_builder.rb +++ b/lib/education/classes/item/assignments/item/submissions/item/submitted_resources/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/classes/item/assignments/item/submissions/item/submitted_resources/item/education_submission_resource_item_request_builder.rb b/lib/education/classes/item/assignments/item/submissions/item/submitted_resources/item/education_submission_resource_item_request_builder.rb index a1a1b468f9..e79bb8fe3f 100644 --- a/lib/education/classes/item/assignments/item/submissions/item/submitted_resources/item/education_submission_resource_item_request_builder.rb +++ b/lib/education/classes/item/assignments/item/submissions/item/submitted_resources/item/education_submission_resource_item_request_builder.rb @@ -33,7 +33,7 @@ class EducationSubmissionResourceItemRequestBuilder < MicrosoftKiotaAbstractions ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/{educationSubmissionResource%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/{educationSubmissionResource%2Did}{?%24expand,%24select}") end ## ## Delete navigation property submittedResources for education @@ -45,12 +45,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + ## Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_submission_resource ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,31 +83,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + ## Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,20 +120,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_submission_resource_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationSubmissionResourceItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + # Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. class EducationSubmissionResourceItemRequestBuilderGetQueryParameters ## diff --git a/lib/education/classes/item/assignments/item/submissions/item/submitted_resources/submitted_resources_request_builder.rb b/lib/education/classes/item/assignments/item/submissions/item/submitted_resources/submitted_resources_request_builder.rb index eabce07ab9..8e0abb75ea 100644 --- a/lib/education/classes/item/assignments/item/submissions/item/submitted_resources/submitted_resources_request_builder.rb +++ b/lib/education/classes/item/assignments/item/submissions/item/submitted_resources/submitted_resources_request_builder.rb @@ -50,10 +50,10 @@ def by_education_submission_resource_id(education_submission_resource_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + ## List the educationSubmissionResource objects that were officially submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission can't change the submitted list without resubmitting the assignment. This resource is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_submission_resource_collection_response ## @@ -62,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResourceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,26 +77,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResource.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + ## List the educationSubmissionResource objects that were officially submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission can't change the submitted list without resubmitting the assignment. This resource is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a submitted_resources_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SubmittedResourcesRequestBuilder.new(raw_url, @request_adapter) + end ## - # List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + # List the educationSubmissionResource objects that were officially submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission can't change the submitted list without resubmitting the assignment. This resource is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. class SubmittedResourcesRequestBuilderGetQueryParameters ## diff --git a/lib/education/classes/item/assignments/item/submissions/item/unsubmit/unsubmit_request_builder.rb b/lib/education/classes/item/assignments/item/submissions/item/unsubmit/unsubmit_request_builder.rb index cd98c86c2d..a85b5f3f83 100644 --- a/lib/education/classes/item/assignments/item/submissions/item/unsubmit/unsubmit_request_builder.rb +++ b/lib/education/classes/item/assignments/item/submissions/item/unsubmit/unsubmit_request_builder.rb @@ -43,8 +43,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,16 +53,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unsubmit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnsubmitRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/classes/item/assignments/item/submissions/submissions_request_builder.rb b/lib/education/classes/item/assignments/item/submissions/submissions_request_builder.rb index f76a7ed9f1..76534d880d 100644 --- a/lib/education/classes/item/assignments/item/submissions/submissions_request_builder.rb +++ b/lib/education/classes/item/assignments/item/submissions/submissions_request_builder.rb @@ -46,10 +46,10 @@ def by_education_submission_id(education_submission_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + ## List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they're associated with. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_submission_collection_response ## @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,26 +73,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + ## List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they're associated with. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a submissions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SubmissionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + # List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they're associated with. class SubmissionsRequestBuilderGetQueryParameters ## diff --git a/lib/education/classes/item/education_class_item_request_builder.rb b/lib/education/classes/item/education_class_item_request_builder.rb index a4ae401ce2..092206c376 100644 --- a/lib/education/classes/item/education_class_item_request_builder.rb +++ b/lib/education/classes/item/education_class_item_request_builder.rb @@ -11,6 +11,7 @@ require_relative './group/group_request_builder' require_relative './item' require_relative './members/members_request_builder' +require_relative './modules/modules_request_builder' require_relative './schools/schools_request_builder' require_relative './teachers/teachers_request_builder' @@ -53,6 +54,11 @@ def members() return MicrosoftGraph::Education::Classes::Item::Members::MembersRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to manage the modules property of the microsoft.graph.educationClass entity. + def modules() + return MicrosoftGraph::Education::Classes::Item::Modules::ModulesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to manage the schools property of the microsoft.graph.educationClass entity. def schools() return MicrosoftGraph::Education::Classes::Item::Schools::SchoolsRequestBuilder.new(@path_parameters, @request_adapter) @@ -69,7 +75,7 @@ def teachers() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}{?%24expand,%24select}") end ## ## Delete an educationClass. Because a class is also a universal group, deleting a class deletes the group. @@ -81,8 +87,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -95,8 +100,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationClass.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -111,8 +115,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationClass.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -122,13 +125,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,15 +142,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -158,17 +162,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_class_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationClassItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a class from the system. A class is a universal group with a special property that indicates to the system that the group is a class. Group members represent the students; group admins represent the teachers in the class. If you're using the delegated token, the user will only see classes in which they are members. diff --git a/lib/education/classes/item/group/group_request_builder.rb b/lib/education/classes/item/group/group_request_builder.rb index 7bf8d72a32..398feaf6d6 100644 --- a/lib/education/classes/item/group/group_request_builder.rb +++ b/lib/education/classes/item/group/group_request_builder.rb @@ -6,6 +6,7 @@ require_relative '../../classes' require_relative '../item' require_relative './group' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' module MicrosoftGraph module Education @@ -16,6 +17,11 @@ module Group # Provides operations to manage the group property of the microsoft.graph.educationClass entity. class GroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Education::Classes::Item::Group::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end ## ## Instantiates a new GroupRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -23,7 +29,7 @@ class GroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/group{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/group{?%24expand,%24select}") end ## ## The underlying Microsoft 365 group object. @@ -35,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GroupRequestBuilder.new(raw_url, @request_adapter) + end ## # The underlying Microsoft 365 group object. diff --git a/lib/education/classes/item/group/service_provisioning_errors/count/count.rb b/lib/education/classes/item/group/service_provisioning_errors/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/classes/item/group/service_provisioning_errors/count/count_request_builder.rb b/lib/education/classes/item/group/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..ff52844120 --- /dev/null +++ b/lib/education/classes/item/group/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../education' +require_relative '../../../../classes' +require_relative '../../../item' +require_relative '../../group' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Education + module Classes + module Item + module Group + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/group/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/education/classes/item/group/service_provisioning_errors/service_provisioning_errors.rb b/lib/education/classes/item/group/service_provisioning_errors/service_provisioning_errors.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/classes/item/group/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/education/classes/item/group/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..8d656a0717 --- /dev/null +++ b/lib/education/classes/item/group/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,140 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../models/service_provisioning_error_collection_response' +require_relative '../../../../education' +require_relative '../../../classes' +require_relative '../../item' +require_relative '../group' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Education + module Classes + module Item + module Group + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \education\classes\{educationClass-id}\group\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Education::Classes::Item::Group::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/group/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/education/classes/item/members/count/count_request_builder.rb b/lib/education/classes/item/members/count/count_request_builder.rb index da230fa44b..df6358f4a7 100644 --- a/lib/education/classes/item/members/count/count_request_builder.rb +++ b/lib/education/classes/item/members/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/classes/item/members/item/ref/ref_request_builder.rb b/lib/education/classes/item/members/item/ref/ref_request_builder.rb index 09ece06069..53b5f65faf 100644 --- a/lib/education/classes/item/members/item/ref/ref_request_builder.rb +++ b/lib/education/classes/item/members/item/ref/ref_request_builder.rb @@ -26,7 +26,7 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/{educationUser%2Did}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/{educationUser%2Did}/$ref") end ## ## Remove an educationUser from an educationClass. @@ -38,8 +38,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,38 +48,24 @@ def delete(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Remove an educationUser from an educationClass. - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/education/classes/item/members/members_request_builder.rb b/lib/education/classes/item/members/members_request_builder.rb index 3d009b8629..d6915f0883 100644 --- a/lib/education/classes/item/members/members_request_builder.rb +++ b/lib/education/classes/item/members/members_request_builder.rb @@ -31,7 +31,7 @@ def ref() end ## ## Gets an item from the MicrosoftGraph.education.classes.item.members.item collection - ## @param education_user_id Unique identifier of the item + ## @param education_user_id The unique identifier of educationUser ## @return a education_user_item_request_builder ## def by_education_user_id(education_user_id) @@ -47,7 +47,7 @@ def by_education_user_id(education_user_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/members{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieves the educationUser members of an educationClass. @@ -59,8 +59,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationUserCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,17 +69,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a members_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MembersRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieves the educationUser members of an educationClass. diff --git a/lib/education/classes/item/members/ref/ref_request_builder.rb b/lib/education/classes/item/members/ref/ref_request_builder.rb index c0539999ee..718893f163 100644 --- a/lib/education/classes/item/members/ref/ref_request_builder.rb +++ b/lib/education/classes/item/members/ref/ref_request_builder.rb @@ -26,7 +26,20 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") + end + ## + ## Remove an educationUser from an educationClass. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) end ## ## Retrieves the educationUser members of an educationClass. @@ -38,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,26 +66,43 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## + ## Remove an educationUser from an educationClass. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/education/classes/{educationClass%2Did}/members/$ref?@id={%40id}' + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## ## Retrieves the educationUser members of an educationClass. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/education/classes/{educationClass%2Did}/members/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -85,16 +114,49 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/education/classes/{educationClass%2Did}/members/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Remove an educationUser from an educationClass. + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end ## # Retrieves the educationUser members of an educationClass. diff --git a/lib/education/classes/item/modules/count/count.rb b/lib/education/classes/item/modules/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/classes/item/modules/count/count_request_builder.rb b/lib/education/classes/item/modules/count/count_request_builder.rb new file mode 100644 index 0000000000..7f378dbb67 --- /dev/null +++ b/lib/education/classes/item/modules/count/count_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../education' +require_relative '../../../classes' +require_relative '../../item' +require_relative '../modules' +require_relative './count' + +module MicrosoftGraph + module Education + module Classes + module Item + module Modules + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/modules/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/education/classes/item/modules/item/education_module_item_request_builder.rb b/lib/education/classes/item/modules/item/education_module_item_request_builder.rb new file mode 100644 index 0000000000..ecfeaf8d89 --- /dev/null +++ b/lib/education/classes/item/modules/item/education_module_item_request_builder.rb @@ -0,0 +1,199 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/education_module' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../education' +require_relative '../../../classes' +require_relative '../../item' +require_relative '../modules' +require_relative './item' +require_relative './pin/pin_request_builder' +require_relative './publish/publish_request_builder' +require_relative './resources/resources_request_builder' +require_relative './set_up_resources_folder/set_up_resources_folder_request_builder' +require_relative './unpin/unpin_request_builder' + +module MicrosoftGraph + module Education + module Classes + module Item + module Modules + module Item + ## + # Provides operations to manage the modules property of the microsoft.graph.educationClass entity. + class EducationModuleItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the pin method. + def pin() + return MicrosoftGraph::Education::Classes::Item::Modules::Item::Pin::PinRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the publish method. + def publish() + return MicrosoftGraph::Education::Classes::Item::Modules::Item::Publish::PublishRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the resources property of the microsoft.graph.educationModule entity. + def resources() + return MicrosoftGraph::Education::Classes::Item::Modules::Item::Resources::ResourcesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the setUpResourcesFolder method. + def set_up_resources_folder() + return MicrosoftGraph::Education::Classes::Item::Modules::Item::SetUpResourcesFolder::SetUpResourcesFolderRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the unpin method. + def unpin() + return MicrosoftGraph::Education::Classes::Item::Modules::Item::Unpin::UnpinRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new EducationModuleItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/modules/{educationModule%2Did}{?%24expand,%24select}") + end + ## + ## Delete an existing module in a class. Only teachers within a class can delete modules. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Get the properties and relationships of a module. Only teachers, students, and applications with application permissions can perform this operation. Students can only see published modules; teachers and applications with application permissions can see all modules in a class. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_module + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationModule.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update an educationModule object in a class. Only teachers in the class can perform this operation. You can't use a PATCH request to change the status of a module. Use the publish action to change the module status. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_module + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationModule.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete an existing module in a class. Only teachers within a class can delete modules. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Get the properties and relationships of a module. Only teachers, students, and applications with application permissions can perform this operation. Students can only see published modules; teachers and applications with application permissions can see all modules in a class. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update an educationModule object in a class. Only teachers in the class can perform this operation. You can't use a PATCH request to change the status of a module. Use the publish action to change the module status. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_module_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationModuleItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the properties and relationships of a module. Only teachers, students, and applications with application permissions can perform this operation. Students can only see published modules; teachers and applications with application permissions can see all modules in a class. + class EducationModuleItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/education/classes/item/modules/item/item.rb b/lib/education/classes/item/modules/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/classes/item/modules/item/pin/pin.rb b/lib/education/classes/item/modules/item/pin/pin.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/classes/item/modules/item/pin/pin_request_builder.rb b/lib/education/classes/item/modules/item/pin/pin_request_builder.rb new file mode 100644 index 0000000000..0ab7c4be64 --- /dev/null +++ b/lib/education/classes/item/modules/item/pin/pin_request_builder.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/education_module' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../education' +require_relative '../../../../classes' +require_relative '../../../item' +require_relative '../../modules' +require_relative '../item' +require_relative './pin' + +module MicrosoftGraph + module Education + module Classes + module Item + module Modules + module Item + module Pin + ## + # Provides operations to call the pin method. + class PinRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new PinRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/modules/{educationModule%2Did}/pin") + end + ## + ## Pin an educationModule in the class work list. This action sets the isPinned property to true for an educationModule. Only teachers can perform this action and only one module at a time can be pinned in the class work list. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_module + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationModule.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Pin an educationModule in the class work list. This action sets the isPinned property to true for an educationModule. Only teachers can perform this action and only one module at a time can be pinned in the class work list. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a pin_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PinRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end +end diff --git a/lib/education/classes/item/modules/item/publish/publish.rb b/lib/education/classes/item/modules/item/publish/publish.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/classes/item/modules/item/publish/publish_request_builder.rb b/lib/education/classes/item/modules/item/publish/publish_request_builder.rb new file mode 100644 index 0000000000..b0c58402b5 --- /dev/null +++ b/lib/education/classes/item/modules/item/publish/publish_request_builder.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/education_module' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../education' +require_relative '../../../../classes' +require_relative '../../../item' +require_relative '../../modules' +require_relative '../item' +require_relative './publish' + +module MicrosoftGraph + module Education + module Classes + module Item + module Modules + module Item + module Publish + ## + # Provides operations to call the publish method. + class PublishRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new PublishRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/modules/{educationModule%2Did}/publish") + end + ## + ## Change the state of an educationModule from its original draft status to the published status. Only teachers in the class can perform this operation. When a module is in draft status, students can't see the module. When you call this API, the module appears in the student's class work list. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_module + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationModule.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Change the state of an educationModule from its original draft status to the published status. Only teachers in the class can perform this operation. When a module is in draft status, students can't see the module. When you call this API, the module appears in the student's class work list. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a publish_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PublishRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end +end diff --git a/lib/education/classes/item/modules/item/resources/count/count.rb b/lib/education/classes/item/modules/item/resources/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/classes/item/modules/item/resources/count/count_request_builder.rb b/lib/education/classes/item/modules/item/resources/count/count_request_builder.rb new file mode 100644 index 0000000000..d25b43adc4 --- /dev/null +++ b/lib/education/classes/item/modules/item/resources/count/count_request_builder.rb @@ -0,0 +1,109 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../education' +require_relative '../../../../../classes' +require_relative '../../../../item' +require_relative '../../../modules' +require_relative '../../item' +require_relative '../resources' +require_relative './count' + +module MicrosoftGraph + module Education + module Classes + module Item + module Modules + module Item + module Resources + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/modules/{educationModule%2Did}/resources/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/education/classes/item/modules/item/resources/item/education_module_resource_item_request_builder.rb b/lib/education/classes/item/modules/item/resources/item/education_module_resource_item_request_builder.rb new file mode 100644 index 0000000000..d63e0396b7 --- /dev/null +++ b/lib/education/classes/item/modules/item/resources/item/education_module_resource_item_request_builder.rb @@ -0,0 +1,175 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/education_module_resource' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../education' +require_relative '../../../../../classes' +require_relative '../../../../item' +require_relative '../../../modules' +require_relative '../../item' +require_relative '../resources' +require_relative './item' + +module MicrosoftGraph + module Education + module Classes + module Item + module Modules + module Item + module Resources + module Item + ## + # Provides operations to manage the resources property of the microsoft.graph.educationModule entity. + class EducationModuleResourceItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EducationModuleResourceItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/modules/{educationModule%2Did}/resources/{educationModuleResource%2Did}{?%24expand,%24select}") + end + ## + ## Delete a specific educationModuleResource attached to a module. Only teachers in the class can remove a resource. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Get the properties of a resource associated with a module. Only teachers, students, and applications with application permissions can perform this operation. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_module_resource + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationModuleResource.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update a resource in a module. Only teachers can perform this operation. The only one property that can be updated is displayName, for all resource types. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_module_resource + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationModuleResource.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete a specific educationModuleResource attached to a module. Only teachers in the class can remove a resource. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Get the properties of a resource associated with a module. Only teachers, students, and applications with application permissions can perform this operation. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update a resource in a module. Only teachers can perform this operation. The only one property that can be updated is displayName, for all resource types. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_module_resource_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationModuleResourceItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the properties of a resource associated with a module. Only teachers, students, and applications with application permissions can perform this operation. + class EducationModuleResourceItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/education/classes/item/modules/item/resources/item/item.rb b/lib/education/classes/item/modules/item/resources/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/classes/item/modules/item/resources/resources.rb b/lib/education/classes/item/modules/item/resources/resources.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/classes/item/modules/item/resources/resources_request_builder.rb b/lib/education/classes/item/modules/item/resources/resources_request_builder.rb new file mode 100644 index 0000000000..b8367383a7 --- /dev/null +++ b/lib/education/classes/item/modules/item/resources/resources_request_builder.rb @@ -0,0 +1,191 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/education_module_resource' +require_relative '../../../../../../models/education_module_resource_collection_response' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../education' +require_relative '../../../../classes' +require_relative '../../../item' +require_relative '../../modules' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './item/education_module_resource_item_request_builder' +require_relative './resources' + +module MicrosoftGraph + module Education + module Classes + module Item + module Modules + module Item + module Resources + ## + # Provides operations to manage the resources property of the microsoft.graph.educationModule entity. + class ResourcesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Education::Classes::Item::Modules::Item::Resources::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the resources property of the microsoft.graph.educationModule entity. + ## @param education_module_resource_id The unique identifier of educationModuleResource + ## @return a education_module_resource_item_request_builder + ## + def by_education_module_resource_id(education_module_resource_id) + raise StandardError, 'education_module_resource_id cannot be null' if education_module_resource_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["educationModuleResource%2Did"] = education_module_resource_id + return MicrosoftGraph::Education::Classes::Item::Modules::Item::Resources::Item::EducationModuleResourceItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ResourcesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/modules/{educationModule%2Did}/resources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get all the educationModuleResource objects associated with a module. Only teachers, students, and applications with application permissions can perform this operation. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_module_resource_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationModuleResourceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create a resource in a module. Only teachers can perform this operation. You can create the following types of module resources: Every resource has an @odata.type property to indicate which type of resource is being created. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_module_resource + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationModuleResource.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get all the educationModuleResource objects associated with a module. Only teachers, students, and applications with application permissions can perform this operation. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create a resource in a module. Only teachers can perform this operation. You can create the following types of module resources: Every resource has an @odata.type property to indicate which type of resource is being created. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resources_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourcesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get all the educationModuleResource objects associated with a module. Only teachers, students, and applications with application permissions can perform this operation. + class ResourcesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/education/classes/item/modules/item/set_up_resources_folder/set_up_resources_folder.rb b/lib/education/classes/item/modules/item/set_up_resources_folder/set_up_resources_folder.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/classes/item/modules/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb b/lib/education/classes/item/modules/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb new file mode 100644 index 0000000000..4bec56ba37 --- /dev/null +++ b/lib/education/classes/item/modules/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/education_module' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../education' +require_relative '../../../../classes' +require_relative '../../../item' +require_relative '../../modules' +require_relative '../item' +require_relative './set_up_resources_folder' + +module MicrosoftGraph + module Education + module Classes + module Item + module Modules + module Item + module SetUpResourcesFolder + ## + # Provides operations to call the setUpResourcesFolder method. + class SetUpResourcesFolderRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SetUpResourcesFolderRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/modules/{educationModule%2Did}/setUpResourcesFolder") + end + ## + ## Create a SharePoint folder to upload files for a given educationModule. Only teachers can perform this operation. The teacher determines what resources to upload to the SharePoint folder for the module. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_module + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationModule.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create a SharePoint folder to upload files for a given educationModule. Only teachers can perform this operation. The teacher determines what resources to upload to the SharePoint folder for the module. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_up_resources_folder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetUpResourcesFolderRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end +end diff --git a/lib/education/classes/item/modules/item/unpin/unpin.rb b/lib/education/classes/item/modules/item/unpin/unpin.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/classes/item/modules/item/unpin/unpin_request_builder.rb b/lib/education/classes/item/modules/item/unpin/unpin_request_builder.rb new file mode 100644 index 0000000000..debcec69fb --- /dev/null +++ b/lib/education/classes/item/modules/item/unpin/unpin_request_builder.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/education_module' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../education' +require_relative '../../../../classes' +require_relative '../../../item' +require_relative '../../modules' +require_relative '../item' +require_relative './unpin' + +module MicrosoftGraph + module Education + module Classes + module Item + module Modules + module Item + module Unpin + ## + # Provides operations to call the unpin method. + class UnpinRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnpinRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/modules/{educationModule%2Did}/unpin") + end + ## + ## Unpin an educationModule in the classwork list. This action sets the isPinned property to false for an educationModule. Only teachers in the class can perform this operation. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_module + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationModule.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Unpin an educationModule in the classwork list. This action sets the isPinned property to false for an educationModule. Only teachers in the class can perform this operation. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unpin_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnpinRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end +end diff --git a/lib/education/classes/item/modules/modules.rb b/lib/education/classes/item/modules/modules.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/classes/item/modules/modules_request_builder.rb b/lib/education/classes/item/modules/modules_request_builder.rb new file mode 100644 index 0000000000..c28a102390 --- /dev/null +++ b/lib/education/classes/item/modules/modules_request_builder.rb @@ -0,0 +1,185 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/education_module' +require_relative '../../../../models/education_module_collection_response' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../education' +require_relative '../../classes' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './item/education_module_item_request_builder' +require_relative './modules' + +module MicrosoftGraph + module Education + module Classes + module Item + module Modules + ## + # Provides operations to manage the modules property of the microsoft.graph.educationClass entity. + class ModulesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Education::Classes::Item::Modules::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the modules property of the microsoft.graph.educationClass entity. + ## @param education_module_id The unique identifier of educationModule + ## @return a education_module_item_request_builder + ## + def by_education_module_id(education_module_id) + raise StandardError, 'education_module_id cannot be null' if education_module_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["educationModule%2Did"] = education_module_id + return MicrosoftGraph::Education::Classes::Item::Modules::Item::EducationModuleItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ModulesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/modules{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Retrieve a list of module objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can see all module objects for the class. Students can only see published modules. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_module_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationModuleCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create a new module in a class. Only teachers in a class can create a module. Modules start in the draft state, which means that students can't see the modules until publication. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_module + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationModule.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Retrieve a list of module objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can see all module objects for the class. Students can only see published modules. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create a new module in a class. Only teachers in a class can create a module. Modules start in the draft state, which means that students can't see the modules until publication. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a modules_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ModulesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Retrieve a list of module objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can see all module objects for the class. Students can only see published modules. + class ModulesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/education/classes/item/schools/count/count_request_builder.rb b/lib/education/classes/item/schools/count/count_request_builder.rb index a77f33e7a3..a39814b346 100644 --- a/lib/education/classes/item/schools/count/count_request_builder.rb +++ b/lib/education/classes/item/schools/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/schools/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/schools/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/classes/item/schools/item/education_school_item_request_builder.rb b/lib/education/classes/item/schools/item/education_school_item_request_builder.rb index 12af69daf1..06ed48b10f 100644 --- a/lib/education/classes/item/schools/item/education_school_item_request_builder.rb +++ b/lib/education/classes/item/schools/item/education_school_item_request_builder.rb @@ -25,7 +25,7 @@ class EducationSchoolItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReques ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/schools/{educationSchool%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/schools/{educationSchool%2Did}{?%24expand,%24select}") end ## ## All schools that this class is associated with. Nullable. @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSchool.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_school_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationSchoolItemRequestBuilder.new(raw_url, @request_adapter) + end ## # All schools that this class is associated with. Nullable. diff --git a/lib/education/classes/item/schools/schools_request_builder.rb b/lib/education/classes/item/schools/schools_request_builder.rb index 9d8f92ac83..bc6d94572b 100644 --- a/lib/education/classes/item/schools/schools_request_builder.rb +++ b/lib/education/classes/item/schools/schools_request_builder.rb @@ -41,7 +41,7 @@ def by_education_school_id(education_school_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/schools{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/schools{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of schools in which the class is taught. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSchoolCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a schools_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SchoolsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of schools in which the class is taught. diff --git a/lib/education/classes/item/teachers/count/count_request_builder.rb b/lib/education/classes/item/teachers/count/count_request_builder.rb index da92eadcb5..169d7cefd3 100644 --- a/lib/education/classes/item/teachers/count/count_request_builder.rb +++ b/lib/education/classes/item/teachers/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/classes/item/teachers/item/ref/ref_request_builder.rb b/lib/education/classes/item/teachers/item/ref/ref_request_builder.rb index 978aff39b8..f6fef6b709 100644 --- a/lib/education/classes/item/teachers/item/ref/ref_request_builder.rb +++ b/lib/education/classes/item/teachers/item/ref/ref_request_builder.rb @@ -26,10 +26,10 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/{educationUser%2Did}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/{educationUser%2Did}/$ref") end ## - ## Remove teacher from an educationClass. + ## Remove a teacher from an educationClass. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -38,49 +38,34 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Remove teacher from an educationClass. + ## Remove a teacher from an educationClass. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Remove teacher from an educationClass. - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/education/classes/item/teachers/ref/ref_request_builder.rb b/lib/education/classes/item/teachers/ref/ref_request_builder.rb index 4677df648c..b5fb617b58 100644 --- a/lib/education/classes/item/teachers/ref/ref_request_builder.rb +++ b/lib/education/classes/item/teachers/ref/ref_request_builder.rb @@ -26,10 +26,23 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") end ## - ## Retrieve a list teachers for a class. Delegated tokens must be members of the class to get the teacher list. + ## Remove a teacher from an educationClass. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of string_collection_response ## @@ -38,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,26 +66,43 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve a list teachers for a class. Delegated tokens must be members of the class to get the teacher list. + ## Remove a teacher from an educationClass. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/education/classes/{educationClass%2Did}/teachers/$ref?@id={%40id}' request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/education/classes/{educationClass%2Did}/teachers/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -85,19 +114,52 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/education/classes/{educationClass%2Did}/teachers/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Remove a teacher from an educationClass. + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end ## - # Retrieve a list teachers for a class. Delegated tokens must be members of the class to get the teacher list. + # Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. class RefRequestBuilderGetQueryParameters ## diff --git a/lib/education/classes/item/teachers/teachers_request_builder.rb b/lib/education/classes/item/teachers/teachers_request_builder.rb index b3c749688d..c918065677 100644 --- a/lib/education/classes/item/teachers/teachers_request_builder.rb +++ b/lib/education/classes/item/teachers/teachers_request_builder.rb @@ -31,7 +31,7 @@ def ref() end ## ## Gets an item from the MicrosoftGraph.education.classes.item.teachers.item collection - ## @param education_user_id Unique identifier of the item + ## @param education_user_id The unique identifier of educationUser ## @return a education_user_item_request_builder ## def by_education_user_id(education_user_id) @@ -47,10 +47,10 @@ def by_education_user_id(education_user_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list teachers for a class. Delegated tokens must be members of the class to get the teacher list. + ## Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_user_collection_response ## @@ -59,31 +59,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationUserCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list teachers for a class. Delegated tokens must be members of the class to get the teacher list. + ## Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a teachers_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TeachersRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list teachers for a class. Delegated tokens must be members of the class to get the teacher list. + # Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. class TeachersRequestBuilderGetQueryParameters ## diff --git a/lib/education/education_request_builder.rb b/lib/education/education_request_builder.rb index 3668bc9ea3..32b77ed7ad 100644 --- a/lib/education/education_request_builder.rb +++ b/lib/education/education_request_builder.rb @@ -41,7 +41,7 @@ def users() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education{?%24expand,%24select}") end ## ## Get education @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationRoot.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +68,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationRoot.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,15 +78,15 @@ def patch(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,17 +98,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationRequestBuilder.new(raw_url, @request_adapter) + end ## # Get education diff --git a/lib/education/me/assignments/assignments_request_builder.rb b/lib/education/me/assignments/assignments_request_builder.rb index f690bfc4c3..d58b3e448f 100644 --- a/lib/education/me/assignments/assignments_request_builder.rb +++ b/lib/education/me/assignments/assignments_request_builder.rb @@ -46,7 +46,7 @@ def by_education_assignment_id(education_assignment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,8 +73,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,15 +83,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,17 +103,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end ## # Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. diff --git a/lib/education/me/assignments/count/count_request_builder.rb b/lib/education/me/assignments/count/count_request_builder.rb index 90751debf1..d9c014dfb8 100644 --- a/lib/education/me/assignments/count/count_request_builder.rb +++ b/lib/education/me/assignments/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/me/assignments/delta/delta.rb b/lib/education/me/assignments/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/education/me/assignments/delta/delta.rb +++ b/lib/education/me/assignments/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/education/me/assignments/delta/delta_get_response.rb b/lib/education/me/assignments/delta/delta_get_response.rb new file mode 100644 index 0000000000..ee031bf517 --- /dev/null +++ b/lib/education/me/assignments/delta/delta_get_response.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/base_delta_function_response' +require_relative '../../../../models/education_assignment' +require_relative '../../../education' +require_relative '../../me' +require_relative '../assignments' +require_relative './delta' + +module MicrosoftGraph + module Education + module Me + module Assignments + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a education_assignment + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/education/me/assignments/delta/delta_request_builder.rb b/lib/education/me/assignments/delta/delta_request_builder.rb index 8a606bbfc7..9915e0ba32 100644 --- a/lib/education/me/assignments/delta/delta_request_builder.rb +++ b/lib/education/me/assignments/delta/delta_request_builder.rb @@ -22,49 +22,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## Get a list of newly-created or updated assignments without reading the whole collection. A teacher or an application running with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Education::Me::Assignments::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Education::Me::Assignments::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## Get a list of newly-created or updated assignments without reading the whole collection. A teacher or an application running with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # Get a list of newly-created or updated assignments without reading the whole collection. A teacher or an application running with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. class DeltaRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -92,6 +103,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/education/me/assignments/delta/delta_response.rb b/lib/education/me/assignments/delta/delta_response.rb deleted file mode 100644 index ce9d0917e8..0000000000 --- a/lib/education/me/assignments/delta/delta_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/base_delta_function_response' -require_relative '../../../../models/education_assignment' -require_relative '../../../education' -require_relative '../../me' -require_relative '../assignments' -require_relative './delta' - -module MicrosoftGraph - module Education - module Me - module Assignments - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a education_assignment - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/education/me/assignments/item/activate/activate.rb b/lib/education/me/assignments/item/activate/activate.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/me/assignments/item/activate/activate_request_builder.rb b/lib/education/me/assignments/item/activate/activate_request_builder.rb new file mode 100644 index 0000000000..98a5b56706 --- /dev/null +++ b/lib/education/me/assignments/item/activate/activate_request_builder.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/education_assignment' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../education' +require_relative '../../../me' +require_relative '../../assignments' +require_relative '../item' +require_relative './activate' + +module MicrosoftGraph + module Education + module Me + module Assignments + module Item + module Activate + ## + # Provides operations to call the activate method. + class ActivateRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ActivateRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/activate") + end + ## + ## Activate an inactive educationAssignment to signal that the assignment has further action items for teachers or students. This action can only be performed by a teacher on currently inactive assignments. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_assignment + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Activate an inactive educationAssignment to signal that the assignment has further action items for teachers or students. This action can only be performed by a teacher on currently inactive assignments. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a activate_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ActivateRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end +end diff --git a/lib/education/me/assignments/item/categories/categories_request_builder.rb b/lib/education/me/assignments/item/categories/categories_request_builder.rb index 3f215d6ba9..55db2b5e18 100644 --- a/lib/education/me/assignments/item/categories/categories_request_builder.rb +++ b/lib/education/me/assignments/item/categories/categories_request_builder.rb @@ -40,7 +40,7 @@ def ref() end ## ## Gets an item from the MicrosoftGraph.education.me.assignments.item.categories.item collection - ## @param education_category_id Unique identifier of the item + ## @param education_category_id The unique identifier of educationCategory ## @return a education_category_item_request_builder ## def by_education_category_id(education_category_id) @@ -56,10 +56,10 @@ def by_education_category_id(education_category_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + ## When set, enables users to easily find assignments of a given type. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_category_collection_response ## @@ -68,12 +68,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + ## Create new navigation property to categories for education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_category @@ -84,30 +83,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationCategory.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + ## When set, enables users to easily find assignments of a given type. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + ## Create new navigation property to categories for education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -115,20 +113,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CategoriesRequestBuilder.new(raw_url, @request_adapter) + end ## - # List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + # When set, enables users to easily find assignments of a given type. Read-only. Nullable. class CategoriesRequestBuilderGetQueryParameters ## diff --git a/lib/education/me/assignments/item/categories/count/count_request_builder.rb b/lib/education/me/assignments/item/categories/count/count_request_builder.rb index 3d7161d2fc..842479acfd 100644 --- a/lib/education/me/assignments/item/categories/count/count_request_builder.rb +++ b/lib/education/me/assignments/item/categories/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/me/assignments/item/categories/delta/delta.rb b/lib/education/me/assignments/item/categories/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/education/me/assignments/item/categories/delta/delta.rb +++ b/lib/education/me/assignments/item/categories/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/education/me/assignments/item/categories/delta/delta_get_response.rb b/lib/education/me/assignments/item/categories/delta/delta_get_response.rb new file mode 100644 index 0000000000..50e96b7f11 --- /dev/null +++ b/lib/education/me/assignments/item/categories/delta/delta_get_response.rb @@ -0,0 +1,81 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/base_delta_function_response' +require_relative '../../../../../../models/education_category' +require_relative '../../../../../education' +require_relative '../../../../me' +require_relative '../../../assignments' +require_relative '../../item' +require_relative '../categories' +require_relative './delta' + +module MicrosoftGraph + module Education + module Me + module Assignments + module Item + module Categories + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationCategory.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a education_category + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end +end diff --git a/lib/education/me/assignments/item/categories/delta/delta_request_builder.rb b/lib/education/me/assignments/item/categories/delta/delta_request_builder.rb index e97df20db6..07bf686be8 100644 --- a/lib/education/me/assignments/item/categories/delta/delta_request_builder.rb +++ b/lib/education/me/assignments/item/categories/delta/delta_request_builder.rb @@ -26,49 +26,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## Get a list of newly created or updated educationCategory objects without having to perform a full read of the collection. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Education::Me::Assignments::Item::Categories::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Education::Me::Assignments::Item::Categories::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## Get a list of newly created or updated educationCategory objects without having to perform a full read of the collection. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # Get a list of newly created or updated educationCategory objects without having to perform a full read of the collection. class DeltaRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -96,6 +107,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/education/me/assignments/item/categories/delta/delta_response.rb b/lib/education/me/assignments/item/categories/delta/delta_response.rb deleted file mode 100644 index f7dd83967e..0000000000 --- a/lib/education/me/assignments/item/categories/delta/delta_response.rb +++ /dev/null @@ -1,81 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/base_delta_function_response' -require_relative '../../../../../../models/education_category' -require_relative '../../../../../education' -require_relative '../../../../me' -require_relative '../../../assignments' -require_relative '../../item' -require_relative '../categories' -require_relative './delta' - -module MicrosoftGraph - module Education - module Me - module Assignments - module Item - module Categories - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationCategory.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a education_category - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/education/me/assignments/item/categories/item/ref/ref_request_builder.rb b/lib/education/me/assignments/item/categories/item/ref/ref_request_builder.rb index 0e873d3860..03ffb87357 100644 --- a/lib/education/me/assignments/item/categories/item/ref/ref_request_builder.rb +++ b/lib/education/me/assignments/item/categories/item/ref/ref_request_builder.rb @@ -28,10 +28,10 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref") end ## - ## Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + ## Delete ref of navigation property categories for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -40,49 +40,34 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + ## Delete ref of navigation property categories for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/education/me/assignments/item/categories/ref/ref_request_builder.rb b/lib/education/me/assignments/item/categories/ref/ref_request_builder.rb index 40c7020e33..3d069a4a03 100644 --- a/lib/education/me/assignments/item/categories/ref/ref_request_builder.rb +++ b/lib/education/me/assignments/item/categories/ref/ref_request_builder.rb @@ -28,10 +28,23 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") end ## - ## List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + ## Delete ref of navigation property categories for education + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## When set, enables users to easily find assignments of a given type. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of string_collection_response ## @@ -40,12 +53,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + ## Create new navigation property ref to categories for education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -56,30 +68,47 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + ## Delete ref of navigation property categories for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$ref?@id={%40id}' request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## When set, enables users to easily find assignments of a given type. Read-only. Nullable. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + ## Create new navigation property ref to categories for education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -87,19 +116,52 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Delete ref of navigation property categories for education + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end ## - # List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + # When set, enables users to easily find assignments of a given type. Read-only. Nullable. class RefRequestBuilderGetQueryParameters ## diff --git a/lib/education/me/assignments/item/deactivate/deactivate.rb b/lib/education/me/assignments/item/deactivate/deactivate.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/me/assignments/item/deactivate/deactivate_request_builder.rb b/lib/education/me/assignments/item/deactivate/deactivate_request_builder.rb new file mode 100644 index 0000000000..21e5a07df5 --- /dev/null +++ b/lib/education/me/assignments/item/deactivate/deactivate_request_builder.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/education_assignment' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../education' +require_relative '../../../me' +require_relative '../../assignments' +require_relative '../item' +require_relative './deactivate' + +module MicrosoftGraph + module Education + module Me + module Assignments + module Item + module Deactivate + ## + # Provides operations to call the deactivate method. + class DeactivateRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeactivateRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/deactivate") + end + ## + ## Mark an assigned educationAssignment as inactive to signal that the assignment has no further action items for teachers and students. This action can only be performed by a teacher on assigned assignments. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_assignment + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Mark an assigned educationAssignment as inactive to signal that the assignment has no further action items for teachers and students. This action can only be performed by a teacher on assigned assignments. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a deactivate_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeactivateRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end +end diff --git a/lib/education/me/assignments/item/education_assignment_item_request_builder.rb b/lib/education/me/assignments/item/education_assignment_item_request_builder.rb index 0f2f241667..7330196a5d 100644 --- a/lib/education/me/assignments/item/education_assignment_item_request_builder.rb +++ b/lib/education/me/assignments/item/education_assignment_item_request_builder.rb @@ -5,7 +5,10 @@ require_relative '../../../education' require_relative '../../me' require_relative '../assignments' +require_relative './activate/activate_request_builder' require_relative './categories/categories_request_builder' +require_relative './deactivate/deactivate_request_builder' +require_relative './grading_category/grading_category_request_builder' require_relative './item' require_relative './publish/publish_request_builder' require_relative './resources/resources_request_builder' @@ -23,12 +26,27 @@ module Item # Provides operations to manage the assignments property of the microsoft.graph.educationUser entity. class EducationAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the activate method. + def activate() + return MicrosoftGraph::Education::Me::Assignments::Item::Activate::ActivateRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Provides operations to manage the categories property of the microsoft.graph.educationAssignment entity. def categories() return MicrosoftGraph::Education::Me::Assignments::Item::Categories::CategoriesRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the deactivate method. + def deactivate() + return MicrosoftGraph::Education::Me::Assignments::Item::Deactivate::DeactivateRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the gradingCategory property of the microsoft.graph.educationAssignment entity. + def grading_category() + return MicrosoftGraph::Education::Me::Assignments::Item::GradingCategory::GradingCategoryRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to call the publish method. def publish() return MicrosoftGraph::Education::Me::Assignments::Item::Publish::PublishRequestBuilder.new(@path_parameters, @request_adapter) @@ -65,7 +83,7 @@ def submissions() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}{?%24expand,%24select}") end ## ## Delete navigation property assignments for education @@ -77,8 +95,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -91,8 +108,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -107,8 +123,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -118,13 +133,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -134,15 +150,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -154,17 +170,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Assignments belonging to the user. diff --git a/lib/education/me/assignments/item/grading_category/grading_category.rb b/lib/education/me/assignments/item/grading_category/grading_category.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/me/assignments/item/grading_category/grading_category_request_builder.rb b/lib/education/me/assignments/item/grading_category/grading_category_request_builder.rb new file mode 100644 index 0000000000..0093a9d126 --- /dev/null +++ b/lib/education/me/assignments/item/grading_category/grading_category_request_builder.rb @@ -0,0 +1,104 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/education_grading_category' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../education' +require_relative '../../../me' +require_relative '../../assignments' +require_relative '../item' +require_relative './grading_category' + +module MicrosoftGraph + module Education + module Me + module Assignments + module Item + module GradingCategory + ## + # Provides operations to manage the gradingCategory property of the microsoft.graph.educationAssignment entity. + class GradingCategoryRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new GradingCategoryRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/gradingCategory{?%24expand,%24select}") + end + ## + ## When set, enables users to weight assignments differently when computing a class average grade. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_grading_category + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationGradingCategory.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## When set, enables users to weight assignments differently when computing a class average grade. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a grading_category_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GradingCategoryRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # When set, enables users to weight assignments differently when computing a class average grade. + class GradingCategoryRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/education/me/assignments/item/publish/publish_request_builder.rb b/lib/education/me/assignments/item/publish/publish_request_builder.rb index 3c18b893a9..0ca87f099d 100644 --- a/lib/education/me/assignments/item/publish/publish_request_builder.rb +++ b/lib/education/me/assignments/item/publish/publish_request_builder.rb @@ -28,7 +28,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/publish") end ## - ## Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + ## Publish an education assignment. Change the status of an educationAssignment from its original draft status to the published status. You can change the status from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The status of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_assignment ## @@ -37,27 +37,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + ## Publish an education assignment. Change the status of an educationAssignment from its original draft status to the published status. You can change the status from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The status of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a publish_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PublishRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/me/assignments/item/resources/count/count_request_builder.rb b/lib/education/me/assignments/item/resources/count/count_request_builder.rb index 1fd55e2dc6..36378463af 100644 --- a/lib/education/me/assignments/item/resources/count/count_request_builder.rb +++ b/lib/education/me/assignments/item/resources/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/resources/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/resources/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/me/assignments/item/resources/item/education_assignment_resource_item_request_builder.rb b/lib/education/me/assignments/item/resources/item/education_assignment_resource_item_request_builder.rb index 3e1cf10cd6..a2aa7064a4 100644 --- a/lib/education/me/assignments/item/resources/item/education_assignment_resource_item_request_builder.rb +++ b/lib/education/me/assignments/item/resources/item/education_assignment_resource_item_request_builder.rb @@ -27,10 +27,10 @@ class EducationAssignmentResourceItemRequestBuilder < MicrosoftKiotaAbstractions ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/resources/{educationAssignmentResource%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/resources/{educationAssignmentResource%2Did}{?%24expand,%24select}") end ## - ## Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. + ## Delete navigation property resources for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -39,12 +39,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + ## Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_assignment_resource ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignmentResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,42 +67,42 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignmentResource.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. + ## Delete navigation property resources for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + ## Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,20 +114,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_assignment_resource_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationAssignmentResourceItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + # Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. class EducationAssignmentResourceItemRequestBuilderGetQueryParameters ## diff --git a/lib/education/me/assignments/item/resources/resources_request_builder.rb b/lib/education/me/assignments/item/resources/resources_request_builder.rb index e470305d67..6c0396f4ec 100644 --- a/lib/education/me/assignments/item/resources/resources_request_builder.rb +++ b/lib/education/me/assignments/item/resources/resources_request_builder.rb @@ -44,10 +44,10 @@ def by_education_assignment_resource_id(education_assignment_resource_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/resources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + ## Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_assignment_resource_collection_response ## @@ -56,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignmentResourceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. + ## Create new navigation property to resources for education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_assignment_resource @@ -72,30 +71,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignmentResource.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + ## Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. + ## Create new navigation property to resources for education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resources_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourcesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + # Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. class ResourcesRequestBuilderGetQueryParameters ## diff --git a/lib/education/me/assignments/item/rubric/ref/ref_request_builder.rb b/lib/education/me/assignments/item/rubric/ref/ref_request_builder.rb index 0d098fb917..e6c393b037 100644 --- a/lib/education/me/assignments/item/rubric/ref/ref_request_builder.rb +++ b/lib/education/me/assignments/item/rubric/ref/ref_request_builder.rb @@ -30,7 +30,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/rubric/$ref") end ## - ## Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + ## Delete ref of navigation property rubric for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -39,12 +39,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + ## When set, the grading rubric attached to this assignment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of string ## @@ -53,12 +52,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, string, error_mapping) end ## - ## Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + ## Update the ref of navigation property rubric in education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -69,45 +67,45 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + ## Delete ref of navigation property rubric for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + ## When set, the grading rubric attached to this assignment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + ## Update the ref of navigation property rubric in education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -115,16 +113,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/me/assignments/item/rubric/rubric_request_builder.rb b/lib/education/me/assignments/item/rubric/rubric_request_builder.rb index 34ceecbdfb..d6c987e102 100644 --- a/lib/education/me/assignments/item/rubric/rubric_request_builder.rb +++ b/lib/education/me/assignments/item/rubric/rubric_request_builder.rb @@ -31,10 +31,10 @@ def ref() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/rubric{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/rubric{?%24expand,%24select}") end ## - ## Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + ## Delete navigation property rubric for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -43,12 +43,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + ## When set, the grading rubric attached to this assignment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_rubric ## @@ -57,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationRubric.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + ## Update the navigation property rubric in education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_rubric @@ -73,46 +71,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationRubric.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + ## Delete navigation property rubric for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + ## When set, the grading rubric attached to this assignment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + ## Update the navigation property rubric in education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -120,20 +118,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rubric_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RubricRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + # When set, the grading rubric attached to this assignment. class RubricRequestBuilderGetQueryParameters ## diff --git a/lib/education/me/assignments/item/set_up_feedback_resources_folder/set_up_feedback_resources_folder_request_builder.rb b/lib/education/me/assignments/item/set_up_feedback_resources_folder/set_up_feedback_resources_folder_request_builder.rb index dfa77c0814..7b40f138a8 100644 --- a/lib/education/me/assignments/item/set_up_feedback_resources_folder/set_up_feedback_resources_folder_request_builder.rb +++ b/lib/education/me/assignments/item/set_up_feedback_resources_folder/set_up_feedback_resources_folder_request_builder.rb @@ -37,8 +37,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,16 +47,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_up_feedback_resources_folder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetUpFeedbackResourcesFolderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/me/assignments/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb b/lib/education/me/assignments/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb index e363b03c10..3e8ba3ca4c 100644 --- a/lib/education/me/assignments/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb +++ b/lib/education/me/assignments/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb @@ -37,8 +37,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,16 +47,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_up_resources_folder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetUpResourcesFolderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/me/assignments/item/submissions/count/count_request_builder.rb b/lib/education/me/assignments/item/submissions/count/count_request_builder.rb index ab612ea536..ac5126d904 100644 --- a/lib/education/me/assignments/item/submissions/count/count_request_builder.rb +++ b/lib/education/me/assignments/item/submissions/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/me/assignments/item/submissions/item/education_submission_item_request_builder.rb b/lib/education/me/assignments/item/submissions/item/education_submission_item_request_builder.rb index 35d1335fcf..4bd4fa47ae 100644 --- a/lib/education/me/assignments/item/submissions/item/education_submission_item_request_builder.rb +++ b/lib/education/me/assignments/item/submissions/item/education_submission_item_request_builder.rb @@ -7,6 +7,7 @@ require_relative '../../../assignments' require_relative '../../item' require_relative '../submissions' +require_relative './excuse/excuse_request_builder' require_relative './item' require_relative './outcomes/outcomes_request_builder' require_relative './reassign/reassign_request_builder' @@ -28,6 +29,11 @@ module Item # Provides operations to manage the submissions property of the microsoft.graph.educationAssignment entity. class EducationSubmissionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the excuse method. + def excuse() + return MicrosoftGraph::Education::Me::Assignments::Item::Submissions::Item::Excuse::ExcuseRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Provides operations to manage the outcomes property of the microsoft.graph.educationSubmission entity. def outcomes() @@ -75,7 +81,7 @@ def unsubmit() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}{?%24expand,%24select}") end ## ## Delete navigation property submissions for education @@ -87,12 +93,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + ## Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_submission ## @@ -101,8 +106,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -117,8 +121,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -128,31 +131,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + ## Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -164,20 +168,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_submission_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationSubmissionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + # Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. class EducationSubmissionItemRequestBuilderGetQueryParameters ## diff --git a/lib/education/me/assignments/item/submissions/item/excuse/excuse.rb b/lib/education/me/assignments/item/submissions/item/excuse/excuse.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/me/assignments/item/submissions/item/excuse/excuse_request_builder.rb b/lib/education/me/assignments/item/submissions/item/excuse/excuse_request_builder.rb new file mode 100644 index 0000000000..a0190b6df0 --- /dev/null +++ b/lib/education/me/assignments/item/submissions/item/excuse/excuse_request_builder.rb @@ -0,0 +1,81 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/education_submission' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../education' +require_relative '../../../../../me' +require_relative '../../../../assignments' +require_relative '../../../item' +require_relative '../../submissions' +require_relative '../item' +require_relative './excuse' + +module MicrosoftGraph + module Education + module Me + module Assignments + module Item + module Submissions + module Item + module Excuse + ## + # Provides operations to call the excuse method. + class ExcuseRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ExcuseRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/excuse") + end + ## + ## Excuse a submission. Excused submissions aren't included in average grade calculations. Grading rubrics and feedback are deleted. Only teachers can perform this action. If the Prefer: include-unknown-enum-members request header is provided, the excused submission shows the excused status. Otherwise, the submission status retains the returned status. For more information about how to use this header, see the Examples section. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_submission + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Excuse a submission. Excused submissions aren't included in average grade calculations. Grading rubrics and feedback are deleted. Only teachers can perform this action. If the Prefer: include-unknown-enum-members request header is provided, the excused submission shows the excused status. Otherwise, the submission status retains the returned status. For more information about how to use this header, see the Examples section. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a excuse_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExcuseRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end +end diff --git a/lib/education/me/assignments/item/submissions/item/outcomes/count/count_request_builder.rb b/lib/education/me/assignments/item/submissions/item/outcomes/count/count_request_builder.rb index 49abad726c..36ae19f06f 100644 --- a/lib/education/me/assignments/item/submissions/item/outcomes/count/count_request_builder.rb +++ b/lib/education/me/assignments/item/submissions/item/outcomes/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/me/assignments/item/submissions/item/outcomes/item/education_outcome_item_request_builder.rb b/lib/education/me/assignments/item/submissions/item/outcomes/item/education_outcome_item_request_builder.rb index 9af55242c6..f30e81ccc4 100644 --- a/lib/education/me/assignments/item/submissions/item/outcomes/item/education_outcome_item_request_builder.rb +++ b/lib/education/me/assignments/item/submissions/item/outcomes/item/education_outcome_item_request_builder.rb @@ -31,10 +31,10 @@ class EducationOutcomeItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReque ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/{educationOutcome%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/{educationOutcome%2Did}{?%24expand,%24select}") end ## - ## Delete a feedback resource from a submission. This can only be done by a teacher. + ## Delete navigation property outcomes for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationOutcome.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of an educationOutcome object. Only teachers can perform this operation. + ## Update the navigation property outcomes in education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_outcome @@ -73,24 +71,24 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationOutcome.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a feedback resource from a submission. This can only be done by a teacher. + ## Delete navigation property outcomes for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,19 +98,19 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of an educationOutcome object. Only teachers can perform this operation. + ## Update the navigation property outcomes in education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_outcome_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationOutcomeItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get outcomes from education diff --git a/lib/education/me/assignments/item/submissions/item/outcomes/outcomes_request_builder.rb b/lib/education/me/assignments/item/submissions/item/outcomes/outcomes_request_builder.rb index 96809ee5da..80ceb7c778 100644 --- a/lib/education/me/assignments/item/submissions/item/outcomes/outcomes_request_builder.rb +++ b/lib/education/me/assignments/item/submissions/item/outcomes/outcomes_request_builder.rb @@ -48,10 +48,10 @@ def by_education_outcome_id(education_outcome_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + ## Get outcomes from education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_outcome_collection_response ## @@ -60,12 +60,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationOutcomeCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. + ## Create new navigation property to outcomes for education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_outcome @@ -76,30 +75,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationOutcome.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + ## Get outcomes from education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. + ## Create new navigation property to outcomes for education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -107,20 +105,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a outcomes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OutcomesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + # Get outcomes from education class OutcomesRequestBuilderGetQueryParameters ## diff --git a/lib/education/me/assignments/item/submissions/item/reassign/reassign_request_builder.rb b/lib/education/me/assignments/item/submissions/item/reassign/reassign_request_builder.rb index 7747c906b6..2324067673 100644 --- a/lib/education/me/assignments/item/submissions/item/reassign/reassign_request_builder.rb +++ b/lib/education/me/assignments/item/submissions/item/reassign/reassign_request_builder.rb @@ -32,7 +32,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/reassign") end ## - ## Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + ## Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission is treated as a returned submission. This means that the reassigned status is mapped to the returned status, and reassignedDateTime and reassignedBy properties are mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_submission ## @@ -41,27 +41,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + ## Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission is treated as a returned submission. This means that the reassigned status is mapped to the returned status, and reassignedDateTime and reassignedBy properties are mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reassign_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReassignRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/me/assignments/item/submissions/item/resources/count/count_request_builder.rb b/lib/education/me/assignments/item/submissions/item/resources/count/count_request_builder.rb index fad2ee45a2..27e17ac594 100644 --- a/lib/education/me/assignments/item/submissions/item/resources/count/count_request_builder.rb +++ b/lib/education/me/assignments/item/submissions/item/resources/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/me/assignments/item/submissions/item/resources/item/education_submission_resource_item_request_builder.rb b/lib/education/me/assignments/item/submissions/item/resources/item/education_submission_resource_item_request_builder.rb index b9b7afb607..bcfb0d3e40 100644 --- a/lib/education/me/assignments/item/submissions/item/resources/item/education_submission_resource_item_request_builder.rb +++ b/lib/education/me/assignments/item/submissions/item/resources/item/education_submission_resource_item_request_builder.rb @@ -31,10 +31,10 @@ class EducationSubmissionResourceItemRequestBuilder < MicrosoftKiotaAbstractions ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/{educationSubmissionResource%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/{educationSubmissionResource%2Did}{?%24expand,%24select}") end ## - ## Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource was not copied from the assignment but was added from the student, the resource is simply deleted. + ## Delete navigation property resources for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -43,12 +43,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + ## Get resources from education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_submission_resource ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,42 +71,42 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResource.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource was not copied from the assignment but was added from the student, the resource is simply deleted. + ## Delete navigation property resources for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + ## Get resources from education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,20 +118,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_submission_resource_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationSubmissionResourceItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + # Get resources from education class EducationSubmissionResourceItemRequestBuilderGetQueryParameters ## diff --git a/lib/education/me/assignments/item/submissions/item/resources/resources_request_builder.rb b/lib/education/me/assignments/item/submissions/item/resources/resources_request_builder.rb index 9e9685754a..249b6806ea 100644 --- a/lib/education/me/assignments/item/submissions/item/resources/resources_request_builder.rb +++ b/lib/education/me/assignments/item/submissions/item/resources/resources_request_builder.rb @@ -48,10 +48,10 @@ def by_education_submission_resource_id(education_submission_resource_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + ## Get resources from education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_submission_resource_collection_response ## @@ -60,12 +60,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResourceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. + ## Create new navigation property to resources for education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_submission_resource @@ -76,30 +75,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResource.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + ## Get resources from education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. + ## Create new navigation property to resources for education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -107,20 +105,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resources_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourcesRequestBuilder.new(raw_url, @request_adapter) + end ## - # List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + # Get resources from education class ResourcesRequestBuilderGetQueryParameters ## diff --git a/lib/education/me/assignments/item/submissions/item/return_escaped/return_request_builder.rb b/lib/education/me/assignments/item/submissions/item/return_escaped/return_request_builder.rb index 073e0bd45a..089c89940e 100644 --- a/lib/education/me/assignments/item/submissions/item/return_escaped/return_request_builder.rb +++ b/lib/education/me/assignments/item/submissions/item/return_escaped/return_request_builder.rb @@ -41,8 +41,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,16 +51,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a return_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReturnRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/me/assignments/item/submissions/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb b/lib/education/me/assignments/item/submissions/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb index f145d4bcce..622efe86fa 100644 --- a/lib/education/me/assignments/item/submissions/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb +++ b/lib/education/me/assignments/item/submissions/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb @@ -41,8 +41,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,16 +51,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_up_resources_folder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetUpResourcesFolderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/me/assignments/item/submissions/item/submit/submit_request_builder.rb b/lib/education/me/assignments/item/submissions/item/submit/submit_request_builder.rb index e398d43b68..e06c9ad62f 100644 --- a/lib/education/me/assignments/item/submissions/item/submit/submit_request_builder.rb +++ b/lib/education/me/assignments/item/submissions/item/submit/submit_request_builder.rb @@ -41,8 +41,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,16 +51,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a submit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SubmitRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/me/assignments/item/submissions/item/submitted_resources/count/count_request_builder.rb b/lib/education/me/assignments/item/submissions/item/submitted_resources/count/count_request_builder.rb index 05a8fbc126..6d3687bb90 100644 --- a/lib/education/me/assignments/item/submissions/item/submitted_resources/count/count_request_builder.rb +++ b/lib/education/me/assignments/item/submissions/item/submitted_resources/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/me/assignments/item/submissions/item/submitted_resources/item/education_submission_resource_item_request_builder.rb b/lib/education/me/assignments/item/submissions/item/submitted_resources/item/education_submission_resource_item_request_builder.rb index 8fc0794493..98144450c3 100644 --- a/lib/education/me/assignments/item/submissions/item/submitted_resources/item/education_submission_resource_item_request_builder.rb +++ b/lib/education/me/assignments/item/submissions/item/submitted_resources/item/education_submission_resource_item_request_builder.rb @@ -31,7 +31,7 @@ class EducationSubmissionResourceItemRequestBuilder < MicrosoftKiotaAbstractions ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/{educationSubmissionResource%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/{educationSubmissionResource%2Did}{?%24expand,%24select}") end ## ## Delete navigation property submittedResources for education @@ -43,12 +43,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + ## Get submittedResources from education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_submission_resource ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,31 +81,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + ## Get submittedResources from education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,20 +118,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_submission_resource_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationSubmissionResourceItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + # Get submittedResources from education class EducationSubmissionResourceItemRequestBuilderGetQueryParameters ## diff --git a/lib/education/me/assignments/item/submissions/item/submitted_resources/submitted_resources_request_builder.rb b/lib/education/me/assignments/item/submissions/item/submitted_resources/submitted_resources_request_builder.rb index 58348f8fbc..126f2efada 100644 --- a/lib/education/me/assignments/item/submissions/item/submitted_resources/submitted_resources_request_builder.rb +++ b/lib/education/me/assignments/item/submissions/item/submitted_resources/submitted_resources_request_builder.rb @@ -48,10 +48,10 @@ def by_education_submission_resource_id(education_submission_resource_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + ## Get submittedResources from education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_submission_resource_collection_response ## @@ -60,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResourceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,26 +75,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResource.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + ## Get submittedResources from education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -107,20 +105,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a submitted_resources_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SubmittedResourcesRequestBuilder.new(raw_url, @request_adapter) + end ## - # List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + # Get submittedResources from education class SubmittedResourcesRequestBuilderGetQueryParameters ## diff --git a/lib/education/me/assignments/item/submissions/item/unsubmit/unsubmit_request_builder.rb b/lib/education/me/assignments/item/submissions/item/unsubmit/unsubmit_request_builder.rb index 3a434c2c55..054234c6d4 100644 --- a/lib/education/me/assignments/item/submissions/item/unsubmit/unsubmit_request_builder.rb +++ b/lib/education/me/assignments/item/submissions/item/unsubmit/unsubmit_request_builder.rb @@ -41,8 +41,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,16 +51,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unsubmit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnsubmitRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/me/assignments/item/submissions/submissions_request_builder.rb b/lib/education/me/assignments/item/submissions/submissions_request_builder.rb index 720becb274..16f3aef974 100644 --- a/lib/education/me/assignments/item/submissions/submissions_request_builder.rb +++ b/lib/education/me/assignments/item/submissions/submissions_request_builder.rb @@ -44,10 +44,10 @@ def by_education_submission_id(education_submission_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + ## Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_submission_collection_response ## @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,26 +71,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + ## Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a submissions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SubmissionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + # Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. class SubmissionsRequestBuilderGetQueryParameters ## diff --git a/lib/education/me/classes/classes_request_builder.rb b/lib/education/me/classes/classes_request_builder.rb index 264d533368..70cc3c84f8 100644 --- a/lib/education/me/classes/classes_request_builder.rb +++ b/lib/education/me/classes/classes_request_builder.rb @@ -39,7 +39,7 @@ def by_education_class_id(education_class_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/classes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/classes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the educationClass resources an educationUser is a member of. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationClassCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a classes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClassesRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the educationClass resources an educationUser is a member of. diff --git a/lib/education/me/classes/count/count_request_builder.rb b/lib/education/me/classes/count/count_request_builder.rb index be0ceb37fa..c9a468e14b 100644 --- a/lib/education/me/classes/count/count_request_builder.rb +++ b/lib/education/me/classes/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/classes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/classes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/me/classes/item/education_class_item_request_builder.rb b/lib/education/me/classes/item/education_class_item_request_builder.rb index 17e5e0f086..393b26e14c 100644 --- a/lib/education/me/classes/item/education_class_item_request_builder.rb +++ b/lib/education/me/classes/item/education_class_item_request_builder.rb @@ -23,7 +23,7 @@ class EducationClassItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/classes/{educationClass%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/classes/{educationClass%2Did}{?%24expand,%24select}") end ## ## Classes to which the user belongs. Nullable. @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationClass.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,17 +45,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_class_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationClassItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Classes to which the user belongs. Nullable. diff --git a/lib/education/me/me_request_builder.rb b/lib/education/me/me_request_builder.rb index e86799b3a8..b225ca32ce 100644 --- a/lib/education/me/me_request_builder.rb +++ b/lib/education/me/me_request_builder.rb @@ -55,7 +55,7 @@ def user() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me{?%24expand,%24select}") end ## ## Delete navigation property me for education @@ -67,8 +67,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -81,8 +80,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationUser.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -97,8 +95,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationUser.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -108,13 +105,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,15 +122,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -144,17 +142,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a me_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MeRequestBuilder.new(raw_url, @request_adapter) + end ## # Get me from education diff --git a/lib/education/me/rubrics/count/count_request_builder.rb b/lib/education/me/rubrics/count/count_request_builder.rb index 917787ed30..ab76508710 100644 --- a/lib/education/me/rubrics/count/count_request_builder.rb +++ b/lib/education/me/rubrics/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/rubrics/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/rubrics/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/me/rubrics/item/education_rubric_item_request_builder.rb b/lib/education/me/rubrics/item/education_rubric_item_request_builder.rb index 4cc3f5e8dd..474e715289 100644 --- a/lib/education/me/rubrics/item/education_rubric_item_request_builder.rb +++ b/lib/education/me/rubrics/item/education_rubric_item_request_builder.rb @@ -23,7 +23,7 @@ class EducationRubricItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReques ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/rubrics/{educationRubric%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/rubrics/{educationRubric%2Did}{?%24expand,%24select}") end ## ## Delete an educationRubric object. Only teachers can perform this operation. @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,12 +48,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationRubric.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric, but it cannot be updated. + ## Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it can't be updated. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_rubric @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationRubric.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,19 +90,19 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric, but it cannot be updated. + ## Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it can't be updated. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_rubric_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationRubricItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. diff --git a/lib/education/me/rubrics/rubrics_request_builder.rb b/lib/education/me/rubrics/rubrics_request_builder.rb index 898002f44e..ccbaed4352 100644 --- a/lib/education/me/rubrics/rubrics_request_builder.rb +++ b/lib/education/me/rubrics/rubrics_request_builder.rb @@ -40,7 +40,7 @@ def by_education_rubric_id(education_rubric_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/rubrics{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/rubrics{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of educationRubric objects. @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationRubricCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationRubric.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,15 +77,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rubrics_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RubricsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of educationRubric objects. diff --git a/lib/education/me/schools/count/count_request_builder.rb b/lib/education/me/schools/count/count_request_builder.rb index 37cbfc623c..e6babb3ba7 100644 --- a/lib/education/me/schools/count/count_request_builder.rb +++ b/lib/education/me/schools/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/schools/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/schools/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/me/schools/item/education_school_item_request_builder.rb b/lib/education/me/schools/item/education_school_item_request_builder.rb index df434cec5c..651ed287e2 100644 --- a/lib/education/me/schools/item/education_school_item_request_builder.rb +++ b/lib/education/me/schools/item/education_school_item_request_builder.rb @@ -23,7 +23,7 @@ class EducationSchoolItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReques ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/schools/{educationSchool%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/schools/{educationSchool%2Did}{?%24expand,%24select}") end ## ## Schools to which the user belongs. Nullable. @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSchool.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,17 +45,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_school_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationSchoolItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Schools to which the user belongs. Nullable. diff --git a/lib/education/me/schools/schools_request_builder.rb b/lib/education/me/schools/schools_request_builder.rb index b32d22ed3d..9579ab161e 100644 --- a/lib/education/me/schools/schools_request_builder.rb +++ b/lib/education/me/schools/schools_request_builder.rb @@ -39,7 +39,7 @@ def by_education_school_id(education_school_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/schools{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/schools{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of schools for a user. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSchoolCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a schools_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SchoolsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of schools for a user. diff --git a/lib/education/me/taught_classes/count/count_request_builder.rb b/lib/education/me/taught_classes/count/count_request_builder.rb index f128b19dd0..7bbdf457b3 100644 --- a/lib/education/me/taught_classes/count/count_request_builder.rb +++ b/lib/education/me/taught_classes/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/taughtClasses/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/taughtClasses/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/me/taught_classes/item/education_class_item_request_builder.rb b/lib/education/me/taught_classes/item/education_class_item_request_builder.rb index 854805d269..01ac378087 100644 --- a/lib/education/me/taught_classes/item/education_class_item_request_builder.rb +++ b/lib/education/me/taught_classes/item/education_class_item_request_builder.rb @@ -23,7 +23,7 @@ class EducationClassItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/taughtClasses/{educationClass%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/taughtClasses/{educationClass%2Did}{?%24expand,%24select}") end ## ## Classes for which the user is a teacher. @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationClass.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,17 +45,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_class_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationClassItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Classes for which the user is a teacher. diff --git a/lib/education/me/taught_classes/taught_classes_request_builder.rb b/lib/education/me/taught_classes/taught_classes_request_builder.rb index 0274231204..e1ff5dca39 100644 --- a/lib/education/me/taught_classes/taught_classes_request_builder.rb +++ b/lib/education/me/taught_classes/taught_classes_request_builder.rb @@ -39,10 +39,10 @@ def by_education_class_id(education_class_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/taughtClasses{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/taughtClasses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the educationClass resources owned by an educationUser. + ## Classes for which the user is a teacher. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_class_collection_response ## @@ -51,31 +51,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationClassCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the educationClass resources owned by an educationUser. + ## Classes for which the user is a teacher. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a taught_classes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TaughtClassesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the educationClass resources owned by an educationUser. + # Classes for which the user is a teacher. class TaughtClassesRequestBuilderGetQueryParameters ## diff --git a/lib/education/me/user/mailbox_settings/mailbox_settings_request_builder.rb b/lib/education/me/user/mailbox_settings/mailbox_settings_request_builder.rb index 2ae4f89da6..75a3768af6 100644 --- a/lib/education/me/user/mailbox_settings/mailbox_settings_request_builder.rb +++ b/lib/education/me/user/mailbox_settings/mailbox_settings_request_builder.rb @@ -23,10 +23,10 @@ class MailboxSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/user/mailboxSettings{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/user/mailboxSettings{?%24expand,%24select}") end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of mailbox_settings ## @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -51,26 +50,25 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -82,20 +80,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mailbox_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MailboxSettingsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. class MailboxSettingsRequestBuilderGetQueryParameters ## diff --git a/lib/education/me/user/service_provisioning_errors/count/count.rb b/lib/education/me/user/service_provisioning_errors/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/me/user/service_provisioning_errors/count/count_request_builder.rb b/lib/education/me/user/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..f2b54388eb --- /dev/null +++ b/lib/education/me/user/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../education' +require_relative '../../../me' +require_relative '../../user' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Education + module Me + module User + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/me/user/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/education/me/user/service_provisioning_errors/service_provisioning_errors.rb b/lib/education/me/user/service_provisioning_errors/service_provisioning_errors.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/me/user/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/education/me/user/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..7825468e37 --- /dev/null +++ b/lib/education/me/user/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,137 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../../models/service_provisioning_error_collection_response' +require_relative '../../../education' +require_relative '../../me' +require_relative '../user' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Education + module Me + module User + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \education\me\user\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Education::Me::User::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/me/user/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/education/me/user/user_request_builder.rb b/lib/education/me/user/user_request_builder.rb index d85e9cfa2f..6163933777 100644 --- a/lib/education/me/user/user_request_builder.rb +++ b/lib/education/me/user/user_request_builder.rb @@ -5,6 +5,7 @@ require_relative '../../education' require_relative '../me' require_relative './mailbox_settings/mailbox_settings_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' require_relative './user' module MicrosoftGraph @@ -21,13 +22,18 @@ def mailbox_settings() return MicrosoftGraph::Education::Me::User::MailboxSettings::MailboxSettingsRequestBuilder.new(@path_parameters, @request_adapter) end ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Education::Me::User::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Instantiates a new UserRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/me/user{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/me/user{?%24expand,%24select}") end ## ## Retrieve the simple directory user that corresponds to this educationUser. @@ -39,8 +45,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +55,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the simple directory user that corresponds to this educationUser. diff --git a/lib/education/schools/count/count_request_builder.rb b/lib/education/schools/count/count_request_builder.rb index 9b78c3edeb..215d03b73f 100644 --- a/lib/education/schools/count/count_request_builder.rb +++ b/lib/education/schools/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/schools/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/schools/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/schools/delta/delta.rb b/lib/education/schools/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/education/schools/delta/delta.rb +++ b/lib/education/schools/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/education/schools/delta/delta_get_response.rb b/lib/education/schools/delta/delta_get_response.rb new file mode 100644 index 0000000000..a2c0684f99 --- /dev/null +++ b/lib/education/schools/delta/delta_get_response.rb @@ -0,0 +1,72 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_delta_function_response' +require_relative '../../../models/education_school' +require_relative '../../education' +require_relative '../schools' +require_relative './delta' + +module MicrosoftGraph + module Education + module Schools + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationSchool.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a education_school + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/education/schools/delta/delta_request_builder.rb b/lib/education/schools/delta/delta_request_builder.rb index b45af06a94..5318bd6b33 100644 --- a/lib/education/schools/delta/delta_request_builder.rb +++ b/lib/education/schools/delta/delta_request_builder.rb @@ -20,49 +20,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/schools/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/education/schools/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## Get newly created or updated schools without having to perform a full read of the entire school collection. See Use delta query for details. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Education::Schools::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Education::Schools::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## Get newly created or updated schools without having to perform a full read of the entire school collection. See Use delta query for details. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # Get newly created or updated schools without having to perform a full read of the entire school collection. See Use delta query for details. class DeltaRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -90,6 +101,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/education/schools/delta/delta_response.rb b/lib/education/schools/delta/delta_response.rb deleted file mode 100644 index 18fee009a6..0000000000 --- a/lib/education/schools/delta/delta_response.rb +++ /dev/null @@ -1,72 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_delta_function_response' -require_relative '../../../models/education_school' -require_relative '../../education' -require_relative '../schools' -require_relative './delta' - -module MicrosoftGraph - module Education - module Schools - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationSchool.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a education_school - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/education/schools/item/administrative_unit/administrative_unit_request_builder.rb b/lib/education/schools/item/administrative_unit/administrative_unit_request_builder.rb index 0296da1502..2be083baed 100644 --- a/lib/education/schools/item/administrative_unit/administrative_unit_request_builder.rb +++ b/lib/education/schools/item/administrative_unit/administrative_unit_request_builder.rb @@ -23,10 +23,10 @@ class AdministrativeUnitRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/schools/{educationSchool%2Did}/administrativeUnit{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/schools/{educationSchool%2Did}/administrativeUnit{?%24expand,%24select}") end ## - ## Get a list of administrativeUnits associated with an educationSchool object. + ## The underlying administrativeUnit for this school. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of administrative_unit ## @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -51,26 +50,25 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get a list of administrativeUnits associated with an educationSchool object. + ## The underlying administrativeUnit for this school. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -82,20 +80,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a administrative_unit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AdministrativeUnitRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a list of administrativeUnits associated with an educationSchool object. + # The underlying administrativeUnit for this school. class AdministrativeUnitRequestBuilderGetQueryParameters ## diff --git a/lib/education/schools/item/classes/classes_request_builder.rb b/lib/education/schools/item/classes/classes_request_builder.rb index ddd86149a3..144ae039e6 100644 --- a/lib/education/schools/item/classes/classes_request_builder.rb +++ b/lib/education/schools/item/classes/classes_request_builder.rb @@ -31,7 +31,7 @@ def ref() end ## ## Gets an item from the MicrosoftGraph.education.schools.item.classes.item collection - ## @param education_class_id Unique identifier of the item + ## @param education_class_id The unique identifier of educationClass ## @return a education_class_item_request_builder ## def by_education_class_id(education_class_id) @@ -47,7 +47,7 @@ def by_education_class_id(education_class_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the educationClass resources owned by an educationSchool. @@ -59,8 +59,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationClassCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,17 +69,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a classes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClassesRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the educationClass resources owned by an educationSchool. diff --git a/lib/education/schools/item/classes/count/count_request_builder.rb b/lib/education/schools/item/classes/count/count_request_builder.rb index cf56746288..6f64cf7a54 100644 --- a/lib/education/schools/item/classes/count/count_request_builder.rb +++ b/lib/education/schools/item/classes/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/schools/item/classes/item/ref/ref_request_builder.rb b/lib/education/schools/item/classes/item/ref/ref_request_builder.rb index d034606c6f..1c791527f8 100644 --- a/lib/education/schools/item/classes/item/ref/ref_request_builder.rb +++ b/lib/education/schools/item/classes/item/ref/ref_request_builder.rb @@ -26,7 +26,7 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/{educationClass%2Did}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/{educationClass%2Did}/$ref") end ## ## Delete a class from a school. @@ -38,8 +38,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,38 +48,24 @@ def delete(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Delete a class from a school. - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/education/schools/item/classes/ref/ref_request_builder.rb b/lib/education/schools/item/classes/ref/ref_request_builder.rb index 4c5df596d8..11c3dc9f79 100644 --- a/lib/education/schools/item/classes/ref/ref_request_builder.rb +++ b/lib/education/schools/item/classes/ref/ref_request_builder.rb @@ -26,7 +26,20 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") + end + ## + ## Delete a class from a school. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) end ## ## Get the educationClass resources owned by an educationSchool. @@ -38,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,26 +66,43 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## + ## Delete a class from a school. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/education/schools/{educationSchool%2Did}/classes/$ref?@id={%40id}' + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## ## Get the educationClass resources owned by an educationSchool. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/education/schools/{educationSchool%2Did}/classes/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -85,16 +114,49 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/education/schools/{educationSchool%2Did}/classes/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Delete a class from a school. + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end ## # Get the educationClass resources owned by an educationSchool. diff --git a/lib/education/schools/item/education_school_item_request_builder.rb b/lib/education/schools/item/education_school_item_request_builder.rb index 3968e2f1d3..f8447fa45e 100644 --- a/lib/education/schools/item/education_school_item_request_builder.rb +++ b/lib/education/schools/item/education_school_item_request_builder.rb @@ -39,7 +39,7 @@ def users() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/schools/{educationSchool%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/schools/{educationSchool%2Did}{?%24expand,%24select}") end ## ## Delete a school. @@ -51,8 +51,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSchool.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSchool.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,13 +89,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,15 +106,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,17 +126,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_school_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationSchoolItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of an educationSchool object. diff --git a/lib/education/schools/item/users/count/count_request_builder.rb b/lib/education/schools/item/users/count/count_request_builder.rb index 37c702513e..36d3ef881e 100644 --- a/lib/education/schools/item/users/count/count_request_builder.rb +++ b/lib/education/schools/item/users/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/schools/item/users/item/ref/ref_request_builder.rb b/lib/education/schools/item/users/item/ref/ref_request_builder.rb index 08fa74fe0f..95bca8acbd 100644 --- a/lib/education/schools/item/users/item/ref/ref_request_builder.rb +++ b/lib/education/schools/item/users/item/ref/ref_request_builder.rb @@ -26,7 +26,7 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/{educationUser%2Did}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/{educationUser%2Did}/$ref") end ## ## Delete a user from a school. @@ -38,8 +38,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,38 +48,24 @@ def delete(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Delete a user from a school. - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/education/schools/item/users/ref/ref_request_builder.rb b/lib/education/schools/item/users/ref/ref_request_builder.rb index dd5fe44513..ad1cdba60a 100644 --- a/lib/education/schools/item/users/ref/ref_request_builder.rb +++ b/lib/education/schools/item/users/ref/ref_request_builder.rb @@ -26,7 +26,20 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") + end + ## + ## Delete a user from a school. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) end ## ## Get the educationUser resources associated with an educationSchool. @@ -38,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,26 +66,43 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## + ## Delete a user from a school. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/education/schools/{educationSchool%2Did}/users/$ref?@id={%40id}' + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## ## Get the educationUser resources associated with an educationSchool. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/education/schools/{educationSchool%2Did}/users/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -85,16 +114,49 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/education/schools/{educationSchool%2Did}/users/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Delete a user from a school. + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end ## # Get the educationUser resources associated with an educationSchool. diff --git a/lib/education/schools/item/users/users_request_builder.rb b/lib/education/schools/item/users/users_request_builder.rb index 5bf34621d7..c6e3feca43 100644 --- a/lib/education/schools/item/users/users_request_builder.rb +++ b/lib/education/schools/item/users/users_request_builder.rb @@ -31,7 +31,7 @@ def ref() end ## ## Gets an item from the MicrosoftGraph.education.schools.item.users.item collection - ## @param education_user_id Unique identifier of the item + ## @param education_user_id The unique identifier of educationUser ## @return a education_user_item_request_builder ## def by_education_user_id(education_user_id) @@ -47,7 +47,7 @@ def by_education_user_id(education_user_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the educationUser resources associated with an educationSchool. @@ -59,8 +59,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationUserCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,17 +69,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a users_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsersRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the educationUser resources associated with an educationSchool. diff --git a/lib/education/schools/schools_request_builder.rb b/lib/education/schools/schools_request_builder.rb index e76846f126..e57c147192 100644 --- a/lib/education/schools/schools_request_builder.rb +++ b/lib/education/schools/schools_request_builder.rb @@ -44,7 +44,7 @@ def by_education_school_id(education_school_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/schools{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/schools{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a list of the educationSchool objects and their properties. @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSchoolCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,8 +71,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSchool.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,15 +81,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,17 +101,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a schools_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SchoolsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a list of the educationSchool objects and their properties. diff --git a/lib/education/users/count/count_request_builder.rb b/lib/education/users/count/count_request_builder.rb index a32e6adac5..eb53874132 100644 --- a/lib/education/users/count/count_request_builder.rb +++ b/lib/education/users/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/users/delta/delta.rb b/lib/education/users/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/education/users/delta/delta.rb +++ b/lib/education/users/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/education/users/delta/delta_get_response.rb b/lib/education/users/delta/delta_get_response.rb new file mode 100644 index 0000000000..ec8795451b --- /dev/null +++ b/lib/education/users/delta/delta_get_response.rb @@ -0,0 +1,72 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_delta_function_response' +require_relative '../../../models/education_user' +require_relative '../../education' +require_relative '../users' +require_relative './delta' + +module MicrosoftGraph + module Education + module Users + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationUser.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a education_user + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/education/users/delta/delta_request_builder.rb b/lib/education/users/delta/delta_request_builder.rb index f47fa2c280..902c68eba5 100644 --- a/lib/education/users/delta/delta_request_builder.rb +++ b/lib/education/users/delta/delta_request_builder.rb @@ -20,49 +20,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## Get newly created or updated educationUser without having to perform a full read of the entire collection. See Use delta query for details. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Education::Users::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Education::Users::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## Get newly created or updated educationUser without having to perform a full read of the entire collection. See Use delta query for details. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # Get newly created or updated educationUser without having to perform a full read of the entire collection. See Use delta query for details. class DeltaRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -90,6 +101,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/education/users/delta/delta_response.rb b/lib/education/users/delta/delta_response.rb deleted file mode 100644 index 51e4c43bf9..0000000000 --- a/lib/education/users/delta/delta_response.rb +++ /dev/null @@ -1,72 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_delta_function_response' -require_relative '../../../models/education_user' -require_relative '../../education' -require_relative '../users' -require_relative './delta' - -module MicrosoftGraph - module Education - module Users - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationUser.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a education_user - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/education/users/item/assignments/assignments_request_builder.rb b/lib/education/users/item/assignments/assignments_request_builder.rb index c5cd4fb500..09da07be2a 100644 --- a/lib/education/users/item/assignments/assignments_request_builder.rb +++ b/lib/education/users/item/assignments/assignments_request_builder.rb @@ -48,7 +48,7 @@ def by_education_assignment_id(education_assignment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. @@ -60,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,8 +75,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,15 +85,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -107,17 +105,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end ## # Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. diff --git a/lib/education/users/item/assignments/count/count_request_builder.rb b/lib/education/users/item/assignments/count/count_request_builder.rb index 0cd6d6a94b..7117fc2e50 100644 --- a/lib/education/users/item/assignments/count/count_request_builder.rb +++ b/lib/education/users/item/assignments/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/users/item/assignments/delta/delta.rb b/lib/education/users/item/assignments/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/education/users/item/assignments/delta/delta.rb +++ b/lib/education/users/item/assignments/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/education/users/item/assignments/delta/delta_get_response.rb b/lib/education/users/item/assignments/delta/delta_get_response.rb new file mode 100644 index 0000000000..83f51cb7ce --- /dev/null +++ b/lib/education/users/item/assignments/delta/delta_get_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_delta_function_response' +require_relative '../../../../../models/education_assignment' +require_relative '../../../../education' +require_relative '../../../users' +require_relative '../../item' +require_relative '../assignments' +require_relative './delta' + +module MicrosoftGraph + module Education + module Users + module Item + module Assignments + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a education_assignment + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/education/users/item/assignments/delta/delta_request_builder.rb b/lib/education/users/item/assignments/delta/delta_request_builder.rb index 2f9afba930..ac3f1ff704 100644 --- a/lib/education/users/item/assignments/delta/delta_request_builder.rb +++ b/lib/education/users/item/assignments/delta/delta_request_builder.rb @@ -24,49 +24,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## Get a list of newly-created or updated assignments without reading the whole collection. A teacher or an application running with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Education::Users::Item::Assignments::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Education::Users::Item::Assignments::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## Get a list of newly-created or updated assignments without reading the whole collection. A teacher or an application running with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # Get a list of newly-created or updated assignments without reading the whole collection. A teacher or an application running with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. class DeltaRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -94,6 +105,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/education/users/item/assignments/delta/delta_response.rb b/lib/education/users/item/assignments/delta/delta_response.rb deleted file mode 100644 index 593dd2cfc0..0000000000 --- a/lib/education/users/item/assignments/delta/delta_response.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_delta_function_response' -require_relative '../../../../../models/education_assignment' -require_relative '../../../../education' -require_relative '../../../users' -require_relative '../../item' -require_relative '../assignments' -require_relative './delta' - -module MicrosoftGraph - module Education - module Users - module Item - module Assignments - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a education_assignment - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/education/users/item/assignments/item/activate/activate.rb b/lib/education/users/item/assignments/item/activate/activate.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/users/item/assignments/item/activate/activate_request_builder.rb b/lib/education/users/item/assignments/item/activate/activate_request_builder.rb new file mode 100644 index 0000000000..c2fa092da7 --- /dev/null +++ b/lib/education/users/item/assignments/item/activate/activate_request_builder.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/education_assignment' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../education' +require_relative '../../../../users' +require_relative '../../../item' +require_relative '../../assignments' +require_relative '../item' +require_relative './activate' + +module MicrosoftGraph + module Education + module Users + module Item + module Assignments + module Item + module Activate + ## + # Provides operations to call the activate method. + class ActivateRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ActivateRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/activate") + end + ## + ## Activate an inactive educationAssignment to signal that the assignment has further action items for teachers or students. This action can only be performed by a teacher on currently inactive assignments. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_assignment + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Activate an inactive educationAssignment to signal that the assignment has further action items for teachers or students. This action can only be performed by a teacher on currently inactive assignments. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a activate_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ActivateRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end +end diff --git a/lib/education/users/item/assignments/item/categories/categories_request_builder.rb b/lib/education/users/item/assignments/item/categories/categories_request_builder.rb index f1440f5fa7..72b9e99369 100644 --- a/lib/education/users/item/assignments/item/categories/categories_request_builder.rb +++ b/lib/education/users/item/assignments/item/categories/categories_request_builder.rb @@ -42,7 +42,7 @@ def ref() end ## ## Gets an item from the MicrosoftGraph.education.users.item.assignments.item.categories.item collection - ## @param education_category_id Unique identifier of the item + ## @param education_category_id The unique identifier of educationCategory ## @return a education_category_item_request_builder ## def by_education_category_id(education_category_id) @@ -58,10 +58,10 @@ def by_education_category_id(education_category_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + ## When set, enables users to easily find assignments of a given type. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_category_collection_response ## @@ -70,12 +70,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationCategoryCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + ## Create new navigation property to categories for education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_category @@ -86,30 +85,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationCategory.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + ## When set, enables users to easily find assignments of a given type. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + ## Create new navigation property to categories for education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -117,20 +115,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a categories_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CategoriesRequestBuilder.new(raw_url, @request_adapter) + end ## - # List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + # When set, enables users to easily find assignments of a given type. Read-only. Nullable. class CategoriesRequestBuilderGetQueryParameters ## diff --git a/lib/education/users/item/assignments/item/categories/count/count_request_builder.rb b/lib/education/users/item/assignments/item/categories/count/count_request_builder.rb index d27be6d457..cd367beb3e 100644 --- a/lib/education/users/item/assignments/item/categories/count/count_request_builder.rb +++ b/lib/education/users/item/assignments/item/categories/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/users/item/assignments/item/categories/delta/delta.rb b/lib/education/users/item/assignments/item/categories/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/education/users/item/assignments/item/categories/delta/delta.rb +++ b/lib/education/users/item/assignments/item/categories/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/education/users/item/assignments/item/categories/delta/delta_get_response.rb b/lib/education/users/item/assignments/item/categories/delta/delta_get_response.rb new file mode 100644 index 0000000000..48974d1d08 --- /dev/null +++ b/lib/education/users/item/assignments/item/categories/delta/delta_get_response.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/base_delta_function_response' +require_relative '../../../../../../../models/education_category' +require_relative '../../../../../../education' +require_relative '../../../../../users' +require_relative '../../../../item' +require_relative '../../../assignments' +require_relative '../../item' +require_relative '../categories' +require_relative './delta' + +module MicrosoftGraph + module Education + module Users + module Item + module Assignments + module Item + module Categories + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationCategory.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a education_category + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/education/users/item/assignments/item/categories/delta/delta_request_builder.rb b/lib/education/users/item/assignments/item/categories/delta/delta_request_builder.rb index ed2c299563..f7cb87d17f 100644 --- a/lib/education/users/item/assignments/item/categories/delta/delta_request_builder.rb +++ b/lib/education/users/item/assignments/item/categories/delta/delta_request_builder.rb @@ -28,49 +28,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## Get a list of newly created or updated educationCategory objects without having to perform a full read of the collection. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Education::Users::Item::Assignments::Item::Categories::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Education::Users::Item::Assignments::Item::Categories::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## Get a list of newly created or updated educationCategory objects without having to perform a full read of the collection. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # Get a list of newly created or updated educationCategory objects without having to perform a full read of the collection. class DeltaRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -98,6 +109,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/education/users/item/assignments/item/categories/delta/delta_response.rb b/lib/education/users/item/assignments/item/categories/delta/delta_response.rb deleted file mode 100644 index b8969d1b63..0000000000 --- a/lib/education/users/item/assignments/item/categories/delta/delta_response.rb +++ /dev/null @@ -1,84 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/base_delta_function_response' -require_relative '../../../../../../../models/education_category' -require_relative '../../../../../../education' -require_relative '../../../../../users' -require_relative '../../../../item' -require_relative '../../../assignments' -require_relative '../../item' -require_relative '../categories' -require_relative './delta' - -module MicrosoftGraph - module Education - module Users - module Item - module Assignments - module Item - module Categories - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationCategory.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a education_category - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end -end diff --git a/lib/education/users/item/assignments/item/categories/item/ref/ref_request_builder.rb b/lib/education/users/item/assignments/item/categories/item/ref/ref_request_builder.rb index 397accd697..de41fb0533 100644 --- a/lib/education/users/item/assignments/item/categories/item/ref/ref_request_builder.rb +++ b/lib/education/users/item/assignments/item/categories/item/ref/ref_request_builder.rb @@ -30,10 +30,10 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref") end ## - ## Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + ## Delete ref of navigation property categories for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -42,49 +42,34 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + ## Delete ref of navigation property categories for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/education/users/item/assignments/item/categories/ref/ref_request_builder.rb b/lib/education/users/item/assignments/item/categories/ref/ref_request_builder.rb index 3e08284b4d..df5027525f 100644 --- a/lib/education/users/item/assignments/item/categories/ref/ref_request_builder.rb +++ b/lib/education/users/item/assignments/item/categories/ref/ref_request_builder.rb @@ -30,10 +30,23 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") end ## - ## List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + ## Delete ref of navigation property categories for education + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## When set, enables users to easily find assignments of a given type. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of string_collection_response ## @@ -42,12 +55,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + ## Create new navigation property ref to categories for education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -58,30 +70,47 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + ## Delete ref of navigation property categories for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$ref?@id={%40id}' request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## When set, enables users to easily find assignments of a given type. Read-only. Nullable. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + ## Create new navigation property ref to categories for education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -89,19 +118,52 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Delete ref of navigation property categories for education + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end ## - # List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + # When set, enables users to easily find assignments of a given type. Read-only. Nullable. class RefRequestBuilderGetQueryParameters ## diff --git a/lib/education/users/item/assignments/item/deactivate/deactivate.rb b/lib/education/users/item/assignments/item/deactivate/deactivate.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/users/item/assignments/item/deactivate/deactivate_request_builder.rb b/lib/education/users/item/assignments/item/deactivate/deactivate_request_builder.rb new file mode 100644 index 0000000000..8cef76e5cb --- /dev/null +++ b/lib/education/users/item/assignments/item/deactivate/deactivate_request_builder.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/education_assignment' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../education' +require_relative '../../../../users' +require_relative '../../../item' +require_relative '../../assignments' +require_relative '../item' +require_relative './deactivate' + +module MicrosoftGraph + module Education + module Users + module Item + module Assignments + module Item + module Deactivate + ## + # Provides operations to call the deactivate method. + class DeactivateRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeactivateRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/deactivate") + end + ## + ## Mark an assigned educationAssignment as inactive to signal that the assignment has no further action items for teachers and students. This action can only be performed by a teacher on assigned assignments. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_assignment + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Mark an assigned educationAssignment as inactive to signal that the assignment has no further action items for teachers and students. This action can only be performed by a teacher on assigned assignments. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a deactivate_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeactivateRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end +end diff --git a/lib/education/users/item/assignments/item/education_assignment_item_request_builder.rb b/lib/education/users/item/assignments/item/education_assignment_item_request_builder.rb index 62d5cde2a4..52f091f6df 100644 --- a/lib/education/users/item/assignments/item/education_assignment_item_request_builder.rb +++ b/lib/education/users/item/assignments/item/education_assignment_item_request_builder.rb @@ -6,7 +6,10 @@ require_relative '../../../users' require_relative '../../item' require_relative '../assignments' +require_relative './activate/activate_request_builder' require_relative './categories/categories_request_builder' +require_relative './deactivate/deactivate_request_builder' +require_relative './grading_category/grading_category_request_builder' require_relative './item' require_relative './publish/publish_request_builder' require_relative './resources/resources_request_builder' @@ -25,12 +28,27 @@ module Item # Provides operations to manage the assignments property of the microsoft.graph.educationUser entity. class EducationAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the activate method. + def activate() + return MicrosoftGraph::Education::Users::Item::Assignments::Item::Activate::ActivateRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Provides operations to manage the categories property of the microsoft.graph.educationAssignment entity. def categories() return MicrosoftGraph::Education::Users::Item::Assignments::Item::Categories::CategoriesRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the deactivate method. + def deactivate() + return MicrosoftGraph::Education::Users::Item::Assignments::Item::Deactivate::DeactivateRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the gradingCategory property of the microsoft.graph.educationAssignment entity. + def grading_category() + return MicrosoftGraph::Education::Users::Item::Assignments::Item::GradingCategory::GradingCategoryRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to call the publish method. def publish() return MicrosoftGraph::Education::Users::Item::Assignments::Item::Publish::PublishRequestBuilder.new(@path_parameters, @request_adapter) @@ -67,7 +85,7 @@ def submissions() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}{?%24expand,%24select}") end ## ## Delete navigation property assignments for education @@ -79,8 +97,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -93,8 +110,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -109,8 +125,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -120,13 +135,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,15 +152,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -156,17 +172,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Assignments belonging to the user. diff --git a/lib/education/users/item/assignments/item/grading_category/grading_category.rb b/lib/education/users/item/assignments/item/grading_category/grading_category.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/users/item/assignments/item/grading_category/grading_category_request_builder.rb b/lib/education/users/item/assignments/item/grading_category/grading_category_request_builder.rb new file mode 100644 index 0000000000..b3a8bea90b --- /dev/null +++ b/lib/education/users/item/assignments/item/grading_category/grading_category_request_builder.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/education_grading_category' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../education' +require_relative '../../../../users' +require_relative '../../../item' +require_relative '../../assignments' +require_relative '../item' +require_relative './grading_category' + +module MicrosoftGraph + module Education + module Users + module Item + module Assignments + module Item + module GradingCategory + ## + # Provides operations to manage the gradingCategory property of the microsoft.graph.educationAssignment entity. + class GradingCategoryRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new GradingCategoryRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/gradingCategory{?%24expand,%24select}") + end + ## + ## When set, enables users to weight assignments differently when computing a class average grade. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_grading_category + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationGradingCategory.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## When set, enables users to weight assignments differently when computing a class average grade. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a grading_category_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GradingCategoryRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # When set, enables users to weight assignments differently when computing a class average grade. + class GradingCategoryRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/education/users/item/assignments/item/publish/publish_request_builder.rb b/lib/education/users/item/assignments/item/publish/publish_request_builder.rb index 7bbe0562e1..72d54d1327 100644 --- a/lib/education/users/item/assignments/item/publish/publish_request_builder.rb +++ b/lib/education/users/item/assignments/item/publish/publish_request_builder.rb @@ -30,7 +30,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/publish") end ## - ## Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + ## Publish an education assignment. Change the status of an educationAssignment from its original draft status to the published status. You can change the status from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The status of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_assignment ## @@ -39,27 +39,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + ## Publish an education assignment. Change the status of an educationAssignment from its original draft status to the published status. You can change the status from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The status of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a publish_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PublishRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/users/item/assignments/item/resources/count/count_request_builder.rb b/lib/education/users/item/assignments/item/resources/count/count_request_builder.rb index 7f7480e116..00da9ef11a 100644 --- a/lib/education/users/item/assignments/item/resources/count/count_request_builder.rb +++ b/lib/education/users/item/assignments/item/resources/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/resources/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/resources/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/users/item/assignments/item/resources/item/education_assignment_resource_item_request_builder.rb b/lib/education/users/item/assignments/item/resources/item/education_assignment_resource_item_request_builder.rb index 29efdc61c1..b14e470f2d 100644 --- a/lib/education/users/item/assignments/item/resources/item/education_assignment_resource_item_request_builder.rb +++ b/lib/education/users/item/assignments/item/resources/item/education_assignment_resource_item_request_builder.rb @@ -29,10 +29,10 @@ class EducationAssignmentResourceItemRequestBuilder < MicrosoftKiotaAbstractions ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/resources/{educationAssignmentResource%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/resources/{educationAssignmentResource%2Did}{?%24expand,%24select}") end ## - ## Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. + ## Delete navigation property resources for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -41,12 +41,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + ## Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_assignment_resource ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignmentResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,42 +69,42 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignmentResource.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. + ## Delete navigation property resources for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + ## Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,20 +116,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_assignment_resource_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationAssignmentResourceItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + # Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. class EducationAssignmentResourceItemRequestBuilderGetQueryParameters ## diff --git a/lib/education/users/item/assignments/item/resources/resources_request_builder.rb b/lib/education/users/item/assignments/item/resources/resources_request_builder.rb index 45413d1186..fe6f441717 100644 --- a/lib/education/users/item/assignments/item/resources/resources_request_builder.rb +++ b/lib/education/users/item/assignments/item/resources/resources_request_builder.rb @@ -46,10 +46,10 @@ def by_education_assignment_resource_id(education_assignment_resource_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/resources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + ## Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_assignment_resource_collection_response ## @@ -58,12 +58,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignmentResourceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. + ## Create new navigation property to resources for education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_assignment_resource @@ -74,30 +73,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignmentResource.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + ## Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. + ## Create new navigation property to resources for education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resources_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourcesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + # Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. class ResourcesRequestBuilderGetQueryParameters ## diff --git a/lib/education/users/item/assignments/item/rubric/ref/ref_request_builder.rb b/lib/education/users/item/assignments/item/rubric/ref/ref_request_builder.rb index 0531aaf56e..aa083188ed 100644 --- a/lib/education/users/item/assignments/item/rubric/ref/ref_request_builder.rb +++ b/lib/education/users/item/assignments/item/rubric/ref/ref_request_builder.rb @@ -32,7 +32,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/rubric/$ref") end ## - ## Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + ## Delete ref of navigation property rubric for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -41,12 +41,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + ## When set, the grading rubric attached to this assignment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of string ## @@ -55,12 +54,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, string, error_mapping) end ## - ## Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + ## Update the ref of navigation property rubric in education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -71,45 +69,45 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + ## Delete ref of navigation property rubric for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + ## When set, the grading rubric attached to this assignment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + ## Update the ref of navigation property rubric in education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -117,16 +115,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/users/item/assignments/item/rubric/rubric_request_builder.rb b/lib/education/users/item/assignments/item/rubric/rubric_request_builder.rb index 8ff5e540e6..26b487b8d1 100644 --- a/lib/education/users/item/assignments/item/rubric/rubric_request_builder.rb +++ b/lib/education/users/item/assignments/item/rubric/rubric_request_builder.rb @@ -33,10 +33,10 @@ def ref() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/rubric{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/rubric{?%24expand,%24select}") end ## - ## Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + ## Delete navigation property rubric for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -45,12 +45,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + ## When set, the grading rubric attached to this assignment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_rubric ## @@ -59,12 +58,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationRubric.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + ## Update the navigation property rubric in education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_rubric @@ -75,46 +73,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationRubric.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + ## Delete navigation property rubric for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + ## When set, the grading rubric attached to this assignment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + ## Update the navigation property rubric in education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -122,20 +120,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rubric_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RubricRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + # When set, the grading rubric attached to this assignment. class RubricRequestBuilderGetQueryParameters ## diff --git a/lib/education/users/item/assignments/item/set_up_feedback_resources_folder/set_up_feedback_resources_folder_request_builder.rb b/lib/education/users/item/assignments/item/set_up_feedback_resources_folder/set_up_feedback_resources_folder_request_builder.rb index d94097b19a..ee070a112c 100644 --- a/lib/education/users/item/assignments/item/set_up_feedback_resources_folder/set_up_feedback_resources_folder_request_builder.rb +++ b/lib/education/users/item/assignments/item/set_up_feedback_resources_folder/set_up_feedback_resources_folder_request_builder.rb @@ -39,8 +39,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,16 +49,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_up_feedback_resources_folder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetUpFeedbackResourcesFolderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/users/item/assignments/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb b/lib/education/users/item/assignments/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb index 5923eb25f6..802dd1cc26 100644 --- a/lib/education/users/item/assignments/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb +++ b/lib/education/users/item/assignments/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb @@ -39,8 +39,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,16 +49,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_up_resources_folder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetUpResourcesFolderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/users/item/assignments/item/submissions/count/count_request_builder.rb b/lib/education/users/item/assignments/item/submissions/count/count_request_builder.rb index 0903ebfd78..3df7e0f007 100644 --- a/lib/education/users/item/assignments/item/submissions/count/count_request_builder.rb +++ b/lib/education/users/item/assignments/item/submissions/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/users/item/assignments/item/submissions/item/education_submission_item_request_builder.rb b/lib/education/users/item/assignments/item/submissions/item/education_submission_item_request_builder.rb index 1bd0813d46..1c1376a42c 100644 --- a/lib/education/users/item/assignments/item/submissions/item/education_submission_item_request_builder.rb +++ b/lib/education/users/item/assignments/item/submissions/item/education_submission_item_request_builder.rb @@ -8,6 +8,7 @@ require_relative '../../../assignments' require_relative '../../item' require_relative '../submissions' +require_relative './excuse/excuse_request_builder' require_relative './item' require_relative './outcomes/outcomes_request_builder' require_relative './reassign/reassign_request_builder' @@ -30,6 +31,11 @@ module Item # Provides operations to manage the submissions property of the microsoft.graph.educationAssignment entity. class EducationSubmissionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the excuse method. + def excuse() + return MicrosoftGraph::Education::Users::Item::Assignments::Item::Submissions::Item::Excuse::ExcuseRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Provides operations to manage the outcomes property of the microsoft.graph.educationSubmission entity. def outcomes() @@ -77,7 +83,7 @@ def unsubmit() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}{?%24expand,%24select}") end ## ## Delete navigation property submissions for education @@ -89,12 +95,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + ## Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_submission ## @@ -103,8 +108,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -119,8 +123,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -130,31 +133,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + ## Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -166,20 +170,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_submission_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationSubmissionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + # Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. class EducationSubmissionItemRequestBuilderGetQueryParameters ## diff --git a/lib/education/users/item/assignments/item/submissions/item/excuse/excuse.rb b/lib/education/users/item/assignments/item/submissions/item/excuse/excuse.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/users/item/assignments/item/submissions/item/excuse/excuse_request_builder.rb b/lib/education/users/item/assignments/item/submissions/item/excuse/excuse_request_builder.rb new file mode 100644 index 0000000000..ee52778d7d --- /dev/null +++ b/lib/education/users/item/assignments/item/submissions/item/excuse/excuse_request_builder.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/education_submission' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../education' +require_relative '../../../../../../users' +require_relative '../../../../../item' +require_relative '../../../../assignments' +require_relative '../../../item' +require_relative '../../submissions' +require_relative '../item' +require_relative './excuse' + +module MicrosoftGraph + module Education + module Users + module Item + module Assignments + module Item + module Submissions + module Item + module Excuse + ## + # Provides operations to call the excuse method. + class ExcuseRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ExcuseRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/excuse") + end + ## + ## Excuse a submission. Excused submissions aren't included in average grade calculations. Grading rubrics and feedback are deleted. Only teachers can perform this action. If the Prefer: include-unknown-enum-members request header is provided, the excused submission shows the excused status. Otherwise, the submission status retains the returned status. For more information about how to use this header, see the Examples section. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of education_submission + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Excuse a submission. Excused submissions aren't included in average grade calculations. Grading rubrics and feedback are deleted. Only teachers can perform this action. If the Prefer: include-unknown-enum-members request header is provided, the excused submission shows the excused status. Otherwise, the submission status retains the returned status. For more information about how to use this header, see the Examples section. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a excuse_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExcuseRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/education/users/item/assignments/item/submissions/item/outcomes/count/count_request_builder.rb b/lib/education/users/item/assignments/item/submissions/item/outcomes/count/count_request_builder.rb index 14179d66f3..d58a08f6a5 100644 --- a/lib/education/users/item/assignments/item/submissions/item/outcomes/count/count_request_builder.rb +++ b/lib/education/users/item/assignments/item/submissions/item/outcomes/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/users/item/assignments/item/submissions/item/outcomes/item/education_outcome_item_request_builder.rb b/lib/education/users/item/assignments/item/submissions/item/outcomes/item/education_outcome_item_request_builder.rb index eb4de76353..99aff5dfd1 100644 --- a/lib/education/users/item/assignments/item/submissions/item/outcomes/item/education_outcome_item_request_builder.rb +++ b/lib/education/users/item/assignments/item/submissions/item/outcomes/item/education_outcome_item_request_builder.rb @@ -33,10 +33,10 @@ class EducationOutcomeItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReque ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/{educationOutcome%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/{educationOutcome%2Did}{?%24expand,%24select}") end ## - ## Delete a feedback resource from a submission. This can only be done by a teacher. + ## Delete navigation property outcomes for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,12 +58,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationOutcome.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of an educationOutcome object. Only teachers can perform this operation. + ## Update the navigation property outcomes in education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_outcome @@ -75,24 +73,24 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationOutcome.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a feedback resource from a submission. This can only be done by a teacher. + ## Delete navigation property outcomes for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -102,19 +100,19 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of an educationOutcome object. Only teachers can perform this operation. + ## Update the navigation property outcomes in education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -122,17 +120,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_outcome_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationOutcomeItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get outcomes from education diff --git a/lib/education/users/item/assignments/item/submissions/item/outcomes/outcomes_request_builder.rb b/lib/education/users/item/assignments/item/submissions/item/outcomes/outcomes_request_builder.rb index 96c46977f6..f486da803a 100644 --- a/lib/education/users/item/assignments/item/submissions/item/outcomes/outcomes_request_builder.rb +++ b/lib/education/users/item/assignments/item/submissions/item/outcomes/outcomes_request_builder.rb @@ -50,10 +50,10 @@ def by_education_outcome_id(education_outcome_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + ## Get outcomes from education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_outcome_collection_response ## @@ -62,12 +62,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationOutcomeCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. + ## Create new navigation property to outcomes for education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_outcome @@ -78,30 +77,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationOutcome.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + ## Get outcomes from education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. + ## Create new navigation property to outcomes for education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a outcomes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OutcomesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + # Get outcomes from education class OutcomesRequestBuilderGetQueryParameters ## diff --git a/lib/education/users/item/assignments/item/submissions/item/reassign/reassign_request_builder.rb b/lib/education/users/item/assignments/item/submissions/item/reassign/reassign_request_builder.rb index 3811e0618d..cb0f14fd59 100644 --- a/lib/education/users/item/assignments/item/submissions/item/reassign/reassign_request_builder.rb +++ b/lib/education/users/item/assignments/item/submissions/item/reassign/reassign_request_builder.rb @@ -34,7 +34,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/reassign") end ## - ## Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + ## Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission is treated as a returned submission. This means that the reassigned status is mapped to the returned status, and reassignedDateTime and reassignedBy properties are mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_submission ## @@ -43,27 +43,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + ## Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission is treated as a returned submission. This means that the reassigned status is mapped to the returned status, and reassignedDateTime and reassignedBy properties are mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reassign_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReassignRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/users/item/assignments/item/submissions/item/resources/count/count_request_builder.rb b/lib/education/users/item/assignments/item/submissions/item/resources/count/count_request_builder.rb index e97283da3f..cc15af8b44 100644 --- a/lib/education/users/item/assignments/item/submissions/item/resources/count/count_request_builder.rb +++ b/lib/education/users/item/assignments/item/submissions/item/resources/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/users/item/assignments/item/submissions/item/resources/item/education_submission_resource_item_request_builder.rb b/lib/education/users/item/assignments/item/submissions/item/resources/item/education_submission_resource_item_request_builder.rb index 9aa32cc564..f0c781eea7 100644 --- a/lib/education/users/item/assignments/item/submissions/item/resources/item/education_submission_resource_item_request_builder.rb +++ b/lib/education/users/item/assignments/item/submissions/item/resources/item/education_submission_resource_item_request_builder.rb @@ -33,10 +33,10 @@ class EducationSubmissionResourceItemRequestBuilder < MicrosoftKiotaAbstractions ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/{educationSubmissionResource%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/{educationSubmissionResource%2Did}{?%24expand,%24select}") end ## - ## Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource was not copied from the assignment but was added from the student, the resource is simply deleted. + ## Delete navigation property resources for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -45,12 +45,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + ## Get resources from education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_submission_resource ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,42 +73,42 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResource.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource was not copied from the assignment but was added from the student, the resource is simply deleted. + ## Delete navigation property resources for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + ## Get resources from education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,20 +120,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_submission_resource_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationSubmissionResourceItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + # Get resources from education class EducationSubmissionResourceItemRequestBuilderGetQueryParameters ## diff --git a/lib/education/users/item/assignments/item/submissions/item/resources/resources_request_builder.rb b/lib/education/users/item/assignments/item/submissions/item/resources/resources_request_builder.rb index 5b6ee3c79e..0896beee0c 100644 --- a/lib/education/users/item/assignments/item/submissions/item/resources/resources_request_builder.rb +++ b/lib/education/users/item/assignments/item/submissions/item/resources/resources_request_builder.rb @@ -50,10 +50,10 @@ def by_education_submission_resource_id(education_submission_resource_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + ## Get resources from education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_submission_resource_collection_response ## @@ -62,12 +62,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResourceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. + ## Create new navigation property to resources for education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_submission_resource @@ -78,30 +77,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResource.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + ## Get resources from education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. + ## Create new navigation property to resources for education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resources_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourcesRequestBuilder.new(raw_url, @request_adapter) + end ## - # List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + # Get resources from education class ResourcesRequestBuilderGetQueryParameters ## diff --git a/lib/education/users/item/assignments/item/submissions/item/return_escaped/return_request_builder.rb b/lib/education/users/item/assignments/item/submissions/item/return_escaped/return_request_builder.rb index c6027b6bf3..0946668743 100644 --- a/lib/education/users/item/assignments/item/submissions/item/return_escaped/return_request_builder.rb +++ b/lib/education/users/item/assignments/item/submissions/item/return_escaped/return_request_builder.rb @@ -43,8 +43,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,16 +53,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a return_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReturnRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/users/item/assignments/item/submissions/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb b/lib/education/users/item/assignments/item/submissions/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb index 70c24ad739..e5c829aee1 100644 --- a/lib/education/users/item/assignments/item/submissions/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb +++ b/lib/education/users/item/assignments/item/submissions/item/set_up_resources_folder/set_up_resources_folder_request_builder.rb @@ -43,8 +43,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,16 +53,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_up_resources_folder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetUpResourcesFolderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/users/item/assignments/item/submissions/item/submit/submit_request_builder.rb b/lib/education/users/item/assignments/item/submissions/item/submit/submit_request_builder.rb index b18ad97906..77569753a0 100644 --- a/lib/education/users/item/assignments/item/submissions/item/submit/submit_request_builder.rb +++ b/lib/education/users/item/assignments/item/submissions/item/submit/submit_request_builder.rb @@ -43,8 +43,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,16 +53,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a submit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SubmitRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/users/item/assignments/item/submissions/item/submitted_resources/count/count_request_builder.rb b/lib/education/users/item/assignments/item/submissions/item/submitted_resources/count/count_request_builder.rb index 03ec580012..dcc8e72429 100644 --- a/lib/education/users/item/assignments/item/submissions/item/submitted_resources/count/count_request_builder.rb +++ b/lib/education/users/item/assignments/item/submissions/item/submitted_resources/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/users/item/assignments/item/submissions/item/submitted_resources/item/education_submission_resource_item_request_builder.rb b/lib/education/users/item/assignments/item/submissions/item/submitted_resources/item/education_submission_resource_item_request_builder.rb index c926fc0f02..af1a64126a 100644 --- a/lib/education/users/item/assignments/item/submissions/item/submitted_resources/item/education_submission_resource_item_request_builder.rb +++ b/lib/education/users/item/assignments/item/submissions/item/submitted_resources/item/education_submission_resource_item_request_builder.rb @@ -33,7 +33,7 @@ class EducationSubmissionResourceItemRequestBuilder < MicrosoftKiotaAbstractions ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/{educationSubmissionResource%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/{educationSubmissionResource%2Did}{?%24expand,%24select}") end ## ## Delete navigation property submittedResources for education @@ -45,12 +45,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + ## Get submittedResources from education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_submission_resource ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,31 +83,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + ## Get submittedResources from education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,20 +120,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_submission_resource_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationSubmissionResourceItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + # Get submittedResources from education class EducationSubmissionResourceItemRequestBuilderGetQueryParameters ## diff --git a/lib/education/users/item/assignments/item/submissions/item/submitted_resources/submitted_resources_request_builder.rb b/lib/education/users/item/assignments/item/submissions/item/submitted_resources/submitted_resources_request_builder.rb index 960c349f8c..783dd7be74 100644 --- a/lib/education/users/item/assignments/item/submissions/item/submitted_resources/submitted_resources_request_builder.rb +++ b/lib/education/users/item/assignments/item/submissions/item/submitted_resources/submitted_resources_request_builder.rb @@ -50,10 +50,10 @@ def by_education_submission_resource_id(education_submission_resource_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + ## Get submittedResources from education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_submission_resource_collection_response ## @@ -62,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResourceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,26 +77,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResource.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + ## Get submittedResources from education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a submitted_resources_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SubmittedResourcesRequestBuilder.new(raw_url, @request_adapter) + end ## - # List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + # Get submittedResources from education class SubmittedResourcesRequestBuilderGetQueryParameters ## diff --git a/lib/education/users/item/assignments/item/submissions/item/unsubmit/unsubmit_request_builder.rb b/lib/education/users/item/assignments/item/submissions/item/unsubmit/unsubmit_request_builder.rb index 9a70897ef8..7187b375f1 100644 --- a/lib/education/users/item/assignments/item/submissions/item/unsubmit/unsubmit_request_builder.rb +++ b/lib/education/users/item/assignments/item/submissions/item/unsubmit/unsubmit_request_builder.rb @@ -43,8 +43,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,16 +53,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unsubmit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnsubmitRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/education/users/item/assignments/item/submissions/submissions_request_builder.rb b/lib/education/users/item/assignments/item/submissions/submissions_request_builder.rb index 94c6096749..0327ac5fff 100644 --- a/lib/education/users/item/assignments/item/submissions/submissions_request_builder.rb +++ b/lib/education/users/item/assignments/item/submissions/submissions_request_builder.rb @@ -46,10 +46,10 @@ def by_education_submission_id(education_submission_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + ## Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_submission_collection_response ## @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmissionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,26 +73,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSubmission.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + ## Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a submissions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SubmissionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + # Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. class SubmissionsRequestBuilderGetQueryParameters ## diff --git a/lib/education/users/item/classes/classes_request_builder.rb b/lib/education/users/item/classes/classes_request_builder.rb index 274fd9469b..02b1c03136 100644 --- a/lib/education/users/item/classes/classes_request_builder.rb +++ b/lib/education/users/item/classes/classes_request_builder.rb @@ -41,10 +41,10 @@ def by_education_class_id(education_class_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/classes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/classes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the educationClass resources an educationUser is a member of. + ## Classes to which the user belongs. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_class_collection_response ## @@ -53,31 +53,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationClassCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the educationClass resources an educationUser is a member of. + ## Classes to which the user belongs. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a classes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClassesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the educationClass resources an educationUser is a member of. + # Classes to which the user belongs. Nullable. class ClassesRequestBuilderGetQueryParameters ## diff --git a/lib/education/users/item/classes/count/count_request_builder.rb b/lib/education/users/item/classes/count/count_request_builder.rb index 874a1a2dae..43f663eea3 100644 --- a/lib/education/users/item/classes/count/count_request_builder.rb +++ b/lib/education/users/item/classes/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/classes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/classes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/users/item/classes/item/education_class_item_request_builder.rb b/lib/education/users/item/classes/item/education_class_item_request_builder.rb index 8fbb264247..cf2a4844f3 100644 --- a/lib/education/users/item/classes/item/education_class_item_request_builder.rb +++ b/lib/education/users/item/classes/item/education_class_item_request_builder.rb @@ -25,7 +25,7 @@ class EducationClassItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/classes/{educationClass%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/classes/{educationClass%2Did}{?%24expand,%24select}") end ## ## Classes to which the user belongs. Nullable. @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationClass.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_class_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationClassItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Classes to which the user belongs. Nullable. diff --git a/lib/education/users/item/education_user_item_request_builder.rb b/lib/education/users/item/education_user_item_request_builder.rb index a9c12fbc66..7f154a3b9c 100644 --- a/lib/education/users/item/education_user_item_request_builder.rb +++ b/lib/education/users/item/education_user_item_request_builder.rb @@ -57,7 +57,7 @@ def user() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}{?%24expand,%24select}") end ## ## Delete a user. @@ -69,8 +69,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -83,8 +82,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationUser.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,8 +97,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationUser.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -110,13 +107,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,15 +124,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -146,17 +144,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_user_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationUserItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of an educationUser object. diff --git a/lib/education/users/item/rubrics/count/count_request_builder.rb b/lib/education/users/item/rubrics/count/count_request_builder.rb index a61f82ee3f..82a98d43d6 100644 --- a/lib/education/users/item/rubrics/count/count_request_builder.rb +++ b/lib/education/users/item/rubrics/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/rubrics/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/rubrics/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/users/item/rubrics/item/education_rubric_item_request_builder.rb b/lib/education/users/item/rubrics/item/education_rubric_item_request_builder.rb index 6d406deb22..1a0bf5c50c 100644 --- a/lib/education/users/item/rubrics/item/education_rubric_item_request_builder.rb +++ b/lib/education/users/item/rubrics/item/education_rubric_item_request_builder.rb @@ -25,10 +25,10 @@ class EducationRubricItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReques ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/rubrics/{educationRubric%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/rubrics/{educationRubric%2Did}{?%24expand,%24select}") end ## - ## Delete an educationRubric object. Only teachers can perform this operation. + ## Delete navigation property rubrics for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -37,12 +37,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. + ## When set, the grading rubric attached to the assignment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_rubric ## @@ -51,12 +50,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationRubric.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric, but it cannot be updated. + ## Update the navigation property rubrics in education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_rubric @@ -67,46 +65,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationRubric.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete an educationRubric object. Only teachers can perform this operation. + ## Delete navigation property rubrics for education ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. + ## When set, the grading rubric attached to the assignment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric, but it cannot be updated. + ## Update the navigation property rubrics in education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -114,20 +112,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_rubric_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationRubricItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. + # When set, the grading rubric attached to the assignment. class EducationRubricItemRequestBuilderGetQueryParameters ## diff --git a/lib/education/users/item/rubrics/rubrics_request_builder.rb b/lib/education/users/item/rubrics/rubrics_request_builder.rb index b7ae245c6a..50b326a35b 100644 --- a/lib/education/users/item/rubrics/rubrics_request_builder.rb +++ b/lib/education/users/item/rubrics/rubrics_request_builder.rb @@ -42,10 +42,10 @@ def by_education_rubric_id(education_rubric_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/rubrics{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/rubrics{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of educationRubric objects. + ## When set, the grading rubric attached to the assignment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_rubric_collection_response ## @@ -54,12 +54,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationRubricCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new educationRubric object. + ## Create new navigation property to rubrics for education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_rubric @@ -70,30 +69,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationRubric.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of educationRubric objects. + ## When set, the grading rubric attached to the assignment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new educationRubric object. + ## Create new navigation property to rubrics for education ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -101,20 +99,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rubrics_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RubricsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of educationRubric objects. + # When set, the grading rubric attached to the assignment. class RubricsRequestBuilderGetQueryParameters ## diff --git a/lib/education/users/item/schools/count/count_request_builder.rb b/lib/education/users/item/schools/count/count_request_builder.rb index fa2841723d..46d7ff29d1 100644 --- a/lib/education/users/item/schools/count/count_request_builder.rb +++ b/lib/education/users/item/schools/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/schools/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/schools/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/users/item/schools/item/education_school_item_request_builder.rb b/lib/education/users/item/schools/item/education_school_item_request_builder.rb index 57ef9b6052..a120e3e252 100644 --- a/lib/education/users/item/schools/item/education_school_item_request_builder.rb +++ b/lib/education/users/item/schools/item/education_school_item_request_builder.rb @@ -25,7 +25,7 @@ class EducationSchoolItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReques ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/schools/{educationSchool%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/schools/{educationSchool%2Did}{?%24expand,%24select}") end ## ## Schools to which the user belongs. Nullable. @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSchool.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_school_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationSchoolItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Schools to which the user belongs. Nullable. diff --git a/lib/education/users/item/schools/schools_request_builder.rb b/lib/education/users/item/schools/schools_request_builder.rb index 9f671cb057..576ec71f54 100644 --- a/lib/education/users/item/schools/schools_request_builder.rb +++ b/lib/education/users/item/schools/schools_request_builder.rb @@ -41,10 +41,10 @@ def by_education_school_id(education_school_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/schools{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/schools{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of schools for a user. + ## Schools to which the user belongs. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of education_school_collection_response ## @@ -53,31 +53,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationSchoolCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of schools for a user. + ## Schools to which the user belongs. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a schools_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SchoolsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of schools for a user. + # Schools to which the user belongs. Nullable. class SchoolsRequestBuilderGetQueryParameters ## diff --git a/lib/education/users/item/taught_classes/count/count_request_builder.rb b/lib/education/users/item/taught_classes/count/count_request_builder.rb index 9d85553b97..b06c500c73 100644 --- a/lib/education/users/item/taught_classes/count/count_request_builder.rb +++ b/lib/education/users/item/taught_classes/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/taughtClasses/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/taughtClasses/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/education/users/item/taught_classes/item/education_class_item_request_builder.rb b/lib/education/users/item/taught_classes/item/education_class_item_request_builder.rb index e8388efaec..bb2c2d7c36 100644 --- a/lib/education/users/item/taught_classes/item/education_class_item_request_builder.rb +++ b/lib/education/users/item/taught_classes/item/education_class_item_request_builder.rb @@ -25,7 +25,7 @@ class EducationClassItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/taughtClasses/{educationClass%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/taughtClasses/{educationClass%2Did}{?%24expand,%24select}") end ## ## Classes for which the user is a teacher. @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationClass.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a education_class_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EducationClassItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Classes for which the user is a teacher. diff --git a/lib/education/users/item/taught_classes/taught_classes_request_builder.rb b/lib/education/users/item/taught_classes/taught_classes_request_builder.rb index 9aed6c3c3d..8093329c14 100644 --- a/lib/education/users/item/taught_classes/taught_classes_request_builder.rb +++ b/lib/education/users/item/taught_classes/taught_classes_request_builder.rb @@ -41,7 +41,7 @@ def by_education_class_id(education_class_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/taughtClasses{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/taughtClasses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the educationClass resources owned by an educationUser. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationClassCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a taught_classes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TaughtClassesRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the educationClass resources owned by an educationUser. diff --git a/lib/education/users/item/user/mailbox_settings/mailbox_settings_request_builder.rb b/lib/education/users/item/user/mailbox_settings/mailbox_settings_request_builder.rb index cba4623489..b8626b3b7a 100644 --- a/lib/education/users/item/user/mailbox_settings/mailbox_settings_request_builder.rb +++ b/lib/education/users/item/user/mailbox_settings/mailbox_settings_request_builder.rb @@ -25,10 +25,10 @@ class MailboxSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/user/mailboxSettings{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/user/mailboxSettings{?%24expand,%24select}") end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of mailbox_settings ## @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -53,26 +52,25 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -84,20 +82,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mailbox_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MailboxSettingsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. class MailboxSettingsRequestBuilderGetQueryParameters ## diff --git a/lib/education/users/item/user/service_provisioning_errors/count/count.rb b/lib/education/users/item/user/service_provisioning_errors/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/users/item/user/service_provisioning_errors/count/count_request_builder.rb b/lib/education/users/item/user/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..73856212bd --- /dev/null +++ b/lib/education/users/item/user/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../education' +require_relative '../../../../users' +require_relative '../../../item' +require_relative '../../user' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Education + module Users + module Item + module User + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/user/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/education/users/item/user/service_provisioning_errors/service_provisioning_errors.rb b/lib/education/users/item/user/service_provisioning_errors/service_provisioning_errors.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/education/users/item/user/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/education/users/item/user/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..1e8658d37c --- /dev/null +++ b/lib/education/users/item/user/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,140 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../models/service_provisioning_error_collection_response' +require_relative '../../../../education' +require_relative '../../../users' +require_relative '../../item' +require_relative '../user' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Education + module Users + module Item + module User + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \education\users\{educationUser-id}\user\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Education::Users::Item::User::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/user/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/education/users/item/user/user_request_builder.rb b/lib/education/users/item/user/user_request_builder.rb index 84227ab598..79e044a731 100644 --- a/lib/education/users/item/user/user_request_builder.rb +++ b/lib/education/users/item/user/user_request_builder.rb @@ -6,6 +6,7 @@ require_relative '../../users' require_relative '../item' require_relative './mailbox_settings/mailbox_settings_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' require_relative './user' module MicrosoftGraph @@ -23,16 +24,21 @@ def mailbox_settings() return MicrosoftGraph::Education::Users::Item::User::MailboxSettings::MailboxSettingsRequestBuilder.new(@path_parameters, @request_adapter) end ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Education::Users::Item::User::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Instantiates a new UserRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/user{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/user{?%24expand,%24select}") end ## - ## Retrieve the simple directory user that corresponds to this educationUser. + ## The directory user that corresponds to this user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of user ## @@ -41,31 +47,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve the simple directory user that corresponds to this educationUser. + ## The directory user that corresponds to this user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the simple directory user that corresponds to this educationUser. + # The directory user that corresponds to this user. class UserRequestBuilderGetQueryParameters ## diff --git a/lib/education/users/users_request_builder.rb b/lib/education/users/users_request_builder.rb index cea448df8d..a3a380ec6c 100644 --- a/lib/education/users/users_request_builder.rb +++ b/lib/education/users/users_request_builder.rb @@ -44,7 +44,7 @@ def by_education_user_id(education_user_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/education/users{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/education/users{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a list of the educationUser objects and their properties. @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationUserCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,8 +71,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EducationUser.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,15 +81,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,17 +101,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a users_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsersRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a list of the educationUser objects and their properties. diff --git a/lib/employee_experience/communities/communities.rb b/lib/employee_experience/communities/communities.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/employee_experience/communities/communities_request_builder.rb b/lib/employee_experience/communities/communities_request_builder.rb new file mode 100644 index 0000000000..863aaa2791 --- /dev/null +++ b/lib/employee_experience/communities/communities_request_builder.rb @@ -0,0 +1,179 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/community' +require_relative '../../models/community_collection_response' +require_relative '../../models/o_data_errors_o_data_error' +require_relative '../employee_experience' +require_relative './communities' +require_relative './count/count_request_builder' +require_relative './item/community_item_request_builder' + +module MicrosoftGraph + module EmployeeExperience + module Communities + ## + # Provides operations to manage the communities property of the microsoft.graph.employeeExperience entity. + class CommunitiesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::EmployeeExperience::Communities::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the communities property of the microsoft.graph.employeeExperience entity. + ## @param community_id The unique identifier of community + ## @return a community_item_request_builder + ## + def by_community_id(community_id) + raise StandardError, 'community_id cannot be null' if community_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["community%2Did"] = community_id + return MicrosoftGraph::EmployeeExperience::Communities::Item::CommunityItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new CommunitiesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/communities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get a list of the Viva Engage community objects and their properties. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of community_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CommunityCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create a new community in Viva Engage. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of community + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Community.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get a list of the Viva Engage community objects and their properties. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create a new community in Viva Engage. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a communities_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CommunitiesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get a list of the Viva Engage community objects and their properties. + class CommunitiesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end +end diff --git a/lib/employee_experience/communities/count/count.rb b/lib/employee_experience/communities/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/employee_experience/communities/count/count_request_builder.rb b/lib/employee_experience/communities/count/count_request_builder.rb new file mode 100644 index 0000000000..c3d81d9cc2 --- /dev/null +++ b/lib/employee_experience/communities/count/count_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../employee_experience' +require_relative '../communities' +require_relative './count' + +module MicrosoftGraph + module EmployeeExperience + module Communities + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/communities/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/employee_experience/communities/item/community_item_request_builder.rb b/lib/employee_experience/communities/item/community_item_request_builder.rb new file mode 100644 index 0000000000..83b770fb61 --- /dev/null +++ b/lib/employee_experience/communities/item/community_item_request_builder.rb @@ -0,0 +1,185 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/community' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../employee_experience' +require_relative '../communities' +require_relative './group/group_request_builder' +require_relative './item' +require_relative './owners/owners_request_builder' +require_relative './owners_with_user_principal_name/owners_with_user_principal_name_request_builder' + +module MicrosoftGraph + module EmployeeExperience + module Communities + module Item + ## + # Provides operations to manage the communities property of the microsoft.graph.employeeExperience entity. + class CommunityItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the group property of the microsoft.graph.community entity. + def group() + return MicrosoftGraph::EmployeeExperience::Communities::Item::Group::GroupRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the owners property of the microsoft.graph.community entity. + def owners() + return MicrosoftGraph::EmployeeExperience::Communities::Item::Owners::OwnersRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new CommunityItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/communities/{community%2Did}{?%24expand,%24select}") + end + ## + ## Delete a Viva Engage community along with all associated Microsoft 365 content, including the connected Microsoft 365 group, OneNote notebook, and Planner plans. For more information, see What happens if I delete a Viva Engage community connected to Microsoft 365 groups. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Read the properties and relationships of a community object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of community + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Community.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Provides operations to manage the owners property of the microsoft.graph.community entity. + ## @param user_principal_name Alternate key of user + ## @return a owners_with_user_principal_name_request_builder + ## + def owners_with_user_principal_name(user_principal_name) + raise StandardError, 'user_principal_name cannot be null' if user_principal_name.nil? + return OwnersWithUserPrincipalNameRequestBuilder.new(@path_parameters, @request_adapter, userPrincipalName) + end + ## + ## Update the properties of an existing Viva Engage community. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of community + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Community.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete a Viva Engage community along with all associated Microsoft 365 content, including the connected Microsoft 365 group, OneNote notebook, and Planner plans. For more information, see What happens if I delete a Viva Engage community connected to Microsoft 365 groups. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Read the properties and relationships of a community object. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the properties of an existing Viva Engage community. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a community_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CommunityItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Read the properties and relationships of a community object. + class CommunityItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/employee_experience/communities/item/group/group.rb b/lib/employee_experience/communities/item/group/group.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/employee_experience/communities/item/group/group_request_builder.rb b/lib/employee_experience/communities/item/group/group_request_builder.rb new file mode 100644 index 0000000000..89c08d6796 --- /dev/null +++ b/lib/employee_experience/communities/item/group/group_request_builder.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/group' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../employee_experience' +require_relative '../../communities' +require_relative '../item' +require_relative './group' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' + +module MicrosoftGraph + module EmployeeExperience + module Communities + module Item + module Group + ## + # Provides operations to manage the group property of the microsoft.graph.community entity. + class GroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::EmployeeExperience::Communities::Item::Group::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GroupRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/group{?%24expand,%24select}") + end + ## + ## The Microsoft 365 group that manages the membership of this community. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of group + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The Microsoft 365 group that manages the membership of this community. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GroupRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The Microsoft 365 group that manages the membership of this community. + class GroupRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/employee_experience/communities/item/group/service_provisioning_errors/count/count.rb b/lib/employee_experience/communities/item/group/service_provisioning_errors/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/employee_experience/communities/item/group/service_provisioning_errors/count/count_request_builder.rb b/lib/employee_experience/communities/item/group/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..b64701ecc1 --- /dev/null +++ b/lib/employee_experience/communities/item/group/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../employee_experience' +require_relative '../../../../communities' +require_relative '../../../item' +require_relative '../../group' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module EmployeeExperience + module Communities + module Item + module Group + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/group/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/employee_experience/communities/item/group/service_provisioning_errors/service_provisioning_errors.rb b/lib/employee_experience/communities/item/group/service_provisioning_errors/service_provisioning_errors.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/employee_experience/communities/item/group/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/employee_experience/communities/item/group/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..45542ed6d2 --- /dev/null +++ b/lib/employee_experience/communities/item/group/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,140 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../models/service_provisioning_error_collection_response' +require_relative '../../../../employee_experience' +require_relative '../../../communities' +require_relative '../../item' +require_relative '../group' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module EmployeeExperience + module Communities + module Item + module Group + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \employeeExperience\communities\{community-id}\group\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::EmployeeExperience::Communities::Item::Group::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/group/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/employee_experience/communities/item/item.rb b/lib/employee_experience/communities/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/employee_experience/communities/item/owners/count/count.rb b/lib/employee_experience/communities/item/owners/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/employee_experience/communities/item/owners/count/count_request_builder.rb b/lib/employee_experience/communities/item/owners/count/count_request_builder.rb new file mode 100644 index 0000000000..b394357f1f --- /dev/null +++ b/lib/employee_experience/communities/item/owners/count/count_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../employee_experience' +require_relative '../../../communities' +require_relative '../../item' +require_relative '../owners' +require_relative './count' + +module MicrosoftGraph + module EmployeeExperience + module Communities + module Item + module Owners + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/owners/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/employee_experience/communities/item/owners/item/item.rb b/lib/employee_experience/communities/item/owners/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/employee_experience/communities/item/owners/item/mailbox_settings/mailbox_settings.rb b/lib/employee_experience/communities/item/owners/item/mailbox_settings/mailbox_settings.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/employee_experience/communities/item/owners/item/mailbox_settings/mailbox_settings_request_builder.rb b/lib/employee_experience/communities/item/owners/item/mailbox_settings/mailbox_settings_request_builder.rb new file mode 100644 index 0000000000..63c65ef54e --- /dev/null +++ b/lib/employee_experience/communities/item/owners/item/mailbox_settings/mailbox_settings_request_builder.rb @@ -0,0 +1,142 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/mailbox_settings' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../employee_experience' +require_relative '../../../../communities' +require_relative '../../../item' +require_relative '../../owners' +require_relative '../item' +require_relative './mailbox_settings' + +module MicrosoftGraph + module EmployeeExperience + module Communities + module Item + module Owners + module Item + module MailboxSettings + ## + # Builds and executes requests for operations under \employeeExperience\communities\{community-id}\owners\{user-id}\mailboxSettings + class MailboxSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/owners/{user%2Did}/mailboxSettings{?%24expand,%24select}") + end + ## + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mailbox_settings + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update property mailboxSettings value. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mailbox_settings + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update property mailboxSettings value. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mailbox_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MailboxSettingsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + class MailboxSettingsRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/employee_experience/communities/item/owners/item/service_provisioning_errors/count/count.rb b/lib/employee_experience/communities/item/owners/item/service_provisioning_errors/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/employee_experience/communities/item/owners/item/service_provisioning_errors/count/count_request_builder.rb b/lib/employee_experience/communities/item/owners/item/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..5a50e6b2d8 --- /dev/null +++ b/lib/employee_experience/communities/item/owners/item/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,109 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../employee_experience' +require_relative '../../../../../communities' +require_relative '../../../../item' +require_relative '../../../owners' +require_relative '../../item' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module EmployeeExperience + module Communities + module Item + module Owners + module Item + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/owners/{user%2Did}/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/employee_experience/communities/item/owners/item/service_provisioning_errors/service_provisioning_errors.rb b/lib/employee_experience/communities/item/owners/item/service_provisioning_errors/service_provisioning_errors.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/employee_experience/communities/item/owners/item/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/employee_experience/communities/item/owners/item/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..48f7e15753 --- /dev/null +++ b/lib/employee_experience/communities/item/owners/item/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,143 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../models/service_provisioning_error_collection_response' +require_relative '../../../../../employee_experience' +require_relative '../../../../communities' +require_relative '../../../item' +require_relative '../../owners' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module EmployeeExperience + module Communities + module Item + module Owners + module Item + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \employeeExperience\communities\{community-id}\owners\{user-id}\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::EmployeeExperience::Communities::Item::Owners::Item::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/owners/{user%2Did}/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/employee_experience/communities/item/owners/item/user_item_request_builder.rb b/lib/employee_experience/communities/item/owners/item/user_item_request_builder.rb new file mode 100644 index 0000000000..364f93808b --- /dev/null +++ b/lib/employee_experience/communities/item/owners/item/user_item_request_builder.rb @@ -0,0 +1,116 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../models/user' +require_relative '../../../../employee_experience' +require_relative '../../../communities' +require_relative '../../item' +require_relative '../owners' +require_relative './item' +require_relative './mailbox_settings/mailbox_settings_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' + +module MicrosoftGraph + module EmployeeExperience + module Communities + module Item + module Owners + module Item + ## + # Provides operations to manage the owners property of the microsoft.graph.community entity. + class UserItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # The mailboxSettings property + def mailbox_settings() + return MicrosoftGraph::EmployeeExperience::Communities::Item::Owners::Item::MailboxSettings::MailboxSettingsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::EmployeeExperience::Communities::Item::Owners::Item::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new UserItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/owners/{user%2Did}{?%24expand,%24select}") + end + ## + ## The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of user + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. + class UserItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/employee_experience/communities/item/owners/owners.rb b/lib/employee_experience/communities/item/owners/owners.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/employee_experience/communities/item/owners/owners_request_builder.rb b/lib/employee_experience/communities/item/owners/owners_request_builder.rb new file mode 100644 index 0000000000..f7d2362797 --- /dev/null +++ b/lib/employee_experience/communities/item/owners/owners_request_builder.rb @@ -0,0 +1,149 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../../models/user_collection_response' +require_relative '../../../employee_experience' +require_relative '../../communities' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './item/user_item_request_builder' +require_relative './owners' + +module MicrosoftGraph + module EmployeeExperience + module Communities + module Item + module Owners + ## + # Provides operations to manage the owners property of the microsoft.graph.community entity. + class OwnersRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::EmployeeExperience::Communities::Item::Owners::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the owners property of the microsoft.graph.community entity. + ## @param user_id The unique identifier of user + ## @return a user_item_request_builder + ## + def by_user_id(user_id) + raise StandardError, 'user_id cannot be null' if user_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["user%2Did"] = user_id + return MicrosoftGraph::EmployeeExperience::Communities::Item::Owners::Item::UserItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new OwnersRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/owners{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of user_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a owners_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OwnersRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. + class OwnersRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/employee_experience/communities/item/owners_with_user_principal_name/owners_with_user_principal_name.rb b/lib/employee_experience/communities/item/owners_with_user_principal_name/owners_with_user_principal_name.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/employee_experience/communities/item/owners_with_user_principal_name/owners_with_user_principal_name_request_builder.rb b/lib/employee_experience/communities/item/owners_with_user_principal_name/owners_with_user_principal_name_request_builder.rb new file mode 100644 index 0000000000..e4ca11e90b --- /dev/null +++ b/lib/employee_experience/communities/item/owners_with_user_principal_name/owners_with_user_principal_name_request_builder.rb @@ -0,0 +1,102 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../../models/user' +require_relative '../../../employee_experience' +require_relative '../../communities' +require_relative '../item' +require_relative './owners_with_user_principal_name' + +module MicrosoftGraph + module EmployeeExperience + module Communities + module Item + module OwnersWithUserPrincipalName + ## + # Provides operations to manage the owners property of the microsoft.graph.community entity. + class OwnersWithUserPrincipalNameRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OwnersWithUserPrincipalNameRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param user_principal_name Alternate key of user + ## @return a void + ## + def initialize(path_parameters, request_adapter, user_principal_name=nil) + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/owners(userPrincipalName='{userPrincipalName}'){?%24expand,%24select}") + end + ## + ## The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of user + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a owners_with_user_principal_name_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OwnersWithUserPrincipalNameRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. + class OwnersWithUserPrincipalNameRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/employee_experience/employee_experience_request_builder.rb b/lib/employee_experience/employee_experience_request_builder.rb index 368c3f6dd6..386bf06852 100644 --- a/lib/employee_experience/employee_experience_request_builder.rb +++ b/lib/employee_experience/employee_experience_request_builder.rb @@ -2,8 +2,11 @@ require_relative '../microsoft_graph' require_relative '../models/employee_experience' require_relative '../models/o_data_errors_o_data_error' +require_relative './communities/communities_request_builder' require_relative './employee_experience' +require_relative './engagement_async_operations/engagement_async_operations_request_builder' require_relative './learning_course_activities/learning_course_activities_request_builder' +require_relative './learning_course_activities_with_externalcourse_activity_id/learning_course_activities_with_externalcourse_activity_id_request_builder' require_relative './learning_providers/learning_providers_request_builder' module MicrosoftGraph @@ -12,6 +15,16 @@ module EmployeeExperience # Provides operations to manage the employeeExperience singleton. class EmployeeExperienceRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to manage the communities property of the microsoft.graph.employeeExperience entity. + def communities() + return MicrosoftGraph::EmployeeExperience::Communities::CommunitiesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the engagementAsyncOperations property of the microsoft.graph.employeeExperience entity. + def engagement_async_operations() + return MicrosoftGraph::EmployeeExperience::EngagementAsyncOperations::EngagementAsyncOperationsRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Provides operations to manage the learningCourseActivities property of the microsoft.graph.employeeExperience entity. def learning_course_activities() @@ -29,7 +42,7 @@ def learning_providers() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/employeeExperience{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience{?%24select}") end ## ## Get employeeExperience @@ -41,13 +54,21 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EmployeeExperience.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to manage the learningCourseActivities property of the microsoft.graph.employeeExperience entity. + ## @param externalcourse_activity_id Alternate key of learningCourseActivity + ## @return a learning_course_activities_with_externalcourse_activity_id_request_builder + ## + def learning_course_activities_with_externalcourse_activity_id(externalcourse_activity_id) + raise StandardError, 'externalcourse_activity_id cannot be null' if externalcourse_activity_id.nil? + return LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder.new(@path_parameters, @request_adapter, externalcourseActivityId) + end + ## ## Update employeeExperience - ## @param body The request body + ## @param body Represents a container that exposes navigation properties for employee experience resources. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of employee_experience ## @@ -57,8 +78,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EmployeeExperience.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,45 +88,51 @@ def patch(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## ## Update employeeExperience - ## @param body The request body + ## @param body Represents a container that exposes navigation properties for employee experience resources. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a employee_experience_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EmployeeExperienceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get employeeExperience class EmployeeExperienceRequestBuilderGetQueryParameters - ## - # Expand related entities - attr_accessor :expand ## # Select properties to be returned attr_accessor :select @@ -118,8 +144,6 @@ class EmployeeExperienceRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name - when "expand" - return "%24expand" when "select" return "%24select" else diff --git a/lib/employee_experience/engagement_async_operations/count/count.rb b/lib/employee_experience/engagement_async_operations/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/employee_experience/engagement_async_operations/count/count_request_builder.rb b/lib/employee_experience/engagement_async_operations/count/count_request_builder.rb new file mode 100644 index 0000000000..b9e4d27b7f --- /dev/null +++ b/lib/employee_experience/engagement_async_operations/count/count_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../employee_experience' +require_relative '../engagement_async_operations' +require_relative './count' + +module MicrosoftGraph + module EmployeeExperience + module EngagementAsyncOperations + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/engagementAsyncOperations/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/employee_experience/engagement_async_operations/engagement_async_operations.rb b/lib/employee_experience/engagement_async_operations/engagement_async_operations.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/employee_experience/engagement_async_operations/engagement_async_operations_request_builder.rb b/lib/employee_experience/engagement_async_operations/engagement_async_operations_request_builder.rb new file mode 100644 index 0000000000..57598796f7 --- /dev/null +++ b/lib/employee_experience/engagement_async_operations/engagement_async_operations_request_builder.rb @@ -0,0 +1,179 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/engagement_async_operation' +require_relative '../../models/engagement_async_operation_collection_response' +require_relative '../../models/o_data_errors_o_data_error' +require_relative '../employee_experience' +require_relative './count/count_request_builder' +require_relative './engagement_async_operations' +require_relative './item/engagement_async_operation_item_request_builder' + +module MicrosoftGraph + module EmployeeExperience + module EngagementAsyncOperations + ## + # Provides operations to manage the engagementAsyncOperations property of the microsoft.graph.employeeExperience entity. + class EngagementAsyncOperationsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::EmployeeExperience::EngagementAsyncOperations::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the engagementAsyncOperations property of the microsoft.graph.employeeExperience entity. + ## @param engagement_async_operation_id The unique identifier of engagementAsyncOperation + ## @return a engagement_async_operation_item_request_builder + ## + def by_engagement_async_operation_id(engagement_async_operation_id) + raise StandardError, 'engagement_async_operation_id cannot be null' if engagement_async_operation_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["engagementAsyncOperation%2Did"] = engagement_async_operation_id + return MicrosoftGraph::EmployeeExperience::EngagementAsyncOperations::Item::EngagementAsyncOperationItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new EngagementAsyncOperationsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/engagementAsyncOperations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get an engagementAsyncOperation to track a long-running operation request. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of engagement_async_operation_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EngagementAsyncOperationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to engagementAsyncOperations for employeeExperience + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of engagement_async_operation + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EngagementAsyncOperation.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get an engagementAsyncOperation to track a long-running operation request. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to engagementAsyncOperations for employeeExperience + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a engagement_async_operations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EngagementAsyncOperationsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get an engagementAsyncOperation to track a long-running operation request. + class EngagementAsyncOperationsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end +end diff --git a/lib/employee_experience/engagement_async_operations/item/engagement_async_operation_item_request_builder.rb b/lib/employee_experience/engagement_async_operations/item/engagement_async_operation_item_request_builder.rb new file mode 100644 index 0000000000..27f1b4832c --- /dev/null +++ b/lib/employee_experience/engagement_async_operations/item/engagement_async_operation_item_request_builder.rb @@ -0,0 +1,163 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/engagement_async_operation' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../employee_experience' +require_relative '../engagement_async_operations' +require_relative './item' + +module MicrosoftGraph + module EmployeeExperience + module EngagementAsyncOperations + module Item + ## + # Provides operations to manage the engagementAsyncOperations property of the microsoft.graph.employeeExperience entity. + class EngagementAsyncOperationItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EngagementAsyncOperationItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/engagementAsyncOperations/{engagementAsyncOperation%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property engagementAsyncOperations for employeeExperience + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Get an engagementAsyncOperation to track a long-running operation request. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of engagement_async_operation + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EngagementAsyncOperation.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property engagementAsyncOperations in employeeExperience + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of engagement_async_operation + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EngagementAsyncOperation.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property engagementAsyncOperations for employeeExperience + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Get an engagementAsyncOperation to track a long-running operation request. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property engagementAsyncOperations in employeeExperience + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a engagement_async_operation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EngagementAsyncOperationItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get an engagementAsyncOperation to track a long-running operation request. + class EngagementAsyncOperationItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/employee_experience/engagement_async_operations/item/item.rb b/lib/employee_experience/engagement_async_operations/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/employee_experience/learning_course_activities/count/count_request_builder.rb b/lib/employee_experience/learning_course_activities/count/count_request_builder.rb index 7c8ebb857b..1258eaf1bb 100644 --- a/lib/employee_experience/learning_course_activities/count/count_request_builder.rb +++ b/lib/employee_experience/learning_course_activities/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningCourseActivities/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningCourseActivities/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/employee_experience/learning_course_activities/item/learning_course_activity_item_request_builder.rb b/lib/employee_experience/learning_course_activities/item/learning_course_activity_item_request_builder.rb index 88dfdde5a7..c9ba850dbc 100644 --- a/lib/employee_experience/learning_course_activities/item/learning_course_activity_item_request_builder.rb +++ b/lib/employee_experience/learning_course_activities/item/learning_course_activity_item_request_builder.rb @@ -21,7 +21,7 @@ class LearningCourseActivityItemRequestBuilder < MicrosoftKiotaAbstractions::Bas ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningCourseActivities/{learningCourseActivity%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningCourseActivities/{learningCourseActivity%2Did}{?%24expand,%24select}") end ## ## Delete navigation property learningCourseActivities for employeeExperience @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LearningCourseActivity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,8 +61,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LearningCourseActivity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +71,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,15 +88,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a learning_course_activity_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LearningCourseActivityItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. diff --git a/lib/employee_experience/learning_course_activities/learning_course_activities_request_builder.rb b/lib/employee_experience/learning_course_activities/learning_course_activities_request_builder.rb index ce8844b879..076b858631 100644 --- a/lib/employee_experience/learning_course_activities/learning_course_activities_request_builder.rb +++ b/lib/employee_experience/learning_course_activities/learning_course_activities_request_builder.rb @@ -38,7 +38,7 @@ def by_learning_course_activity_id(learning_course_activity_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningCourseActivities{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningCourseActivities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LearningCourseActivityCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LearningCourseActivity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a learning_course_activities_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LearningCourseActivitiesRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. diff --git a/lib/employee_experience/learning_course_activities_with_externalcourse_activity_id/learning_course_activities_with_externalcourse_activity_id.rb b/lib/employee_experience/learning_course_activities_with_externalcourse_activity_id/learning_course_activities_with_externalcourse_activity_id.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/employee_experience/learning_course_activities_with_externalcourse_activity_id/learning_course_activities_with_externalcourse_activity_id_request_builder.rb b/lib/employee_experience/learning_course_activities_with_externalcourse_activity_id/learning_course_activities_with_externalcourse_activity_id_request_builder.rb new file mode 100644 index 0000000000..ae14b62958 --- /dev/null +++ b/lib/employee_experience/learning_course_activities_with_externalcourse_activity_id/learning_course_activities_with_externalcourse_activity_id_request_builder.rb @@ -0,0 +1,161 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/learning_course_activity' +require_relative '../../models/o_data_errors_o_data_error' +require_relative '../employee_experience' +require_relative './learning_course_activities_with_externalcourse_activity_id' + +module MicrosoftGraph + module EmployeeExperience + module LearningCourseActivitiesWithExternalcourseActivityId + ## + # Provides operations to manage the learningCourseActivities property of the microsoft.graph.employeeExperience entity. + class LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder and sets the default values. + ## @param externalcourse_activity_id Alternate key of learningCourseActivity + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, externalcourse_activity_id=nil) + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningCourseActivities(externalcourseActivityId='{externalcourseActivityId}'){?%24expand,%24select}") + end + ## + ## Delete navigation property learningCourseActivities for employeeExperience + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of learning_course_activity + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LearningCourseActivity.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property learningCourseActivities in employeeExperience + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of learning_course_activity + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LearningCourseActivity.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property learningCourseActivities for employeeExperience + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property learningCourseActivities in employeeExperience + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a learning_course_activities_with_externalcourse_activity_id_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. + class LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end +end diff --git a/lib/employee_experience/learning_providers/count/count_request_builder.rb b/lib/employee_experience/learning_providers/count/count_request_builder.rb index 87c80d4e7d..c6bf4f4c38 100644 --- a/lib/employee_experience/learning_providers/count/count_request_builder.rb +++ b/lib/employee_experience/learning_providers/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningProviders/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningProviders/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/employee_experience/learning_providers/item/learning_contents/count/count_request_builder.rb b/lib/employee_experience/learning_providers/item/learning_contents/count/count_request_builder.rb index ccffe502db..5e8c254551 100644 --- a/lib/employee_experience/learning_providers/item/learning_contents/count/count_request_builder.rb +++ b/lib/employee_experience/learning_providers/item/learning_contents/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningContents/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningContents/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/employee_experience/learning_providers/item/learning_contents/item/learning_content_item_request_builder.rb b/lib/employee_experience/learning_providers/item/learning_contents/item/learning_content_item_request_builder.rb index 867ba139b8..196fd9b373 100644 --- a/lib/employee_experience/learning_providers/item/learning_contents/item/learning_content_item_request_builder.rb +++ b/lib/employee_experience/learning_providers/item/learning_contents/item/learning_content_item_request_builder.rb @@ -25,7 +25,7 @@ class LearningContentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReques ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningContents/{learningContent%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningContents/{learningContent%2Did}{?%24expand,%24select}") end ## ## Delete the specified learningContent resource that represents the metadata of the specified provider's ingested content. @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LearningContent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LearningContent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a learning_content_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LearningContentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the specified learningContent resource which represents the metadata of the specified provider's ingested content. diff --git a/lib/employee_experience/learning_providers/item/learning_contents/learning_contents_request_builder.rb b/lib/employee_experience/learning_providers/item/learning_contents/learning_contents_request_builder.rb index 8b58b43dcd..a61b9f1f82 100644 --- a/lib/employee_experience/learning_providers/item/learning_contents/learning_contents_request_builder.rb +++ b/lib/employee_experience/learning_providers/item/learning_contents/learning_contents_request_builder.rb @@ -42,7 +42,7 @@ def by_learning_content_id(learning_content_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningContents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a list of the learningContent resources and their properties. This list represents the metadata of the specified provider's content in Viva Learning. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LearningContentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LearningContent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a learning_contents_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LearningContentsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a list of the learningContent resources and their properties. This list represents the metadata of the specified provider's content in Viva Learning. diff --git a/lib/employee_experience/learning_providers/item/learning_contents_with_external_id/learning_contents_with_external_id.rb b/lib/employee_experience/learning_providers/item/learning_contents_with_external_id/learning_contents_with_external_id.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/employee_experience/learning_providers/item/learning_contents_with_external_id/learning_contents_with_external_id_request_builder.rb b/lib/employee_experience/learning_providers/item/learning_contents_with_external_id/learning_contents_with_external_id_request_builder.rb new file mode 100644 index 0000000000..09943343a8 --- /dev/null +++ b/lib/employee_experience/learning_providers/item/learning_contents_with_external_id/learning_contents_with_external_id_request_builder.rb @@ -0,0 +1,167 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/learning_content' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../employee_experience' +require_relative '../../learning_providers' +require_relative '../item' +require_relative './learning_contents_with_external_id' + +module MicrosoftGraph + module EmployeeExperience + module LearningProviders + module Item + module LearningContentsWithExternalId + ## + # Provides operations to manage the learningContents property of the microsoft.graph.learningProvider entity. + class LearningContentsWithExternalIdRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LearningContentsWithExternalIdRequestBuilder and sets the default values. + ## @param external_id Alternate key of learningContent + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, external_id=nil) + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningContents(externalId='{externalId}'){?%24expand,%24select}") + end + ## + ## Delete the specified learningContent resource that represents the metadata of the specified provider's ingested content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Get the specified learningContent resource which represents the metadata of the specified provider's ingested content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of learning_content + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LearningContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property learningContents in employeeExperience + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of learning_content + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LearningContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete the specified learningContent resource that represents the metadata of the specified provider's ingested content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Get the specified learningContent resource which represents the metadata of the specified provider's ingested content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property learningContents in employeeExperience + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a learning_contents_with_external_id_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LearningContentsWithExternalIdRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the specified learningContent resource which represents the metadata of the specified provider's ingested content. + class LearningContentsWithExternalIdRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/employee_experience/learning_providers/item/learning_course_activities/count/count_request_builder.rb b/lib/employee_experience/learning_providers/item/learning_course_activities/count/count_request_builder.rb index 1f87ad1cfb..53aba189c1 100644 --- a/lib/employee_experience/learning_providers/item/learning_course_activities/count/count_request_builder.rb +++ b/lib/employee_experience/learning_providers/item/learning_course_activities/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningCourseActivities/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningCourseActivities/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/employee_experience/learning_providers/item/learning_course_activities/item/learning_course_activity_item_request_builder.rb b/lib/employee_experience/learning_providers/item/learning_course_activities/item/learning_course_activity_item_request_builder.rb index 53be500367..3fadc8a92a 100644 --- a/lib/employee_experience/learning_providers/item/learning_course_activities/item/learning_course_activity_item_request_builder.rb +++ b/lib/employee_experience/learning_providers/item/learning_course_activities/item/learning_course_activity_item_request_builder.rb @@ -25,10 +25,10 @@ class LearningCourseActivityItemRequestBuilder < MicrosoftKiotaAbstractions::Bas ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningCourseActivities/{learningCourseActivity%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningCourseActivities/{learningCourseActivity%2Did}{?%24expand,%24select}") end ## - ## Delete a learningCourseActivity object by using the course activity ID of either an assignment or a self-initiated activity. + ## Delete a learningCourseActivity object using the course activity ID of either an assignment or a self-initiated activity. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LearningCourseActivity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,24 +65,24 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LearningCourseActivity.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a learningCourseActivity object by using the course activity ID of either an assignment or a self-initiated activity. + ## Delete a learningCourseActivity object using the course activity ID of either an assignment or a self-initiated activity. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a learning_course_activity_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LearningCourseActivityItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get learningCourseActivities from employeeExperience diff --git a/lib/employee_experience/learning_providers/item/learning_course_activities/learning_course_activities_request_builder.rb b/lib/employee_experience/learning_providers/item/learning_course_activities/learning_course_activities_request_builder.rb index ab88a5e7a7..fec8bcb570 100644 --- a/lib/employee_experience/learning_providers/item/learning_course_activities/learning_course_activities_request_builder.rb +++ b/lib/employee_experience/learning_providers/item/learning_course_activities/learning_course_activities_request_builder.rb @@ -42,10 +42,10 @@ def by_learning_course_activity_id(learning_course_activity_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningCourseActivities{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningCourseActivities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get learningCourseActivities from employeeExperience + ## Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of learning_course_activity_collection_response ## @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LearningCourseActivityCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,26 +69,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LearningCourseActivity.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get learningCourseActivities from employeeExperience + ## Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,20 +99,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a learning_course_activities_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LearningCourseActivitiesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get learningCourseActivities from employeeExperience + # Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. class LearningCourseActivitiesRequestBuilderGetQueryParameters ## diff --git a/lib/employee_experience/learning_providers/item/learning_course_activities_with_externalcourse_activity_id/learning_course_activities_with_externalcourse_activity_id.rb b/lib/employee_experience/learning_providers/item/learning_course_activities_with_externalcourse_activity_id/learning_course_activities_with_externalcourse_activity_id.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/employee_experience/learning_providers/item/learning_course_activities_with_externalcourse_activity_id/learning_course_activities_with_externalcourse_activity_id_request_builder.rb b/lib/employee_experience/learning_providers/item/learning_course_activities_with_externalcourse_activity_id/learning_course_activities_with_externalcourse_activity_id_request_builder.rb new file mode 100644 index 0000000000..90075a5026 --- /dev/null +++ b/lib/employee_experience/learning_providers/item/learning_course_activities_with_externalcourse_activity_id/learning_course_activities_with_externalcourse_activity_id_request_builder.rb @@ -0,0 +1,167 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/learning_course_activity' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../employee_experience' +require_relative '../../learning_providers' +require_relative '../item' +require_relative './learning_course_activities_with_externalcourse_activity_id' + +module MicrosoftGraph + module EmployeeExperience + module LearningProviders + module Item + module LearningCourseActivitiesWithExternalcourseActivityId + ## + # Provides operations to manage the learningCourseActivities property of the microsoft.graph.learningProvider entity. + class LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder and sets the default values. + ## @param externalcourse_activity_id Alternate key of learningCourseActivity + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, externalcourse_activity_id=nil) + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningCourseActivities(externalcourseActivityId='{externalcourseActivityId}'){?%24expand,%24select}") + end + ## + ## Delete a learningCourseActivity object using the course activity ID of either an assignment or a self-initiated activity. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Get learningCourseActivities from employeeExperience + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of learning_course_activity + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LearningCourseActivity.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the properties of a learningCourseActivity object. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of learning_course_activity + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LearningCourseActivity.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete a learningCourseActivity object using the course activity ID of either an assignment or a self-initiated activity. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Get learningCourseActivities from employeeExperience + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the properties of a learningCourseActivity object. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a learning_course_activities_with_externalcourse_activity_id_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get learningCourseActivities from employeeExperience + class LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/employee_experience/learning_providers/item/learning_provider_item_request_builder.rb b/lib/employee_experience/learning_providers/item/learning_provider_item_request_builder.rb index d18254ac3a..564e5af3e3 100644 --- a/lib/employee_experience/learning_providers/item/learning_provider_item_request_builder.rb +++ b/lib/employee_experience/learning_providers/item/learning_provider_item_request_builder.rb @@ -6,7 +6,9 @@ require_relative '../learning_providers' require_relative './item' require_relative './learning_contents/learning_contents_request_builder' +require_relative './learning_contents_with_external_id/learning_contents_with_external_id_request_builder' require_relative './learning_course_activities/learning_course_activities_request_builder' +require_relative './learning_course_activities_with_externalcourse_activity_id/learning_course_activities_with_externalcourse_activity_id_request_builder' module MicrosoftGraph module EmployeeExperience @@ -33,7 +35,7 @@ def learning_course_activities() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}{?%24expand,%24select}") end ## ## Delete a learningProvider resource and remove its registration in Viva Learning for a tenant. @@ -45,8 +47,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,11 +60,28 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LearningProvider.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to manage the learningContents property of the microsoft.graph.learningProvider entity. + ## @param external_id Alternate key of learningContent + ## @return a learning_contents_with_external_id_request_builder + ## + def learning_contents_with_external_id(external_id) + raise StandardError, 'external_id cannot be null' if external_id.nil? + return LearningContentsWithExternalIdRequestBuilder.new(@path_parameters, @request_adapter, externalId) + end + ## + ## Provides operations to manage the learningCourseActivities property of the microsoft.graph.learningProvider entity. + ## @param externalcourse_activity_id Alternate key of learningCourseActivity + ## @return a learning_course_activities_with_externalcourse_activity_id_request_builder + ## + def learning_course_activities_with_externalcourse_activity_id(externalcourse_activity_id) + raise StandardError, 'externalcourse_activity_id cannot be null' if externalcourse_activity_id.nil? + return LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder.new(@path_parameters, @request_adapter, externalcourseActivityId) + end + ## ## Update the properties of a learningProvider object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. @@ -75,8 +93,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LearningProvider.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,13 +103,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -102,15 +120,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,17 +140,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a learning_provider_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LearningProviderItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of a learningProvider object. diff --git a/lib/employee_experience/learning_providers/learning_providers_request_builder.rb b/lib/employee_experience/learning_providers/learning_providers_request_builder.rb index 8116d9f46f..1f9e1879ab 100644 --- a/lib/employee_experience/learning_providers/learning_providers_request_builder.rb +++ b/lib/employee_experience/learning_providers/learning_providers_request_builder.rb @@ -38,7 +38,7 @@ def by_learning_provider_id(learning_provider_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningProviders{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/employeeExperience/learningProviders{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a list of the learningProvider resources registered in Viva Learning for a tenant. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LearningProviderCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::LearningProvider.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a learning_providers_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LearningProvidersRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a list of the learningProvider resources registered in Viva Learning for a tenant. diff --git a/lib/external/connections/connections_request_builder.rb b/lib/external/connections/connections_request_builder.rb index 21d7c6088d..aa74d1391e 100644 --- a/lib/external/connections/connections_request_builder.rb +++ b/lib/external/connections/connections_request_builder.rb @@ -38,7 +38,7 @@ def by_external_connection_id(external_connection_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/external/connections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/external/connections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a list of the externalConnection objects and their properties. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalConnectionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalConnection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a connections_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConnectionsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a list of the externalConnection objects and their properties. diff --git a/lib/external/connections/count/count_request_builder.rb b/lib/external/connections/count/count_request_builder.rb index 6fcf4a961e..7f35ad7ffa 100644 --- a/lib/external/connections/count/count_request_builder.rb +++ b/lib/external/connections/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/external/connections/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/external/connections/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/external/connections/item/external_connection_item_request_builder.rb b/lib/external/connections/item/external_connection_item_request_builder.rb index 4e1b57dff0..a3c356076c 100644 --- a/lib/external/connections/item/external_connection_item_request_builder.rb +++ b/lib/external/connections/item/external_connection_item_request_builder.rb @@ -45,7 +45,7 @@ def schema() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}{?%24expand,%24select}") end ## ## Deletes an externalConnection object. @@ -57,8 +57,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -71,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalConnection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,8 +85,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalConnection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -98,13 +95,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,15 +112,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -134,17 +132,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a external_connection_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExternalConnectionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of an externalConnection object. diff --git a/lib/external/connections/item/groups/count/count_request_builder.rb b/lib/external/connections/item/groups/count/count_request_builder.rb index 931afc3f0d..04592e304d 100644 --- a/lib/external/connections/item/groups/count/count_request_builder.rb +++ b/lib/external/connections/item/groups/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/groups/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/groups/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/external/connections/item/groups/groups_request_builder.rb b/lib/external/connections/item/groups/groups_request_builder.rb index 9e85ca9f32..f25f1a2d06 100644 --- a/lib/external/connections/item/groups/groups_request_builder.rb +++ b/lib/external/connections/item/groups/groups_request_builder.rb @@ -42,7 +42,7 @@ def by_external_group_id(external_group_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/groups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/groups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get an externalGroup object. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalGroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GroupsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get an externalGroup object. diff --git a/lib/external/connections/item/groups/item/external_group_item_request_builder.rb b/lib/external/connections/item/groups/item/external_group_item_request_builder.rb index f1fd3ba1e8..ac6190e037 100644 --- a/lib/external/connections/item/groups/item/external_group_item_request_builder.rb +++ b/lib/external/connections/item/groups/item/external_group_item_request_builder.rb @@ -31,7 +31,7 @@ def members() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}{?%24expand,%24select}") end ## ## Delete an externalGroup object. @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,15 +98,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a external_group_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExternalGroupItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get an externalGroup object. diff --git a/lib/external/connections/item/groups/item/members/count/count_request_builder.rb b/lib/external/connections/item/groups/item/members/count/count_request_builder.rb index 7ec98ae2b1..b5e016c764 100644 --- a/lib/external/connections/item/groups/item/members/count/count_request_builder.rb +++ b/lib/external/connections/item/groups/item/members/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/external/connections/item/groups/item/members/item/identity_item_request_builder.rb b/lib/external/connections/item/groups/item/members/item/identity_item_request_builder.rb index bcc7940855..b6543cd2cb 100644 --- a/lib/external/connections/item/groups/item/members/item/identity_item_request_builder.rb +++ b/lib/external/connections/item/groups/item/members/item/identity_item_request_builder.rb @@ -29,7 +29,7 @@ class IdentityItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilde ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members/{identity%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members/{identity%2Did}{?%24expand,%24select}") end ## ## Delete an identity resource to remove the corresponding member from an externalGroup. @@ -41,12 +41,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + ## A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of external_connectors_identity ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsIdentity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsIdentity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,31 +79,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + ## A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,20 +116,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a identity_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IdentityItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + # A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. class IdentityItemRequestBuilderGetQueryParameters ## diff --git a/lib/external/connections/item/groups/item/members/members_request_builder.rb b/lib/external/connections/item/groups/item/members/members_request_builder.rb index 707354cc4d..dd28675888 100644 --- a/lib/external/connections/item/groups/item/members/members_request_builder.rb +++ b/lib/external/connections/item/groups/item/members/members_request_builder.rb @@ -46,10 +46,10 @@ def by_identity_id(identity_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + ## A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of external_connectors_identity_collection_response ## @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsIdentityCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,26 +73,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsIdentity.create_from_discriminator_value(pn) }, error_mapping) end ## - ## A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + ## A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a members_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MembersRequestBuilder.new(raw_url, @request_adapter) + end ## - # A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + # A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. class MembersRequestBuilderGetQueryParameters ## diff --git a/lib/external/connections/item/items/count/count_request_builder.rb b/lib/external/connections/item/items/count/count_request_builder.rb index 41e2e7d753..21879e8d42 100644 --- a/lib/external/connections/item/items/count/count_request_builder.rb +++ b/lib/external/connections/item/items/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/items/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/items/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/external/connections/item/items/item/activities/activities_request_builder.rb b/lib/external/connections/item/items/item/activities/activities_request_builder.rb index ee3a8c6755..e9cd274d18 100644 --- a/lib/external/connections/item/items/item/activities/activities_request_builder.rb +++ b/lib/external/connections/item/items/item/activities/activities_request_builder.rb @@ -46,7 +46,7 @@ def by_external_activity_id(external_activity_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Returns a list of activities performed on the item. Write-only. @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalActivityCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,8 +73,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalActivity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,15 +83,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,17 +103,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a activities_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ActivitiesRequestBuilder.new(raw_url, @request_adapter) + end ## # Returns a list of activities performed on the item. Write-only. diff --git a/lib/external/connections/item/items/item/activities/count/count_request_builder.rb b/lib/external/connections/item/items/item/activities/count/count_request_builder.rb index 16001e0ed7..562c735377 100644 --- a/lib/external/connections/item/items/item/activities/count/count_request_builder.rb +++ b/lib/external/connections/item/items/item/activities/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/external/connections/item/items/item/activities/item/external_activity_item_request_builder.rb b/lib/external/connections/item/items/item/activities/item/external_activity_item_request_builder.rb index f24689dc51..80ea15e6e8 100644 --- a/lib/external/connections/item/items/item/activities/item/external_activity_item_request_builder.rb +++ b/lib/external/connections/item/items/item/activities/item/external_activity_item_request_builder.rb @@ -35,7 +35,7 @@ def performed_by() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/{externalActivity%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/{externalActivity%2Did}{?%24expand,%24select}") end ## ## Delete navigation property activities for external @@ -47,8 +47,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalActivity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalActivity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,13 +85,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -104,15 +102,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,17 +122,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a external_activity_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExternalActivityItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Returns a list of activities performed on the item. Write-only. diff --git a/lib/external/connections/item/items/item/activities/item/performed_by/performed_by_request_builder.rb b/lib/external/connections/item/items/item/activities/item/performed_by/performed_by_request_builder.rb index 7cd51a3e39..421397e7ea 100644 --- a/lib/external/connections/item/items/item/activities/item/performed_by/performed_by_request_builder.rb +++ b/lib/external/connections/item/items/item/activities/item/performed_by/performed_by_request_builder.rb @@ -31,7 +31,7 @@ class PerformedByRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/{externalActivity%2Did}/performedBy{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/{externalActivity%2Did}/performedBy{?%24expand,%24select}") end ## ## Represents an identity used to identify who is responsible for the activity. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsIdentity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a performed_by_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PerformedByRequestBuilder.new(raw_url, @request_adapter) + end ## # Represents an identity used to identify who is responsible for the activity. diff --git a/lib/external/connections/item/items/item/external_item_item_request_builder.rb b/lib/external/connections/item/items/item/external_item_item_request_builder.rb index 810eb6a081..2fa02fe784 100644 --- a/lib/external/connections/item/items/item/external_item_item_request_builder.rb +++ b/lib/external/connections/item/items/item/external_item_item_request_builder.rb @@ -37,7 +37,7 @@ def microsoft_graph_external_connectors_add_activities() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/items/{externalItem%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/items/{externalItem%2Did}{?%24expand,%24select}") end ## ## Delete an externalItem object. @@ -49,8 +49,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,12 +62,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalItem.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the navigation property items in external + ## Update the properties of an externalItem object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of external_connectors_external_item @@ -79,8 +77,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,13 +87,14 @@ def put(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -106,19 +104,19 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the navigation property items in external + ## Update the properties of an externalItem object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -126,17 +124,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a external_item_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExternalItemItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of an externalItem object. diff --git a/lib/external/connections/item/items/item/microsoft_graph_external_connectors_add_activities/add_activities_post_request_body.rb b/lib/external/connections/item/items/item/microsoft_graph_external_connectors_add_activities/add_activities_post_request_body.rb index 61ea5006a2..173296de93 100644 --- a/lib/external/connections/item/items/item/microsoft_graph_external_connectors_add_activities/add_activities_post_request_body.rb +++ b/lib/external/connections/item/items/item/microsoft_graph_external_connectors_add_activities/add_activities_post_request_body.rb @@ -39,22 +39,22 @@ def activities=(value) @activities = value end ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new addActivitiesPostRequestBody and sets the default values. + ## Instantiates a new AddActivitiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/external/connections/item/items/item/microsoft_graph_external_connectors_add_activities/add_activities_post_response.rb b/lib/external/connections/item/items/item/microsoft_graph_external_connectors_add_activities/add_activities_post_response.rb new file mode 100644 index 0000000000..625616a0cf --- /dev/null +++ b/lib/external/connections/item/items/item/microsoft_graph_external_connectors_add_activities/add_activities_post_response.rb @@ -0,0 +1,81 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../models/external_connectors_external_activity_result' +require_relative '../../../../../external' +require_relative '../../../../connections' +require_relative '../../../item' +require_relative '../../items' +require_relative '../item' +require_relative './microsoft_graph_external_connectors_add_activities' + +module MicrosoftGraph + module External + module Connections + module Item + module Items + module Item + module MicrosoftGraphExternalConnectorsAddActivities + class AddActivitiesPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new AddActivitiesPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a add_activities_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AddActivitiesPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalActivityResult.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a external_connectors_external_activity_result + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end +end diff --git a/lib/external/connections/item/items/item/microsoft_graph_external_connectors_add_activities/add_activities_response.rb b/lib/external/connections/item/items/item/microsoft_graph_external_connectors_add_activities/add_activities_response.rb deleted file mode 100644 index 10f92a7d41..0000000000 --- a/lib/external/connections/item/items/item/microsoft_graph_external_connectors_add_activities/add_activities_response.rb +++ /dev/null @@ -1,81 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../../models/external_connectors_external_activity_result' -require_relative '../../../../../external' -require_relative '../../../../connections' -require_relative '../../../item' -require_relative '../../items' -require_relative '../item' -require_relative './microsoft_graph_external_connectors_add_activities' - -module MicrosoftGraph - module External - module Connections - module Item - module Items - module Item - module MicrosoftGraphExternalConnectorsAddActivities - class AddActivitiesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new addActivitiesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a add_activities_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return AddActivitiesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalActivityResult.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a external_connectors_external_activity_result - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/external/connections/item/items/item/microsoft_graph_external_connectors_add_activities/microsoft_graph_external_connectors_add_activities.rb b/lib/external/connections/item/items/item/microsoft_graph_external_connectors_add_activities/microsoft_graph_external_connectors_add_activities.rb index dac5da197a..9899615c26 100644 --- a/lib/external/connections/item/items/item/microsoft_graph_external_connectors_add_activities/microsoft_graph_external_connectors_add_activities.rb +++ b/lib/external/connections/item/items/item/microsoft_graph_external_connectors_add_activities/microsoft_graph_external_connectors_add_activities.rb @@ -1,2 +1,2 @@ require_relative 'add_activities_post_request_body' -require_relative 'add_activities_response' +require_relative 'add_activities_post_response' diff --git a/lib/external/connections/item/items/item/microsoft_graph_external_connectors_add_activities/microsoft_graph_external_connectors_add_activities_request_builder.rb b/lib/external/connections/item/items/item/microsoft_graph_external_connectors_add_activities/microsoft_graph_external_connectors_add_activities_request_builder.rb index 2536d0a3cb..3b2ba1fc8a 100644 --- a/lib/external/connections/item/items/item/microsoft_graph_external_connectors_add_activities/microsoft_graph_external_connectors_add_activities_request_builder.rb +++ b/lib/external/connections/item/items/item/microsoft_graph_external_connectors_add_activities/microsoft_graph_external_connectors_add_activities_request_builder.rb @@ -32,7 +32,7 @@ def initialize(path_parameters, request_adapter) ## Invoke action addActivities ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of add_activities_response + ## @return a Fiber of add_activities_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -40,9 +40,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::External::Connections::Item::Items::Item::MicrosoftGraphExternalConnectorsAddActivities::AddActivitiesResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::External::Connections::Item::Items::Item::MicrosoftGraphExternalConnectorsAddActivities::AddActivitiesPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke action addActivities @@ -53,17 +52,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a microsoft_graph_external_connectors_add_activities_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/external/connections/item/items/items_request_builder.rb b/lib/external/connections/item/items/items_request_builder.rb index ce1e934e50..905b9c6e01 100644 --- a/lib/external/connections/item/items/items_request_builder.rb +++ b/lib/external/connections/item/items/items_request_builder.rb @@ -42,7 +42,7 @@ def by_external_item_id(external_item_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/items{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Read the properties and relationships of an externalItem object. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalItemCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a items_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemsRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of an externalItem object. diff --git a/lib/external/connections/item/operations/count/count_request_builder.rb b/lib/external/connections/item/operations/count/count_request_builder.rb index c0284c55dd..b1701d1a23 100644 --- a/lib/external/connections/item/operations/count/count_request_builder.rb +++ b/lib/external/connections/item/operations/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/operations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/operations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/external/connections/item/operations/item/connection_operation_item_request_builder.rb b/lib/external/connections/item/operations/item/connection_operation_item_request_builder.rb index bd804f726b..85a9e292a3 100644 --- a/lib/external/connections/item/operations/item/connection_operation_item_request_builder.rb +++ b/lib/external/connections/item/operations/item/connection_operation_item_request_builder.rb @@ -25,7 +25,7 @@ class ConnectionOperationItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/operations/{connectionOperation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/operations/{connectionOperation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property operations for external @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsConnectionOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsConnectionOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a connection_operation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConnectionOperationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of a connectionOperation object. diff --git a/lib/external/connections/item/operations/operations_request_builder.rb b/lib/external/connections/item/operations/operations_request_builder.rb index 8595ea73c9..9f01aed27f 100644 --- a/lib/external/connections/item/operations/operations_request_builder.rb +++ b/lib/external/connections/item/operations/operations_request_builder.rb @@ -42,7 +42,7 @@ def by_connection_operation_id(connection_operation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Read the properties and relationships of a connectionOperation object. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsConnectionOperationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsConnectionOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a operations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OperationsRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of a connectionOperation object. diff --git a/lib/external/connections/item/schema/schema_request_builder.rb b/lib/external/connections/item/schema/schema_request_builder.rb index 7a98e6d4fa..41112464e7 100644 --- a/lib/external/connections/item/schema/schema_request_builder.rb +++ b/lib/external/connections/item/schema/schema_request_builder.rb @@ -23,21 +23,7 @@ class SchemaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/schema{?%24select,%24expand}") - end - ## - ## Delete navigation property schema for external - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of void - ## - def delete(request_configuration=nil) - request_info = self.to_delete_request_information( - request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, nil, error_mapping) + super(path_parameters, request_adapter, "{+baseurl}/external/connections/{externalConnection%2Did}/schema{?%24expand,%24select}") end ## ## Read the properties and relationships of a schema object. @@ -49,12 +35,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsSchema.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the navigation property schema in external + ## Create a new or update an existing schema for a Microsoft Search connection. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of external_connectors_schema @@ -65,46 +50,29 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsSchema.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete navigation property schema for external - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_delete_request_information(request_configuration=nil) - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - return request_info - end - ## ## Read the properties and relationships of a schema object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the navigation property schema in external + ## Create a new or update an existing schema for a Microsoft Search connection. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -112,17 +80,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a schema_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SchemaRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of a schema object. diff --git a/lib/external/external_request_builder.rb b/lib/external/external_request_builder.rb index 2a7f3bd2b4..19ae93703c 100644 --- a/lib/external/external_request_builder.rb +++ b/lib/external/external_request_builder.rb @@ -23,7 +23,7 @@ def connections() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/external{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/external{?%24expand,%24select}") end ## ## Get external @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternal.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -51,8 +50,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternal.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,15 +60,15 @@ def patch(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -82,17 +80,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a external_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExternalRequestBuilder.new(raw_url, @request_adapter) + end ## # Get external diff --git a/lib/filter_operators/count/count_request_builder.rb b/lib/filter_operators/count/count_request_builder.rb index 354a0428d4..898001127a 100644 --- a/lib/filter_operators/count/count_request_builder.rb +++ b/lib/filter_operators/count/count_request_builder.rb @@ -18,7 +18,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/filterOperators/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/filterOperators/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -30,8 +30,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -41,17 +40,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/filter_operators/filter_operators_request_builder.rb b/lib/filter_operators/filter_operators_request_builder.rb index 62199b4f5c..440dd7c6d3 100644 --- a/lib/filter_operators/filter_operators_request_builder.rb +++ b/lib/filter_operators/filter_operators_request_builder.rb @@ -36,7 +36,7 @@ def by_filter_operator_schema_id(filter_operator_schema_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/filterOperators{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/filterOperators{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get entities from filterOperators @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::FilterOperatorSchemaCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,8 +63,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::FilterOperatorSchema.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,15 +73,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -95,17 +93,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a filter_operators_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilterOperatorsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get entities from filterOperators diff --git a/lib/filter_operators/item/filter_operator_schema_item_request_builder.rb b/lib/filter_operators/item/filter_operator_schema_item_request_builder.rb index 29d4d71185..2dae86bc4a 100644 --- a/lib/filter_operators/item/filter_operator_schema_item_request_builder.rb +++ b/lib/filter_operators/item/filter_operator_schema_item_request_builder.rb @@ -19,7 +19,7 @@ class FilterOperatorSchemaItemRequestBuilder < MicrosoftKiotaAbstractions::BaseR ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/filterOperators/{filterOperatorSchema%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/filterOperators/{filterOperatorSchema%2Did}{?%24expand,%24select}") end ## ## Delete entity from filterOperators @@ -31,8 +31,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::FilterOperatorSchema.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -61,8 +59,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::FilterOperatorSchema.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,13 +69,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -88,15 +86,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,17 +106,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a filter_operator_schema_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilterOperatorSchemaItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get entity from filterOperators by key diff --git a/lib/functions/count/count_request_builder.rb b/lib/functions/count/count_request_builder.rb index 6a0eb1c10c..c9c72f9f38 100644 --- a/lib/functions/count/count_request_builder.rb +++ b/lib/functions/count/count_request_builder.rb @@ -18,7 +18,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/functions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/functions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -30,8 +30,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -41,17 +40,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/functions/functions_request_builder.rb b/lib/functions/functions_request_builder.rb index 3b22731825..34b2d4bde1 100644 --- a/lib/functions/functions_request_builder.rb +++ b/lib/functions/functions_request_builder.rb @@ -36,7 +36,7 @@ def by_attribute_mapping_function_schema_id(attribute_mapping_function_schema_id ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/functions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/functions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get entities from functions @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttributeMappingFunctionSchemaCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,8 +63,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttributeMappingFunctionSchema.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,15 +73,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -95,17 +93,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a functions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FunctionsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get entities from functions diff --git a/lib/functions/item/attribute_mapping_function_schema_item_request_builder.rb b/lib/functions/item/attribute_mapping_function_schema_item_request_builder.rb index 34a2c5359b..a89a66ecdc 100644 --- a/lib/functions/item/attribute_mapping_function_schema_item_request_builder.rb +++ b/lib/functions/item/attribute_mapping_function_schema_item_request_builder.rb @@ -19,7 +19,7 @@ class AttributeMappingFunctionSchemaItemRequestBuilder < MicrosoftKiotaAbstracti ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/functions/{attributeMappingFunctionSchema%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/functions/{attributeMappingFunctionSchema%2Did}{?%24expand,%24select}") end ## ## Delete entity from functions @@ -31,8 +31,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttributeMappingFunctionSchema.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -61,8 +59,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttributeMappingFunctionSchema.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,13 +69,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -88,15 +86,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,17 +106,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attribute_mapping_function_schema_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttributeMappingFunctionSchemaItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get entity from functions by key diff --git a/lib/graph_base_service_client.rb b/lib/graph_base_service_client.rb index c9785b52e1..8d960995f2 100644 --- a/lib/graph_base_service_client.rb +++ b/lib/graph_base_service_client.rb @@ -6,6 +6,7 @@ require_relative './app_catalogs/app_catalogs_request_builder' require_relative './applications/applications_request_builder' require_relative './applications_with_app_id/applications_with_app_id_request_builder' +require_relative './applications_with_unique_name/applications_with_unique_name_request_builder' require_relative './application_templates/application_templates_request_builder' require_relative './audit_logs/audit_logs_request_builder' require_relative './authentication_method_configurations/authentication_method_configurations_request_builder' @@ -39,13 +40,13 @@ require_relative './groups/groups_request_builder' require_relative './group_settings/group_settings_request_builder' require_relative './group_setting_templates/group_setting_templates_request_builder' +require_relative './groups_with_unique_name/groups_with_unique_name_request_builder' require_relative './identity/identity_request_builder' require_relative './identity_governance/identity_governance_request_builder' require_relative './identity_protection/identity_protection_request_builder' require_relative './identity_providers/identity_providers_request_builder' require_relative './information_protection/information_protection_request_builder' require_relative './invitations/invitations_request_builder' -require_relative './me/me_request_builder' require_relative './microsoft_graph' require_relative './oauth2_permission_grants/oauth2_permission_grants_request_builder' require_relative './organization/organization_request_builder' @@ -66,6 +67,7 @@ require_relative './shares/shares_request_builder' require_relative './sites/sites_request_builder' require_relative './solutions/solutions_request_builder' +require_relative './storage/storage_request_builder' require_relative './subscribed_skus/subscribed_skus_request_builder' require_relative './subscriptions/subscriptions_request_builder' require_relative './teams/teams_request_builder' @@ -73,6 +75,7 @@ require_relative './teamwork/teamwork_request_builder' require_relative './tenant_relationships/tenant_relationships_request_builder' require_relative './users/users_request_builder' +require_relative './users_with_user_principal_name/users_with_user_principal_name_request_builder' module MicrosoftGraph ## @@ -290,11 +293,6 @@ def invitations() return MicrosoftGraph::Invitations::InvitationsRequestBuilder.new(@path_parameters, @request_adapter) end ## - # Provides operations to manage the user singleton. - def me() - return MicrosoftGraph::Me::MeRequestBuilder.new(@path_parameters, @request_adapter) - end - ## # Provides operations to manage the collection of oAuth2PermissionGrant entities. def oauth2_permission_grants() return MicrosoftGraph::Oauth2PermissionGrants::Oauth2PermissionGrantsRequestBuilder.new(@path_parameters, @request_adapter) @@ -385,6 +383,11 @@ def solutions() return MicrosoftGraph::Solutions::SolutionsRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to manage the storage singleton. + def storage() + return MicrosoftGraph::Storage::StorageRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to manage the collection of subscribedSku entities. def subscribed_skus() return MicrosoftGraph::SubscribedSkus::SubscribedSkusRequestBuilder.new(@path_parameters, @request_adapter) @@ -429,6 +432,15 @@ def applications_with_app_id(app_id) return ApplicationsWithAppIdRequestBuilder.new(@path_parameters, @request_adapter, appId) end ## + ## Provides operations to manage the collection of application entities. + ## @param unique_name Alternate key of application + ## @return a applications_with_unique_name_request_builder + ## + def applications_with_unique_name(unique_name) + raise StandardError, 'unique_name cannot be null' if unique_name.nil? + return ApplicationsWithUniqueNameRequestBuilder.new(@path_parameters, @request_adapter, uniqueName) + end + ## ## Instantiates a new GraphBaseServiceClient and sets the default values. ## @param request_adapter The request adapter to use to execute the requests. ## @return a void @@ -461,6 +473,15 @@ def directory_roles_with_role_template_id(role_template_id) return DirectoryRolesWithRoleTemplateIdRequestBuilder.new(@path_parameters, @request_adapter, roleTemplateId) end ## + ## Provides operations to manage the collection of group entities. + ## @param unique_name Alternate key of group + ## @return a groups_with_unique_name_request_builder + ## + def groups_with_unique_name(unique_name) + raise StandardError, 'unique_name cannot be null' if unique_name.nil? + return GroupsWithUniqueNameRequestBuilder.new(@path_parameters, @request_adapter, uniqueName) + end + ## ## Provides operations to manage the collection of servicePrincipal entities. ## @param app_id Alternate key of servicePrincipal ## @return a service_principals_with_app_id_request_builder @@ -469,5 +490,14 @@ def service_principals_with_app_id(app_id) raise StandardError, 'app_id cannot be null' if app_id.nil? return ServicePrincipalsWithAppIdRequestBuilder.new(@path_parameters, @request_adapter, appId) end + ## + ## Provides operations to manage the collection of user entities. + ## @param user_principal_name Alternate key of user + ## @return a users_with_user_principal_name_request_builder + ## + def users_with_user_principal_name(user_principal_name) + raise StandardError, 'user_principal_name cannot be null' if user_principal_name.nil? + return UsersWithUserPrincipalNameRequestBuilder.new(@path_parameters, @request_adapter, userPrincipalName) + end end end diff --git a/lib/group_lifecycle_policies/count/count_request_builder.rb b/lib/group_lifecycle_policies/count/count_request_builder.rb index 3032eb9198..91fade9b34 100644 --- a/lib/group_lifecycle_policies/count/count_request_builder.rb +++ b/lib/group_lifecycle_policies/count/count_request_builder.rb @@ -18,7 +18,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groupLifecyclePolicies/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groupLifecyclePolicies/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -30,8 +30,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -41,17 +40,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/group_lifecycle_policies/group_lifecycle_policies_request_builder.rb b/lib/group_lifecycle_policies/group_lifecycle_policies_request_builder.rb index b3bd919c07..337368a723 100644 --- a/lib/group_lifecycle_policies/group_lifecycle_policies_request_builder.rb +++ b/lib/group_lifecycle_policies/group_lifecycle_policies_request_builder.rb @@ -36,7 +36,7 @@ def by_group_lifecycle_policy_id(group_lifecycle_policy_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groupLifecyclePolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groupLifecyclePolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List all the groupLifecyclePolicies. @@ -48,12 +48,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupLifecyclePolicyCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Creates a new groupLifecyclePolicy. + ## Creates a new groupLifecyclePolicy. Only one policy exists in the tenant. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of group_lifecycle_policy @@ -64,8 +63,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupLifecyclePolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,19 +73,19 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Creates a new groupLifecyclePolicy. + ## Creates a new groupLifecyclePolicy. Only one policy exists in the tenant. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -95,17 +93,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a group_lifecycle_policies_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GroupLifecyclePoliciesRequestBuilder.new(raw_url, @request_adapter) + end ## # List all the groupLifecyclePolicies. diff --git a/lib/group_lifecycle_policies/item/add_group/add_group.rb b/lib/group_lifecycle_policies/item/add_group/add_group.rb index 45e59992b7..902de78d53 100644 --- a/lib/group_lifecycle_policies/item/add_group/add_group.rb +++ b/lib/group_lifecycle_policies/item/add_group/add_group.rb @@ -1,2 +1,2 @@ require_relative 'add_group_post_request_body' -require_relative 'add_group_response' +require_relative 'add_group_post_response' diff --git a/lib/group_lifecycle_policies/item/add_group/add_group_post_request_body.rb b/lib/group_lifecycle_policies/item/add_group/add_group_post_request_body.rb index 6d3ee36adb..fbb64c285b 100644 --- a/lib/group_lifecycle_policies/item/add_group/add_group_post_request_body.rb +++ b/lib/group_lifecycle_policies/item/add_group/add_group_post_request_body.rb @@ -17,22 +17,22 @@ class AddGroupPostRequestBody # The groupId property @group_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new addGroupPostRequestBody and sets the default values. + ## Instantiates a new AddGroupPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/group_lifecycle_policies/item/add_group/add_group_post_response.rb b/lib/group_lifecycle_policies/item/add_group/add_group_post_response.rb new file mode 100644 index 0000000000..1b59c6b0b8 --- /dev/null +++ b/lib/group_lifecycle_policies/item/add_group/add_group_post_response.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../group_lifecycle_policies' +require_relative '../item' +require_relative './add_group' + +module MicrosoftGraph + module GroupLifecyclePolicies + module Item + module AddGroup + class AddGroupPostResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new AddGroupPostResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a add_group_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AddGroupPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a boolean + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/group_lifecycle_policies/item/add_group/add_group_request_builder.rb b/lib/group_lifecycle_policies/item/add_group/add_group_request_builder.rb index dc8c77e4e5..7499363f4b 100644 --- a/lib/group_lifecycle_policies/item/add_group/add_group_request_builder.rb +++ b/lib/group_lifecycle_policies/item/add_group/add_group_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}/addGroup") end ## - ## Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. + ## Add a group to a groupLifecyclePolicy. This action is supported only if the managedGroupTypes property of the policy is set to Selected. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of add_group_response + ## @return a Fiber of add_group_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::GroupLifecyclePolicies::Item::AddGroup::AddGroupResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::GroupLifecyclePolicies::Item::AddGroup::AddGroupPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. + ## Add a group to a groupLifecyclePolicy. This action is supported only if the managedGroupTypes property of the policy is set to Selected. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddGroupRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/group_lifecycle_policies/item/add_group/add_group_response.rb b/lib/group_lifecycle_policies/item/add_group/add_group_response.rb deleted file mode 100644 index 13187e3d27..0000000000 --- a/lib/group_lifecycle_policies/item/add_group/add_group_response.rb +++ /dev/null @@ -1,88 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../group_lifecycle_policies' -require_relative '../item' -require_relative './add_group' - -module MicrosoftGraph - module GroupLifecyclePolicies - module Item - module AddGroup - class AddGroupResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new addGroupResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a add_group_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return AddGroupResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_boolean_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a boolean - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/group_lifecycle_policies/item/group_lifecycle_policy_item_request_builder.rb b/lib/group_lifecycle_policies/item/group_lifecycle_policy_item_request_builder.rb index 312d7da7aa..6641d0484e 100644 --- a/lib/group_lifecycle_policies/item/group_lifecycle_policy_item_request_builder.rb +++ b/lib/group_lifecycle_policies/item/group_lifecycle_policy_item_request_builder.rb @@ -31,7 +31,7 @@ def remove_group() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}{?%24expand,%24select}") end ## ## Delete a groupLifecyclePolicy. @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupLifecyclePolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupLifecyclePolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,15 +98,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a group_lifecycle_policy_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GroupLifecyclePolicyItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of a groupLifecyclePolicies object. diff --git a/lib/group_lifecycle_policies/item/remove_group/remove_group.rb b/lib/group_lifecycle_policies/item/remove_group/remove_group.rb index c217407e76..06d43ede91 100644 --- a/lib/group_lifecycle_policies/item/remove_group/remove_group.rb +++ b/lib/group_lifecycle_policies/item/remove_group/remove_group.rb @@ -1,2 +1,2 @@ require_relative 'remove_group_post_request_body' -require_relative 'remove_group_response' +require_relative 'remove_group_post_response' diff --git a/lib/group_lifecycle_policies/item/remove_group/remove_group_post_request_body.rb b/lib/group_lifecycle_policies/item/remove_group/remove_group_post_request_body.rb index 85f661afa5..c3468a5db6 100644 --- a/lib/group_lifecycle_policies/item/remove_group/remove_group_post_request_body.rb +++ b/lib/group_lifecycle_policies/item/remove_group/remove_group_post_request_body.rb @@ -17,22 +17,22 @@ class RemoveGroupPostRequestBody # The groupId property @group_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new removeGroupPostRequestBody and sets the default values. + ## Instantiates a new RemoveGroupPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/group_lifecycle_policies/item/remove_group/remove_group_post_response.rb b/lib/group_lifecycle_policies/item/remove_group/remove_group_post_response.rb new file mode 100644 index 0000000000..0792187e8d --- /dev/null +++ b/lib/group_lifecycle_policies/item/remove_group/remove_group_post_response.rb @@ -0,0 +1,88 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../group_lifecycle_policies' +require_relative '../item' +require_relative './remove_group' + +module MicrosoftGraph + module GroupLifecyclePolicies + module Item + module RemoveGroup + class RemoveGroupPostResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new RemoveGroupPostResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a remove_group_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return RemoveGroupPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a boolean + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/group_lifecycle_policies/item/remove_group/remove_group_request_builder.rb b/lib/group_lifecycle_policies/item/remove_group/remove_group_request_builder.rb index 500db7081c..1b1bf00259 100644 --- a/lib/group_lifecycle_policies/item/remove_group/remove_group_request_builder.rb +++ b/lib/group_lifecycle_policies/item/remove_group/remove_group_request_builder.rb @@ -26,7 +26,7 @@ def initialize(path_parameters, request_adapter) ## Removes a group from a lifecycle policy. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of remove_group_response + ## @return a Fiber of remove_group_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,9 +34,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::GroupLifecyclePolicies::Item::RemoveGroup::RemoveGroupResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::GroupLifecyclePolicies::Item::RemoveGroup::RemoveGroupPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Removes a group from a lifecycle policy. @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a remove_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RemoveGroupRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/group_lifecycle_policies/item/remove_group/remove_group_response.rb b/lib/group_lifecycle_policies/item/remove_group/remove_group_response.rb deleted file mode 100644 index ed21feda85..0000000000 --- a/lib/group_lifecycle_policies/item/remove_group/remove_group_response.rb +++ /dev/null @@ -1,88 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../group_lifecycle_policies' -require_relative '../item' -require_relative './remove_group' - -module MicrosoftGraph - module GroupLifecyclePolicies - module Item - module RemoveGroup - class RemoveGroupResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new removeGroupResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a remove_group_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return RemoveGroupResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_boolean_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a boolean - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/group_setting_templates/count/count_request_builder.rb b/lib/group_setting_templates/count/count_request_builder.rb index 2faa678af2..4277ce9926 100644 --- a/lib/group_setting_templates/count/count_request_builder.rb +++ b/lib/group_setting_templates/count/count_request_builder.rb @@ -18,7 +18,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groupSettingTemplates/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groupSettingTemplates/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -30,8 +30,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -41,17 +40,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/group_setting_templates/delta/delta.rb b/lib/group_setting_templates/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/group_setting_templates/delta/delta.rb +++ b/lib/group_setting_templates/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/group_setting_templates/delta/delta_get_response.rb b/lib/group_setting_templates/delta/delta_get_response.rb new file mode 100644 index 0000000000..4a1ddf8d99 --- /dev/null +++ b/lib/group_setting_templates/delta/delta_get_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_delta_function_response' +require_relative '../../models/directory_object' +require_relative '../group_setting_templates' +require_relative './delta' + +module MicrosoftGraph + module GroupSettingTemplates + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a directory_object + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/group_setting_templates/delta/delta_request_builder.rb b/lib/group_setting_templates/delta/delta_request_builder.rb index 027048f0d8..a38dad9438 100644 --- a/lib/group_setting_templates/delta/delta_request_builder.rb +++ b/lib/group_setting_templates/delta/delta_request_builder.rb @@ -18,49 +18,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groupSettingTemplates/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groupSettingTemplates/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::GroupSettingTemplates::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::GroupSettingTemplates::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # 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 ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -88,6 +99,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/group_setting_templates/delta/delta_response.rb b/lib/group_setting_templates/delta/delta_response.rb deleted file mode 100644 index c5ee194d07..0000000000 --- a/lib/group_setting_templates/delta/delta_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_delta_function_response' -require_relative '../../models/directory_object' -require_relative '../group_setting_templates' -require_relative './delta' - -module MicrosoftGraph - module GroupSettingTemplates - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/group_setting_templates/get_available_extension_properties/get_available_extension_properties.rb b/lib/group_setting_templates/get_available_extension_properties/get_available_extension_properties.rb index b6fee576bf..ce1b642cad 100644 --- a/lib/group_setting_templates/get_available_extension_properties/get_available_extension_properties.rb +++ b/lib/group_setting_templates/get_available_extension_properties/get_available_extension_properties.rb @@ -1,2 +1,2 @@ require_relative 'get_available_extension_properties_post_request_body' -require_relative 'get_available_extension_properties_response' +require_relative 'get_available_extension_properties_post_response' diff --git a/lib/group_setting_templates/get_available_extension_properties/get_available_extension_properties_post_request_body.rb b/lib/group_setting_templates/get_available_extension_properties/get_available_extension_properties_post_request_body.rb index dc63218b41..e671d28c48 100644 --- a/lib/group_setting_templates/get_available_extension_properties/get_available_extension_properties_post_request_body.rb +++ b/lib/group_setting_templates/get_available_extension_properties/get_available_extension_properties_post_request_body.rb @@ -15,22 +15,22 @@ class GetAvailableExtensionPropertiesPostRequestBody # The isSyncedFromOnPremises property @is_synced_from_on_premises ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getAvailableExtensionPropertiesPostRequestBody and sets the default values. + ## Instantiates a new GetAvailableExtensionPropertiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/group_setting_templates/get_available_extension_properties/get_available_extension_properties_post_response.rb b/lib/group_setting_templates/get_available_extension_properties/get_available_extension_properties_post_response.rb new file mode 100644 index 0000000000..bb4f91ebeb --- /dev/null +++ b/lib/group_setting_templates/get_available_extension_properties/get_available_extension_properties_post_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_collection_pagination_count_response' +require_relative '../../models/extension_property' +require_relative '../group_setting_templates' +require_relative './get_available_extension_properties' + +module MicrosoftGraph + module GroupSettingTemplates + module GetAvailableExtensionProperties + class GetAvailableExtensionPropertiesPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetAvailableExtensionPropertiesPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_available_extension_properties_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetAvailableExtensionPropertiesPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a extension_property + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/group_setting_templates/get_available_extension_properties/get_available_extension_properties_request_builder.rb b/lib/group_setting_templates/get_available_extension_properties/get_available_extension_properties_request_builder.rb index 096eef4f6d..3ae2ccb48b 100644 --- a/lib/group_setting_templates/get_available_extension_properties/get_available_extension_properties_request_builder.rb +++ b/lib/group_setting_templates/get_available_extension_properties/get_available_extension_properties_request_builder.rb @@ -21,10 +21,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groupSettingTemplates/getAvailableExtensionProperties") end ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_available_extension_properties_response + ## @return a Fiber of get_available_extension_properties_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -32,12 +32,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::GroupSettingTemplates::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::GroupSettingTemplates::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -45,17 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_available_extension_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetAvailableExtensionPropertiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/group_setting_templates/get_available_extension_properties/get_available_extension_properties_response.rb b/lib/group_setting_templates/get_available_extension_properties/get_available_extension_properties_response.rb deleted file mode 100644 index 53ee4fa81c..0000000000 --- a/lib/group_setting_templates/get_available_extension_properties/get_available_extension_properties_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_collection_pagination_count_response' -require_relative '../../models/extension_property' -require_relative '../group_setting_templates' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module GroupSettingTemplates - module GetAvailableExtensionProperties - class GetAvailableExtensionPropertiesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_available_extension_properties_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAvailableExtensionPropertiesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a extension_property - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/group_setting_templates/get_by_ids/get_by_ids.rb b/lib/group_setting_templates/get_by_ids/get_by_ids.rb index e4b0824834..131a179969 100644 --- a/lib/group_setting_templates/get_by_ids/get_by_ids.rb +++ b/lib/group_setting_templates/get_by_ids/get_by_ids.rb @@ -1,2 +1,2 @@ require_relative 'get_by_ids_post_request_body' -require_relative 'get_by_ids_response' +require_relative 'get_by_ids_post_response' diff --git a/lib/group_setting_templates/get_by_ids/get_by_ids_post_request_body.rb b/lib/group_setting_templates/get_by_ids/get_by_ids_post_request_body.rb index 73ed94470a..abafb33e4f 100644 --- a/lib/group_setting_templates/get_by_ids/get_by_ids_post_request_body.rb +++ b/lib/group_setting_templates/get_by_ids/get_by_ids_post_request_body.rb @@ -18,22 +18,22 @@ class GetByIdsPostRequestBody # The types property @types ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getByIdsPostRequestBody and sets the default values. + ## Instantiates a new GetByIdsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/group_setting_templates/get_by_ids/get_by_ids_post_response.rb b/lib/group_setting_templates/get_by_ids/get_by_ids_post_response.rb new file mode 100644 index 0000000000..50d4be259d --- /dev/null +++ b/lib/group_setting_templates/get_by_ids/get_by_ids_post_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_collection_pagination_count_response' +require_relative '../../models/directory_object' +require_relative '../group_setting_templates' +require_relative './get_by_ids' + +module MicrosoftGraph + module GroupSettingTemplates + module GetByIds + class GetByIdsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetByIdsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_by_ids_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetByIdsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a directory_object + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/group_setting_templates/get_by_ids/get_by_ids_request_builder.rb b/lib/group_setting_templates/get_by_ids/get_by_ids_request_builder.rb index 4e89951481..0a8ad724b4 100644 --- a/lib/group_setting_templates/get_by_ids/get_by_ids_request_builder.rb +++ b/lib/group_setting_templates/get_by_ids/get_by_ids_request_builder.rb @@ -24,7 +24,7 @@ def initialize(path_parameters, request_adapter) ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_by_ids_response + ## @return a Fiber of get_by_ids_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -32,9 +32,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::GroupSettingTemplates::GetByIds::GetByIdsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::GroupSettingTemplates::GetByIds::GetByIdsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: @@ -45,17 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_by_ids_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetByIdsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/group_setting_templates/get_by_ids/get_by_ids_response.rb b/lib/group_setting_templates/get_by_ids/get_by_ids_response.rb deleted file mode 100644 index 1c38fa98ef..0000000000 --- a/lib/group_setting_templates/get_by_ids/get_by_ids_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_collection_pagination_count_response' -require_relative '../../models/directory_object' -require_relative '../group_setting_templates' -require_relative './get_by_ids' - -module MicrosoftGraph - module GroupSettingTemplates - module GetByIds - class GetByIdsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getByIdsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_by_ids_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetByIdsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/group_setting_templates/group_setting_templates_request_builder.rb b/lib/group_setting_templates/group_setting_templates_request_builder.rb index 79926e2f39..55ac059de7 100644 --- a/lib/group_setting_templates/group_setting_templates_request_builder.rb +++ b/lib/group_setting_templates/group_setting_templates_request_builder.rb @@ -60,7 +60,7 @@ def by_group_setting_template_id(group_setting_template_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groupSettingTemplates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groupSettingTemplates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Group setting templates represents a set of templates from which group settings may be created and used within a tenant. This operation retrieves the list of available groupSettingTemplates objects. @@ -72,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupSettingTemplateCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,8 +87,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupSettingTemplate.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,15 +97,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -119,17 +117,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a group_setting_templates_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GroupSettingTemplatesRequestBuilder.new(raw_url, @request_adapter) + end ## # Group setting templates represents a set of templates from which group settings may be created and used within a tenant. This operation retrieves the list of available groupSettingTemplates objects. diff --git a/lib/group_setting_templates/item/check_member_groups/check_member_groups.rb b/lib/group_setting_templates/item/check_member_groups/check_member_groups.rb index 938b908522..98148024fe 100644 --- a/lib/group_setting_templates/item/check_member_groups/check_member_groups.rb +++ b/lib/group_setting_templates/item/check_member_groups/check_member_groups.rb @@ -1,2 +1,2 @@ require_relative 'check_member_groups_post_request_body' -require_relative 'check_member_groups_response' +require_relative 'check_member_groups_post_response' diff --git a/lib/group_setting_templates/item/check_member_groups/check_member_groups_post_request_body.rb b/lib/group_setting_templates/item/check_member_groups/check_member_groups_post_request_body.rb index 8923376e39..dd571a1463 100644 --- a/lib/group_setting_templates/item/check_member_groups/check_member_groups_post_request_body.rb +++ b/lib/group_setting_templates/item/check_member_groups/check_member_groups_post_request_body.rb @@ -17,22 +17,22 @@ class CheckMemberGroupsPostRequestBody # The groupIds property @group_ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new checkMemberGroupsPostRequestBody and sets the default values. + ## Instantiates a new CheckMemberGroupsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/group_setting_templates/item/check_member_groups/check_member_groups_post_response.rb b/lib/group_setting_templates/item/check_member_groups/check_member_groups_post_response.rb new file mode 100644 index 0000000000..9a3361e645 --- /dev/null +++ b/lib/group_setting_templates/item/check_member_groups/check_member_groups_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../group_setting_templates' +require_relative '../item' +require_relative './check_member_groups' + +module MicrosoftGraph + module GroupSettingTemplates + module Item + module CheckMemberGroups + class CheckMemberGroupsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new CheckMemberGroupsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a check_member_groups_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CheckMemberGroupsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/group_setting_templates/item/check_member_groups/check_member_groups_request_builder.rb b/lib/group_setting_templates/item/check_member_groups/check_member_groups_request_builder.rb index 2d227a6b3e..17eca42094 100644 --- a/lib/group_setting_templates/item/check_member_groups/check_member_groups_request_builder.rb +++ b/lib/group_setting_templates/item/check_member_groups/check_member_groups_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/checkMemberGroups") end ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + ## Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_groups_response + ## @return a Fiber of check_member_groups_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::GroupSettingTemplates::Item::CheckMemberGroups::CheckMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::GroupSettingTemplates::Item::CheckMemberGroups::CheckMemberGroupsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + ## Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a check_member_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CheckMemberGroupsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/group_setting_templates/item/check_member_groups/check_member_groups_response.rb b/lib/group_setting_templates/item/check_member_groups/check_member_groups_response.rb deleted file mode 100644 index a7e321bfa5..0000000000 --- a/lib/group_setting_templates/item/check_member_groups/check_member_groups_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../group_setting_templates' -require_relative '../item' -require_relative './check_member_groups' - -module MicrosoftGraph - module GroupSettingTemplates - module Item - module CheckMemberGroups - class CheckMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/group_setting_templates/item/check_member_objects/check_member_objects.rb b/lib/group_setting_templates/item/check_member_objects/check_member_objects.rb index 67fbf971e7..1826285d49 100644 --- a/lib/group_setting_templates/item/check_member_objects/check_member_objects.rb +++ b/lib/group_setting_templates/item/check_member_objects/check_member_objects.rb @@ -1,2 +1,2 @@ require_relative 'check_member_objects_post_request_body' -require_relative 'check_member_objects_response' +require_relative 'check_member_objects_post_response' diff --git a/lib/group_setting_templates/item/check_member_objects/check_member_objects_post_request_body.rb b/lib/group_setting_templates/item/check_member_objects/check_member_objects_post_request_body.rb index fde82bef3b..041566e9df 100644 --- a/lib/group_setting_templates/item/check_member_objects/check_member_objects_post_request_body.rb +++ b/lib/group_setting_templates/item/check_member_objects/check_member_objects_post_request_body.rb @@ -17,22 +17,22 @@ class CheckMemberObjectsPostRequestBody # The ids property @ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new checkMemberObjectsPostRequestBody and sets the default values. + ## Instantiates a new CheckMemberObjectsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/group_setting_templates/item/check_member_objects/check_member_objects_post_response.rb b/lib/group_setting_templates/item/check_member_objects/check_member_objects_post_response.rb new file mode 100644 index 0000000000..382882a7ab --- /dev/null +++ b/lib/group_setting_templates/item/check_member_objects/check_member_objects_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../group_setting_templates' +require_relative '../item' +require_relative './check_member_objects' + +module MicrosoftGraph + module GroupSettingTemplates + module Item + module CheckMemberObjects + class CheckMemberObjectsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new CheckMemberObjectsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a check_member_objects_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CheckMemberObjectsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/group_setting_templates/item/check_member_objects/check_member_objects_request_builder.rb b/lib/group_setting_templates/item/check_member_objects/check_member_objects_request_builder.rb index 50f445b4b3..ad0e7ba3da 100644 --- a/lib/group_setting_templates/item/check_member_objects/check_member_objects_request_builder.rb +++ b/lib/group_setting_templates/item/check_member_objects/check_member_objects_request_builder.rb @@ -26,7 +26,7 @@ def initialize(path_parameters, request_adapter) ## Invoke action checkMemberObjects ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_objects_response + ## @return a Fiber of check_member_objects_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,9 +34,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::GroupSettingTemplates::Item::CheckMemberObjects::CheckMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::GroupSettingTemplates::Item::CheckMemberObjects::CheckMemberObjectsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke action checkMemberObjects @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a check_member_objects_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CheckMemberObjectsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/group_setting_templates/item/check_member_objects/check_member_objects_response.rb b/lib/group_setting_templates/item/check_member_objects/check_member_objects_response.rb deleted file mode 100644 index 810d4c3bc6..0000000000 --- a/lib/group_setting_templates/item/check_member_objects/check_member_objects_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../group_setting_templates' -require_relative '../item' -require_relative './check_member_objects' - -module MicrosoftGraph - module GroupSettingTemplates - module Item - module CheckMemberObjects - class CheckMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/group_setting_templates/item/get_member_groups/get_member_groups.rb b/lib/group_setting_templates/item/get_member_groups/get_member_groups.rb index 0a25b012ea..9190b99738 100644 --- a/lib/group_setting_templates/item/get_member_groups/get_member_groups.rb +++ b/lib/group_setting_templates/item/get_member_groups/get_member_groups.rb @@ -1,2 +1,2 @@ require_relative 'get_member_groups_post_request_body' -require_relative 'get_member_groups_response' +require_relative 'get_member_groups_post_response' diff --git a/lib/group_setting_templates/item/get_member_groups/get_member_groups_post_request_body.rb b/lib/group_setting_templates/item/get_member_groups/get_member_groups_post_request_body.rb index 33a3ee8ab1..bc172108b2 100644 --- a/lib/group_setting_templates/item/get_member_groups/get_member_groups_post_request_body.rb +++ b/lib/group_setting_templates/item/get_member_groups/get_member_groups_post_request_body.rb @@ -17,22 +17,22 @@ class GetMemberGroupsPostRequestBody # The securityEnabledOnly property @security_enabled_only ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getMemberGroupsPostRequestBody and sets the default values. + ## Instantiates a new GetMemberGroupsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/group_setting_templates/item/get_member_groups/get_member_groups_post_response.rb b/lib/group_setting_templates/item/get_member_groups/get_member_groups_post_response.rb new file mode 100644 index 0000000000..1ca7b2a62d --- /dev/null +++ b/lib/group_setting_templates/item/get_member_groups/get_member_groups_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../group_setting_templates' +require_relative '../item' +require_relative './get_member_groups' + +module MicrosoftGraph + module GroupSettingTemplates + module Item + module GetMemberGroups + class GetMemberGroupsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetMemberGroupsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_member_groups_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetMemberGroupsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/group_setting_templates/item/get_member_groups/get_member_groups_request_builder.rb b/lib/group_setting_templates/item/get_member_groups/get_member_groups_request_builder.rb index 70cde865dc..a804efb688 100644 --- a/lib/group_setting_templates/item/get_member_groups/get_member_groups_request_builder.rb +++ b/lib/group_setting_templates/item/get_member_groups/get_member_groups_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/getMemberGroups") end ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. + ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_groups_response + ## @return a Fiber of get_member_groups_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::GroupSettingTemplates::Item::GetMemberGroups::GetMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::GroupSettingTemplates::Item::GetMemberGroups::GetMemberGroupsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. + ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_member_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetMemberGroupsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/group_setting_templates/item/get_member_groups/get_member_groups_response.rb b/lib/group_setting_templates/item/get_member_groups/get_member_groups_response.rb deleted file mode 100644 index daac2f4638..0000000000 --- a/lib/group_setting_templates/item/get_member_groups/get_member_groups_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../group_setting_templates' -require_relative '../item' -require_relative './get_member_groups' - -module MicrosoftGraph - module GroupSettingTemplates - module Item - module GetMemberGroups - class GetMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/group_setting_templates/item/get_member_objects/get_member_objects.rb b/lib/group_setting_templates/item/get_member_objects/get_member_objects.rb index 40edad6b9e..f7a486b0f9 100644 --- a/lib/group_setting_templates/item/get_member_objects/get_member_objects.rb +++ b/lib/group_setting_templates/item/get_member_objects/get_member_objects.rb @@ -1,2 +1,2 @@ require_relative 'get_member_objects_post_request_body' -require_relative 'get_member_objects_response' +require_relative 'get_member_objects_post_response' diff --git a/lib/group_setting_templates/item/get_member_objects/get_member_objects_post_request_body.rb b/lib/group_setting_templates/item/get_member_objects/get_member_objects_post_request_body.rb index 8e521999fe..d36059e3af 100644 --- a/lib/group_setting_templates/item/get_member_objects/get_member_objects_post_request_body.rb +++ b/lib/group_setting_templates/item/get_member_objects/get_member_objects_post_request_body.rb @@ -17,22 +17,22 @@ class GetMemberObjectsPostRequestBody # The securityEnabledOnly property @security_enabled_only ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getMemberObjectsPostRequestBody and sets the default values. + ## Instantiates a new GetMemberObjectsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/group_setting_templates/item/get_member_objects/get_member_objects_post_response.rb b/lib/group_setting_templates/item/get_member_objects/get_member_objects_post_response.rb new file mode 100644 index 0000000000..dccdecb208 --- /dev/null +++ b/lib/group_setting_templates/item/get_member_objects/get_member_objects_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../group_setting_templates' +require_relative '../item' +require_relative './get_member_objects' + +module MicrosoftGraph + module GroupSettingTemplates + module Item + module GetMemberObjects + class GetMemberObjectsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetMemberObjectsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_member_objects_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetMemberObjectsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/group_setting_templates/item/get_member_objects/get_member_objects_request_builder.rb b/lib/group_setting_templates/item/get_member_objects/get_member_objects_request_builder.rb index 22989c2c74..f059780926 100644 --- a/lib/group_setting_templates/item/get_member_objects/get_member_objects_request_builder.rb +++ b/lib/group_setting_templates/item/get_member_objects/get_member_objects_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/getMemberObjects") end ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + ## Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_objects_response + ## @return a Fiber of get_member_objects_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::GroupSettingTemplates::Item::GetMemberObjects::GetMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::GroupSettingTemplates::Item::GetMemberObjects::GetMemberObjectsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + ## Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_member_objects_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetMemberObjectsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/group_setting_templates/item/get_member_objects/get_member_objects_response.rb b/lib/group_setting_templates/item/get_member_objects/get_member_objects_response.rb deleted file mode 100644 index 9012fca0aa..0000000000 --- a/lib/group_setting_templates/item/get_member_objects/get_member_objects_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../group_setting_templates' -require_relative '../item' -require_relative './get_member_objects' - -module MicrosoftGraph - module GroupSettingTemplates - module Item - module GetMemberObjects - class GetMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/group_setting_templates/item/group_setting_template_item_request_builder.rb b/lib/group_setting_templates/item/group_setting_template_item_request_builder.rb index 3806ae66e2..5a283154a6 100644 --- a/lib/group_setting_templates/item/group_setting_template_item_request_builder.rb +++ b/lib/group_setting_templates/item/group_setting_template_item_request_builder.rb @@ -49,7 +49,7 @@ def restore() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}{?%24expand,%24select}") end ## ## Delete entity from groupSettingTemplates @@ -61,8 +61,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -75,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupSettingTemplate.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupSettingTemplate.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,13 +99,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,15 +116,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,17 +136,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a group_setting_template_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GroupSettingTemplateItemRequestBuilder.new(raw_url, @request_adapter) + end ## # A group setting template represents a template of settings from which settings may be created within a tenant. This operation allows retrieval of the properties of the groupSettingTemplate object, including the available settings and their defaults. diff --git a/lib/group_setting_templates/item/restore/restore_request_builder.rb b/lib/group_setting_templates/item/restore/restore_request_builder.rb index 702c570e59..14a3bbc0a5 100644 --- a/lib/group_setting_templates/item/restore/restore_request_builder.rb +++ b/lib/group_setting_templates/item/restore/restore_request_builder.rb @@ -24,7 +24,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/restore") end ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object ## @@ -33,27 +33,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a restore_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RestoreRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/group_setting_templates/validate_properties/validate_properties_post_request_body.rb b/lib/group_setting_templates/validate_properties/validate_properties_post_request_body.rb index f8dcfe48fb..20c2c64a2c 100644 --- a/lib/group_setting_templates/validate_properties/validate_properties_post_request_body.rb +++ b/lib/group_setting_templates/validate_properties/validate_properties_post_request_body.rb @@ -24,22 +24,22 @@ class ValidatePropertiesPostRequestBody # The onBehalfOfUserId property @on_behalf_of_user_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new validatePropertiesPostRequestBody and sets the default values. + ## Instantiates a new ValidatePropertiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/group_setting_templates/validate_properties/validate_properties_request_builder.rb b/lib/group_setting_templates/validate_properties/validate_properties_request_builder.rb index d47e4bc883..3eea55e179 100644 --- a/lib/group_setting_templates/validate_properties/validate_properties_request_builder.rb +++ b/lib/group_setting_templates/validate_properties/validate_properties_request_builder.rb @@ -32,8 +32,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,16 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a validate_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ValidatePropertiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/group_settings/count/count_request_builder.rb b/lib/group_settings/count/count_request_builder.rb index f4fd90295a..b78bcc7504 100644 --- a/lib/group_settings/count/count_request_builder.rb +++ b/lib/group_settings/count/count_request_builder.rb @@ -18,7 +18,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groupSettings/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groupSettings/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -30,8 +30,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -41,17 +40,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/group_settings/group_settings_request_builder.rb b/lib/group_settings/group_settings_request_builder.rb index 2b88c8ca0d..a14b5a029f 100644 --- a/lib/group_settings/group_settings_request_builder.rb +++ b/lib/group_settings/group_settings_request_builder.rb @@ -36,7 +36,7 @@ def by_group_setting_id(group_setting_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groupSettings{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groupSettings{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of tenant-level or group-specific group settings objects. @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupSettingCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,8 +63,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupSetting.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,15 +73,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -95,17 +93,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a group_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GroupSettingsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of tenant-level or group-specific group settings objects. diff --git a/lib/group_settings/item/group_setting_item_request_builder.rb b/lib/group_settings/item/group_setting_item_request_builder.rb index 4f7d486cfc..ec593fd6a9 100644 --- a/lib/group_settings/item/group_setting_item_request_builder.rb +++ b/lib/group_settings/item/group_setting_item_request_builder.rb @@ -19,7 +19,7 @@ class GroupSettingItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBu ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groupSettings/{groupSetting%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groupSettings/{groupSetting%2Did}{?%24expand,%24select}") end ## ## Delete a tenant-level or group-specific groupSetting object. @@ -31,8 +31,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupSetting.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -61,8 +59,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupSetting.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,13 +69,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -88,15 +86,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,17 +106,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a group_setting_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GroupSettingItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. diff --git a/lib/groups/count/count_request_builder.rb b/lib/groups/count/count_request_builder.rb index 59f41b61db..6e1853338e 100644 --- a/lib/groups/count/count_request_builder.rb +++ b/lib/groups/count/count_request_builder.rb @@ -18,7 +18,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -30,8 +30,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -41,17 +40,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/delta/delta.rb b/lib/groups/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/groups/delta/delta.rb +++ b/lib/groups/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/groups/delta/delta_get_response.rb b/lib/groups/delta/delta_get_response.rb new file mode 100644 index 0000000000..09ffdc785f --- /dev/null +++ b/lib/groups/delta/delta_get_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_delta_function_response' +require_relative '../../models/group' +require_relative '../groups' +require_relative './delta' + +module MicrosoftGraph + module Groups + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a group + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/groups/delta/delta_request_builder.rb b/lib/groups/delta/delta_request_builder.rb index 135cd278fe..4c2def4747 100644 --- a/lib/groups/delta/delta_request_builder.rb +++ b/lib/groups/delta/delta_request_builder.rb @@ -18,49 +18,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## Get newly created, updated, or deleted groups, including group membership changes, without having to perform a full read of the entire group collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## Get newly created, updated, or deleted groups, including group membership changes, without having to perform a full read of the entire group collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # Get newly created, updated, or deleted groups, including group membership changes, without having to perform a full read of the entire group collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. class DeltaRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -88,6 +99,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/delta/delta_response.rb b/lib/groups/delta/delta_response.rb deleted file mode 100644 index 991601c35f..0000000000 --- a/lib/groups/delta/delta_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_delta_function_response' -require_relative '../../models/group' -require_relative '../groups' -require_relative './delta' - -module MicrosoftGraph - module Groups - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a group - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/groups/get_available_extension_properties/get_available_extension_properties.rb b/lib/groups/get_available_extension_properties/get_available_extension_properties.rb index b6fee576bf..ce1b642cad 100644 --- a/lib/groups/get_available_extension_properties/get_available_extension_properties.rb +++ b/lib/groups/get_available_extension_properties/get_available_extension_properties.rb @@ -1,2 +1,2 @@ require_relative 'get_available_extension_properties_post_request_body' -require_relative 'get_available_extension_properties_response' +require_relative 'get_available_extension_properties_post_response' diff --git a/lib/groups/get_available_extension_properties/get_available_extension_properties_post_request_body.rb b/lib/groups/get_available_extension_properties/get_available_extension_properties_post_request_body.rb index cda13dd1f0..ce12050548 100644 --- a/lib/groups/get_available_extension_properties/get_available_extension_properties_post_request_body.rb +++ b/lib/groups/get_available_extension_properties/get_available_extension_properties_post_request_body.rb @@ -15,22 +15,22 @@ class GetAvailableExtensionPropertiesPostRequestBody # The isSyncedFromOnPremises property @is_synced_from_on_premises ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getAvailableExtensionPropertiesPostRequestBody and sets the default values. + ## Instantiates a new GetAvailableExtensionPropertiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/get_available_extension_properties/get_available_extension_properties_post_response.rb b/lib/groups/get_available_extension_properties/get_available_extension_properties_post_response.rb new file mode 100644 index 0000000000..34d989653f --- /dev/null +++ b/lib/groups/get_available_extension_properties/get_available_extension_properties_post_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_collection_pagination_count_response' +require_relative '../../models/extension_property' +require_relative '../groups' +require_relative './get_available_extension_properties' + +module MicrosoftGraph + module Groups + module GetAvailableExtensionProperties + class GetAvailableExtensionPropertiesPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetAvailableExtensionPropertiesPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_available_extension_properties_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetAvailableExtensionPropertiesPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a extension_property + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/groups/get_available_extension_properties/get_available_extension_properties_request_builder.rb b/lib/groups/get_available_extension_properties/get_available_extension_properties_request_builder.rb index 3cbde3683a..9fdc26b9b5 100644 --- a/lib/groups/get_available_extension_properties/get_available_extension_properties_request_builder.rb +++ b/lib/groups/get_available_extension_properties/get_available_extension_properties_request_builder.rb @@ -21,10 +21,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/getAvailableExtensionProperties") end ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_available_extension_properties_response + ## @return a Fiber of get_available_extension_properties_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -32,12 +32,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -45,17 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_available_extension_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetAvailableExtensionPropertiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/get_available_extension_properties/get_available_extension_properties_response.rb b/lib/groups/get_available_extension_properties/get_available_extension_properties_response.rb deleted file mode 100644 index b4e2e76e54..0000000000 --- a/lib/groups/get_available_extension_properties/get_available_extension_properties_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_collection_pagination_count_response' -require_relative '../../models/extension_property' -require_relative '../groups' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module Groups - module GetAvailableExtensionProperties - class GetAvailableExtensionPropertiesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_available_extension_properties_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAvailableExtensionPropertiesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a extension_property - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/groups/get_by_ids/get_by_ids.rb b/lib/groups/get_by_ids/get_by_ids.rb index e4b0824834..131a179969 100644 --- a/lib/groups/get_by_ids/get_by_ids.rb +++ b/lib/groups/get_by_ids/get_by_ids.rb @@ -1,2 +1,2 @@ require_relative 'get_by_ids_post_request_body' -require_relative 'get_by_ids_response' +require_relative 'get_by_ids_post_response' diff --git a/lib/groups/get_by_ids/get_by_ids_post_request_body.rb b/lib/groups/get_by_ids/get_by_ids_post_request_body.rb index c2a26d30fb..da0e39f6b6 100644 --- a/lib/groups/get_by_ids/get_by_ids_post_request_body.rb +++ b/lib/groups/get_by_ids/get_by_ids_post_request_body.rb @@ -18,22 +18,22 @@ class GetByIdsPostRequestBody # The types property @types ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getByIdsPostRequestBody and sets the default values. + ## Instantiates a new GetByIdsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/get_by_ids/get_by_ids_post_response.rb b/lib/groups/get_by_ids/get_by_ids_post_response.rb new file mode 100644 index 0000000000..62fc57e56c --- /dev/null +++ b/lib/groups/get_by_ids/get_by_ids_post_response.rb @@ -0,0 +1,69 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/base_collection_pagination_count_response' +require_relative '../../models/directory_object' +require_relative '../groups' +require_relative './get_by_ids' + +module MicrosoftGraph + module Groups + module GetByIds + class GetByIdsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetByIdsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_by_ids_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetByIdsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a directory_object + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end +end diff --git a/lib/groups/get_by_ids/get_by_ids_request_builder.rb b/lib/groups/get_by_ids/get_by_ids_request_builder.rb index 6801cdfc44..544f134523 100644 --- a/lib/groups/get_by_ids/get_by_ids_request_builder.rb +++ b/lib/groups/get_by_ids/get_by_ids_request_builder.rb @@ -24,7 +24,7 @@ def initialize(path_parameters, request_adapter) ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_by_ids_response + ## @return a Fiber of get_by_ids_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -32,9 +32,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::GetByIds::GetByIdsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::GetByIds::GetByIdsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: @@ -45,17 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_by_ids_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetByIdsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/get_by_ids/get_by_ids_response.rb b/lib/groups/get_by_ids/get_by_ids_response.rb deleted file mode 100644 index bb0e708422..0000000000 --- a/lib/groups/get_by_ids/get_by_ids_response.rb +++ /dev/null @@ -1,69 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../microsoft_graph' -require_relative '../../models/base_collection_pagination_count_response' -require_relative '../../models/directory_object' -require_relative '../groups' -require_relative './get_by_ids' - -module MicrosoftGraph - module Groups - module GetByIds - class GetByIdsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getByIdsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_by_ids_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetByIdsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end -end diff --git a/lib/groups/groups_request_builder.rb b/lib/groups/groups_request_builder.rb index b7619f98db..58e1edd115 100644 --- a/lib/groups/groups_request_builder.rb +++ b/lib/groups/groups_request_builder.rb @@ -60,7 +60,7 @@ def by_group_id(group_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## List all the groups available in an organization, excluding dynamic distribution groups. To retrieve dynamic distribution groups, use the Exchange admin center. This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the group and specify the properties in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. @@ -72,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,8 +87,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,15 +97,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -119,17 +117,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GroupsRequestBuilder.new(raw_url, @request_adapter) + end ## # List all the groups available in an organization, excluding dynamic distribution groups. To retrieve dynamic distribution groups, use the Exchange admin center. This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the group and specify the properties in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. diff --git a/lib/groups/item/accepted_senders/accepted_senders_request_builder.rb b/lib/groups/item/accepted_senders/accepted_senders_request_builder.rb index c9eae863e3..f3310442f4 100644 --- a/lib/groups/item/accepted_senders/accepted_senders_request_builder.rb +++ b/lib/groups/item/accepted_senders/accepted_senders_request_builder.rb @@ -29,7 +29,7 @@ def ref() end ## ## Gets an item from the MicrosoftGraph.groups.item.acceptedSenders.item collection - ## @param directory_object_id Unique identifier of the item + ## @param directory_object_id The unique identifier of directoryObject ## @return a directory_object_item_request_builder ## def by_directory_object_id(directory_object_id) @@ -45,7 +45,7 @@ def by_directory_object_id(directory_object_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a accepted_senders_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AcceptedSendersRequestBuilder.new(raw_url, @request_adapter) + end ## # Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. @@ -88,12 +96,18 @@ class AcceptedSendersRequestBuilderGetQueryParameters # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -112,10 +126,14 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/accepted_senders/count/count_request_builder.rb b/lib/groups/item/accepted_senders/count/count_request_builder.rb index a4d5f1d84f..70948966a5 100644 --- a/lib/groups/item/accepted_senders/count/count_request_builder.rb +++ b/lib/groups/item/accepted_senders/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -65,6 +73,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -74,6 +85,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/accepted_senders/item/ref/ref_request_builder.rb b/lib/groups/item/accepted_senders/item/ref/ref_request_builder.rb index ced3550165..8aec3985f1 100644 --- a/lib/groups/item/accepted_senders/item/ref/ref_request_builder.rb +++ b/lib/groups/item/accepted_senders/item/ref/ref_request_builder.rb @@ -24,7 +24,7 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/{directoryObject%2Did}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/{directoryObject%2Did}/$ref") end ## ## Remove acceptedSender @@ -36,8 +36,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,38 +46,24 @@ def delete(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Remove acceptedSender - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/groups/item/accepted_senders/ref/ref_request_builder.rb b/lib/groups/item/accepted_senders/ref/ref_request_builder.rb index 9ff4513ed5..9fe85950df 100644 --- a/lib/groups/item/accepted_senders/ref/ref_request_builder.rb +++ b/lib/groups/item/accepted_senders/ref/ref_request_builder.rb @@ -24,7 +24,20 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref{?%24top,%24skip,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") + end + ## + ## Remove acceptedSender + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) end ## ## Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. @@ -36,12 +49,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Specify the user or group in @odata.id in the request body. Users in the accepted senders list can post to conversations of the group . Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. + ## Specify the user or group in @odata.id in the request body. Users in the accepted senders list can post to conversations of the group. Make sure you don't specify the same user or group in the accepted senders and rejected senders lists, otherwise you'll get an error. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -52,30 +64,47 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## + ## Remove acceptedSender + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref?@id={%40id}' + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## ## Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Specify the user or group in @odata.id in the request body. Users in the accepted senders list can post to conversations of the group . Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. + ## Specify the user or group in @odata.id in the request body. Users in the accepted senders list can post to conversations of the group. Make sure you don't specify the same user or group in the accepted senders and rejected senders lists, otherwise you'll get an error. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -83,16 +112,49 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Remove acceptedSender + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end ## # Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. @@ -108,6 +170,9 @@ class RefRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Skip the first n items attr_accessor :skip ## @@ -127,6 +192,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "skip" return "%24skip" when "top" diff --git a/lib/groups/item/add_favorite/add_favorite_request_builder.rb b/lib/groups/item/add_favorite/add_favorite_request_builder.rb index 1454773c95..4c4b768791 100644 --- a/lib/groups/item/add_favorite/add_favorite_request_builder.rb +++ b/lib/groups/item/add_favorite/add_favorite_request_builder.rb @@ -23,7 +23,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/addFavorite") end ## - ## Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + ## Add the group to the list of the current user's favorite groups. The group shows up in Outlook and Teams favorites. Supported for Microsoft 365 groups only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -32,26 +32,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + ## Add the group to the list of the current user's favorite groups. The group shows up in Outlook and Teams favorites. Supported for Microsoft 365 groups only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_favorite_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddFavoriteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/app_role_assignments/app_role_assignments_request_builder.rb b/lib/groups/item/app_role_assignments/app_role_assignments_request_builder.rb index 23b817182f..574ad49729 100644 --- a/lib/groups/item/app_role_assignments/app_role_assignments_request_builder.rb +++ b/lib/groups/item/app_role_assignments/app_role_assignments_request_builder.rb @@ -40,10 +40,10 @@ def by_app_role_assignment_id(app_role_assignment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/appRoleAssignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/appRoleAssignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Represents the app roles a group has been granted for an application. Supports $expand. + ## Retrieve the list of appRoleAssignment that have been granted to a group. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of app_role_assignment_collection_response ## @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppRoleAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,26 +67,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppRoleAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Represents the app roles a group has been granted for an application. Supports $expand. + ## Retrieve the list of appRoleAssignment that have been granted to a group. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,20 +97,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a app_role_assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AppRoleAssignmentsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Represents the app roles a group has been granted for an application. Supports $expand. + # Retrieve the list of appRoleAssignment that have been granted to a group. class AppRoleAssignmentsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/app_role_assignments/count/count_request_builder.rb b/lib/groups/item/app_role_assignments/count/count_request_builder.rb index 5a8dda33b5..bcc5b78bd8 100644 --- a/lib/groups/item/app_role_assignments/count/count_request_builder.rb +++ b/lib/groups/item/app_role_assignments/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/appRoleAssignments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/appRoleAssignments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/app_role_assignments/item/app_role_assignment_item_request_builder.rb b/lib/groups/item/app_role_assignments/item/app_role_assignment_item_request_builder.rb index e53acfd92b..4ff00f066f 100644 --- a/lib/groups/item/app_role_assignments/item/app_role_assignment_item_request_builder.rb +++ b/lib/groups/item/app_role_assignments/item/app_role_assignment_item_request_builder.rb @@ -23,7 +23,7 @@ class AppRoleAssignmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/appRoleAssignments/{appRoleAssignment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/appRoleAssignments/{appRoleAssignment%2Did}{?%24expand,%24select}") end ## ## Deletes an appRoleAssignment that a group has been granted. @@ -35,12 +35,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Represents the app roles a group has been granted for an application. Supports $expand. + ## Represents the app roles granted to a group for an application. Supports $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of app_role_assignment ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppRoleAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppRoleAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,31 +73,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Represents the app roles a group has been granted for an application. Supports $expand. + ## Represents the app roles granted to a group for an application. Supports $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,20 +110,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a app_role_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AppRoleAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Represents the app roles a group has been granted for an application. Supports $expand. + # Represents the app roles granted to a group for an application. Supports $expand. class AppRoleAssignmentItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/assign_license/assign_license_post_request_body.rb b/lib/groups/item/assign_license/assign_license_post_request_body.rb index f151ebb40d..766f0ac3ec 100644 --- a/lib/groups/item/assign_license/assign_license_post_request_body.rb +++ b/lib/groups/item/assign_license/assign_license_post_request_body.rb @@ -36,22 +36,22 @@ def add_licenses=(value) @add_licenses = value end ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new assignLicensePostRequestBody and sets the default values. + ## Instantiates a new AssignLicensePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/assign_license/assign_license_request_builder.rb b/lib/groups/item/assign_license/assign_license_request_builder.rb index 6f1184e383..9465ed314f 100644 --- a/lib/groups/item/assign_license/assign_license_request_builder.rb +++ b/lib/groups/item/assign_license/assign_license_request_builder.rb @@ -24,7 +24,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/assignLicense") end ## - ## Add or remove licenses on the group. Licenses assigned to the group will be assigned to all users in the group. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. To get the subscriptions available in the directory, perform a GET subscribedSkus request. + ## Add or remove licenses on a group. Licenses assigned to the group will be assigned to all users in the group. Group-based licensing is an alternative to direct user licensing. To learn more about group-based licensing, see What is group-based licensing in Microsoft Entra ID. To get the subscriptions available in the directory, perform a GET subscribedSkus request. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of group @@ -35,12 +35,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Add or remove licenses on the group. Licenses assigned to the group will be assigned to all users in the group. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. To get the subscriptions available in the directory, perform a GET subscribedSkus request. + ## Add or remove licenses on a group. Licenses assigned to the group will be assigned to all users in the group. Group-based licensing is an alternative to direct user licensing. To learn more about group-based licensing, see What is group-based licensing in Microsoft Entra ID. To get the subscriptions available in the directory, perform a GET subscribedSkus request. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -48,17 +47,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assign_license_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignLicenseRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/allowed_calendar_sharing_roles_with_user/allowed_calendar_sharing_roles_with_user.rb b/lib/groups/item/calendar/allowed_calendar_sharing_roles_with_user/allowed_calendar_sharing_roles_with_user.rb index 9867a99faf..4f93564fb4 100644 --- a/lib/groups/item/calendar/allowed_calendar_sharing_roles_with_user/allowed_calendar_sharing_roles_with_user.rb +++ b/lib/groups/item/calendar/allowed_calendar_sharing_roles_with_user/allowed_calendar_sharing_roles_with_user.rb @@ -1 +1 @@ -require_relative 'allowed_calendar_sharing_roles_with_user_response' +require_relative 'allowed_calendar_sharing_roles_with_user_get_response' diff --git a/lib/groups/item/calendar/allowed_calendar_sharing_roles_with_user/allowed_calendar_sharing_roles_with_user_get_response.rb b/lib/groups/item/calendar/allowed_calendar_sharing_roles_with_user/allowed_calendar_sharing_roles_with_user_get_response.rb new file mode 100644 index 0000000000..185986b375 --- /dev/null +++ b/lib/groups/item/calendar/allowed_calendar_sharing_roles_with_user/allowed_calendar_sharing_roles_with_user_get_response.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/base_collection_pagination_count_response' +require_relative '../../../../models/calendar_role_type' +require_relative '../../../groups' +require_relative '../../item' +require_relative '../calendar' +require_relative './allowed_calendar_sharing_roles_with_user' + +module MicrosoftGraph + module Groups + module Item + module Calendar + module AllowedCalendarSharingRolesWithUser + class AllowedCalendarSharingRolesWithUserGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new AllowedCalendarSharingRolesWithUserGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a allowed_calendar_sharing_roles_with_user_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AllowedCalendarSharingRolesWithUserGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CalendarRoleType.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a calendar_role_type + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/groups/item/calendar/allowed_calendar_sharing_roles_with_user/allowed_calendar_sharing_roles_with_user_request_builder.rb b/lib/groups/item/calendar/allowed_calendar_sharing_roles_with_user/allowed_calendar_sharing_roles_with_user_request_builder.rb index 9b84bb0c9f..b72072a77d 100644 --- a/lib/groups/item/calendar/allowed_calendar_sharing_roles_with_user/allowed_calendar_sharing_roles_with_user_request_builder.rb +++ b/lib/groups/item/calendar/allowed_calendar_sharing_roles_with_user/allowed_calendar_sharing_roles_with_user_request_builder.rb @@ -23,21 +23,20 @@ class AllowedCalendarSharingRolesWithUserRequestBuilder < MicrosoftKiotaAbstract ## @return a void ## def initialize(path_parameters, request_adapter, user=nil) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/allowedCalendarSharingRoles(User='{User}'){?%24top,%24skip,%24search,%24filter,%24count}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/allowedCalendarSharingRoles(User='{User}'){?%24count,%24filter,%24search,%24skip,%24top}") end ## ## Invoke function allowedCalendarSharingRoles ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of allowed_calendar_sharing_roles_with_user_response + ## @return a Fiber of allowed_calendar_sharing_roles_with_user_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Calendar::AllowedCalendarSharingRolesWithUser::AllowedCalendarSharingRolesWithUserResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Calendar::AllowedCalendarSharingRolesWithUser::AllowedCalendarSharingRolesWithUserGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function allowedCalendarSharingRoles @@ -46,17 +45,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a allowed_calendar_sharing_roles_with_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AllowedCalendarSharingRolesWithUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Invoke function allowedCalendarSharingRoles diff --git a/lib/groups/item/calendar/allowed_calendar_sharing_roles_with_user/allowed_calendar_sharing_roles_with_user_response.rb b/lib/groups/item/calendar/allowed_calendar_sharing_roles_with_user/allowed_calendar_sharing_roles_with_user_response.rb deleted file mode 100644 index c3444d4b31..0000000000 --- a/lib/groups/item/calendar/allowed_calendar_sharing_roles_with_user/allowed_calendar_sharing_roles_with_user_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../../models/calendar_role_type' -require_relative '../../../groups' -require_relative '../../item' -require_relative '../calendar' -require_relative './allowed_calendar_sharing_roles_with_user' - -module MicrosoftGraph - module Groups - module Item - module Calendar - module AllowedCalendarSharingRolesWithUser - class AllowedCalendarSharingRolesWithUserResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new allowedCalendarSharingRolesWithUserResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a allowed_calendar_sharing_roles_with_user_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return AllowedCalendarSharingRolesWithUserResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CalendarRoleType.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a calendar_role_type - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/groups/item/calendar/calendar_permissions/calendar_permissions_request_builder.rb b/lib/groups/item/calendar/calendar_permissions/calendar_permissions_request_builder.rb index c35c74bd26..d6d03f1de4 100644 --- a/lib/groups/item/calendar/calendar_permissions/calendar_permissions_request_builder.rb +++ b/lib/groups/item/calendar/calendar_permissions/calendar_permissions_request_builder.rb @@ -42,10 +42,10 @@ def by_calendar_permission_id(calendar_permission_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarPermissions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarPermissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + ## The permissions of the users with whom the calendar is shared. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of calendar_permission_collection_response ## @@ -54,12 +54,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CalendarPermissionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. + ## Create new navigation property to calendarPermissions for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of calendar_permission @@ -70,30 +69,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CalendarPermission.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + ## The permissions of the users with whom the calendar is shared. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. + ## Create new navigation property to calendarPermissions for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -101,32 +99,47 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a calendar_permissions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CalendarPermissionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + # The permissions of the users with whom the calendar is shared. class CalendarPermissionsRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -145,10 +158,14 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/calendar/calendar_permissions/count/count_request_builder.rb b/lib/groups/item/calendar/calendar_permissions/count/count_request_builder.rb index 38224a3aaa..9afd44f931 100644 --- a/lib/groups/item/calendar/calendar_permissions/count/count_request_builder.rb +++ b/lib/groups/item/calendar/calendar_permissions/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarPermissions/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarPermissions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -67,6 +75,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -76,6 +87,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/calendar/calendar_permissions/item/calendar_permission_item_request_builder.rb b/lib/groups/item/calendar/calendar_permissions/item/calendar_permission_item_request_builder.rb index fd6b853c0a..1ac9c30410 100644 --- a/lib/groups/item/calendar/calendar_permissions/item/calendar_permission_item_request_builder.rb +++ b/lib/groups/item/calendar/calendar_permissions/item/calendar_permission_item_request_builder.rb @@ -25,10 +25,10 @@ class CalendarPermissionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReq ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarPermissions/{calendarPermission%2Did}{?%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarPermissions/{calendarPermission%2Did}{?%24expand,%24select}") end ## - ## Delete calendarPermission. + ## Delete navigation property calendarPermissions for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -37,12 +37,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get the specified permissions object of a user or group calendar that has been shared. + ## The permissions of the users with whom the calendar is shared. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of calendar_permission ## @@ -51,12 +50,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CalendarPermission.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the permissions assigned to an existing sharee or delegate, through the corresponding calendarPermission object for a calendar. + ## Update the navigation property calendarPermissions in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of calendar_permission @@ -67,46 +65,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CalendarPermission.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete calendarPermission. + ## Delete navigation property calendarPermissions for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get the specified permissions object of a user or group calendar that has been shared. + ## The permissions of the users with whom the calendar is shared. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the permissions assigned to an existing sharee or delegate, through the corresponding calendarPermission object for a calendar. + ## Update the navigation property calendarPermissions in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -114,22 +112,34 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a calendar_permission_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CalendarPermissionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the specified permissions object of a user or group calendar that has been shared. + # The permissions of the users with whom the calendar is shared. class CalendarPermissionItemRequestBuilderGetQueryParameters + ## + # Expand related entities + attr_accessor :expand ## # Select properties to be returned attr_accessor :select @@ -141,6 +151,8 @@ class CalendarPermissionItemRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "expand" + return "%24expand" when "select" return "%24select" else diff --git a/lib/groups/item/calendar/calendar_request_builder.rb b/lib/groups/item/calendar/calendar_request_builder.rb index e5279b4e38..f986cdc51b 100644 --- a/lib/groups/item/calendar/calendar_request_builder.rb +++ b/lib/groups/item/calendar/calendar_request_builder.rb @@ -10,6 +10,7 @@ require_relative './calendar_view/calendar_view_request_builder' require_relative './events/events_request_builder' require_relative './get_schedule/get_schedule_request_builder' +require_relative './permanent_delete/permanent_delete_request_builder' module MicrosoftGraph module Groups @@ -40,6 +41,11 @@ def get_schedule() return MicrosoftGraph::Groups::Item::Calendar::GetSchedule::GetScheduleRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the permanentDelete method. + def permanent_delete() + return MicrosoftGraph::Groups::Item::Calendar::PermanentDelete::PermanentDeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Provides operations to call the allowedCalendarSharingRoles method. ## @param user Usage: User='{User}' ## @return a allowed_calendar_sharing_roles_with_user_request_builder @@ -55,7 +61,7 @@ def allowed_calendar_sharing_roles_with_user(user) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar{?%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar{?%24expand,%24select}") end ## ## The group's calendar. Read-only. @@ -67,8 +73,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Calendar.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,22 +83,34 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a calendar_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CalendarRequestBuilder.new(raw_url, @request_adapter) + end ## # The group's calendar. Read-only. class CalendarRequestBuilderGetQueryParameters + ## + # Expand related entities + attr_accessor :expand ## # Select properties to be returned attr_accessor :select @@ -105,6 +122,8 @@ class CalendarRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "expand" + return "%24expand" when "select" return "%24select" else diff --git a/lib/groups/item/calendar/calendar_view/calendar_view_request_builder.rb b/lib/groups/item/calendar/calendar_view/calendar_view_request_builder.rb index 989c0d028e..38503a4da7 100644 --- a/lib/groups/item/calendar/calendar_view/calendar_view_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/calendar_view_request_builder.rb @@ -47,7 +47,7 @@ def by_event_id(event_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView{?startDateTime*,endDateTime*,%24top,%24skip,%24filter,%24count,%24orderby,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The calendar view for the calendar. Navigation property. Read-only. @@ -59,8 +59,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EventCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,17 +69,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a calendar_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CalendarViewRequestBuilder.new(raw_url, @request_adapter) + end ## # The calendar view for the calendar. Navigation property. Read-only. @@ -93,12 +101,18 @@ class CalendarViewRequestBuilderGetQueryParameters # The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 attr_accessor :end_date_time ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -122,10 +136,14 @@ def get_query_parameter(original_name) return "%24count" when "end_date_time" return "endDateTime" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/calendar/calendar_view/count/count_request_builder.rb b/lib/groups/item/calendar/calendar_view/count/count_request_builder.rb index 2f7268aa03..4e06e6aa26 100644 --- a/lib/groups/item/calendar/calendar_view/count/count_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -67,6 +75,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -76,6 +87,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/calendar/calendar_view/delta/delta.rb b/lib/groups/item/calendar/calendar_view/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/groups/item/calendar/calendar_view/delta/delta.rb +++ b/lib/groups/item/calendar/calendar_view/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/groups/item/calendar/calendar_view/delta/delta_get_response.rb b/lib/groups/item/calendar/calendar_view/delta/delta_get_response.rb new file mode 100644 index 0000000000..d64569cef1 --- /dev/null +++ b/lib/groups/item/calendar/calendar_view/delta/delta_get_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_delta_function_response' +require_relative '../../../../../models/event' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../calendar' +require_relative '../calendar_view' +require_relative './delta' + +module MicrosoftGraph + module Groups + module Item + module Calendar + module CalendarView + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a event + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/calendar/calendar_view/delta/delta_request_builder.rb b/lib/groups/item/calendar/calendar_view/delta/delta_request_builder.rb index eb3dbfe256..42a9c92584 100644 --- a/lib/groups/item/calendar/calendar_view/delta/delta_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/delta/delta_request_builder.rb @@ -24,21 +24,20 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Calendar::CalendarView::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Calendar::CalendarView::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -70,6 +78,9 @@ class DeltaRequestBuilderGetQueryParameters # The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 attr_accessor :end_date_time ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -102,6 +113,8 @@ def get_query_parameter(original_name) return "%24count" when "end_date_time" return "endDateTime" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/calendar/calendar_view/delta/delta_response.rb b/lib/groups/item/calendar/calendar_view/delta/delta_response.rb deleted file mode 100644 index 1da0b84338..0000000000 --- a/lib/groups/item/calendar/calendar_view/delta/delta_response.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_delta_function_response' -require_relative '../../../../../models/event' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../calendar' -require_relative '../calendar_view' -require_relative './delta' - -module MicrosoftGraph - module Groups - module Item - module Calendar - module CalendarView - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a event - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/calendar/calendar_view/item/accept/accept_post_request_body.rb b/lib/groups/item/calendar/calendar_view/item/accept/accept_post_request_body.rb index 1c0aaf3e29..95dd933111 100644 --- a/lib/groups/item/calendar/calendar_view/item/accept/accept_post_request_body.rb +++ b/lib/groups/item/calendar/calendar_view/item/accept/accept_post_request_body.rb @@ -26,15 +26,15 @@ class AcceptPostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -56,7 +56,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new acceptPostRequestBody and sets the default values. + ## Instantiates a new AcceptPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/calendar_view/item/accept/accept_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/accept/accept_request_builder.rb index bffa0f9096..aae893d162 100644 --- a/lib/groups/item/calendar/calendar_view/item/accept/accept_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/accept/accept_request_builder.rb @@ -40,8 +40,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,16 +52,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a accept_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AcceptRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/calendar_view/item/attachments/attachments_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/attachments/attachments_request_builder.rb index e3efdb4be4..0b5a34c7ce 100644 --- a/lib/groups/item/calendar/calendar_view/item/attachments/attachments_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/attachments/attachments_request_builder.rb @@ -52,10 +52,10 @@ def by_attachment_id(attachment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of attachment objects attached to an event. + ## The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment_collection_response ## @@ -64,12 +64,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + ## Create new navigation property to attachments for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -80,30 +79,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of attachment objects attached to an event. + ## The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + ## Create new navigation property to attachments for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -111,20 +109,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of attachment objects attached to an event. + # The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. class AttachmentsRequestBuilderGetQueryParameters ## @@ -140,6 +147,9 @@ class AttachmentsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -164,6 +174,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/calendar/calendar_view/item/attachments/count/count_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/attachments/count/count_request_builder.rb index 72c0eae14c..030f2ccddd 100644 --- a/lib/groups/item/calendar/calendar_view/item/attachments/count/count_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/attachments/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/attachments/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/attachments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -71,6 +79,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -80,6 +91,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/calendar/calendar_view/item/attachments/create_upload_session/create_upload_session_post_request_body.rb b/lib/groups/item/calendar/calendar_view/item/attachments/create_upload_session/create_upload_session_post_request_body.rb index 9f1018d3aa..a641b7d821 100644 --- a/lib/groups/item/calendar/calendar_view/item/attachments/create_upload_session/create_upload_session_post_request_body.rb +++ b/lib/groups/item/calendar/calendar_view/item/attachments/create_upload_session/create_upload_session_post_request_body.rb @@ -26,15 +26,15 @@ class CreateUploadSessionPostRequestBody # The AttachmentItem property @attachment_item ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -56,7 +56,7 @@ def attachment_item=(value) @attachment_item = value end ## - ## Instantiates a new createUploadSessionPostRequestBody and sets the default values. + ## Instantiates a new CreateUploadSessionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/calendar_view/item/attachments/create_upload_session/create_upload_session_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/attachments/create_upload_session/create_upload_session_request_builder.rb index 3d07701582..c1773fc93b 100644 --- a/lib/groups/item/calendar/calendar_view/item/attachments/create_upload_session/create_upload_session_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/attachments/create_upload_session/create_upload_session_request_builder.rb @@ -32,7 +32,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/attachments/createUploadSession") end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of upload_session @@ -43,12 +43,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UploadSession.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a create_upload_session_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreateUploadSessionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/calendar_view/item/attachments/item/attachment_item_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/attachments/item/attachment_item_request_builder.rb index acb744ec25..a76114897c 100644 --- a/lib/groups/item/calendar/calendar_view/item/attachments/item/attachment_item_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/attachments/item/attachment_item_request_builder.rb @@ -29,10 +29,10 @@ class AttachmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/attachments/{attachment%2Did}{?%24expand,%24select}") end ## - ## Delete an attachment from a user calendar event, mail message, or group post. + ## Delete navigation property attachments for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -41,8 +41,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,24 +54,24 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete an attachment from a user calendar event, mail message, or group post. + ## Delete navigation property attachments for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -82,17 +81,26 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. diff --git a/lib/groups/item/calendar/calendar_view/item/calendar/calendar_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/calendar/calendar_request_builder.rb index 33f9751033..668aa614d7 100644 --- a/lib/groups/item/calendar/calendar_view/item/calendar/calendar_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/calendar/calendar_request_builder.rb @@ -27,7 +27,7 @@ class CalendarRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/calendar{?%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/calendar{?%24expand,%24select}") end ## ## The calendar that contains the event. Navigation property. Read-only. @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Calendar.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,22 +49,34 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a calendar_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CalendarRequestBuilder.new(raw_url, @request_adapter) + end ## # The calendar that contains the event. Navigation property. Read-only. class CalendarRequestBuilderGetQueryParameters + ## + # Expand related entities + attr_accessor :expand ## # Select properties to be returned attr_accessor :select @@ -77,6 +88,8 @@ class CalendarRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "expand" + return "%24expand" when "select" return "%24select" else diff --git a/lib/groups/item/calendar/calendar_view/item/cancel/cancel_post_request_body.rb b/lib/groups/item/calendar/calendar_view/item/cancel/cancel_post_request_body.rb index 650b5194b6..66ac7e2765 100644 --- a/lib/groups/item/calendar/calendar_view/item/cancel/cancel_post_request_body.rb +++ b/lib/groups/item/calendar/calendar_view/item/cancel/cancel_post_request_body.rb @@ -23,15 +23,15 @@ class CancelPostRequestBody # The Comment property @comment ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -53,7 +53,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new cancelPostRequestBody and sets the default values. + ## Instantiates a new CancelPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/calendar_view/item/cancel/cancel_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/cancel/cancel_request_builder.rb index e17f34d55c..de6c8f2a9c 100644 --- a/lib/groups/item/calendar/calendar_view/item/cancel/cancel_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/cancel/cancel_request_builder.rb @@ -40,8 +40,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,16 +52,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cancel_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CancelRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/calendar_view/item/decline/decline_post_request_body.rb b/lib/groups/item/calendar/calendar_view/item/decline/decline_post_request_body.rb index b1f74aefbf..ac60d787e3 100644 --- a/lib/groups/item/calendar/calendar_view/item/decline/decline_post_request_body.rb +++ b/lib/groups/item/calendar/calendar_view/item/decline/decline_post_request_body.rb @@ -30,15 +30,15 @@ class DeclinePostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -60,7 +60,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new declinePostRequestBody and sets the default values. + ## Instantiates a new DeclinePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/calendar_view/item/decline/decline_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/decline/decline_request_builder.rb index e8b0ce49a1..fa1dba64da 100644 --- a/lib/groups/item/calendar/calendar_view/item/decline/decline_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/decline/decline_request_builder.rb @@ -40,8 +40,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,16 +52,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a decline_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeclineRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/calendar_view/item/dismiss_reminder/dismiss_reminder_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/dismiss_reminder/dismiss_reminder_request_builder.rb index 0b24335902..275c4d4277 100644 --- a/lib/groups/item/calendar/calendar_view/item/dismiss_reminder/dismiss_reminder_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/dismiss_reminder/dismiss_reminder_request_builder.rb @@ -38,8 +38,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,15 +48,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dismiss_reminder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DismissReminderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/calendar_view/item/event_item_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/event_item_request_builder.rb index fb553ebc41..b24dd435ff 100644 --- a/lib/groups/item/calendar/calendar_view/item/event_item_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/event_item_request_builder.rb @@ -16,6 +16,7 @@ require_relative './forward/forward_request_builder' require_relative './instances/instances_request_builder' require_relative './item' +require_relative './permanent_delete/permanent_delete_request_builder' require_relative './snooze_reminder/snooze_reminder_request_builder' require_relative './tentatively_accept/tentatively_accept_request_builder' @@ -75,6 +76,11 @@ def instances() return MicrosoftGraph::Groups::Item::Calendar::CalendarView::Item::Instances::InstancesRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the permanentDelete method. + def permanent_delete() + return MicrosoftGraph::Groups::Item::Calendar::CalendarView::Item::PermanentDelete::PermanentDeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to call the snoozeReminder method. def snooze_reminder() return MicrosoftGraph::Groups::Item::Calendar::CalendarView::Item::SnoozeReminder::SnoozeReminderRequestBuilder.new(@path_parameters, @request_adapter) @@ -91,7 +97,7 @@ def tentatively_accept() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}{?startDateTime*,endDateTime*,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24expand,%24select}") end ## ## The calendar view for the calendar. Navigation property. Read-only. @@ -103,8 +109,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -114,17 +119,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a event_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EventItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The calendar view for the calendar. Navigation property. Read-only. @@ -134,6 +148,9 @@ class EventItemRequestBuilderGetQueryParameters # The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 attr_accessor :end_date_time ## + # Expand related entities + attr_accessor :expand + ## # Select properties to be returned attr_accessor :select ## @@ -149,6 +166,8 @@ def get_query_parameter(original_name) case original_name when "end_date_time" return "endDateTime" + when "expand" + return "%24expand" when "select" return "%24select" when "start_date_time" diff --git a/lib/groups/item/calendar/calendar_view/item/extensions/count/count_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/extensions/count/count_request_builder.rb index 9df980d42e..e138b10f71 100644 --- a/lib/groups/item/calendar/calendar_view/item/extensions/count/count_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/extensions/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/extensions/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/extensions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -71,6 +79,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -80,6 +91,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/calendar/calendar_view/item/extensions/extensions_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/extensions/extensions_request_builder.rb index c467866a87..803a6933d6 100644 --- a/lib/groups/item/calendar/calendar_view/item/extensions/extensions_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/extensions/extensions_request_builder.rb @@ -46,10 +46,10 @@ def by_extension_id(extension_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension_collection_response ## @@ -58,12 +58,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExtensionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + ## Create new navigation property to extensions for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension @@ -74,30 +73,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + ## Create new navigation property to extensions for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extensions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + # The collection of open extensions defined for the event. Nullable. class ExtensionsRequestBuilderGetQueryParameters ## @@ -134,6 +141,9 @@ class ExtensionsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -158,6 +168,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/calendar/calendar_view/item/extensions/item/extension_item_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/extensions/item/extension_item_request_builder.rb index e6da21d223..417daae124 100644 --- a/lib/groups/item/calendar/calendar_view/item/extensions/item/extension_item_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/extensions/item/extension_item_request_builder.rb @@ -29,7 +29,7 @@ class ExtensionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/extensions/{extension%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/extensions/{extension%2Did}{?%24expand,%24select}") end ## ## Delete navigation property extensions for groups @@ -41,12 +41,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,31 +79,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,20 +116,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extension_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + # The collection of open extensions defined for the event. Nullable. class ExtensionItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/calendar/calendar_view/item/forward/forward_post_request_body.rb b/lib/groups/item/calendar/calendar_view/item/forward/forward_post_request_body.rb index 64def5f6b1..e7a79ab4b4 100644 --- a/lib/groups/item/calendar/calendar_view/item/forward/forward_post_request_body.rb +++ b/lib/groups/item/calendar/calendar_view/item/forward/forward_post_request_body.rb @@ -27,15 +27,15 @@ class ForwardPostRequestBody # The ToRecipients property @to_recipients ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -57,7 +57,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new forwardPostRequestBody and sets the default values. + ## Instantiates a new ForwardPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/calendar_view/item/forward/forward_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/forward/forward_request_builder.rb index ac59678677..89473d53e8 100644 --- a/lib/groups/item/calendar/calendar_view/item/forward/forward_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/forward/forward_request_builder.rb @@ -29,7 +29,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/forward") end ## - ## This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + ## This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -40,12 +40,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + ## This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -53,16 +52,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a forward_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ForwardRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/calendar_view/item/instances/count/count_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/instances/count/count_request_builder.rb index 3673706879..4e8db26d2d 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/count/count_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -71,6 +79,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -80,6 +91,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/calendar/calendar_view/item/instances/delta/delta.rb b/lib/groups/item/calendar/calendar_view/item/instances/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/delta/delta.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/groups/item/calendar/calendar_view/item/instances/delta/delta_get_response.rb b/lib/groups/item/calendar/calendar_view/item/instances/delta/delta_get_response.rb new file mode 100644 index 0000000000..f10ce8969a --- /dev/null +++ b/lib/groups/item/calendar/calendar_view/item/instances/delta/delta_get_response.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/base_delta_function_response' +require_relative '../../../../../../../models/event' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../calendar' +require_relative '../../../calendar_view' +require_relative '../../item' +require_relative '../instances' +require_relative './delta' + +module MicrosoftGraph + module Groups + module Item + module Calendar + module CalendarView + module Item + module Instances + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a event + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/calendar/calendar_view/item/instances/delta/delta_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/instances/delta/delta_request_builder.rb index 3d05dd0e32..404d4963fb 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/delta/delta_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/delta/delta_request_builder.rb @@ -28,21 +28,20 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Calendar::CalendarView::Item::Instances::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Calendar::CalendarView::Item::Instances::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -74,6 +82,9 @@ class DeltaRequestBuilderGetQueryParameters # The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 attr_accessor :end_date_time ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -106,6 +117,8 @@ def get_query_parameter(original_name) return "%24count" when "end_date_time" return "endDateTime" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/calendar/calendar_view/item/instances/delta/delta_response.rb b/lib/groups/item/calendar/calendar_view/item/instances/delta/delta_response.rb deleted file mode 100644 index 8389d7006d..0000000000 --- a/lib/groups/item/calendar/calendar_view/item/instances/delta/delta_response.rb +++ /dev/null @@ -1,84 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/base_delta_function_response' -require_relative '../../../../../../../models/event' -require_relative '../../../../../../groups' -require_relative '../../../../../item' -require_relative '../../../../calendar' -require_relative '../../../calendar_view' -require_relative '../../item' -require_relative '../instances' -require_relative './delta' - -module MicrosoftGraph - module Groups - module Item - module Calendar - module CalendarView - module Item - module Instances - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a event - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/calendar/calendar_view/item/instances/instances_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/instances/instances_request_builder.rb index b0e48b99b8..5690c64354 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/instances_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/instances_request_builder.rb @@ -51,10 +51,10 @@ def by_event_id1(event_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances{?startDateTime*,endDateTime*,%24top,%24skip,%24filter,%24count,%24orderby,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of event_collection_response ## @@ -63,31 +63,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EventCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a instances_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InstancesRequestBuilder.new(raw_url, @request_adapter) + end ## - # The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + # The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. class InstancesRequestBuilderGetQueryParameters ## @@ -97,12 +105,18 @@ class InstancesRequestBuilderGetQueryParameters # The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 attr_accessor :end_date_time ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -126,10 +140,14 @@ def get_query_parameter(original_name) return "%24count" when "end_date_time" return "endDateTime" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/accept/accept_post_request_body.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/accept/accept_post_request_body.rb index 36478f200c..c852720827 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/accept/accept_post_request_body.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/accept/accept_post_request_body.rb @@ -30,15 +30,15 @@ class AcceptPostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -60,7 +60,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new acceptPostRequestBody and sets the default values. + ## Instantiates a new AcceptPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/accept/accept_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/accept/accept_request_builder.rb index 9e844511d9..597242ec29 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/accept/accept_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/accept/accept_request_builder.rb @@ -44,8 +44,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,16 +56,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a accept_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AcceptRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.rb index c85a5b02de..766bd1497e 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.rb @@ -56,10 +56,10 @@ def by_attachment_id(attachment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of attachment objects attached to an event. + ## The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment_collection_response ## @@ -68,12 +68,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + ## Create new navigation property to attachments for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -84,30 +83,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of attachment objects attached to an event. + ## The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + ## Create new navigation property to attachments for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -115,20 +113,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of attachment objects attached to an event. + # The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. class AttachmentsRequestBuilderGetQueryParameters ## @@ -144,6 +151,9 @@ class AttachmentsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -168,6 +178,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/count/count_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/count/count_request_builder.rb index cd52600cf5..21d0af1535 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/count/count_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -75,6 +83,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -84,6 +95,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/create_upload_session/create_upload_session_post_request_body.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/create_upload_session/create_upload_session_post_request_body.rb index 9e1ca05121..b21ea19124 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/create_upload_session/create_upload_session_post_request_body.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/create_upload_session/create_upload_session_post_request_body.rb @@ -30,15 +30,15 @@ class CreateUploadSessionPostRequestBody # The AttachmentItem property @attachment_item ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -60,7 +60,7 @@ def attachment_item=(value) @attachment_item = value end ## - ## Instantiates a new createUploadSessionPostRequestBody and sets the default values. + ## Instantiates a new CreateUploadSessionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/create_upload_session/create_upload_session_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/create_upload_session/create_upload_session_request_builder.rb index de39ebb444..0bf3ce08b2 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/create_upload_session/create_upload_session_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/create_upload_session/create_upload_session_request_builder.rb @@ -36,7 +36,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession") end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of upload_session @@ -47,12 +47,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UploadSession.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -60,17 +59,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a create_upload_session_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreateUploadSessionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/item/attachment_item_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/item/attachment_item_request_builder.rb index 90c8d0b9d8..a409a716b4 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/item/attachment_item_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/item/attachment_item_request_builder.rb @@ -33,10 +33,10 @@ class AttachmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24expand,%24select}") end ## - ## Delete an attachment from a user calendar event, mail message, or group post. + ## Delete navigation property attachments for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,24 +58,24 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete an attachment from a user calendar event, mail message, or group post. + ## Delete navigation property attachments for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -86,17 +85,26 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/calendar/calendar_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/calendar/calendar_request_builder.rb index 387bf6bf5b..0e47a2a8dc 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/calendar/calendar_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/calendar/calendar_request_builder.rb @@ -31,7 +31,7 @@ class CalendarRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/calendar{?%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/calendar{?%24expand,%24select}") end ## ## The calendar that contains the event. Navigation property. Read-only. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Calendar.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,22 +53,34 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a calendar_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CalendarRequestBuilder.new(raw_url, @request_adapter) + end ## # The calendar that contains the event. Navigation property. Read-only. class CalendarRequestBuilderGetQueryParameters + ## + # Expand related entities + attr_accessor :expand ## # Select properties to be returned attr_accessor :select @@ -81,6 +92,8 @@ class CalendarRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "expand" + return "%24expand" when "select" return "%24select" else diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/cancel/cancel_post_request_body.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/cancel/cancel_post_request_body.rb index d70334bf10..59e32eb883 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/cancel/cancel_post_request_body.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/cancel/cancel_post_request_body.rb @@ -27,15 +27,15 @@ class CancelPostRequestBody # The Comment property @comment ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -57,7 +57,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new cancelPostRequestBody and sets the default values. + ## Instantiates a new CancelPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/cancel/cancel_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/cancel/cancel_request_builder.rb index b4d7d3b8e8..cdab61b7d6 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/cancel/cancel_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/cancel/cancel_request_builder.rb @@ -44,8 +44,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,16 +56,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cancel_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CancelRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/decline/decline_post_request_body.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/decline/decline_post_request_body.rb index bc23a70cf8..de986b38fc 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/decline/decline_post_request_body.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/decline/decline_post_request_body.rb @@ -34,15 +34,15 @@ class DeclinePostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -64,7 +64,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new declinePostRequestBody and sets the default values. + ## Instantiates a new DeclinePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/decline/decline_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/decline/decline_request_builder.rb index 2693901a3a..f0d40589ef 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/decline/decline_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/decline/decline_request_builder.rb @@ -44,8 +44,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,16 +56,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a decline_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeclineRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/dismiss_reminder/dismiss_reminder_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/dismiss_reminder/dismiss_reminder_request_builder.rb index ef65b73e93..8d944b59e5 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/dismiss_reminder/dismiss_reminder_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/dismiss_reminder/dismiss_reminder_request_builder.rb @@ -42,8 +42,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,15 +52,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dismiss_reminder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DismissReminderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/event_item_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/event_item_request_builder.rb index 6c0e8d315e..7356eb9ce2 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/event_item_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/event_item_request_builder.rb @@ -17,6 +17,7 @@ require_relative './extensions/extensions_request_builder' require_relative './forward/forward_request_builder' require_relative './item' +require_relative './permanent_delete/permanent_delete_request_builder' require_relative './snooze_reminder/snooze_reminder_request_builder' require_relative './tentatively_accept/tentatively_accept_request_builder' @@ -73,6 +74,11 @@ def forward() return MicrosoftGraph::Groups::Item::Calendar::CalendarView::Item::Instances::Item::Forward::ForwardRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the permanentDelete method. + def permanent_delete() + return MicrosoftGraph::Groups::Item::Calendar::CalendarView::Item::Instances::Item::PermanentDelete::PermanentDeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to call the snoozeReminder method. def snooze_reminder() return MicrosoftGraph::Groups::Item::Calendar::CalendarView::Item::Instances::Item::SnoozeReminder::SnoozeReminderRequestBuilder.new(@path_parameters, @request_adapter) @@ -89,10 +95,10 @@ def tentatively_accept() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}{?startDateTime*,endDateTime*,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24expand,%24select}") end ## - ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of event ## @@ -101,37 +107,48 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a event_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EventItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + # The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. class EventItemRequestBuilderGetQueryParameters ## # The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 attr_accessor :end_date_time ## + # Expand related entities + attr_accessor :expand + ## # Select properties to be returned attr_accessor :select ## @@ -147,6 +164,8 @@ def get_query_parameter(original_name) case original_name when "end_date_time" return "endDateTime" + when "expand" + return "%24expand" when "select" return "%24select" when "start_date_time" diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/extensions/count/count_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/extensions/count/count_request_builder.rb index 0b7e017f53..53926e7340 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/extensions/count/count_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/extensions/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/extensions/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/extensions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -75,6 +83,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -84,6 +95,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/extensions/extensions_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/extensions/extensions_request_builder.rb index dd8d37b884..7c774e2c2c 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/extensions/extensions_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/extensions/extensions_request_builder.rb @@ -50,10 +50,10 @@ def by_extension_id(extension_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension_collection_response ## @@ -62,12 +62,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExtensionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + ## Create new navigation property to extensions for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension @@ -78,30 +77,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + ## Create new navigation property to extensions for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extensions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + # The collection of open extensions defined for the event. Nullable. class ExtensionsRequestBuilderGetQueryParameters ## @@ -138,6 +145,9 @@ class ExtensionsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -162,6 +172,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/extensions/item/extension_item_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/extensions/item/extension_item_request_builder.rb index 23541e671b..9c57ce7de1 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/extensions/item/extension_item_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/extensions/item/extension_item_request_builder.rb @@ -33,7 +33,7 @@ class ExtensionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/extensions/{extension%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/extensions/{extension%2Did}{?%24expand,%24select}") end ## ## Delete navigation property extensions for groups @@ -45,12 +45,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,31 +83,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,20 +120,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extension_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + # The collection of open extensions defined for the event. Nullable. class ExtensionItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/forward/forward_post_request_body.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/forward/forward_post_request_body.rb index dbd4ab30ba..b4df2d9d3e 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/forward/forward_post_request_body.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/forward/forward_post_request_body.rb @@ -31,15 +31,15 @@ class ForwardPostRequestBody # The ToRecipients property @to_recipients ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -61,7 +61,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new forwardPostRequestBody and sets the default values. + ## Instantiates a new ForwardPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/forward/forward_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/forward/forward_request_builder.rb index 83582834a5..d0885fee2a 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/forward/forward_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/forward/forward_request_builder.rb @@ -33,7 +33,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/forward") end ## - ## This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + ## This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -44,12 +44,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + ## This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -57,16 +56,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a forward_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ForwardRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/permanent_delete/permanent_delete.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/permanent_delete/permanent_delete.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/permanent_delete/permanent_delete_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/permanent_delete/permanent_delete_request_builder.rb new file mode 100644 index 0000000000..52875f2fd6 --- /dev/null +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/permanent_delete/permanent_delete_request_builder.rb @@ -0,0 +1,83 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../groups' +require_relative '../../../../../../item' +require_relative '../../../../../calendar' +require_relative '../../../../calendar_view' +require_relative '../../../item' +require_relative '../../instances' +require_relative '../item' +require_relative './permanent_delete' + +module MicrosoftGraph + module Groups + module Item + module Calendar + module CalendarView + module Item + module Instances + module Item + module PermanentDelete + ## + # Provides operations to call the permanentDelete method. + class PermanentDeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new PermanentDeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/permanentDelete") + end + ## + ## Invoke action permanentDelete + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action permanentDelete + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a permanent_delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PermanentDeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/snooze_reminder/snooze_reminder_post_request_body.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/snooze_reminder/snooze_reminder_post_request_body.rb index c036f9ed1d..9e5ef9db88 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/snooze_reminder/snooze_reminder_post_request_body.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/snooze_reminder/snooze_reminder_post_request_body.rb @@ -28,22 +28,22 @@ class SnoozeReminderPostRequestBody # The NewReminderTime property @new_reminder_time ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new snoozeReminderPostRequestBody and sets the default values. + ## Instantiates a new SnoozeReminderPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/snooze_reminder/snooze_reminder_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/snooze_reminder/snooze_reminder_request_builder.rb index 8bb1b181f6..c8dd22b6ae 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/snooze_reminder/snooze_reminder_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/snooze_reminder/snooze_reminder_request_builder.rb @@ -44,8 +44,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,16 +56,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a snooze_reminder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SnoozeReminderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/tentatively_accept/tentatively_accept_post_request_body.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/tentatively_accept/tentatively_accept_post_request_body.rb index f65b4c7951..a09c5eaa5b 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/tentatively_accept/tentatively_accept_post_request_body.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/tentatively_accept/tentatively_accept_post_request_body.rb @@ -34,15 +34,15 @@ class TentativelyAcceptPostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -64,7 +64,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new tentativelyAcceptPostRequestBody and sets the default values. + ## Instantiates a new TentativelyAcceptPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/tentatively_accept/tentatively_accept_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/tentatively_accept/tentatively_accept_request_builder.rb index 7f9f99810c..9b116d349d 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/tentatively_accept/tentatively_accept_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/tentatively_accept/tentatively_accept_request_builder.rb @@ -44,8 +44,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,16 +56,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a tentatively_accept_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TentativelyAcceptRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/calendar_view/item/permanent_delete/permanent_delete.rb b/lib/groups/item/calendar/calendar_view/item/permanent_delete/permanent_delete.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/calendar/calendar_view/item/permanent_delete/permanent_delete_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/permanent_delete/permanent_delete_request_builder.rb new file mode 100644 index 0000000000..761035920c --- /dev/null +++ b/lib/groups/item/calendar/calendar_view/item/permanent_delete/permanent_delete_request_builder.rb @@ -0,0 +1,77 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../calendar' +require_relative '../../calendar_view' +require_relative '../item' +require_relative './permanent_delete' + +module MicrosoftGraph + module Groups + module Item + module Calendar + module CalendarView + module Item + module PermanentDelete + ## + # Provides operations to call the permanentDelete method. + class PermanentDeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new PermanentDeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/permanentDelete") + end + ## + ## Invoke action permanentDelete + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action permanentDelete + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a permanent_delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PermanentDeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/calendar/calendar_view/item/snooze_reminder/snooze_reminder_post_request_body.rb b/lib/groups/item/calendar/calendar_view/item/snooze_reminder/snooze_reminder_post_request_body.rb index 3b4e49fef5..86edb06bcd 100644 --- a/lib/groups/item/calendar/calendar_view/item/snooze_reminder/snooze_reminder_post_request_body.rb +++ b/lib/groups/item/calendar/calendar_view/item/snooze_reminder/snooze_reminder_post_request_body.rb @@ -24,22 +24,22 @@ class SnoozeReminderPostRequestBody # The NewReminderTime property @new_reminder_time ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new snoozeReminderPostRequestBody and sets the default values. + ## Instantiates a new SnoozeReminderPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/calendar_view/item/snooze_reminder/snooze_reminder_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/snooze_reminder/snooze_reminder_request_builder.rb index 88eac88b67..f80e615ad2 100644 --- a/lib/groups/item/calendar/calendar_view/item/snooze_reminder/snooze_reminder_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/snooze_reminder/snooze_reminder_request_builder.rb @@ -40,8 +40,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,16 +52,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a snooze_reminder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SnoozeReminderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/calendar_view/item/tentatively_accept/tentatively_accept_post_request_body.rb b/lib/groups/item/calendar/calendar_view/item/tentatively_accept/tentatively_accept_post_request_body.rb index 7d0ca3143d..e5674ed0ae 100644 --- a/lib/groups/item/calendar/calendar_view/item/tentatively_accept/tentatively_accept_post_request_body.rb +++ b/lib/groups/item/calendar/calendar_view/item/tentatively_accept/tentatively_accept_post_request_body.rb @@ -30,15 +30,15 @@ class TentativelyAcceptPostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -60,7 +60,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new tentativelyAcceptPostRequestBody and sets the default values. + ## Instantiates a new TentativelyAcceptPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/calendar_view/item/tentatively_accept/tentatively_accept_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/tentatively_accept/tentatively_accept_request_builder.rb index de51a1f857..4ded36bd4e 100644 --- a/lib/groups/item/calendar/calendar_view/item/tentatively_accept/tentatively_accept_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/tentatively_accept/tentatively_accept_request_builder.rb @@ -40,8 +40,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,16 +52,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a tentatively_accept_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TentativelyAcceptRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/events/count/count_request_builder.rb b/lib/groups/item/calendar/events/count/count_request_builder.rb index 707dcdec40..b81b4f1305 100644 --- a/lib/groups/item/calendar/events/count/count_request_builder.rb +++ b/lib/groups/item/calendar/events/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -67,6 +75,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -76,6 +87,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/calendar/events/delta/delta.rb b/lib/groups/item/calendar/events/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/groups/item/calendar/events/delta/delta.rb +++ b/lib/groups/item/calendar/events/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/groups/item/calendar/events/delta/delta_get_response.rb b/lib/groups/item/calendar/events/delta/delta_get_response.rb new file mode 100644 index 0000000000..819e2d86b6 --- /dev/null +++ b/lib/groups/item/calendar/events/delta/delta_get_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_delta_function_response' +require_relative '../../../../../models/event' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../calendar' +require_relative '../events' +require_relative './delta' + +module MicrosoftGraph + module Groups + module Item + module Calendar + module Events + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a event + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/calendar/events/delta/delta_request_builder.rb b/lib/groups/item/calendar/events/delta/delta_request_builder.rb index 9bca97f85b..3e08ee3ca1 100644 --- a/lib/groups/item/calendar/events/delta/delta_request_builder.rb +++ b/lib/groups/item/calendar/events/delta/delta_request_builder.rb @@ -24,21 +24,20 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Calendar::Events::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Calendar::Events::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -70,6 +78,9 @@ class DeltaRequestBuilderGetQueryParameters # The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 attr_accessor :end_date_time ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -102,6 +113,8 @@ def get_query_parameter(original_name) return "%24count" when "end_date_time" return "endDateTime" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/calendar/events/delta/delta_response.rb b/lib/groups/item/calendar/events/delta/delta_response.rb deleted file mode 100644 index 87cb06074d..0000000000 --- a/lib/groups/item/calendar/events/delta/delta_response.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_delta_function_response' -require_relative '../../../../../models/event' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../calendar' -require_relative '../events' -require_relative './delta' - -module MicrosoftGraph - module Groups - module Item - module Calendar - module Events - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a event - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/calendar/events/events_request_builder.rb b/lib/groups/item/calendar/events/events_request_builder.rb index 6bfe2b57ac..72ab2d84ce 100644 --- a/lib/groups/item/calendar/events/events_request_builder.rb +++ b/lib/groups/item/calendar/events/events_request_builder.rb @@ -48,10 +48,10 @@ def by_event_id(event_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + ## The events in the calendar. Navigation property. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of event_collection_response ## @@ -60,12 +60,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EventCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. + ## Create new navigation property to events for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of event @@ -76,30 +75,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + ## The events in the calendar. Navigation property. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. + ## Create new navigation property to events for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -107,20 +105,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a events_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EventsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + # The events in the calendar. Navigation property. Read-only. class EventsRequestBuilderGetQueryParameters ## @@ -136,6 +143,9 @@ class EventsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -160,6 +170,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/calendar/events/item/accept/accept_post_request_body.rb b/lib/groups/item/calendar/events/item/accept/accept_post_request_body.rb index b10b9c5f47..26d25216c2 100644 --- a/lib/groups/item/calendar/events/item/accept/accept_post_request_body.rb +++ b/lib/groups/item/calendar/events/item/accept/accept_post_request_body.rb @@ -26,15 +26,15 @@ class AcceptPostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -56,7 +56,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new acceptPostRequestBody and sets the default values. + ## Instantiates a new AcceptPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/events/item/accept/accept_request_builder.rb b/lib/groups/item/calendar/events/item/accept/accept_request_builder.rb index 6596a06926..fd6fd116ce 100644 --- a/lib/groups/item/calendar/events/item/accept/accept_request_builder.rb +++ b/lib/groups/item/calendar/events/item/accept/accept_request_builder.rb @@ -40,8 +40,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,16 +52,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a accept_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AcceptRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/events/item/attachments/attachments_request_builder.rb b/lib/groups/item/calendar/events/item/attachments/attachments_request_builder.rb index 6bd7077424..fb303562ae 100644 --- a/lib/groups/item/calendar/events/item/attachments/attachments_request_builder.rb +++ b/lib/groups/item/calendar/events/item/attachments/attachments_request_builder.rb @@ -52,10 +52,10 @@ def by_attachment_id(attachment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of attachment objects attached to an event. + ## The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment_collection_response ## @@ -64,12 +64,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + ## Create new navigation property to attachments for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -80,30 +79,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of attachment objects attached to an event. + ## The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + ## Create new navigation property to attachments for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -111,20 +109,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of attachment objects attached to an event. + # The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. class AttachmentsRequestBuilderGetQueryParameters ## @@ -140,6 +147,9 @@ class AttachmentsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -164,6 +174,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/calendar/events/item/attachments/count/count_request_builder.rb b/lib/groups/item/calendar/events/item/attachments/count/count_request_builder.rb index 4d0df159c4..a03f262d3a 100644 --- a/lib/groups/item/calendar/events/item/attachments/count/count_request_builder.rb +++ b/lib/groups/item/calendar/events/item/attachments/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -71,6 +79,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -80,6 +91,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/calendar/events/item/attachments/create_upload_session/create_upload_session_post_request_body.rb b/lib/groups/item/calendar/events/item/attachments/create_upload_session/create_upload_session_post_request_body.rb index eab45adc9d..aa60e334f3 100644 --- a/lib/groups/item/calendar/events/item/attachments/create_upload_session/create_upload_session_post_request_body.rb +++ b/lib/groups/item/calendar/events/item/attachments/create_upload_session/create_upload_session_post_request_body.rb @@ -26,15 +26,15 @@ class CreateUploadSessionPostRequestBody # The AttachmentItem property @attachment_item ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -56,7 +56,7 @@ def attachment_item=(value) @attachment_item = value end ## - ## Instantiates a new createUploadSessionPostRequestBody and sets the default values. + ## Instantiates a new CreateUploadSessionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/events/item/attachments/create_upload_session/create_upload_session_request_builder.rb b/lib/groups/item/calendar/events/item/attachments/create_upload_session/create_upload_session_request_builder.rb index 62e603b67a..6ca817a38a 100644 --- a/lib/groups/item/calendar/events/item/attachments/create_upload_session/create_upload_session_request_builder.rb +++ b/lib/groups/item/calendar/events/item/attachments/create_upload_session/create_upload_session_request_builder.rb @@ -32,7 +32,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments/createUploadSession") end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of upload_session @@ -43,12 +43,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UploadSession.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a create_upload_session_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreateUploadSessionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/events/item/attachments/item/attachment_item_request_builder.rb b/lib/groups/item/calendar/events/item/attachments/item/attachment_item_request_builder.rb index 95e7208402..dddaa2683d 100644 --- a/lib/groups/item/calendar/events/item/attachments/item/attachment_item_request_builder.rb +++ b/lib/groups/item/calendar/events/item/attachments/item/attachment_item_request_builder.rb @@ -29,10 +29,10 @@ class AttachmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments/{attachment%2Did}{?%24expand,%24select}") end ## - ## Delete an attachment from a user calendar event, mail message, or group post. + ## Delete navigation property attachments for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -41,8 +41,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,24 +54,24 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete an attachment from a user calendar event, mail message, or group post. + ## Delete navigation property attachments for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -82,17 +81,26 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. diff --git a/lib/groups/item/calendar/events/item/calendar/calendar_request_builder.rb b/lib/groups/item/calendar/events/item/calendar/calendar_request_builder.rb index e1f2df5631..c051048676 100644 --- a/lib/groups/item/calendar/events/item/calendar/calendar_request_builder.rb +++ b/lib/groups/item/calendar/events/item/calendar/calendar_request_builder.rb @@ -27,7 +27,7 @@ class CalendarRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/calendar{?%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/calendar{?%24expand,%24select}") end ## ## The calendar that contains the event. Navigation property. Read-only. @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Calendar.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,22 +49,34 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a calendar_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CalendarRequestBuilder.new(raw_url, @request_adapter) + end ## # The calendar that contains the event. Navigation property. Read-only. class CalendarRequestBuilderGetQueryParameters + ## + # Expand related entities + attr_accessor :expand ## # Select properties to be returned attr_accessor :select @@ -77,6 +88,8 @@ class CalendarRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "expand" + return "%24expand" when "select" return "%24select" else diff --git a/lib/groups/item/calendar/events/item/cancel/cancel_post_request_body.rb b/lib/groups/item/calendar/events/item/cancel/cancel_post_request_body.rb index 7d1df2dd5d..7f46ac3c59 100644 --- a/lib/groups/item/calendar/events/item/cancel/cancel_post_request_body.rb +++ b/lib/groups/item/calendar/events/item/cancel/cancel_post_request_body.rb @@ -23,15 +23,15 @@ class CancelPostRequestBody # The Comment property @comment ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -53,7 +53,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new cancelPostRequestBody and sets the default values. + ## Instantiates a new CancelPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/events/item/cancel/cancel_request_builder.rb b/lib/groups/item/calendar/events/item/cancel/cancel_request_builder.rb index 06f0af2afc..b8be9a8398 100644 --- a/lib/groups/item/calendar/events/item/cancel/cancel_request_builder.rb +++ b/lib/groups/item/calendar/events/item/cancel/cancel_request_builder.rb @@ -40,8 +40,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,16 +52,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cancel_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CancelRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/events/item/decline/decline_post_request_body.rb b/lib/groups/item/calendar/events/item/decline/decline_post_request_body.rb index 63c1fddeb5..c92c1cd538 100644 --- a/lib/groups/item/calendar/events/item/decline/decline_post_request_body.rb +++ b/lib/groups/item/calendar/events/item/decline/decline_post_request_body.rb @@ -30,15 +30,15 @@ class DeclinePostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -60,7 +60,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new declinePostRequestBody and sets the default values. + ## Instantiates a new DeclinePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/events/item/decline/decline_request_builder.rb b/lib/groups/item/calendar/events/item/decline/decline_request_builder.rb index 22cb10e9f4..99c7e032c3 100644 --- a/lib/groups/item/calendar/events/item/decline/decline_request_builder.rb +++ b/lib/groups/item/calendar/events/item/decline/decline_request_builder.rb @@ -40,8 +40,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,16 +52,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a decline_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeclineRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/events/item/dismiss_reminder/dismiss_reminder_request_builder.rb b/lib/groups/item/calendar/events/item/dismiss_reminder/dismiss_reminder_request_builder.rb index 02a9770c74..79c2de2ab5 100644 --- a/lib/groups/item/calendar/events/item/dismiss_reminder/dismiss_reminder_request_builder.rb +++ b/lib/groups/item/calendar/events/item/dismiss_reminder/dismiss_reminder_request_builder.rb @@ -38,8 +38,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,15 +48,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dismiss_reminder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DismissReminderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/events/item/event_item_request_builder.rb b/lib/groups/item/calendar/events/item/event_item_request_builder.rb index 310a009c79..6b49749a97 100644 --- a/lib/groups/item/calendar/events/item/event_item_request_builder.rb +++ b/lib/groups/item/calendar/events/item/event_item_request_builder.rb @@ -16,6 +16,7 @@ require_relative './forward/forward_request_builder' require_relative './instances/instances_request_builder' require_relative './item' +require_relative './permanent_delete/permanent_delete_request_builder' require_relative './snooze_reminder/snooze_reminder_request_builder' require_relative './tentatively_accept/tentatively_accept_request_builder' @@ -75,6 +76,11 @@ def instances() return MicrosoftGraph::Groups::Item::Calendar::Events::Item::Instances::InstancesRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the permanentDelete method. + def permanent_delete() + return MicrosoftGraph::Groups::Item::Calendar::Events::Item::PermanentDelete::PermanentDeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to call the snoozeReminder method. def snooze_reminder() return MicrosoftGraph::Groups::Item::Calendar::Events::Item::SnoozeReminder::SnoozeReminderRequestBuilder.new(@path_parameters, @request_adapter) @@ -91,7 +97,7 @@ def tentatively_accept() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}{?%24expand,%24select}") end ## ## Delete navigation property events for groups @@ -103,8 +109,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -117,8 +122,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -133,8 +137,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -144,13 +147,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -160,15 +164,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -180,17 +184,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a event_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EventItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The events in the calendar. Navigation property. Read-only. diff --git a/lib/groups/item/calendar/events/item/extensions/count/count_request_builder.rb b/lib/groups/item/calendar/events/item/extensions/count/count_request_builder.rb index 79ea80fb31..f235bc8f75 100644 --- a/lib/groups/item/calendar/events/item/extensions/count/count_request_builder.rb +++ b/lib/groups/item/calendar/events/item/extensions/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/extensions/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/extensions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -71,6 +79,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -80,6 +91,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/calendar/events/item/extensions/extensions_request_builder.rb b/lib/groups/item/calendar/events/item/extensions/extensions_request_builder.rb index 7be7f0313b..77dcc55415 100644 --- a/lib/groups/item/calendar/events/item/extensions/extensions_request_builder.rb +++ b/lib/groups/item/calendar/events/item/extensions/extensions_request_builder.rb @@ -46,10 +46,10 @@ def by_extension_id(extension_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension_collection_response ## @@ -58,12 +58,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExtensionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + ## Create new navigation property to extensions for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension @@ -74,30 +73,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + ## Create new navigation property to extensions for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extensions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + # The collection of open extensions defined for the event. Nullable. class ExtensionsRequestBuilderGetQueryParameters ## @@ -134,6 +141,9 @@ class ExtensionsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -158,6 +168,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/calendar/events/item/extensions/item/extension_item_request_builder.rb b/lib/groups/item/calendar/events/item/extensions/item/extension_item_request_builder.rb index 94137da782..550fe6afa0 100644 --- a/lib/groups/item/calendar/events/item/extensions/item/extension_item_request_builder.rb +++ b/lib/groups/item/calendar/events/item/extensions/item/extension_item_request_builder.rb @@ -29,7 +29,7 @@ class ExtensionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/extensions/{extension%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/extensions/{extension%2Did}{?%24expand,%24select}") end ## ## Delete navigation property extensions for groups @@ -41,12 +41,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,31 +79,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,20 +116,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extension_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + # The collection of open extensions defined for the event. Nullable. class ExtensionItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/calendar/events/item/forward/forward_post_request_body.rb b/lib/groups/item/calendar/events/item/forward/forward_post_request_body.rb index c8702d59c7..4f4792985b 100644 --- a/lib/groups/item/calendar/events/item/forward/forward_post_request_body.rb +++ b/lib/groups/item/calendar/events/item/forward/forward_post_request_body.rb @@ -27,15 +27,15 @@ class ForwardPostRequestBody # The ToRecipients property @to_recipients ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -57,7 +57,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new forwardPostRequestBody and sets the default values. + ## Instantiates a new ForwardPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/events/item/forward/forward_request_builder.rb b/lib/groups/item/calendar/events/item/forward/forward_request_builder.rb index 192a6b0e4c..83fcee2eaa 100644 --- a/lib/groups/item/calendar/events/item/forward/forward_request_builder.rb +++ b/lib/groups/item/calendar/events/item/forward/forward_request_builder.rb @@ -29,7 +29,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/forward") end ## - ## This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + ## This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -40,12 +40,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + ## This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -53,16 +52,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a forward_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ForwardRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/events/item/instances/count/count_request_builder.rb b/lib/groups/item/calendar/events/item/instances/count/count_request_builder.rb index 7a902da4e1..a304044d67 100644 --- a/lib/groups/item/calendar/events/item/instances/count/count_request_builder.rb +++ b/lib/groups/item/calendar/events/item/instances/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -71,6 +79,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -80,6 +91,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/calendar/events/item/instances/delta/delta.rb b/lib/groups/item/calendar/events/item/instances/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/groups/item/calendar/events/item/instances/delta/delta.rb +++ b/lib/groups/item/calendar/events/item/instances/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/groups/item/calendar/events/item/instances/delta/delta_get_response.rb b/lib/groups/item/calendar/events/item/instances/delta/delta_get_response.rb new file mode 100644 index 0000000000..3eeabef7e2 --- /dev/null +++ b/lib/groups/item/calendar/events/item/instances/delta/delta_get_response.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/base_delta_function_response' +require_relative '../../../../../../../models/event' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../calendar' +require_relative '../../../events' +require_relative '../../item' +require_relative '../instances' +require_relative './delta' + +module MicrosoftGraph + module Groups + module Item + module Calendar + module Events + module Item + module Instances + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a event + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/calendar/events/item/instances/delta/delta_request_builder.rb b/lib/groups/item/calendar/events/item/instances/delta/delta_request_builder.rb index d726e1206a..caef6e7528 100644 --- a/lib/groups/item/calendar/events/item/instances/delta/delta_request_builder.rb +++ b/lib/groups/item/calendar/events/item/instances/delta/delta_request_builder.rb @@ -28,21 +28,20 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Calendar::Events::Item::Instances::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Calendar::Events::Item::Instances::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -74,6 +82,9 @@ class DeltaRequestBuilderGetQueryParameters # The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 attr_accessor :end_date_time ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -106,6 +117,8 @@ def get_query_parameter(original_name) return "%24count" when "end_date_time" return "endDateTime" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/calendar/events/item/instances/delta/delta_response.rb b/lib/groups/item/calendar/events/item/instances/delta/delta_response.rb deleted file mode 100644 index 500a5098b2..0000000000 --- a/lib/groups/item/calendar/events/item/instances/delta/delta_response.rb +++ /dev/null @@ -1,84 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/base_delta_function_response' -require_relative '../../../../../../../models/event' -require_relative '../../../../../../groups' -require_relative '../../../../../item' -require_relative '../../../../calendar' -require_relative '../../../events' -require_relative '../../item' -require_relative '../instances' -require_relative './delta' - -module MicrosoftGraph - module Groups - module Item - module Calendar - module Events - module Item - module Instances - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a event - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/calendar/events/item/instances/instances_request_builder.rb b/lib/groups/item/calendar/events/item/instances/instances_request_builder.rb index 75fbe9749a..bd46605712 100644 --- a/lib/groups/item/calendar/events/item/instances/instances_request_builder.rb +++ b/lib/groups/item/calendar/events/item/instances/instances_request_builder.rb @@ -51,10 +51,10 @@ def by_event_id1(event_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances{?startDateTime*,endDateTime*,%24top,%24skip,%24filter,%24count,%24orderby,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of event_collection_response ## @@ -63,31 +63,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EventCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a instances_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InstancesRequestBuilder.new(raw_url, @request_adapter) + end ## - # The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + # The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. class InstancesRequestBuilderGetQueryParameters ## @@ -97,12 +105,18 @@ class InstancesRequestBuilderGetQueryParameters # The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 attr_accessor :end_date_time ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -126,10 +140,14 @@ def get_query_parameter(original_name) return "%24count" when "end_date_time" return "endDateTime" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/calendar/events/item/instances/item/accept/accept_post_request_body.rb b/lib/groups/item/calendar/events/item/instances/item/accept/accept_post_request_body.rb index 696723563c..8c455ca08e 100644 --- a/lib/groups/item/calendar/events/item/instances/item/accept/accept_post_request_body.rb +++ b/lib/groups/item/calendar/events/item/instances/item/accept/accept_post_request_body.rb @@ -30,15 +30,15 @@ class AcceptPostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -60,7 +60,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new acceptPostRequestBody and sets the default values. + ## Instantiates a new AcceptPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/events/item/instances/item/accept/accept_request_builder.rb b/lib/groups/item/calendar/events/item/instances/item/accept/accept_request_builder.rb index 2f8b320fa7..a25ccad859 100644 --- a/lib/groups/item/calendar/events/item/instances/item/accept/accept_request_builder.rb +++ b/lib/groups/item/calendar/events/item/instances/item/accept/accept_request_builder.rb @@ -44,8 +44,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,16 +56,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a accept_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AcceptRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/events/item/instances/item/attachments/attachments_request_builder.rb b/lib/groups/item/calendar/events/item/instances/item/attachments/attachments_request_builder.rb index e728533d4e..81e98fb64f 100644 --- a/lib/groups/item/calendar/events/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/groups/item/calendar/events/item/instances/item/attachments/attachments_request_builder.rb @@ -56,10 +56,10 @@ def by_attachment_id(attachment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of attachment objects attached to an event. + ## The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment_collection_response ## @@ -68,12 +68,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + ## Create new navigation property to attachments for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -84,30 +83,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of attachment objects attached to an event. + ## The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + ## Create new navigation property to attachments for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -115,20 +113,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of attachment objects attached to an event. + # The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. class AttachmentsRequestBuilderGetQueryParameters ## @@ -144,6 +151,9 @@ class AttachmentsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -168,6 +178,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/calendar/events/item/instances/item/attachments/count/count_request_builder.rb b/lib/groups/item/calendar/events/item/instances/item/attachments/count/count_request_builder.rb index dc26bed767..2fba5344b5 100644 --- a/lib/groups/item/calendar/events/item/instances/item/attachments/count/count_request_builder.rb +++ b/lib/groups/item/calendar/events/item/instances/item/attachments/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -75,6 +83,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -84,6 +95,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/calendar/events/item/instances/item/attachments/create_upload_session/create_upload_session_post_request_body.rb b/lib/groups/item/calendar/events/item/instances/item/attachments/create_upload_session/create_upload_session_post_request_body.rb index d2ab411b00..cb6bbd218d 100644 --- a/lib/groups/item/calendar/events/item/instances/item/attachments/create_upload_session/create_upload_session_post_request_body.rb +++ b/lib/groups/item/calendar/events/item/instances/item/attachments/create_upload_session/create_upload_session_post_request_body.rb @@ -30,15 +30,15 @@ class CreateUploadSessionPostRequestBody # The AttachmentItem property @attachment_item ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -60,7 +60,7 @@ def attachment_item=(value) @attachment_item = value end ## - ## Instantiates a new createUploadSessionPostRequestBody and sets the default values. + ## Instantiates a new CreateUploadSessionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/events/item/instances/item/attachments/create_upload_session/create_upload_session_request_builder.rb b/lib/groups/item/calendar/events/item/instances/item/attachments/create_upload_session/create_upload_session_request_builder.rb index ebdd51dcdb..eaf191c871 100644 --- a/lib/groups/item/calendar/events/item/instances/item/attachments/create_upload_session/create_upload_session_request_builder.rb +++ b/lib/groups/item/calendar/events/item/instances/item/attachments/create_upload_session/create_upload_session_request_builder.rb @@ -36,7 +36,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession") end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of upload_session @@ -47,12 +47,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UploadSession.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -60,17 +59,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a create_upload_session_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreateUploadSessionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/events/item/instances/item/attachments/item/attachment_item_request_builder.rb b/lib/groups/item/calendar/events/item/instances/item/attachments/item/attachment_item_request_builder.rb index c160242163..51e3a141fa 100644 --- a/lib/groups/item/calendar/events/item/instances/item/attachments/item/attachment_item_request_builder.rb +++ b/lib/groups/item/calendar/events/item/instances/item/attachments/item/attachment_item_request_builder.rb @@ -33,10 +33,10 @@ class AttachmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24expand,%24select}") end ## - ## Delete an attachment from a user calendar event, mail message, or group post. + ## Delete navigation property attachments for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,24 +58,24 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete an attachment from a user calendar event, mail message, or group post. + ## Delete navigation property attachments for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -86,17 +85,26 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. diff --git a/lib/groups/item/calendar/events/item/instances/item/calendar/calendar_request_builder.rb b/lib/groups/item/calendar/events/item/instances/item/calendar/calendar_request_builder.rb index 8e0aa4be9d..de7d1c7286 100644 --- a/lib/groups/item/calendar/events/item/instances/item/calendar/calendar_request_builder.rb +++ b/lib/groups/item/calendar/events/item/instances/item/calendar/calendar_request_builder.rb @@ -31,7 +31,7 @@ class CalendarRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/calendar{?%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/calendar{?%24expand,%24select}") end ## ## The calendar that contains the event. Navigation property. Read-only. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Calendar.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,22 +53,34 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a calendar_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CalendarRequestBuilder.new(raw_url, @request_adapter) + end ## # The calendar that contains the event. Navigation property. Read-only. class CalendarRequestBuilderGetQueryParameters + ## + # Expand related entities + attr_accessor :expand ## # Select properties to be returned attr_accessor :select @@ -81,6 +92,8 @@ class CalendarRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "expand" + return "%24expand" when "select" return "%24select" else diff --git a/lib/groups/item/calendar/events/item/instances/item/cancel/cancel_post_request_body.rb b/lib/groups/item/calendar/events/item/instances/item/cancel/cancel_post_request_body.rb index 47f87edc1e..3b4a87c8cc 100644 --- a/lib/groups/item/calendar/events/item/instances/item/cancel/cancel_post_request_body.rb +++ b/lib/groups/item/calendar/events/item/instances/item/cancel/cancel_post_request_body.rb @@ -27,15 +27,15 @@ class CancelPostRequestBody # The Comment property @comment ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -57,7 +57,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new cancelPostRequestBody and sets the default values. + ## Instantiates a new CancelPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/events/item/instances/item/cancel/cancel_request_builder.rb b/lib/groups/item/calendar/events/item/instances/item/cancel/cancel_request_builder.rb index 06eb26f03c..ca2f1051cc 100644 --- a/lib/groups/item/calendar/events/item/instances/item/cancel/cancel_request_builder.rb +++ b/lib/groups/item/calendar/events/item/instances/item/cancel/cancel_request_builder.rb @@ -44,8 +44,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,16 +56,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cancel_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CancelRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/events/item/instances/item/decline/decline_post_request_body.rb b/lib/groups/item/calendar/events/item/instances/item/decline/decline_post_request_body.rb index eb34c40ab5..57d5910f6c 100644 --- a/lib/groups/item/calendar/events/item/instances/item/decline/decline_post_request_body.rb +++ b/lib/groups/item/calendar/events/item/instances/item/decline/decline_post_request_body.rb @@ -34,15 +34,15 @@ class DeclinePostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -64,7 +64,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new declinePostRequestBody and sets the default values. + ## Instantiates a new DeclinePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/events/item/instances/item/decline/decline_request_builder.rb b/lib/groups/item/calendar/events/item/instances/item/decline/decline_request_builder.rb index 49d9127a52..16d6d2a6fe 100644 --- a/lib/groups/item/calendar/events/item/instances/item/decline/decline_request_builder.rb +++ b/lib/groups/item/calendar/events/item/instances/item/decline/decline_request_builder.rb @@ -44,8 +44,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,16 +56,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a decline_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeclineRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/events/item/instances/item/dismiss_reminder/dismiss_reminder_request_builder.rb b/lib/groups/item/calendar/events/item/instances/item/dismiss_reminder/dismiss_reminder_request_builder.rb index f9753b62bf..7686cf7773 100644 --- a/lib/groups/item/calendar/events/item/instances/item/dismiss_reminder/dismiss_reminder_request_builder.rb +++ b/lib/groups/item/calendar/events/item/instances/item/dismiss_reminder/dismiss_reminder_request_builder.rb @@ -42,8 +42,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,15 +52,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dismiss_reminder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DismissReminderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/events/item/instances/item/event_item_request_builder.rb b/lib/groups/item/calendar/events/item/instances/item/event_item_request_builder.rb index ea310aae17..3533b237df 100644 --- a/lib/groups/item/calendar/events/item/instances/item/event_item_request_builder.rb +++ b/lib/groups/item/calendar/events/item/instances/item/event_item_request_builder.rb @@ -17,6 +17,7 @@ require_relative './extensions/extensions_request_builder' require_relative './forward/forward_request_builder' require_relative './item' +require_relative './permanent_delete/permanent_delete_request_builder' require_relative './snooze_reminder/snooze_reminder_request_builder' require_relative './tentatively_accept/tentatively_accept_request_builder' @@ -73,6 +74,11 @@ def forward() return MicrosoftGraph::Groups::Item::Calendar::Events::Item::Instances::Item::Forward::ForwardRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the permanentDelete method. + def permanent_delete() + return MicrosoftGraph::Groups::Item::Calendar::Events::Item::Instances::Item::PermanentDelete::PermanentDeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to call the snoozeReminder method. def snooze_reminder() return MicrosoftGraph::Groups::Item::Calendar::Events::Item::Instances::Item::SnoozeReminder::SnoozeReminderRequestBuilder.new(@path_parameters, @request_adapter) @@ -89,10 +95,10 @@ def tentatively_accept() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}{?startDateTime*,endDateTime*,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24expand,%24select}") end ## - ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of event ## @@ -101,37 +107,48 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a event_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EventItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + # The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. class EventItemRequestBuilderGetQueryParameters ## # The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 attr_accessor :end_date_time ## + # Expand related entities + attr_accessor :expand + ## # Select properties to be returned attr_accessor :select ## @@ -147,6 +164,8 @@ def get_query_parameter(original_name) case original_name when "end_date_time" return "endDateTime" + when "expand" + return "%24expand" when "select" return "%24select" when "start_date_time" diff --git a/lib/groups/item/calendar/events/item/instances/item/extensions/count/count_request_builder.rb b/lib/groups/item/calendar/events/item/instances/item/extensions/count/count_request_builder.rb index 1551224789..9e58ed124e 100644 --- a/lib/groups/item/calendar/events/item/instances/item/extensions/count/count_request_builder.rb +++ b/lib/groups/item/calendar/events/item/instances/item/extensions/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/extensions/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/extensions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -75,6 +83,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -84,6 +95,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/calendar/events/item/instances/item/extensions/extensions_request_builder.rb b/lib/groups/item/calendar/events/item/instances/item/extensions/extensions_request_builder.rb index 35f3424b0e..09332a21c5 100644 --- a/lib/groups/item/calendar/events/item/instances/item/extensions/extensions_request_builder.rb +++ b/lib/groups/item/calendar/events/item/instances/item/extensions/extensions_request_builder.rb @@ -50,10 +50,10 @@ def by_extension_id(extension_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension_collection_response ## @@ -62,12 +62,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExtensionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + ## Create new navigation property to extensions for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension @@ -78,30 +77,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + ## Create new navigation property to extensions for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extensions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + # The collection of open extensions defined for the event. Nullable. class ExtensionsRequestBuilderGetQueryParameters ## @@ -138,6 +145,9 @@ class ExtensionsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -162,6 +172,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/calendar/events/item/instances/item/extensions/item/extension_item_request_builder.rb b/lib/groups/item/calendar/events/item/instances/item/extensions/item/extension_item_request_builder.rb index 72f1c78908..b80cab3621 100644 --- a/lib/groups/item/calendar/events/item/instances/item/extensions/item/extension_item_request_builder.rb +++ b/lib/groups/item/calendar/events/item/instances/item/extensions/item/extension_item_request_builder.rb @@ -33,7 +33,7 @@ class ExtensionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/extensions/{extension%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/extensions/{extension%2Did}{?%24expand,%24select}") end ## ## Delete navigation property extensions for groups @@ -45,12 +45,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,31 +83,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,20 +120,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extension_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + # The collection of open extensions defined for the event. Nullable. class ExtensionItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/calendar/events/item/instances/item/forward/forward_post_request_body.rb b/lib/groups/item/calendar/events/item/instances/item/forward/forward_post_request_body.rb index cec03980f6..bb13dea940 100644 --- a/lib/groups/item/calendar/events/item/instances/item/forward/forward_post_request_body.rb +++ b/lib/groups/item/calendar/events/item/instances/item/forward/forward_post_request_body.rb @@ -31,15 +31,15 @@ class ForwardPostRequestBody # The ToRecipients property @to_recipients ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -61,7 +61,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new forwardPostRequestBody and sets the default values. + ## Instantiates a new ForwardPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/events/item/instances/item/forward/forward_request_builder.rb b/lib/groups/item/calendar/events/item/instances/item/forward/forward_request_builder.rb index 184e85ef6f..3ccebc46e1 100644 --- a/lib/groups/item/calendar/events/item/instances/item/forward/forward_request_builder.rb +++ b/lib/groups/item/calendar/events/item/instances/item/forward/forward_request_builder.rb @@ -33,7 +33,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/forward") end ## - ## This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + ## This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -44,12 +44,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + ## This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -57,16 +56,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a forward_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ForwardRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/events/item/instances/item/permanent_delete/permanent_delete.rb b/lib/groups/item/calendar/events/item/instances/item/permanent_delete/permanent_delete.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/calendar/events/item/instances/item/permanent_delete/permanent_delete_request_builder.rb b/lib/groups/item/calendar/events/item/instances/item/permanent_delete/permanent_delete_request_builder.rb new file mode 100644 index 0000000000..77520c168a --- /dev/null +++ b/lib/groups/item/calendar/events/item/instances/item/permanent_delete/permanent_delete_request_builder.rb @@ -0,0 +1,83 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../groups' +require_relative '../../../../../../item' +require_relative '../../../../../calendar' +require_relative '../../../../events' +require_relative '../../../item' +require_relative '../../instances' +require_relative '../item' +require_relative './permanent_delete' + +module MicrosoftGraph + module Groups + module Item + module Calendar + module Events + module Item + module Instances + module Item + module PermanentDelete + ## + # Provides operations to call the permanentDelete method. + class PermanentDeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new PermanentDeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/permanentDelete") + end + ## + ## Invoke action permanentDelete + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action permanentDelete + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a permanent_delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PermanentDeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/calendar/events/item/instances/item/snooze_reminder/snooze_reminder_post_request_body.rb b/lib/groups/item/calendar/events/item/instances/item/snooze_reminder/snooze_reminder_post_request_body.rb index cf5d7fb2b9..2ad22688c7 100644 --- a/lib/groups/item/calendar/events/item/instances/item/snooze_reminder/snooze_reminder_post_request_body.rb +++ b/lib/groups/item/calendar/events/item/instances/item/snooze_reminder/snooze_reminder_post_request_body.rb @@ -28,22 +28,22 @@ class SnoozeReminderPostRequestBody # The NewReminderTime property @new_reminder_time ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new snoozeReminderPostRequestBody and sets the default values. + ## Instantiates a new SnoozeReminderPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/events/item/instances/item/snooze_reminder/snooze_reminder_request_builder.rb b/lib/groups/item/calendar/events/item/instances/item/snooze_reminder/snooze_reminder_request_builder.rb index 96023e99d0..43f36efaae 100644 --- a/lib/groups/item/calendar/events/item/instances/item/snooze_reminder/snooze_reminder_request_builder.rb +++ b/lib/groups/item/calendar/events/item/instances/item/snooze_reminder/snooze_reminder_request_builder.rb @@ -44,8 +44,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,16 +56,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a snooze_reminder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SnoozeReminderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/events/item/instances/item/tentatively_accept/tentatively_accept_post_request_body.rb b/lib/groups/item/calendar/events/item/instances/item/tentatively_accept/tentatively_accept_post_request_body.rb index fb975309f0..6ccfa09793 100644 --- a/lib/groups/item/calendar/events/item/instances/item/tentatively_accept/tentatively_accept_post_request_body.rb +++ b/lib/groups/item/calendar/events/item/instances/item/tentatively_accept/tentatively_accept_post_request_body.rb @@ -34,15 +34,15 @@ class TentativelyAcceptPostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -64,7 +64,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new tentativelyAcceptPostRequestBody and sets the default values. + ## Instantiates a new TentativelyAcceptPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/events/item/instances/item/tentatively_accept/tentatively_accept_request_builder.rb b/lib/groups/item/calendar/events/item/instances/item/tentatively_accept/tentatively_accept_request_builder.rb index f84c873451..620f24ede3 100644 --- a/lib/groups/item/calendar/events/item/instances/item/tentatively_accept/tentatively_accept_request_builder.rb +++ b/lib/groups/item/calendar/events/item/instances/item/tentatively_accept/tentatively_accept_request_builder.rb @@ -44,8 +44,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,16 +56,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a tentatively_accept_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TentativelyAcceptRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/events/item/permanent_delete/permanent_delete.rb b/lib/groups/item/calendar/events/item/permanent_delete/permanent_delete.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/calendar/events/item/permanent_delete/permanent_delete_request_builder.rb b/lib/groups/item/calendar/events/item/permanent_delete/permanent_delete_request_builder.rb new file mode 100644 index 0000000000..025710b8d6 --- /dev/null +++ b/lib/groups/item/calendar/events/item/permanent_delete/permanent_delete_request_builder.rb @@ -0,0 +1,77 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../calendar' +require_relative '../../events' +require_relative '../item' +require_relative './permanent_delete' + +module MicrosoftGraph + module Groups + module Item + module Calendar + module Events + module Item + module PermanentDelete + ## + # Provides operations to call the permanentDelete method. + class PermanentDeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new PermanentDeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/permanentDelete") + end + ## + ## Invoke action permanentDelete + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action permanentDelete + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a permanent_delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PermanentDeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/calendar/events/item/snooze_reminder/snooze_reminder_post_request_body.rb b/lib/groups/item/calendar/events/item/snooze_reminder/snooze_reminder_post_request_body.rb index 915efe6280..5e3ed5cb94 100644 --- a/lib/groups/item/calendar/events/item/snooze_reminder/snooze_reminder_post_request_body.rb +++ b/lib/groups/item/calendar/events/item/snooze_reminder/snooze_reminder_post_request_body.rb @@ -24,22 +24,22 @@ class SnoozeReminderPostRequestBody # The NewReminderTime property @new_reminder_time ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new snoozeReminderPostRequestBody and sets the default values. + ## Instantiates a new SnoozeReminderPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/events/item/snooze_reminder/snooze_reminder_request_builder.rb b/lib/groups/item/calendar/events/item/snooze_reminder/snooze_reminder_request_builder.rb index ee99bba550..c85e8b2394 100644 --- a/lib/groups/item/calendar/events/item/snooze_reminder/snooze_reminder_request_builder.rb +++ b/lib/groups/item/calendar/events/item/snooze_reminder/snooze_reminder_request_builder.rb @@ -40,8 +40,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,16 +52,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a snooze_reminder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SnoozeReminderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/events/item/tentatively_accept/tentatively_accept_post_request_body.rb b/lib/groups/item/calendar/events/item/tentatively_accept/tentatively_accept_post_request_body.rb index ab4b703302..e8b2003ca7 100644 --- a/lib/groups/item/calendar/events/item/tentatively_accept/tentatively_accept_post_request_body.rb +++ b/lib/groups/item/calendar/events/item/tentatively_accept/tentatively_accept_post_request_body.rb @@ -30,15 +30,15 @@ class TentativelyAcceptPostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -60,7 +60,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new tentativelyAcceptPostRequestBody and sets the default values. + ## Instantiates a new TentativelyAcceptPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/events/item/tentatively_accept/tentatively_accept_request_builder.rb b/lib/groups/item/calendar/events/item/tentatively_accept/tentatively_accept_request_builder.rb index 4d02ae37e0..f0792aedda 100644 --- a/lib/groups/item/calendar/events/item/tentatively_accept/tentatively_accept_request_builder.rb +++ b/lib/groups/item/calendar/events/item/tentatively_accept/tentatively_accept_request_builder.rb @@ -40,8 +40,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,16 +52,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a tentatively_accept_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TentativelyAcceptRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/get_schedule/get_schedule.rb b/lib/groups/item/calendar/get_schedule/get_schedule.rb index 9a4d88de70..2c639fd850 100644 --- a/lib/groups/item/calendar/get_schedule/get_schedule.rb +++ b/lib/groups/item/calendar/get_schedule/get_schedule.rb @@ -1,2 +1,2 @@ require_relative 'get_schedule_post_request_body' -require_relative 'get_schedule_response' +require_relative 'get_schedule_post_response' diff --git a/lib/groups/item/calendar/get_schedule/get_schedule_post_request_body.rb b/lib/groups/item/calendar/get_schedule/get_schedule_post_request_body.rb index 920b531bc6..b0dda61bc6 100644 --- a/lib/groups/item/calendar/get_schedule/get_schedule_post_request_body.rb +++ b/lib/groups/item/calendar/get_schedule/get_schedule_post_request_body.rb @@ -29,15 +29,15 @@ class GetSchedulePostRequestBody # The StartTime property @start_time ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -59,7 +59,7 @@ def availability_view_interval=(value) @availability_view_interval = value end ## - ## Instantiates a new getSchedulePostRequestBody and sets the default values. + ## Instantiates a new GetSchedulePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar/get_schedule/get_schedule_post_response.rb b/lib/groups/item/calendar/get_schedule/get_schedule_post_response.rb new file mode 100644 index 0000000000..f537899f30 --- /dev/null +++ b/lib/groups/item/calendar/get_schedule/get_schedule_post_response.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/base_collection_pagination_count_response' +require_relative '../../../../models/schedule_information' +require_relative '../../../groups' +require_relative '../../item' +require_relative '../calendar' +require_relative './get_schedule' + +module MicrosoftGraph + module Groups + module Item + module Calendar + module GetSchedule + class GetSchedulePostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetSchedulePostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_schedule_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetSchedulePostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ScheduleInformation.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a schedule_information + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/groups/item/calendar/get_schedule/get_schedule_request_builder.rb b/lib/groups/item/calendar/get_schedule/get_schedule_request_builder.rb index 0743925ddb..d19b907172 100644 --- a/lib/groups/item/calendar/get_schedule/get_schedule_request_builder.rb +++ b/lib/groups/item/calendar/get_schedule/get_schedule_request_builder.rb @@ -28,7 +28,7 @@ def initialize(path_parameters, request_adapter) ## Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_schedule_response + ## @return a Fiber of get_schedule_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -36,9 +36,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Calendar::GetSchedule::GetScheduleResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Calendar::GetSchedule::GetSchedulePostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. @@ -49,17 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_schedule_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetScheduleRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar/get_schedule/get_schedule_response.rb b/lib/groups/item/calendar/get_schedule/get_schedule_response.rb deleted file mode 100644 index 10a01ba17e..0000000000 --- a/lib/groups/item/calendar/get_schedule/get_schedule_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../../models/schedule_information' -require_relative '../../../groups' -require_relative '../../item' -require_relative '../calendar' -require_relative './get_schedule' - -module MicrosoftGraph - module Groups - module Item - module Calendar - module GetSchedule - class GetScheduleResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getScheduleResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_schedule_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetScheduleResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ScheduleInformation.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a schedule_information - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/groups/item/calendar/permanent_delete/permanent_delete.rb b/lib/groups/item/calendar/permanent_delete/permanent_delete.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/calendar/permanent_delete/permanent_delete_request_builder.rb b/lib/groups/item/calendar/permanent_delete/permanent_delete_request_builder.rb new file mode 100644 index 0000000000..06eca26d29 --- /dev/null +++ b/lib/groups/item/calendar/permanent_delete/permanent_delete_request_builder.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../groups' +require_relative '../../item' +require_relative '../calendar' +require_relative './permanent_delete' + +module MicrosoftGraph + module Groups + module Item + module Calendar + module PermanentDelete + ## + # Provides operations to call the permanentDelete method. + class PermanentDeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new PermanentDeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendar/permanentDelete") + end + ## + ## Permanently delete a calendar folder and the events that it contains and remove them from the mailbox. For more information about item retention, see Configure deleted item retention and recoverable items quotas. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Permanently delete a calendar folder and the events that it contains and remove them from the mailbox. For more information about item retention, see Configure deleted item retention and recoverable items quotas. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a permanent_delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PermanentDeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end +end diff --git a/lib/groups/item/calendar_view/calendar_view_request_builder.rb b/lib/groups/item/calendar_view/calendar_view_request_builder.rb index 033cd53786..5acaa9e332 100644 --- a/lib/groups/item/calendar_view/calendar_view_request_builder.rb +++ b/lib/groups/item/calendar_view/calendar_view_request_builder.rb @@ -45,10 +45,10 @@ def by_event_id(event_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView{?startDateTime*,endDateTime*,%24top,%24skip,%24filter,%24count,%24orderby,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## The calendar view for the calendar. Read-only. + ## Get the occurrences, exceptions, and single instances of events in a calendar view defined by a time range,from the default calendar of a group. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of event_collection_response ## @@ -57,31 +57,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EventCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The calendar view for the calendar. Read-only. + ## Get the occurrences, exceptions, and single instances of events in a calendar view defined by a time range,from the default calendar of a group. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a calendar_view_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CalendarViewRequestBuilder.new(raw_url, @request_adapter) + end ## - # The calendar view for the calendar. Read-only. + # Get the occurrences, exceptions, and single instances of events in a calendar view defined by a time range,from the default calendar of a group. class CalendarViewRequestBuilderGetQueryParameters ## @@ -91,12 +99,18 @@ class CalendarViewRequestBuilderGetQueryParameters # The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 attr_accessor :end_date_time ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -120,10 +134,14 @@ def get_query_parameter(original_name) return "%24count" when "end_date_time" return "endDateTime" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/calendar_view/count/count_request_builder.rb b/lib/groups/item/calendar_view/count/count_request_builder.rb index 20f9127833..996e9d0639 100644 --- a/lib/groups/item/calendar_view/count/count_request_builder.rb +++ b/lib/groups/item/calendar_view/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/$count?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,26 +44,44 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource class CountRequestBuilderGetQueryParameters + ## + # The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 + attr_accessor :end_date_time ## # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## + # The start date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T19:00:00-08:00 + attr_accessor :start_date_time + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -72,8 +89,14 @@ class CountRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "end_date_time" + return "endDateTime" when "filter" return "%24filter" + when "search" + return "%24search" + when "start_date_time" + return "startDateTime" else return original_name end diff --git a/lib/groups/item/calendar_view/delta/delta.rb b/lib/groups/item/calendar_view/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/groups/item/calendar_view/delta/delta.rb +++ b/lib/groups/item/calendar_view/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/groups/item/calendar_view/delta/delta_get_response.rb b/lib/groups/item/calendar_view/delta/delta_get_response.rb new file mode 100644 index 0000000000..6b267fb2b6 --- /dev/null +++ b/lib/groups/item/calendar_view/delta/delta_get_response.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/base_delta_function_response' +require_relative '../../../../models/event' +require_relative '../../../groups' +require_relative '../../item' +require_relative '../calendar_view' +require_relative './delta' + +module MicrosoftGraph + module Groups + module Item + module CalendarView + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a event + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/groups/item/calendar_view/delta/delta_request_builder.rb b/lib/groups/item/calendar_view/delta/delta_request_builder.rb index d08497617b..9d293d0573 100644 --- a/lib/groups/item/calendar_view/delta/delta_request_builder.rb +++ b/lib/groups/item/calendar_view/delta/delta_request_builder.rb @@ -22,21 +22,20 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::CalendarView::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::CalendarView::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -68,6 +76,9 @@ class DeltaRequestBuilderGetQueryParameters # The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 attr_accessor :end_date_time ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -100,6 +111,8 @@ def get_query_parameter(original_name) return "%24count" when "end_date_time" return "endDateTime" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/calendar_view/delta/delta_response.rb b/lib/groups/item/calendar_view/delta/delta_response.rb deleted file mode 100644 index f656dff2f6..0000000000 --- a/lib/groups/item/calendar_view/delta/delta_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/base_delta_function_response' -require_relative '../../../../models/event' -require_relative '../../../groups' -require_relative '../../item' -require_relative '../calendar_view' -require_relative './delta' - -module MicrosoftGraph - module Groups - module Item - module CalendarView - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a event - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/groups/item/calendar_view/item/accept/accept_post_request_body.rb b/lib/groups/item/calendar_view/item/accept/accept_post_request_body.rb index 55e52d5458..985f2a76a9 100644 --- a/lib/groups/item/calendar_view/item/accept/accept_post_request_body.rb +++ b/lib/groups/item/calendar_view/item/accept/accept_post_request_body.rb @@ -24,15 +24,15 @@ class AcceptPostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -54,7 +54,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new acceptPostRequestBody and sets the default values. + ## Instantiates a new AcceptPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar_view/item/accept/accept_request_builder.rb b/lib/groups/item/calendar_view/item/accept/accept_request_builder.rb index 5e72fbd19b..10fff54862 100644 --- a/lib/groups/item/calendar_view/item/accept/accept_request_builder.rb +++ b/lib/groups/item/calendar_view/item/accept/accept_request_builder.rb @@ -38,8 +38,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,16 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a accept_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AcceptRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar_view/item/attachments/attachments_request_builder.rb b/lib/groups/item/calendar_view/item/attachments/attachments_request_builder.rb index e600819736..d0d6e1e9ef 100644 --- a/lib/groups/item/calendar_view/item/attachments/attachments_request_builder.rb +++ b/lib/groups/item/calendar_view/item/attachments/attachments_request_builder.rb @@ -50,10 +50,10 @@ def by_attachment_id(attachment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of attachment objects attached to an event. + ## The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment_collection_response ## @@ -62,12 +62,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + ## Create new navigation property to attachments for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -78,30 +77,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of attachment objects attached to an event. + ## The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + ## Create new navigation property to attachments for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of attachment objects attached to an event. + # The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. class AttachmentsRequestBuilderGetQueryParameters ## @@ -138,6 +145,9 @@ class AttachmentsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -162,6 +172,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/calendar_view/item/attachments/count/count_request_builder.rb b/lib/groups/item/calendar_view/item/attachments/count/count_request_builder.rb index 2c6e880486..2ec96d64bd 100644 --- a/lib/groups/item/calendar_view/item/attachments/count/count_request_builder.rb +++ b/lib/groups/item/calendar_view/item/attachments/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/attachments/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/attachments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -69,6 +77,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -78,6 +89,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/calendar_view/item/attachments/create_upload_session/create_upload_session_post_request_body.rb b/lib/groups/item/calendar_view/item/attachments/create_upload_session/create_upload_session_post_request_body.rb index bf5f9db7bf..fd8afe0890 100644 --- a/lib/groups/item/calendar_view/item/attachments/create_upload_session/create_upload_session_post_request_body.rb +++ b/lib/groups/item/calendar_view/item/attachments/create_upload_session/create_upload_session_post_request_body.rb @@ -24,15 +24,15 @@ class CreateUploadSessionPostRequestBody # The AttachmentItem property @attachment_item ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -54,7 +54,7 @@ def attachment_item=(value) @attachment_item = value end ## - ## Instantiates a new createUploadSessionPostRequestBody and sets the default values. + ## Instantiates a new CreateUploadSessionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar_view/item/attachments/create_upload_session/create_upload_session_request_builder.rb b/lib/groups/item/calendar_view/item/attachments/create_upload_session/create_upload_session_request_builder.rb index 8bf21cf5bb..bfed2036c7 100644 --- a/lib/groups/item/calendar_view/item/attachments/create_upload_session/create_upload_session_request_builder.rb +++ b/lib/groups/item/calendar_view/item/attachments/create_upload_session/create_upload_session_request_builder.rb @@ -30,7 +30,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/attachments/createUploadSession") end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of upload_session @@ -41,12 +41,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UploadSession.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -54,17 +53,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a create_upload_session_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreateUploadSessionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar_view/item/attachments/item/attachment_item_request_builder.rb b/lib/groups/item/calendar_view/item/attachments/item/attachment_item_request_builder.rb index a005cf8b58..f019c99e1f 100644 --- a/lib/groups/item/calendar_view/item/attachments/item/attachment_item_request_builder.rb +++ b/lib/groups/item/calendar_view/item/attachments/item/attachment_item_request_builder.rb @@ -27,10 +27,10 @@ class AttachmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/attachments/{attachment%2Did}{?%24expand,%24select}") end ## - ## Delete an attachment from a user calendar event, mail message, or group post. + ## Delete navigation property attachments for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,24 +52,24 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete an attachment from a user calendar event, mail message, or group post. + ## Delete navigation property attachments for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -80,17 +79,26 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. diff --git a/lib/groups/item/calendar_view/item/calendar/calendar_request_builder.rb b/lib/groups/item/calendar_view/item/calendar/calendar_request_builder.rb index b48af8b16f..6ea6943d15 100644 --- a/lib/groups/item/calendar_view/item/calendar/calendar_request_builder.rb +++ b/lib/groups/item/calendar_view/item/calendar/calendar_request_builder.rb @@ -25,7 +25,7 @@ class CalendarRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/calendar{?%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/calendar{?%24expand,%24select}") end ## ## The calendar that contains the event. Navigation property. Read-only. @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Calendar.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,22 +47,34 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a calendar_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CalendarRequestBuilder.new(raw_url, @request_adapter) + end ## # The calendar that contains the event. Navigation property. Read-only. class CalendarRequestBuilderGetQueryParameters + ## + # Expand related entities + attr_accessor :expand ## # Select properties to be returned attr_accessor :select @@ -75,6 +86,8 @@ class CalendarRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "expand" + return "%24expand" when "select" return "%24select" else diff --git a/lib/groups/item/calendar_view/item/cancel/cancel_post_request_body.rb b/lib/groups/item/calendar_view/item/cancel/cancel_post_request_body.rb index d5b76fbaad..e87588e514 100644 --- a/lib/groups/item/calendar_view/item/cancel/cancel_post_request_body.rb +++ b/lib/groups/item/calendar_view/item/cancel/cancel_post_request_body.rb @@ -21,15 +21,15 @@ class CancelPostRequestBody # The Comment property @comment ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -51,7 +51,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new cancelPostRequestBody and sets the default values. + ## Instantiates a new CancelPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar_view/item/cancel/cancel_request_builder.rb b/lib/groups/item/calendar_view/item/cancel/cancel_request_builder.rb index 1935446554..e173130ad2 100644 --- a/lib/groups/item/calendar_view/item/cancel/cancel_request_builder.rb +++ b/lib/groups/item/calendar_view/item/cancel/cancel_request_builder.rb @@ -38,8 +38,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,16 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cancel_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CancelRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar_view/item/decline/decline_post_request_body.rb b/lib/groups/item/calendar_view/item/decline/decline_post_request_body.rb index 985ddb2925..a045847a2f 100644 --- a/lib/groups/item/calendar_view/item/decline/decline_post_request_body.rb +++ b/lib/groups/item/calendar_view/item/decline/decline_post_request_body.rb @@ -28,15 +28,15 @@ class DeclinePostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -58,7 +58,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new declinePostRequestBody and sets the default values. + ## Instantiates a new DeclinePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar_view/item/decline/decline_request_builder.rb b/lib/groups/item/calendar_view/item/decline/decline_request_builder.rb index b89eec9265..2532446022 100644 --- a/lib/groups/item/calendar_view/item/decline/decline_request_builder.rb +++ b/lib/groups/item/calendar_view/item/decline/decline_request_builder.rb @@ -38,8 +38,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,16 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a decline_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeclineRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar_view/item/dismiss_reminder/dismiss_reminder_request_builder.rb b/lib/groups/item/calendar_view/item/dismiss_reminder/dismiss_reminder_request_builder.rb index 37e0e706fc..038cb4095c 100644 --- a/lib/groups/item/calendar_view/item/dismiss_reminder/dismiss_reminder_request_builder.rb +++ b/lib/groups/item/calendar_view/item/dismiss_reminder/dismiss_reminder_request_builder.rb @@ -36,8 +36,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,15 +46,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dismiss_reminder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DismissReminderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar_view/item/event_item_request_builder.rb b/lib/groups/item/calendar_view/item/event_item_request_builder.rb index 0382d45879..2ebbbbfd4f 100644 --- a/lib/groups/item/calendar_view/item/event_item_request_builder.rb +++ b/lib/groups/item/calendar_view/item/event_item_request_builder.rb @@ -15,6 +15,7 @@ require_relative './forward/forward_request_builder' require_relative './instances/instances_request_builder' require_relative './item' +require_relative './permanent_delete/permanent_delete_request_builder' require_relative './snooze_reminder/snooze_reminder_request_builder' require_relative './tentatively_accept/tentatively_accept_request_builder' @@ -73,6 +74,11 @@ def instances() return MicrosoftGraph::Groups::Item::CalendarView::Item::Instances::InstancesRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the permanentDelete method. + def permanent_delete() + return MicrosoftGraph::Groups::Item::CalendarView::Item::PermanentDelete::PermanentDeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to call the snoozeReminder method. def snooze_reminder() return MicrosoftGraph::Groups::Item::CalendarView::Item::SnoozeReminder::SnoozeReminderRequestBuilder.new(@path_parameters, @request_adapter) @@ -89,7 +95,7 @@ def tentatively_accept() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}{?startDateTime*,endDateTime*,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24expand,%24select}") end ## ## The calendar view for the calendar. Read-only. @@ -101,8 +107,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -112,17 +117,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a event_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EventItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The calendar view for the calendar. Read-only. @@ -132,6 +146,9 @@ class EventItemRequestBuilderGetQueryParameters # The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 attr_accessor :end_date_time ## + # Expand related entities + attr_accessor :expand + ## # Select properties to be returned attr_accessor :select ## @@ -147,6 +164,8 @@ def get_query_parameter(original_name) case original_name when "end_date_time" return "endDateTime" + when "expand" + return "%24expand" when "select" return "%24select" when "start_date_time" diff --git a/lib/groups/item/calendar_view/item/extensions/count/count_request_builder.rb b/lib/groups/item/calendar_view/item/extensions/count/count_request_builder.rb index 915ba0335a..b30c742dc5 100644 --- a/lib/groups/item/calendar_view/item/extensions/count/count_request_builder.rb +++ b/lib/groups/item/calendar_view/item/extensions/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/extensions/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/extensions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -69,6 +77,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -78,6 +89,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/calendar_view/item/extensions/extensions_request_builder.rb b/lib/groups/item/calendar_view/item/extensions/extensions_request_builder.rb index 065867e953..eaa9780065 100644 --- a/lib/groups/item/calendar_view/item/extensions/extensions_request_builder.rb +++ b/lib/groups/item/calendar_view/item/extensions/extensions_request_builder.rb @@ -44,10 +44,10 @@ def by_extension_id(extension_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension_collection_response ## @@ -56,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExtensionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + ## Create new navigation property to extensions for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension @@ -72,30 +71,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + ## Create new navigation property to extensions for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extensions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + # The collection of open extensions defined for the event. Nullable. class ExtensionsRequestBuilderGetQueryParameters ## @@ -132,6 +139,9 @@ class ExtensionsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -156,6 +166,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/calendar_view/item/extensions/item/extension_item_request_builder.rb b/lib/groups/item/calendar_view/item/extensions/item/extension_item_request_builder.rb index fe29d65b2b..4d182c4be9 100644 --- a/lib/groups/item/calendar_view/item/extensions/item/extension_item_request_builder.rb +++ b/lib/groups/item/calendar_view/item/extensions/item/extension_item_request_builder.rb @@ -27,7 +27,7 @@ class ExtensionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/extensions/{extension%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/extensions/{extension%2Did}{?%24expand,%24select}") end ## ## Delete navigation property extensions for groups @@ -39,12 +39,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,31 +77,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,20 +114,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extension_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + # The collection of open extensions defined for the event. Nullable. class ExtensionItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/calendar_view/item/forward/forward_post_request_body.rb b/lib/groups/item/calendar_view/item/forward/forward_post_request_body.rb index ad20b0cea7..a36670a369 100644 --- a/lib/groups/item/calendar_view/item/forward/forward_post_request_body.rb +++ b/lib/groups/item/calendar_view/item/forward/forward_post_request_body.rb @@ -25,15 +25,15 @@ class ForwardPostRequestBody # The ToRecipients property @to_recipients ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -55,7 +55,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new forwardPostRequestBody and sets the default values. + ## Instantiates a new ForwardPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar_view/item/forward/forward_request_builder.rb b/lib/groups/item/calendar_view/item/forward/forward_request_builder.rb index 65b208c76c..03482552a3 100644 --- a/lib/groups/item/calendar_view/item/forward/forward_request_builder.rb +++ b/lib/groups/item/calendar_view/item/forward/forward_request_builder.rb @@ -27,7 +27,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/forward") end ## - ## This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + ## This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -38,12 +38,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + ## This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -51,16 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a forward_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ForwardRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar_view/item/instances/count/count_request_builder.rb b/lib/groups/item/calendar_view/item/instances/count/count_request_builder.rb index 31de4f5baf..72057411dd 100644 --- a/lib/groups/item/calendar_view/item/instances/count/count_request_builder.rb +++ b/lib/groups/item/calendar_view/item/instances/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -69,6 +77,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -78,6 +89,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/calendar_view/item/instances/delta/delta.rb b/lib/groups/item/calendar_view/item/instances/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/groups/item/calendar_view/item/instances/delta/delta.rb +++ b/lib/groups/item/calendar_view/item/instances/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/groups/item/calendar_view/item/instances/delta/delta_get_response.rb b/lib/groups/item/calendar_view/item/instances/delta/delta_get_response.rb new file mode 100644 index 0000000000..0e0053fdbf --- /dev/null +++ b/lib/groups/item/calendar_view/item/instances/delta/delta_get_response.rb @@ -0,0 +1,81 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/base_delta_function_response' +require_relative '../../../../../../models/event' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../calendar_view' +require_relative '../../item' +require_relative '../instances' +require_relative './delta' + +module MicrosoftGraph + module Groups + module Item + module CalendarView + module Item + module Instances + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a event + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/calendar_view/item/instances/delta/delta_request_builder.rb b/lib/groups/item/calendar_view/item/instances/delta/delta_request_builder.rb index e7fd355919..07b0b73c66 100644 --- a/lib/groups/item/calendar_view/item/instances/delta/delta_request_builder.rb +++ b/lib/groups/item/calendar_view/item/instances/delta/delta_request_builder.rb @@ -26,21 +26,20 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::CalendarView::Item::Instances::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::CalendarView::Item::Instances::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -72,6 +80,9 @@ class DeltaRequestBuilderGetQueryParameters # The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 attr_accessor :end_date_time ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -104,6 +115,8 @@ def get_query_parameter(original_name) return "%24count" when "end_date_time" return "endDateTime" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/calendar_view/item/instances/delta/delta_response.rb b/lib/groups/item/calendar_view/item/instances/delta/delta_response.rb deleted file mode 100644 index adafca47e8..0000000000 --- a/lib/groups/item/calendar_view/item/instances/delta/delta_response.rb +++ /dev/null @@ -1,81 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/base_delta_function_response' -require_relative '../../../../../../models/event' -require_relative '../../../../../groups' -require_relative '../../../../item' -require_relative '../../../calendar_view' -require_relative '../../item' -require_relative '../instances' -require_relative './delta' - -module MicrosoftGraph - module Groups - module Item - module CalendarView - module Item - module Instances - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a event - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/calendar_view/item/instances/instances_request_builder.rb b/lib/groups/item/calendar_view/item/instances/instances_request_builder.rb index 87f1bdfb02..69f36c930f 100644 --- a/lib/groups/item/calendar_view/item/instances/instances_request_builder.rb +++ b/lib/groups/item/calendar_view/item/instances/instances_request_builder.rb @@ -49,10 +49,10 @@ def by_event_id1(event_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances{?startDateTime*,endDateTime*,%24top,%24skip,%24filter,%24count,%24orderby,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of event_collection_response ## @@ -61,31 +61,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EventCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a instances_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InstancesRequestBuilder.new(raw_url, @request_adapter) + end ## - # The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + # The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. class InstancesRequestBuilderGetQueryParameters ## @@ -95,12 +103,18 @@ class InstancesRequestBuilderGetQueryParameters # The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 attr_accessor :end_date_time ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -124,10 +138,14 @@ def get_query_parameter(original_name) return "%24count" when "end_date_time" return "endDateTime" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/calendar_view/item/instances/item/accept/accept_post_request_body.rb b/lib/groups/item/calendar_view/item/instances/item/accept/accept_post_request_body.rb index 9bb9d8ab6f..0ee3047516 100644 --- a/lib/groups/item/calendar_view/item/instances/item/accept/accept_post_request_body.rb +++ b/lib/groups/item/calendar_view/item/instances/item/accept/accept_post_request_body.rb @@ -28,15 +28,15 @@ class AcceptPostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -58,7 +58,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new acceptPostRequestBody and sets the default values. + ## Instantiates a new AcceptPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar_view/item/instances/item/accept/accept_request_builder.rb b/lib/groups/item/calendar_view/item/instances/item/accept/accept_request_builder.rb index 62a25c467b..2675bf9d80 100644 --- a/lib/groups/item/calendar_view/item/instances/item/accept/accept_request_builder.rb +++ b/lib/groups/item/calendar_view/item/instances/item/accept/accept_request_builder.rb @@ -42,8 +42,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,16 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a accept_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AcceptRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb b/lib/groups/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb index 80bf3531ee..f3a8271a53 100644 --- a/lib/groups/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/groups/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb @@ -54,10 +54,10 @@ def by_attachment_id(attachment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of attachment objects attached to an event. + ## The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment_collection_response ## @@ -66,12 +66,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + ## Create new navigation property to attachments for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -82,30 +81,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of attachment objects attached to an event. + ## The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + ## Create new navigation property to attachments for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -113,20 +111,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of attachment objects attached to an event. + # The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. class AttachmentsRequestBuilderGetQueryParameters ## @@ -142,6 +149,9 @@ class AttachmentsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -166,6 +176,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/calendar_view/item/instances/item/attachments/count/count_request_builder.rb b/lib/groups/item/calendar_view/item/instances/item/attachments/count/count_request_builder.rb index 3709d873d9..c0d2f6ff6c 100644 --- a/lib/groups/item/calendar_view/item/instances/item/attachments/count/count_request_builder.rb +++ b/lib/groups/item/calendar_view/item/instances/item/attachments/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -73,6 +81,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -82,6 +93,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/calendar_view/item/instances/item/attachments/create_upload_session/create_upload_session_post_request_body.rb b/lib/groups/item/calendar_view/item/instances/item/attachments/create_upload_session/create_upload_session_post_request_body.rb index ee4c4d0275..68ac33b6e6 100644 --- a/lib/groups/item/calendar_view/item/instances/item/attachments/create_upload_session/create_upload_session_post_request_body.rb +++ b/lib/groups/item/calendar_view/item/instances/item/attachments/create_upload_session/create_upload_session_post_request_body.rb @@ -28,15 +28,15 @@ class CreateUploadSessionPostRequestBody # The AttachmentItem property @attachment_item ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -58,7 +58,7 @@ def attachment_item=(value) @attachment_item = value end ## - ## Instantiates a new createUploadSessionPostRequestBody and sets the default values. + ## Instantiates a new CreateUploadSessionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar_view/item/instances/item/attachments/create_upload_session/create_upload_session_request_builder.rb b/lib/groups/item/calendar_view/item/instances/item/attachments/create_upload_session/create_upload_session_request_builder.rb index db8700c89a..b62ccd0c0c 100644 --- a/lib/groups/item/calendar_view/item/instances/item/attachments/create_upload_session/create_upload_session_request_builder.rb +++ b/lib/groups/item/calendar_view/item/instances/item/attachments/create_upload_session/create_upload_session_request_builder.rb @@ -34,7 +34,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession") end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of upload_session @@ -45,12 +45,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UploadSession.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -58,17 +57,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a create_upload_session_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreateUploadSessionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar_view/item/instances/item/attachments/item/attachment_item_request_builder.rb b/lib/groups/item/calendar_view/item/instances/item/attachments/item/attachment_item_request_builder.rb index 416d7f30c4..6b64a78331 100644 --- a/lib/groups/item/calendar_view/item/instances/item/attachments/item/attachment_item_request_builder.rb +++ b/lib/groups/item/calendar_view/item/instances/item/attachments/item/attachment_item_request_builder.rb @@ -31,10 +31,10 @@ class AttachmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24expand,%24select}") end ## - ## Delete an attachment from a user calendar event, mail message, or group post. + ## Delete navigation property attachments for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,24 +56,24 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete an attachment from a user calendar event, mail message, or group post. + ## Delete navigation property attachments for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -84,17 +83,26 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. diff --git a/lib/groups/item/calendar_view/item/instances/item/calendar/calendar_request_builder.rb b/lib/groups/item/calendar_view/item/instances/item/calendar/calendar_request_builder.rb index dd3c1c6f26..5fcad9c16d 100644 --- a/lib/groups/item/calendar_view/item/instances/item/calendar/calendar_request_builder.rb +++ b/lib/groups/item/calendar_view/item/instances/item/calendar/calendar_request_builder.rb @@ -29,7 +29,7 @@ class CalendarRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/calendar{?%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/calendar{?%24expand,%24select}") end ## ## The calendar that contains the event. Navigation property. Read-only. @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Calendar.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,22 +51,34 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a calendar_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CalendarRequestBuilder.new(raw_url, @request_adapter) + end ## # The calendar that contains the event. Navigation property. Read-only. class CalendarRequestBuilderGetQueryParameters + ## + # Expand related entities + attr_accessor :expand ## # Select properties to be returned attr_accessor :select @@ -79,6 +90,8 @@ class CalendarRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "expand" + return "%24expand" when "select" return "%24select" else diff --git a/lib/groups/item/calendar_view/item/instances/item/cancel/cancel_post_request_body.rb b/lib/groups/item/calendar_view/item/instances/item/cancel/cancel_post_request_body.rb index 63b0337ef6..174030889a 100644 --- a/lib/groups/item/calendar_view/item/instances/item/cancel/cancel_post_request_body.rb +++ b/lib/groups/item/calendar_view/item/instances/item/cancel/cancel_post_request_body.rb @@ -25,15 +25,15 @@ class CancelPostRequestBody # The Comment property @comment ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -55,7 +55,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new cancelPostRequestBody and sets the default values. + ## Instantiates a new CancelPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar_view/item/instances/item/cancel/cancel_request_builder.rb b/lib/groups/item/calendar_view/item/instances/item/cancel/cancel_request_builder.rb index a41a0e1f51..31b4c40982 100644 --- a/lib/groups/item/calendar_view/item/instances/item/cancel/cancel_request_builder.rb +++ b/lib/groups/item/calendar_view/item/instances/item/cancel/cancel_request_builder.rb @@ -42,8 +42,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,16 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cancel_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CancelRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar_view/item/instances/item/decline/decline_post_request_body.rb b/lib/groups/item/calendar_view/item/instances/item/decline/decline_post_request_body.rb index 7b126a57b3..3d61d5e8c3 100644 --- a/lib/groups/item/calendar_view/item/instances/item/decline/decline_post_request_body.rb +++ b/lib/groups/item/calendar_view/item/instances/item/decline/decline_post_request_body.rb @@ -32,15 +32,15 @@ class DeclinePostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -62,7 +62,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new declinePostRequestBody and sets the default values. + ## Instantiates a new DeclinePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar_view/item/instances/item/decline/decline_request_builder.rb b/lib/groups/item/calendar_view/item/instances/item/decline/decline_request_builder.rb index e11fb1c3b1..2904b124e2 100644 --- a/lib/groups/item/calendar_view/item/instances/item/decline/decline_request_builder.rb +++ b/lib/groups/item/calendar_view/item/instances/item/decline/decline_request_builder.rb @@ -42,8 +42,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,16 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a decline_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeclineRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar_view/item/instances/item/dismiss_reminder/dismiss_reminder_request_builder.rb b/lib/groups/item/calendar_view/item/instances/item/dismiss_reminder/dismiss_reminder_request_builder.rb index d064e573d9..d746ce16e9 100644 --- a/lib/groups/item/calendar_view/item/instances/item/dismiss_reminder/dismiss_reminder_request_builder.rb +++ b/lib/groups/item/calendar_view/item/instances/item/dismiss_reminder/dismiss_reminder_request_builder.rb @@ -40,8 +40,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,15 +50,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dismiss_reminder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DismissReminderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar_view/item/instances/item/event_item_request_builder.rb b/lib/groups/item/calendar_view/item/instances/item/event_item_request_builder.rb index 3317e9b482..0306904dec 100644 --- a/lib/groups/item/calendar_view/item/instances/item/event_item_request_builder.rb +++ b/lib/groups/item/calendar_view/item/instances/item/event_item_request_builder.rb @@ -16,6 +16,7 @@ require_relative './extensions/extensions_request_builder' require_relative './forward/forward_request_builder' require_relative './item' +require_relative './permanent_delete/permanent_delete_request_builder' require_relative './snooze_reminder/snooze_reminder_request_builder' require_relative './tentatively_accept/tentatively_accept_request_builder' @@ -71,6 +72,11 @@ def forward() return MicrosoftGraph::Groups::Item::CalendarView::Item::Instances::Item::Forward::ForwardRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the permanentDelete method. + def permanent_delete() + return MicrosoftGraph::Groups::Item::CalendarView::Item::Instances::Item::PermanentDelete::PermanentDeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to call the snoozeReminder method. def snooze_reminder() return MicrosoftGraph::Groups::Item::CalendarView::Item::Instances::Item::SnoozeReminder::SnoozeReminderRequestBuilder.new(@path_parameters, @request_adapter) @@ -87,10 +93,10 @@ def tentatively_accept() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}{?startDateTime*,endDateTime*,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24expand,%24select}") end ## - ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of event ## @@ -99,37 +105,48 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a event_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EventItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + # The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. class EventItemRequestBuilderGetQueryParameters ## # The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 attr_accessor :end_date_time ## + # Expand related entities + attr_accessor :expand + ## # Select properties to be returned attr_accessor :select ## @@ -145,6 +162,8 @@ def get_query_parameter(original_name) case original_name when "end_date_time" return "endDateTime" + when "expand" + return "%24expand" when "select" return "%24select" when "start_date_time" diff --git a/lib/groups/item/calendar_view/item/instances/item/extensions/count/count_request_builder.rb b/lib/groups/item/calendar_view/item/instances/item/extensions/count/count_request_builder.rb index a667273f76..34d409e093 100644 --- a/lib/groups/item/calendar_view/item/instances/item/extensions/count/count_request_builder.rb +++ b/lib/groups/item/calendar_view/item/instances/item/extensions/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/extensions/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/extensions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -73,6 +81,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -82,6 +93,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/calendar_view/item/instances/item/extensions/extensions_request_builder.rb b/lib/groups/item/calendar_view/item/instances/item/extensions/extensions_request_builder.rb index 518e1b6d47..e73e13f81d 100644 --- a/lib/groups/item/calendar_view/item/instances/item/extensions/extensions_request_builder.rb +++ b/lib/groups/item/calendar_view/item/instances/item/extensions/extensions_request_builder.rb @@ -48,10 +48,10 @@ def by_extension_id(extension_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension_collection_response ## @@ -60,12 +60,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExtensionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + ## Create new navigation property to extensions for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension @@ -76,30 +75,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + ## Create new navigation property to extensions for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -107,20 +105,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extensions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + # The collection of open extensions defined for the event. Nullable. class ExtensionsRequestBuilderGetQueryParameters ## @@ -136,6 +143,9 @@ class ExtensionsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -160,6 +170,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/calendar_view/item/instances/item/extensions/item/extension_item_request_builder.rb b/lib/groups/item/calendar_view/item/instances/item/extensions/item/extension_item_request_builder.rb index d954358390..be7e063f4f 100644 --- a/lib/groups/item/calendar_view/item/instances/item/extensions/item/extension_item_request_builder.rb +++ b/lib/groups/item/calendar_view/item/instances/item/extensions/item/extension_item_request_builder.rb @@ -31,7 +31,7 @@ class ExtensionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/extensions/{extension%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/extensions/{extension%2Did}{?%24expand,%24select}") end ## ## Delete navigation property extensions for groups @@ -43,12 +43,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,31 +81,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,20 +118,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extension_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + # The collection of open extensions defined for the event. Nullable. class ExtensionItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/calendar_view/item/instances/item/forward/forward_post_request_body.rb b/lib/groups/item/calendar_view/item/instances/item/forward/forward_post_request_body.rb index 60ed86b708..f9d5d939a5 100644 --- a/lib/groups/item/calendar_view/item/instances/item/forward/forward_post_request_body.rb +++ b/lib/groups/item/calendar_view/item/instances/item/forward/forward_post_request_body.rb @@ -29,15 +29,15 @@ class ForwardPostRequestBody # The ToRecipients property @to_recipients ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -59,7 +59,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new forwardPostRequestBody and sets the default values. + ## Instantiates a new ForwardPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar_view/item/instances/item/forward/forward_request_builder.rb b/lib/groups/item/calendar_view/item/instances/item/forward/forward_request_builder.rb index 9b66d1bcd4..a40209df01 100644 --- a/lib/groups/item/calendar_view/item/instances/item/forward/forward_request_builder.rb +++ b/lib/groups/item/calendar_view/item/instances/item/forward/forward_request_builder.rb @@ -31,7 +31,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/forward") end ## - ## This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + ## This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -42,12 +42,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + ## This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -55,16 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a forward_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ForwardRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar_view/item/instances/item/permanent_delete/permanent_delete.rb b/lib/groups/item/calendar_view/item/instances/item/permanent_delete/permanent_delete.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/calendar_view/item/instances/item/permanent_delete/permanent_delete_request_builder.rb b/lib/groups/item/calendar_view/item/instances/item/permanent_delete/permanent_delete_request_builder.rb new file mode 100644 index 0000000000..4edcb0ec54 --- /dev/null +++ b/lib/groups/item/calendar_view/item/instances/item/permanent_delete/permanent_delete_request_builder.rb @@ -0,0 +1,80 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../calendar_view' +require_relative '../../../item' +require_relative '../../instances' +require_relative '../item' +require_relative './permanent_delete' + +module MicrosoftGraph + module Groups + module Item + module CalendarView + module Item + module Instances + module Item + module PermanentDelete + ## + # Provides operations to call the permanentDelete method. + class PermanentDeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new PermanentDeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/permanentDelete") + end + ## + ## Invoke action permanentDelete + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action permanentDelete + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a permanent_delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PermanentDeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/calendar_view/item/instances/item/snooze_reminder/snooze_reminder_post_request_body.rb b/lib/groups/item/calendar_view/item/instances/item/snooze_reminder/snooze_reminder_post_request_body.rb index fcfa33c62c..2e183aa4c3 100644 --- a/lib/groups/item/calendar_view/item/instances/item/snooze_reminder/snooze_reminder_post_request_body.rb +++ b/lib/groups/item/calendar_view/item/instances/item/snooze_reminder/snooze_reminder_post_request_body.rb @@ -26,22 +26,22 @@ class SnoozeReminderPostRequestBody # The NewReminderTime property @new_reminder_time ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new snoozeReminderPostRequestBody and sets the default values. + ## Instantiates a new SnoozeReminderPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar_view/item/instances/item/snooze_reminder/snooze_reminder_request_builder.rb b/lib/groups/item/calendar_view/item/instances/item/snooze_reminder/snooze_reminder_request_builder.rb index 842fbc59c2..e28405d2f8 100644 --- a/lib/groups/item/calendar_view/item/instances/item/snooze_reminder/snooze_reminder_request_builder.rb +++ b/lib/groups/item/calendar_view/item/instances/item/snooze_reminder/snooze_reminder_request_builder.rb @@ -42,8 +42,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,16 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a snooze_reminder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SnoozeReminderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar_view/item/instances/item/tentatively_accept/tentatively_accept_post_request_body.rb b/lib/groups/item/calendar_view/item/instances/item/tentatively_accept/tentatively_accept_post_request_body.rb index 20b9c9d3c2..78cae27311 100644 --- a/lib/groups/item/calendar_view/item/instances/item/tentatively_accept/tentatively_accept_post_request_body.rb +++ b/lib/groups/item/calendar_view/item/instances/item/tentatively_accept/tentatively_accept_post_request_body.rb @@ -32,15 +32,15 @@ class TentativelyAcceptPostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -62,7 +62,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new tentativelyAcceptPostRequestBody and sets the default values. + ## Instantiates a new TentativelyAcceptPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar_view/item/instances/item/tentatively_accept/tentatively_accept_request_builder.rb b/lib/groups/item/calendar_view/item/instances/item/tentatively_accept/tentatively_accept_request_builder.rb index 821d5aed98..01d949b525 100644 --- a/lib/groups/item/calendar_view/item/instances/item/tentatively_accept/tentatively_accept_request_builder.rb +++ b/lib/groups/item/calendar_view/item/instances/item/tentatively_accept/tentatively_accept_request_builder.rb @@ -42,8 +42,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,16 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a tentatively_accept_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TentativelyAcceptRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar_view/item/permanent_delete/permanent_delete.rb b/lib/groups/item/calendar_view/item/permanent_delete/permanent_delete.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/calendar_view/item/permanent_delete/permanent_delete_request_builder.rb b/lib/groups/item/calendar_view/item/permanent_delete/permanent_delete_request_builder.rb new file mode 100644 index 0000000000..ce8f4a43da --- /dev/null +++ b/lib/groups/item/calendar_view/item/permanent_delete/permanent_delete_request_builder.rb @@ -0,0 +1,74 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../calendar_view' +require_relative '../item' +require_relative './permanent_delete' + +module MicrosoftGraph + module Groups + module Item + module CalendarView + module Item + module PermanentDelete + ## + # Provides operations to call the permanentDelete method. + class PermanentDeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new PermanentDeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/permanentDelete") + end + ## + ## Invoke action permanentDelete + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action permanentDelete + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a permanent_delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PermanentDeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/calendar_view/item/snooze_reminder/snooze_reminder_post_request_body.rb b/lib/groups/item/calendar_view/item/snooze_reminder/snooze_reminder_post_request_body.rb index ef021abad7..527f83199f 100644 --- a/lib/groups/item/calendar_view/item/snooze_reminder/snooze_reminder_post_request_body.rb +++ b/lib/groups/item/calendar_view/item/snooze_reminder/snooze_reminder_post_request_body.rb @@ -22,22 +22,22 @@ class SnoozeReminderPostRequestBody # The NewReminderTime property @new_reminder_time ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new snoozeReminderPostRequestBody and sets the default values. + ## Instantiates a new SnoozeReminderPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar_view/item/snooze_reminder/snooze_reminder_request_builder.rb b/lib/groups/item/calendar_view/item/snooze_reminder/snooze_reminder_request_builder.rb index cec972f160..377ff85d55 100644 --- a/lib/groups/item/calendar_view/item/snooze_reminder/snooze_reminder_request_builder.rb +++ b/lib/groups/item/calendar_view/item/snooze_reminder/snooze_reminder_request_builder.rb @@ -38,8 +38,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,16 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a snooze_reminder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SnoozeReminderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/calendar_view/item/tentatively_accept/tentatively_accept_post_request_body.rb b/lib/groups/item/calendar_view/item/tentatively_accept/tentatively_accept_post_request_body.rb index feb7441aeb..6c4d8bb8ea 100644 --- a/lib/groups/item/calendar_view/item/tentatively_accept/tentatively_accept_post_request_body.rb +++ b/lib/groups/item/calendar_view/item/tentatively_accept/tentatively_accept_post_request_body.rb @@ -28,15 +28,15 @@ class TentativelyAcceptPostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -58,7 +58,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new tentativelyAcceptPostRequestBody and sets the default values. + ## Instantiates a new TentativelyAcceptPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/calendar_view/item/tentatively_accept/tentatively_accept_request_builder.rb b/lib/groups/item/calendar_view/item/tentatively_accept/tentatively_accept_request_builder.rb index c5a380f581..5a7cf3446f 100644 --- a/lib/groups/item/calendar_view/item/tentatively_accept/tentatively_accept_request_builder.rb +++ b/lib/groups/item/calendar_view/item/tentatively_accept/tentatively_accept_request_builder.rb @@ -38,8 +38,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,16 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a tentatively_accept_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TentativelyAcceptRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/check_granted_permissions_for_app/check_granted_permissions_for_app.rb b/lib/groups/item/check_granted_permissions_for_app/check_granted_permissions_for_app.rb index 25ae9a6b67..c5ed3d2149 100644 --- a/lib/groups/item/check_granted_permissions_for_app/check_granted_permissions_for_app.rb +++ b/lib/groups/item/check_granted_permissions_for_app/check_granted_permissions_for_app.rb @@ -1 +1 @@ -require_relative 'check_granted_permissions_for_app_response' +require_relative 'check_granted_permissions_for_app_post_response' diff --git a/lib/groups/item/check_granted_permissions_for_app/check_granted_permissions_for_app_post_response.rb b/lib/groups/item/check_granted_permissions_for_app/check_granted_permissions_for_app_post_response.rb new file mode 100644 index 0000000000..1be58b2737 --- /dev/null +++ b/lib/groups/item/check_granted_permissions_for_app/check_granted_permissions_for_app_post_response.rb @@ -0,0 +1,72 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../../models/resource_specific_permission_grant' +require_relative '../../groups' +require_relative '../item' +require_relative './check_granted_permissions_for_app' + +module MicrosoftGraph + module Groups + module Item + module CheckGrantedPermissionsForApp + class CheckGrantedPermissionsForAppPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new CheckGrantedPermissionsForAppPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a check_granted_permissions_for_app_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CheckGrantedPermissionsForAppPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ResourceSpecificPermissionGrant.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a resource_specific_permission_grant + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/groups/item/check_granted_permissions_for_app/check_granted_permissions_for_app_request_builder.rb b/lib/groups/item/check_granted_permissions_for_app/check_granted_permissions_for_app_request_builder.rb index ceae146a71..bcae375bcd 100644 --- a/lib/groups/item/check_granted_permissions_for_app/check_granted_permissions_for_app_request_builder.rb +++ b/lib/groups/item/check_granted_permissions_for_app/check_granted_permissions_for_app_request_builder.rb @@ -25,16 +25,15 @@ def initialize(path_parameters, request_adapter) ## ## Invoke action checkGrantedPermissionsForApp ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_granted_permissions_for_app_response + ## @return a Fiber of check_granted_permissions_for_app_post_response ## def post(request_configuration=nil) request_info = self.to_post_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::CheckGrantedPermissionsForApp::CheckGrantedPermissionsForAppResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::CheckGrantedPermissionsForApp::CheckGrantedPermissionsForAppPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke action checkGrantedPermissionsForApp @@ -43,16 +42,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a check_granted_permissions_for_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CheckGrantedPermissionsForAppRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/check_granted_permissions_for_app/check_granted_permissions_for_app_response.rb b/lib/groups/item/check_granted_permissions_for_app/check_granted_permissions_for_app_response.rb deleted file mode 100644 index cdc3d83f6e..0000000000 --- a/lib/groups/item/check_granted_permissions_for_app/check_granted_permissions_for_app_response.rb +++ /dev/null @@ -1,72 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../../models/resource_specific_permission_grant' -require_relative '../../groups' -require_relative '../item' -require_relative './check_granted_permissions_for_app' - -module MicrosoftGraph - module Groups - module Item - module CheckGrantedPermissionsForApp - class CheckGrantedPermissionsForAppResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkGrantedPermissionsForAppResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_granted_permissions_for_app_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckGrantedPermissionsForAppResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ResourceSpecificPermissionGrant.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a resource_specific_permission_grant - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/groups/item/check_member_groups/check_member_groups.rb b/lib/groups/item/check_member_groups/check_member_groups.rb index 938b908522..98148024fe 100644 --- a/lib/groups/item/check_member_groups/check_member_groups.rb +++ b/lib/groups/item/check_member_groups/check_member_groups.rb @@ -1,2 +1,2 @@ require_relative 'check_member_groups_post_request_body' -require_relative 'check_member_groups_response' +require_relative 'check_member_groups_post_response' diff --git a/lib/groups/item/check_member_groups/check_member_groups_post_request_body.rb b/lib/groups/item/check_member_groups/check_member_groups_post_request_body.rb index 1f0306d50c..a027a4626c 100644 --- a/lib/groups/item/check_member_groups/check_member_groups_post_request_body.rb +++ b/lib/groups/item/check_member_groups/check_member_groups_post_request_body.rb @@ -17,22 +17,22 @@ class CheckMemberGroupsPostRequestBody # The groupIds property @group_ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new checkMemberGroupsPostRequestBody and sets the default values. + ## Instantiates a new CheckMemberGroupsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/check_member_groups/check_member_groups_post_response.rb b/lib/groups/item/check_member_groups/check_member_groups_post_response.rb new file mode 100644 index 0000000000..399cfd991b --- /dev/null +++ b/lib/groups/item/check_member_groups/check_member_groups_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../groups' +require_relative '../item' +require_relative './check_member_groups' + +module MicrosoftGraph + module Groups + module Item + module CheckMemberGroups + class CheckMemberGroupsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new CheckMemberGroupsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a check_member_groups_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CheckMemberGroupsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/groups/item/check_member_groups/check_member_groups_request_builder.rb b/lib/groups/item/check_member_groups/check_member_groups_request_builder.rb index 1114ede2f9..70834f697e 100644 --- a/lib/groups/item/check_member_groups/check_member_groups_request_builder.rb +++ b/lib/groups/item/check_member_groups/check_member_groups_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/checkMemberGroups") end ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + ## Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_groups_response + ## @return a Fiber of check_member_groups_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::CheckMemberGroups::CheckMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::CheckMemberGroups::CheckMemberGroupsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + ## Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a check_member_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CheckMemberGroupsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/check_member_groups/check_member_groups_response.rb b/lib/groups/item/check_member_groups/check_member_groups_response.rb deleted file mode 100644 index 61963152b3..0000000000 --- a/lib/groups/item/check_member_groups/check_member_groups_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../groups' -require_relative '../item' -require_relative './check_member_groups' - -module MicrosoftGraph - module Groups - module Item - module CheckMemberGroups - class CheckMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/groups/item/check_member_objects/check_member_objects.rb b/lib/groups/item/check_member_objects/check_member_objects.rb index 67fbf971e7..1826285d49 100644 --- a/lib/groups/item/check_member_objects/check_member_objects.rb +++ b/lib/groups/item/check_member_objects/check_member_objects.rb @@ -1,2 +1,2 @@ require_relative 'check_member_objects_post_request_body' -require_relative 'check_member_objects_response' +require_relative 'check_member_objects_post_response' diff --git a/lib/groups/item/check_member_objects/check_member_objects_post_request_body.rb b/lib/groups/item/check_member_objects/check_member_objects_post_request_body.rb index e5501ed072..008900053a 100644 --- a/lib/groups/item/check_member_objects/check_member_objects_post_request_body.rb +++ b/lib/groups/item/check_member_objects/check_member_objects_post_request_body.rb @@ -17,22 +17,22 @@ class CheckMemberObjectsPostRequestBody # The ids property @ids ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new checkMemberObjectsPostRequestBody and sets the default values. + ## Instantiates a new CheckMemberObjectsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/check_member_objects/check_member_objects_post_response.rb b/lib/groups/item/check_member_objects/check_member_objects_post_response.rb new file mode 100644 index 0000000000..02824b3f50 --- /dev/null +++ b/lib/groups/item/check_member_objects/check_member_objects_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../groups' +require_relative '../item' +require_relative './check_member_objects' + +module MicrosoftGraph + module Groups + module Item + module CheckMemberObjects + class CheckMemberObjectsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new CheckMemberObjectsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a check_member_objects_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CheckMemberObjectsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/groups/item/check_member_objects/check_member_objects_request_builder.rb b/lib/groups/item/check_member_objects/check_member_objects_request_builder.rb index c60905bd0d..b5a80b54d7 100644 --- a/lib/groups/item/check_member_objects/check_member_objects_request_builder.rb +++ b/lib/groups/item/check_member_objects/check_member_objects_request_builder.rb @@ -26,7 +26,7 @@ def initialize(path_parameters, request_adapter) ## Invoke action checkMemberObjects ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_objects_response + ## @return a Fiber of check_member_objects_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,9 +34,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::CheckMemberObjects::CheckMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::CheckMemberObjects::CheckMemberObjectsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke action checkMemberObjects @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a check_member_objects_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CheckMemberObjectsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/check_member_objects/check_member_objects_response.rb b/lib/groups/item/check_member_objects/check_member_objects_response.rb deleted file mode 100644 index 8832611ada..0000000000 --- a/lib/groups/item/check_member_objects/check_member_objects_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../groups' -require_relative '../item' -require_relative './check_member_objects' - -module MicrosoftGraph - module Groups - module Item - module CheckMemberObjects - class CheckMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/groups/item/conversations/conversations_request_builder.rb b/lib/groups/item/conversations/conversations_request_builder.rb index 506bbb2cec..e7424ffcfc 100644 --- a/lib/groups/item/conversations/conversations_request_builder.rb +++ b/lib/groups/item/conversations/conversations_request_builder.rb @@ -40,7 +40,7 @@ def by_conversation_id(conversation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve the list of conversations in this group. @@ -52,12 +52,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use reply thread or reply post to further post to that conversation. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of conversation @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Conversation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,19 +77,19 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Use reply thread or reply post to further post to that conversation. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a conversations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConversationsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the list of conversations in this group. @@ -119,6 +126,9 @@ class ConversationsRequestBuilderGetQueryParameters # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -146,6 +156,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/conversations/count/count_request_builder.rb b/lib/groups/item/conversations/count/count_request_builder.rb index 04c0e3d5d1..c004a74a19 100644 --- a/lib/groups/item/conversations/count/count_request_builder.rb +++ b/lib/groups/item/conversations/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/conversations/item/conversation_item_request_builder.rb b/lib/groups/item/conversations/item/conversation_item_request_builder.rb index 72661166fb..46e3434b12 100644 --- a/lib/groups/item/conversations/item/conversation_item_request_builder.rb +++ b/lib/groups/item/conversations/item/conversation_item_request_builder.rb @@ -29,7 +29,7 @@ def threads() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}{?%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}{?%24expand,%24select}") end ## ## Delete conversation. @@ -41,8 +41,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Conversation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,13 +64,14 @@ def get(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -82,22 +81,34 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a conversation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConversationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The group's conversations. class ConversationItemRequestBuilderGetQueryParameters + ## + # Expand related entities + attr_accessor :expand ## # Select properties to be returned attr_accessor :select @@ -109,6 +120,8 @@ class ConversationItemRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "expand" + return "%24expand" when "select" return "%24select" else diff --git a/lib/groups/item/conversations/item/threads/count/count_request_builder.rb b/lib/groups/item/conversations/item/threads/count/count_request_builder.rb index 1e9aab6f8a..bc328fd5b9 100644 --- a/lib/groups/item/conversations/item/threads/count/count_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -69,6 +77,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -78,6 +89,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/conversations/item/threads/item/conversation_thread_item_request_builder.rb b/lib/groups/item/conversations/item/threads/item/conversation_thread_item_request_builder.rb index 5440acd228..aea5100ae7 100644 --- a/lib/groups/item/conversations/item/threads/item/conversation_thread_item_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/conversation_thread_item_request_builder.rb @@ -39,7 +39,7 @@ def reply() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}{?%24expand,%24select}") end ## ## Delete navigation property threads for groups @@ -51,8 +51,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationThread.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationThread.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,13 +89,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,15 +106,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,17 +126,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a conversation_thread_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConversationThreadItemRequestBuilder.new(raw_url, @request_adapter) + end ## # A collection of all the conversation threads in the conversation. A navigation property. Read-only. Nullable. diff --git a/lib/groups/item/conversations/item/threads/item/posts/count/count_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/count/count_request_builder.rb index 52d6f4352d..ab85164d3e 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/count/count_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -73,6 +81,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -82,6 +93,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/attachments/attachments_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/attachments/attachments_request_builder.rb index 79811bd206..9cbb1ff8bf 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/attachments/attachments_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/attachments/attachments_request_builder.rb @@ -58,10 +58,10 @@ def by_attachment_id(attachment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of attachment objects attached to a post. + ## Read-only. Nullable. Supports $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment_collection_response ## @@ -70,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,26 +85,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of attachment objects attached to a post. + ## Read-only. Nullable. Supports $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -117,20 +115,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of attachment objects attached to a post. + # Read-only. Nullable. Supports $expand. class AttachmentsRequestBuilderGetQueryParameters ## @@ -146,6 +153,9 @@ class AttachmentsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -170,6 +180,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/attachments/count/count_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/attachments/count/count_request_builder.rb index dc8344ec8e..b3f3ad2c84 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/attachments/count/count_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/attachments/count/count_request_builder.rb @@ -34,7 +34,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -46,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -57,17 +56,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -77,6 +85,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -86,6 +97,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/attachments/create_upload_session/create_upload_session_post_request_body.rb b/lib/groups/item/conversations/item/threads/item/posts/item/attachments/create_upload_session/create_upload_session_post_request_body.rb index 8c9e3d98a5..939d33573a 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/attachments/create_upload_session/create_upload_session_post_request_body.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/attachments/create_upload_session/create_upload_session_post_request_body.rb @@ -32,15 +32,15 @@ class CreateUploadSessionPostRequestBody # The AttachmentItem property @attachment_item ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -62,7 +62,7 @@ def attachment_item=(value) @attachment_item = value end ## - ## Instantiates a new createUploadSessionPostRequestBody and sets the default values. + ## Instantiates a new CreateUploadSessionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/attachments/create_upload_session/create_upload_session_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/attachments/create_upload_session/create_upload_session_request_builder.rb index c4e618ec0d..6007825dd8 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/attachments/create_upload_session/create_upload_session_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/attachments/create_upload_session/create_upload_session_request_builder.rb @@ -38,7 +38,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/createUploadSession") end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of upload_session @@ -49,12 +49,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UploadSession.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -62,17 +61,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a create_upload_session_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreateUploadSessionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/attachments/item/attachment_item_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/attachments/item/attachment_item_request_builder.rb index f65b3dc734..637ce4d52f 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/attachments/item/attachment_item_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/attachments/item/attachment_item_request_builder.rb @@ -35,7 +35,7 @@ class AttachmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/{attachment%2Did}{?%24expand,%24select}") end ## ## Delete navigation property attachments for groups @@ -47,8 +47,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,13 +70,14 @@ def get(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -88,17 +87,26 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/extensions/count/count_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/extensions/count/count_request_builder.rb index a79176ddec..63f3f144fd 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/extensions/count/count_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/extensions/count/count_request_builder.rb @@ -34,7 +34,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -46,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -57,17 +56,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -77,6 +85,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -86,6 +97,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/extensions/extensions_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/extensions/extensions_request_builder.rb index 72f83fc8f4..be12f95695 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/extensions/extensions_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/extensions/extensions_request_builder.rb @@ -52,10 +52,10 @@ def by_extension_id(extension_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension_collection_response ## @@ -64,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExtensionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,26 +79,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -111,20 +109,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extensions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + # The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. class ExtensionsRequestBuilderGetQueryParameters ## @@ -140,6 +147,9 @@ class ExtensionsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -164,6 +174,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/extensions/item/extension_item_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/extensions/item/extension_item_request_builder.rb index 43b942c28d..5d69dafac9 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/extensions/item/extension_item_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/extensions/item/extension_item_request_builder.rb @@ -35,7 +35,7 @@ class ExtensionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions/{extension%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions/{extension%2Did}{?%24expand,%24select}") end ## ## Delete navigation property extensions for groups @@ -47,12 +47,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension ## @@ -61,12 +60,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + ## Update the navigation property extensions in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,35 +85,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + ## Update the navigation property extensions in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -124,20 +122,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extension_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + # The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. class ExtensionItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/forward/forward_post_request_body.rb b/lib/groups/item/conversations/item/threads/item/posts/item/forward/forward_post_request_body.rb index 4c21968d14..fa1ae01c51 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/forward/forward_post_request_body.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/forward/forward_post_request_body.rb @@ -33,15 +33,15 @@ class ForwardPostRequestBody # The ToRecipients property @to_recipients ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -63,7 +63,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new forwardPostRequestBody and sets the default values. + ## Instantiates a new ForwardPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/forward/forward_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/forward/forward_request_builder.rb index 645220d49f..b10ed4db67 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/forward/forward_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/forward/forward_request_builder.rb @@ -46,8 +46,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,16 +58,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a forward_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ForwardRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/attachments/attachments_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/attachments/attachments_request_builder.rb index 6888100079..7b264d4a6f 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/attachments/attachments_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/attachments/attachments_request_builder.rb @@ -60,10 +60,10 @@ def by_attachment_id(attachment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of attachment objects attached to a post. + ## Read-only. Nullable. Supports $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment_collection_response ## @@ -72,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,26 +87,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of attachment objects attached to a post. + ## Read-only. Nullable. Supports $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -119,20 +117,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of attachment objects attached to a post. + # Read-only. Nullable. Supports $expand. class AttachmentsRequestBuilderGetQueryParameters ## @@ -148,6 +155,9 @@ class AttachmentsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -172,6 +182,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/attachments/count/count_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/attachments/count/count_request_builder.rb index ea4d7ee6f7..060c360282 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/attachments/count/count_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/attachments/count/count_request_builder.rb @@ -36,7 +36,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -59,17 +58,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -79,6 +87,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -88,6 +99,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/attachments/create_upload_session/create_upload_session_post_request_body.rb b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/attachments/create_upload_session/create_upload_session_post_request_body.rb index f423e58602..3c60c869a7 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/attachments/create_upload_session/create_upload_session_post_request_body.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/attachments/create_upload_session/create_upload_session_post_request_body.rb @@ -34,15 +34,15 @@ class CreateUploadSessionPostRequestBody # The AttachmentItem property @attachment_item ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -64,7 +64,7 @@ def attachment_item=(value) @attachment_item = value end ## - ## Instantiates a new createUploadSessionPostRequestBody and sets the default values. + ## Instantiates a new CreateUploadSessionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/attachments/create_upload_session/create_upload_session_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/attachments/create_upload_session/create_upload_session_request_builder.rb index 7bdf8a4044..648d36ae3c 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/attachments/create_upload_session/create_upload_session_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/attachments/create_upload_session/create_upload_session_request_builder.rb @@ -40,7 +40,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/createUploadSession") end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of upload_session @@ -51,12 +51,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UploadSession.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -64,17 +63,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a create_upload_session_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreateUploadSessionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/attachments/item/attachment_item_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/attachments/item/attachment_item_request_builder.rb index 25587051d6..e99c9dcbed 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/attachments/item/attachment_item_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/attachments/item/attachment_item_request_builder.rb @@ -37,7 +37,7 @@ class AttachmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/{attachment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/{attachment%2Did}{?%24expand,%24select}") end ## ## Delete navigation property attachments for groups @@ -49,8 +49,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,13 +72,14 @@ def get(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,17 +89,26 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/extensions/count/count_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/extensions/count/count_request_builder.rb index 3f0e66b639..a15cdbd55a 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/extensions/count/count_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/extensions/count/count_request_builder.rb @@ -36,7 +36,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -59,17 +58,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -79,6 +87,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -88,6 +99,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/extensions/extensions_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/extensions/extensions_request_builder.rb index 4cc8800cf8..42fb0d48d2 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/extensions/extensions_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/extensions/extensions_request_builder.rb @@ -54,10 +54,10 @@ def by_extension_id(extension_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension_collection_response ## @@ -66,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExtensionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,26 +81,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -113,20 +111,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extensions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + # The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. class ExtensionsRequestBuilderGetQueryParameters ## @@ -142,6 +149,9 @@ class ExtensionsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -166,6 +176,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/extensions/item/extension_item_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/extensions/item/extension_item_request_builder.rb index 729805902e..574ff5faad 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/extensions/item/extension_item_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/extensions/item/extension_item_request_builder.rb @@ -37,7 +37,7 @@ class ExtensionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions/{extension%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions/{extension%2Did}{?%24expand,%24select}") end ## ## Delete navigation property extensions for groups @@ -49,12 +49,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension ## @@ -63,12 +62,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + ## Update the navigation property extensions in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension @@ -79,8 +77,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,35 +87,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + ## Update the navigation property extensions in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -126,20 +124,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extension_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + # The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. class ExtensionItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/forward/forward_post_request_body.rb b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/forward/forward_post_request_body.rb index eb9f6b8199..911a6e56f9 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/forward/forward_post_request_body.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/forward/forward_post_request_body.rb @@ -35,15 +35,15 @@ class ForwardPostRequestBody # The ToRecipients property @to_recipients ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -65,7 +65,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new forwardPostRequestBody and sets the default values. + ## Instantiates a new ForwardPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/forward/forward_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/forward/forward_request_builder.rb index 9d53389a1f..4025ce78c3 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/forward/forward_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/forward/forward_request_builder.rb @@ -48,8 +48,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,16 +60,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a forward_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ForwardRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/in_reply_to_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/in_reply_to_request_builder.rb index ac58186af5..c5062c1c20 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/in_reply_to_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/in_reply_to_request_builder.rb @@ -57,7 +57,7 @@ def reply() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo{?%24expand,%24select}") end ## ## Read-only. Supports $expand. @@ -69,8 +69,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Post.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,17 +79,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a in_reply_to_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InReplyToRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Supports $expand. diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/reply/reply_post_request_body.rb b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/reply/reply_post_request_body.rb index 004d35bdc3..8186b066c9 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/reply/reply_post_request_body.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/reply/reply_post_request_body.rb @@ -32,22 +32,22 @@ class ReplyPostRequestBody # The Post property @post ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new replyPostRequestBody and sets the default values. + ## Instantiates a new ReplyPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/reply/reply_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/reply/reply_request_builder.rb index dda6684c71..86f06e3a1f 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/reply/reply_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/reply/reply_request_builder.rb @@ -37,7 +37,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/reply") end ## - ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + ## Invoke action reply ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -48,12 +48,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + ## Invoke action reply ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -61,16 +60,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reply_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReplyRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/post_item_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/post_item_request_builder.rb index fbe797b4e3..1a2c35a9a4 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/post_item_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/post_item_request_builder.rb @@ -61,7 +61,7 @@ def reply() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}{?%24expand,%24select}") end ## ## Get posts from groups @@ -73,8 +73,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Post.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,17 +83,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a post_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PostItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get posts from groups diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/reply/reply_post_request_body.rb b/lib/groups/item/conversations/item/threads/item/posts/item/reply/reply_post_request_body.rb index d0e274e2cc..9b51b80b53 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/reply/reply_post_request_body.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/reply/reply_post_request_body.rb @@ -30,22 +30,22 @@ class ReplyPostRequestBody # The Post property @post ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new replyPostRequestBody and sets the default values. + ## Instantiates a new ReplyPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/reply/reply_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/reply/reply_request_builder.rb index 7cb280214c..df46721991 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/reply/reply_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/reply/reply_request_builder.rb @@ -35,7 +35,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/reply") end ## - ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + ## Invoke action reply ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -46,12 +46,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + ## Invoke action reply ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -59,16 +58,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reply_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReplyRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/conversations/item/threads/item/posts/posts_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/posts_request_builder.rb index 651581be67..df86612d66 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/posts_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/posts_request_builder.rb @@ -47,10 +47,10 @@ def by_post_id(post_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + ## Get posts from groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of post_collection_response ## @@ -59,31 +59,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PostCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + ## Get posts from groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a posts_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PostsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + # Get posts from groups class PostsRequestBuilderGetQueryParameters ## @@ -99,6 +107,9 @@ class PostsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -123,6 +134,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/conversations/item/threads/item/reply/reply_post_request_body.rb b/lib/groups/item/conversations/item/threads/item/reply/reply_post_request_body.rb index 081aaf03cc..4bbe9845b1 100644 --- a/lib/groups/item/conversations/item/threads/item/reply/reply_post_request_body.rb +++ b/lib/groups/item/conversations/item/threads/item/reply/reply_post_request_body.rb @@ -26,22 +26,22 @@ class ReplyPostRequestBody # The Post property @post ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new replyPostRequestBody and sets the default values. + ## Instantiates a new ReplyPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/conversations/item/threads/item/reply/reply_request_builder.rb b/lib/groups/item/conversations/item/threads/item/reply/reply_request_builder.rb index d9b24734b4..1bd1ecd817 100644 --- a/lib/groups/item/conversations/item/threads/item/reply/reply_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/reply/reply_request_builder.rb @@ -31,7 +31,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/reply") end ## - ## Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -42,12 +42,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -55,16 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reply_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReplyRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/conversations/item/threads/threads_request_builder.rb b/lib/groups/item/conversations/item/threads/threads_request_builder.rb index 573f4ab7fe..ede999f63e 100644 --- a/lib/groups/item/conversations/item/threads/threads_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/threads_request_builder.rb @@ -44,7 +44,7 @@ def by_conversation_thread_id(conversation_thread_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get all the threads in a group conversation. Note: You can also get all the threads of a group. @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationThreadCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,8 +71,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationThread.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,15 +81,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,17 +101,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a threads_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ThreadsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get all the threads in a group conversation. Note: You can also get all the threads of a group. @@ -132,6 +139,9 @@ class ThreadsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -156,6 +166,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/created_on_behalf_of/created_on_behalf_of_request_builder.rb b/lib/groups/item/created_on_behalf_of/created_on_behalf_of_request_builder.rb index 3c6708a886..d73382ef05 100644 --- a/lib/groups/item/created_on_behalf_of/created_on_behalf_of_request_builder.rb +++ b/lib/groups/item/created_on_behalf_of/created_on_behalf_of_request_builder.rb @@ -21,10 +21,10 @@ class CreatedOnBehalfOfRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestB ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/createdOnBehalfOf{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/createdOnBehalfOf{?%24expand,%24select}") end ## - ## The user (or application) that created the group. NOTE: This is not set if the user is an administrator. Read-only. + ## The user (or application) that created the group. NOTE: This property isn't set if the user is an administrator. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object ## @@ -33,31 +33,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The user (or application) that created the group. NOTE: This is not set if the user is an administrator. Read-only. + ## The user (or application) that created the group. NOTE: This property isn't set if the user is an administrator. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a created_on_behalf_of_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreatedOnBehalfOfRequestBuilder.new(raw_url, @request_adapter) + end ## - # The user (or application) that created the group. NOTE: This is not set if the user is an administrator. Read-only. + # The user (or application) that created the group. NOTE: This property isn't set if the user is an administrator. Read-only. class CreatedOnBehalfOfRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/drive/drive_request_builder.rb b/lib/groups/item/drive/drive_request_builder.rb index dc173481a9..25b991d2a3 100644 --- a/lib/groups/item/drive/drive_request_builder.rb +++ b/lib/groups/item/drive/drive_request_builder.rb @@ -21,7 +21,7 @@ class DriveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/drive{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/drive{?%24expand,%24select}") end ## ## The group's default drive. Read-only. @@ -33,8 +33,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Drive.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -44,17 +43,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a drive_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DriveRequestBuilder.new(raw_url, @request_adapter) + end ## # The group's default drive. Read-only. diff --git a/lib/groups/item/drives/count/count_request_builder.rb b/lib/groups/item/drives/count/count_request_builder.rb index e3018b20ab..ce9c8f25b0 100644 --- a/lib/groups/item/drives/count/count_request_builder.rb +++ b/lib/groups/item/drives/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/drives/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/drives/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/drives/drives_request_builder.rb b/lib/groups/item/drives/drives_request_builder.rb index 328019dc73..81b74aa5b4 100644 --- a/lib/groups/item/drives/drives_request_builder.rb +++ b/lib/groups/item/drives/drives_request_builder.rb @@ -39,7 +39,7 @@ def by_drive_id(drive_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/drives{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/drives{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The group's drives. Read-only. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a drives_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DrivesRequestBuilder.new(raw_url, @request_adapter) + end ## # The group's drives. Read-only. diff --git a/lib/groups/item/drives/item/drive_item_request_builder.rb b/lib/groups/item/drives/item/drive_item_request_builder.rb index 2cb14ff78c..2a0289ef91 100644 --- a/lib/groups/item/drives/item/drive_item_request_builder.rb +++ b/lib/groups/item/drives/item/drive_item_request_builder.rb @@ -23,7 +23,7 @@ class DriveItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/drives/{drive%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/drives/{drive%2Did}{?%24expand,%24select}") end ## ## The group's drives. Read-only. @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Drive.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,17 +45,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a drive_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DriveItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The group's drives. Read-only. diff --git a/lib/groups/item/events/count/count_request_builder.rb b/lib/groups/item/events/count/count_request_builder.rb index fb7f8d043b..045f0e27d6 100644 --- a/lib/groups/item/events/count/count_request_builder.rb +++ b/lib/groups/item/events/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -65,6 +73,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -74,6 +85,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/events/delta/delta.rb b/lib/groups/item/events/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/groups/item/events/delta/delta.rb +++ b/lib/groups/item/events/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/groups/item/events/delta/delta_get_response.rb b/lib/groups/item/events/delta/delta_get_response.rb new file mode 100644 index 0000000000..013b1b2fc5 --- /dev/null +++ b/lib/groups/item/events/delta/delta_get_response.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/base_delta_function_response' +require_relative '../../../../models/event' +require_relative '../../../groups' +require_relative '../../item' +require_relative '../events' +require_relative './delta' + +module MicrosoftGraph + module Groups + module Item + module Events + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a event + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/groups/item/events/delta/delta_request_builder.rb b/lib/groups/item/events/delta/delta_request_builder.rb index 860a3ff758..1d5248dddc 100644 --- a/lib/groups/item/events/delta/delta_request_builder.rb +++ b/lib/groups/item/events/delta/delta_request_builder.rb @@ -22,21 +22,20 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Events::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Events::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -68,6 +76,9 @@ class DeltaRequestBuilderGetQueryParameters # The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 attr_accessor :end_date_time ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -100,6 +111,8 @@ def get_query_parameter(original_name) return "%24count" when "end_date_time" return "endDateTime" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/events/delta/delta_response.rb b/lib/groups/item/events/delta/delta_response.rb deleted file mode 100644 index c99a71d016..0000000000 --- a/lib/groups/item/events/delta/delta_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/base_delta_function_response' -require_relative '../../../../models/event' -require_relative '../../../groups' -require_relative '../../item' -require_relative '../events' -require_relative './delta' - -module MicrosoftGraph - module Groups - module Item - module Events - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a event - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/groups/item/events/events_request_builder.rb b/lib/groups/item/events/events_request_builder.rb index b84685722e..94abb037b7 100644 --- a/lib/groups/item/events/events_request_builder.rb +++ b/lib/groups/item/events/events_request_builder.rb @@ -46,7 +46,7 @@ def by_event_id(event_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of event objects. @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EventCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,8 +73,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,15 +83,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,17 +103,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a events_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EventsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of event objects. @@ -125,12 +132,18 @@ class EventsRequestBuilderGetQueryParameters # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -149,10 +162,14 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/events/item/accept/accept_post_request_body.rb b/lib/groups/item/events/item/accept/accept_post_request_body.rb index 1e9c065c31..98729b7b27 100644 --- a/lib/groups/item/events/item/accept/accept_post_request_body.rb +++ b/lib/groups/item/events/item/accept/accept_post_request_body.rb @@ -24,15 +24,15 @@ class AcceptPostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -54,7 +54,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new acceptPostRequestBody and sets the default values. + ## Instantiates a new AcceptPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/events/item/accept/accept_request_builder.rb b/lib/groups/item/events/item/accept/accept_request_builder.rb index 5ee1c5a23d..652cf65edc 100644 --- a/lib/groups/item/events/item/accept/accept_request_builder.rb +++ b/lib/groups/item/events/item/accept/accept_request_builder.rb @@ -38,8 +38,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,16 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a accept_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AcceptRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/events/item/attachments/attachments_request_builder.rb b/lib/groups/item/events/item/attachments/attachments_request_builder.rb index 58cd06109c..de18a0bf15 100644 --- a/lib/groups/item/events/item/attachments/attachments_request_builder.rb +++ b/lib/groups/item/events/item/attachments/attachments_request_builder.rb @@ -50,10 +50,10 @@ def by_attachment_id(attachment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of attachment objects attached to an event. + ## The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment_collection_response ## @@ -62,12 +62,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + ## Create new navigation property to attachments for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -78,30 +77,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of attachment objects attached to an event. + ## The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + ## Create new navigation property to attachments for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of attachment objects attached to an event. + # The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. class AttachmentsRequestBuilderGetQueryParameters ## @@ -138,6 +145,9 @@ class AttachmentsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -162,6 +172,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/events/item/attachments/count/count_request_builder.rb b/lib/groups/item/events/item/attachments/count/count_request_builder.rb index 16aba885a3..e59e62fc41 100644 --- a/lib/groups/item/events/item/attachments/count/count_request_builder.rb +++ b/lib/groups/item/events/item/attachments/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -69,6 +77,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -78,6 +89,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/events/item/attachments/create_upload_session/create_upload_session_post_request_body.rb b/lib/groups/item/events/item/attachments/create_upload_session/create_upload_session_post_request_body.rb index ab184e9a50..81ebd1f452 100644 --- a/lib/groups/item/events/item/attachments/create_upload_session/create_upload_session_post_request_body.rb +++ b/lib/groups/item/events/item/attachments/create_upload_session/create_upload_session_post_request_body.rb @@ -24,15 +24,15 @@ class CreateUploadSessionPostRequestBody # The AttachmentItem property @attachment_item ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -54,7 +54,7 @@ def attachment_item=(value) @attachment_item = value end ## - ## Instantiates a new createUploadSessionPostRequestBody and sets the default values. + ## Instantiates a new CreateUploadSessionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/events/item/attachments/create_upload_session/create_upload_session_request_builder.rb b/lib/groups/item/events/item/attachments/create_upload_session/create_upload_session_request_builder.rb index dc2f8ad86d..0f91d21f4a 100644 --- a/lib/groups/item/events/item/attachments/create_upload_session/create_upload_session_request_builder.rb +++ b/lib/groups/item/events/item/attachments/create_upload_session/create_upload_session_request_builder.rb @@ -30,7 +30,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments/createUploadSession") end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of upload_session @@ -41,12 +41,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UploadSession.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -54,17 +53,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a create_upload_session_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreateUploadSessionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/events/item/attachments/item/attachment_item_request_builder.rb b/lib/groups/item/events/item/attachments/item/attachment_item_request_builder.rb index 3c9cf07135..ba52a1615c 100644 --- a/lib/groups/item/events/item/attachments/item/attachment_item_request_builder.rb +++ b/lib/groups/item/events/item/attachments/item/attachment_item_request_builder.rb @@ -27,10 +27,10 @@ class AttachmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments/{attachment%2Did}{?%24expand,%24select}") end ## - ## Delete an attachment from a user calendar event, mail message, or group post. + ## Delete navigation property attachments for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,24 +52,24 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete an attachment from a user calendar event, mail message, or group post. + ## Delete navigation property attachments for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -80,17 +79,26 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. diff --git a/lib/groups/item/events/item/calendar/calendar_request_builder.rb b/lib/groups/item/events/item/calendar/calendar_request_builder.rb index 53dfd394b0..8e840e9b85 100644 --- a/lib/groups/item/events/item/calendar/calendar_request_builder.rb +++ b/lib/groups/item/events/item/calendar/calendar_request_builder.rb @@ -25,7 +25,7 @@ class CalendarRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/calendar{?%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/calendar{?%24expand,%24select}") end ## ## The calendar that contains the event. Navigation property. Read-only. @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Calendar.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,22 +47,34 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a calendar_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CalendarRequestBuilder.new(raw_url, @request_adapter) + end ## # The calendar that contains the event. Navigation property. Read-only. class CalendarRequestBuilderGetQueryParameters + ## + # Expand related entities + attr_accessor :expand ## # Select properties to be returned attr_accessor :select @@ -75,6 +86,8 @@ class CalendarRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "expand" + return "%24expand" when "select" return "%24select" else diff --git a/lib/groups/item/events/item/cancel/cancel_post_request_body.rb b/lib/groups/item/events/item/cancel/cancel_post_request_body.rb index 8d1cd158a5..81b72a0f8a 100644 --- a/lib/groups/item/events/item/cancel/cancel_post_request_body.rb +++ b/lib/groups/item/events/item/cancel/cancel_post_request_body.rb @@ -21,15 +21,15 @@ class CancelPostRequestBody # The Comment property @comment ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -51,7 +51,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new cancelPostRequestBody and sets the default values. + ## Instantiates a new CancelPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/events/item/cancel/cancel_request_builder.rb b/lib/groups/item/events/item/cancel/cancel_request_builder.rb index 93d5323138..e7013204b4 100644 --- a/lib/groups/item/events/item/cancel/cancel_request_builder.rb +++ b/lib/groups/item/events/item/cancel/cancel_request_builder.rb @@ -38,8 +38,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,16 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cancel_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CancelRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/events/item/decline/decline_post_request_body.rb b/lib/groups/item/events/item/decline/decline_post_request_body.rb index 38d8547c6c..8b98a491ea 100644 --- a/lib/groups/item/events/item/decline/decline_post_request_body.rb +++ b/lib/groups/item/events/item/decline/decline_post_request_body.rb @@ -28,15 +28,15 @@ class DeclinePostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -58,7 +58,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new declinePostRequestBody and sets the default values. + ## Instantiates a new DeclinePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/events/item/decline/decline_request_builder.rb b/lib/groups/item/events/item/decline/decline_request_builder.rb index 072119a44d..d08ca259b5 100644 --- a/lib/groups/item/events/item/decline/decline_request_builder.rb +++ b/lib/groups/item/events/item/decline/decline_request_builder.rb @@ -38,8 +38,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,16 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a decline_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeclineRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/events/item/dismiss_reminder/dismiss_reminder_request_builder.rb b/lib/groups/item/events/item/dismiss_reminder/dismiss_reminder_request_builder.rb index b72d38bfdc..53babbd7ac 100644 --- a/lib/groups/item/events/item/dismiss_reminder/dismiss_reminder_request_builder.rb +++ b/lib/groups/item/events/item/dismiss_reminder/dismiss_reminder_request_builder.rb @@ -36,8 +36,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,15 +46,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dismiss_reminder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DismissReminderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/events/item/event_item_request_builder.rb b/lib/groups/item/events/item/event_item_request_builder.rb index fa2437e72d..e498ca2c1c 100644 --- a/lib/groups/item/events/item/event_item_request_builder.rb +++ b/lib/groups/item/events/item/event_item_request_builder.rb @@ -15,6 +15,7 @@ require_relative './forward/forward_request_builder' require_relative './instances/instances_request_builder' require_relative './item' +require_relative './permanent_delete/permanent_delete_request_builder' require_relative './snooze_reminder/snooze_reminder_request_builder' require_relative './tentatively_accept/tentatively_accept_request_builder' @@ -73,6 +74,11 @@ def instances() return MicrosoftGraph::Groups::Item::Events::Item::Instances::InstancesRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the permanentDelete method. + def permanent_delete() + return MicrosoftGraph::Groups::Item::Events::Item::PermanentDelete::PermanentDeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to call the snoozeReminder method. def snooze_reminder() return MicrosoftGraph::Groups::Item::Events::Item::SnoozeReminder::SnoozeReminderRequestBuilder.new(@path_parameters, @request_adapter) @@ -89,7 +95,7 @@ def tentatively_accept() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}{?%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}{?%24expand,%24select}") end ## ## Delete an event object. @@ -101,8 +107,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -115,8 +120,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -131,8 +135,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -142,13 +145,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -158,15 +162,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -178,22 +182,34 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a event_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EventItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get an event object. class EventItemRequestBuilderGetQueryParameters + ## + # Expand related entities + attr_accessor :expand ## # Select properties to be returned attr_accessor :select @@ -205,6 +221,8 @@ class EventItemRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "expand" + return "%24expand" when "select" return "%24select" else diff --git a/lib/groups/item/events/item/extensions/count/count_request_builder.rb b/lib/groups/item/events/item/extensions/count/count_request_builder.rb index 8c411e0b32..ee06dbf813 100644 --- a/lib/groups/item/events/item/extensions/count/count_request_builder.rb +++ b/lib/groups/item/events/item/extensions/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/extensions/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/extensions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -69,6 +77,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -78,6 +89,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/events/item/extensions/extensions_request_builder.rb b/lib/groups/item/events/item/extensions/extensions_request_builder.rb index 4527ad911e..46a790cf9e 100644 --- a/lib/groups/item/events/item/extensions/extensions_request_builder.rb +++ b/lib/groups/item/events/item/extensions/extensions_request_builder.rb @@ -44,7 +44,7 @@ def by_extension_id(extension_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExtensionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,8 +71,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,15 +81,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,17 +101,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extensions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. @@ -132,6 +139,9 @@ class ExtensionsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -156,6 +166,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/events/item/extensions/item/extension_item_request_builder.rb b/lib/groups/item/events/item/extensions/item/extension_item_request_builder.rb index 1d48c2548a..62eb1aadf3 100644 --- a/lib/groups/item/events/item/extensions/item/extension_item_request_builder.rb +++ b/lib/groups/item/events/item/extensions/item/extension_item_request_builder.rb @@ -27,7 +27,7 @@ class ExtensionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/extensions/{extension%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/extensions/{extension%2Did}{?%24expand,%24select}") end ## ## Delete navigation property extensions for groups @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,13 +77,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,15 +94,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,17 +114,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extension_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. diff --git a/lib/groups/item/events/item/forward/forward_post_request_body.rb b/lib/groups/item/events/item/forward/forward_post_request_body.rb index 31bfee8dc1..4e2558d42a 100644 --- a/lib/groups/item/events/item/forward/forward_post_request_body.rb +++ b/lib/groups/item/events/item/forward/forward_post_request_body.rb @@ -25,15 +25,15 @@ class ForwardPostRequestBody # The ToRecipients property @to_recipients ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -55,7 +55,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new forwardPostRequestBody and sets the default values. + ## Instantiates a new ForwardPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/events/item/forward/forward_request_builder.rb b/lib/groups/item/events/item/forward/forward_request_builder.rb index 73dc2bfe67..64266dcd7f 100644 --- a/lib/groups/item/events/item/forward/forward_request_builder.rb +++ b/lib/groups/item/events/item/forward/forward_request_builder.rb @@ -27,7 +27,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/forward") end ## - ## This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + ## This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -38,12 +38,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + ## This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -51,16 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a forward_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ForwardRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/events/item/instances/count/count_request_builder.rb b/lib/groups/item/events/item/instances/count/count_request_builder.rb index 49ae49b7bd..68ba38343b 100644 --- a/lib/groups/item/events/item/instances/count/count_request_builder.rb +++ b/lib/groups/item/events/item/instances/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -69,6 +77,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -78,6 +89,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/events/item/instances/delta/delta.rb b/lib/groups/item/events/item/instances/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/groups/item/events/item/instances/delta/delta.rb +++ b/lib/groups/item/events/item/instances/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/groups/item/events/item/instances/delta/delta_get_response.rb b/lib/groups/item/events/item/instances/delta/delta_get_response.rb new file mode 100644 index 0000000000..58aa6f281c --- /dev/null +++ b/lib/groups/item/events/item/instances/delta/delta_get_response.rb @@ -0,0 +1,81 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/base_delta_function_response' +require_relative '../../../../../../models/event' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../events' +require_relative '../../item' +require_relative '../instances' +require_relative './delta' + +module MicrosoftGraph + module Groups + module Item + module Events + module Item + module Instances + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a event + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/events/item/instances/delta/delta_request_builder.rb b/lib/groups/item/events/item/instances/delta/delta_request_builder.rb index eed67adebf..a518177f08 100644 --- a/lib/groups/item/events/item/instances/delta/delta_request_builder.rb +++ b/lib/groups/item/events/item/instances/delta/delta_request_builder.rb @@ -26,21 +26,20 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Events::Item::Instances::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Events::Item::Instances::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -72,6 +80,9 @@ class DeltaRequestBuilderGetQueryParameters # The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 attr_accessor :end_date_time ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -104,6 +115,8 @@ def get_query_parameter(original_name) return "%24count" when "end_date_time" return "endDateTime" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/events/item/instances/delta/delta_response.rb b/lib/groups/item/events/item/instances/delta/delta_response.rb deleted file mode 100644 index 14761a3999..0000000000 --- a/lib/groups/item/events/item/instances/delta/delta_response.rb +++ /dev/null @@ -1,81 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/base_delta_function_response' -require_relative '../../../../../../models/event' -require_relative '../../../../../groups' -require_relative '../../../../item' -require_relative '../../../events' -require_relative '../../item' -require_relative '../instances' -require_relative './delta' - -module MicrosoftGraph - module Groups - module Item - module Events - module Item - module Instances - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a event - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/events/item/instances/instances_request_builder.rb b/lib/groups/item/events/item/instances/instances_request_builder.rb index 4b663ee7ea..7c68ce2b5a 100644 --- a/lib/groups/item/events/item/instances/instances_request_builder.rb +++ b/lib/groups/item/events/item/instances/instances_request_builder.rb @@ -49,10 +49,10 @@ def by_event_id1(event_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances{?startDateTime*,endDateTime*,%24top,%24skip,%24filter,%24count,%24orderby,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of event_collection_response ## @@ -61,31 +61,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EventCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a instances_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InstancesRequestBuilder.new(raw_url, @request_adapter) + end ## - # The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + # The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. class InstancesRequestBuilderGetQueryParameters ## @@ -95,12 +103,18 @@ class InstancesRequestBuilderGetQueryParameters # The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 attr_accessor :end_date_time ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -124,10 +138,14 @@ def get_query_parameter(original_name) return "%24count" when "end_date_time" return "endDateTime" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/events/item/instances/item/accept/accept_post_request_body.rb b/lib/groups/item/events/item/instances/item/accept/accept_post_request_body.rb index b81500484a..92cd006829 100644 --- a/lib/groups/item/events/item/instances/item/accept/accept_post_request_body.rb +++ b/lib/groups/item/events/item/instances/item/accept/accept_post_request_body.rb @@ -28,15 +28,15 @@ class AcceptPostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -58,7 +58,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new acceptPostRequestBody and sets the default values. + ## Instantiates a new AcceptPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/events/item/instances/item/accept/accept_request_builder.rb b/lib/groups/item/events/item/instances/item/accept/accept_request_builder.rb index ad3fac3da8..b708604810 100644 --- a/lib/groups/item/events/item/instances/item/accept/accept_request_builder.rb +++ b/lib/groups/item/events/item/instances/item/accept/accept_request_builder.rb @@ -42,8 +42,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,16 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a accept_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AcceptRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/events/item/instances/item/attachments/attachments_request_builder.rb b/lib/groups/item/events/item/instances/item/attachments/attachments_request_builder.rb index 10479591b4..186b20aa63 100644 --- a/lib/groups/item/events/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/groups/item/events/item/instances/item/attachments/attachments_request_builder.rb @@ -54,10 +54,10 @@ def by_attachment_id(attachment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of attachment objects attached to an event. + ## The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment_collection_response ## @@ -66,12 +66,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + ## Create new navigation property to attachments for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -82,30 +81,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of attachment objects attached to an event. + ## The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + ## Create new navigation property to attachments for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -113,20 +111,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of attachment objects attached to an event. + # The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. class AttachmentsRequestBuilderGetQueryParameters ## @@ -142,6 +149,9 @@ class AttachmentsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -166,6 +176,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/events/item/instances/item/attachments/count/count_request_builder.rb b/lib/groups/item/events/item/instances/item/attachments/count/count_request_builder.rb index 0ce56dee0b..5defeb2041 100644 --- a/lib/groups/item/events/item/instances/item/attachments/count/count_request_builder.rb +++ b/lib/groups/item/events/item/instances/item/attachments/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -73,6 +81,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -82,6 +93,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/events/item/instances/item/attachments/create_upload_session/create_upload_session_post_request_body.rb b/lib/groups/item/events/item/instances/item/attachments/create_upload_session/create_upload_session_post_request_body.rb index a9f5267dfb..e8355b3a7d 100644 --- a/lib/groups/item/events/item/instances/item/attachments/create_upload_session/create_upload_session_post_request_body.rb +++ b/lib/groups/item/events/item/instances/item/attachments/create_upload_session/create_upload_session_post_request_body.rb @@ -28,15 +28,15 @@ class CreateUploadSessionPostRequestBody # The AttachmentItem property @attachment_item ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -58,7 +58,7 @@ def attachment_item=(value) @attachment_item = value end ## - ## Instantiates a new createUploadSessionPostRequestBody and sets the default values. + ## Instantiates a new CreateUploadSessionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/events/item/instances/item/attachments/create_upload_session/create_upload_session_request_builder.rb b/lib/groups/item/events/item/instances/item/attachments/create_upload_session/create_upload_session_request_builder.rb index f3527a510e..c2cbe1ed0a 100644 --- a/lib/groups/item/events/item/instances/item/attachments/create_upload_session/create_upload_session_request_builder.rb +++ b/lib/groups/item/events/item/instances/item/attachments/create_upload_session/create_upload_session_request_builder.rb @@ -34,7 +34,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession") end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of upload_session @@ -45,12 +45,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UploadSession.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -58,17 +57,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a create_upload_session_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreateUploadSessionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/events/item/instances/item/attachments/item/attachment_item_request_builder.rb b/lib/groups/item/events/item/instances/item/attachments/item/attachment_item_request_builder.rb index ca9e4f2b1a..0bd549da9c 100644 --- a/lib/groups/item/events/item/instances/item/attachments/item/attachment_item_request_builder.rb +++ b/lib/groups/item/events/item/instances/item/attachments/item/attachment_item_request_builder.rb @@ -31,10 +31,10 @@ class AttachmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24expand,%24select}") end ## - ## Delete an attachment from a user calendar event, mail message, or group post. + ## Delete navigation property attachments for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,24 +56,24 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete an attachment from a user calendar event, mail message, or group post. + ## Delete navigation property attachments for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -84,17 +83,26 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. diff --git a/lib/groups/item/events/item/instances/item/calendar/calendar_request_builder.rb b/lib/groups/item/events/item/instances/item/calendar/calendar_request_builder.rb index ed59af02f9..ffee516ad5 100644 --- a/lib/groups/item/events/item/instances/item/calendar/calendar_request_builder.rb +++ b/lib/groups/item/events/item/instances/item/calendar/calendar_request_builder.rb @@ -29,7 +29,7 @@ class CalendarRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/calendar{?%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/calendar{?%24expand,%24select}") end ## ## The calendar that contains the event. Navigation property. Read-only. @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Calendar.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,22 +51,34 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a calendar_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CalendarRequestBuilder.new(raw_url, @request_adapter) + end ## # The calendar that contains the event. Navigation property. Read-only. class CalendarRequestBuilderGetQueryParameters + ## + # Expand related entities + attr_accessor :expand ## # Select properties to be returned attr_accessor :select @@ -79,6 +90,8 @@ class CalendarRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "expand" + return "%24expand" when "select" return "%24select" else diff --git a/lib/groups/item/events/item/instances/item/cancel/cancel_post_request_body.rb b/lib/groups/item/events/item/instances/item/cancel/cancel_post_request_body.rb index 33a6908f83..d3ed12fba9 100644 --- a/lib/groups/item/events/item/instances/item/cancel/cancel_post_request_body.rb +++ b/lib/groups/item/events/item/instances/item/cancel/cancel_post_request_body.rb @@ -25,15 +25,15 @@ class CancelPostRequestBody # The Comment property @comment ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -55,7 +55,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new cancelPostRequestBody and sets the default values. + ## Instantiates a new CancelPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/events/item/instances/item/cancel/cancel_request_builder.rb b/lib/groups/item/events/item/instances/item/cancel/cancel_request_builder.rb index 2f5a9be683..34a7474ec5 100644 --- a/lib/groups/item/events/item/instances/item/cancel/cancel_request_builder.rb +++ b/lib/groups/item/events/item/instances/item/cancel/cancel_request_builder.rb @@ -42,8 +42,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,16 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cancel_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CancelRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/events/item/instances/item/decline/decline_post_request_body.rb b/lib/groups/item/events/item/instances/item/decline/decline_post_request_body.rb index f06aa1234b..afc5e9f1e6 100644 --- a/lib/groups/item/events/item/instances/item/decline/decline_post_request_body.rb +++ b/lib/groups/item/events/item/instances/item/decline/decline_post_request_body.rb @@ -32,15 +32,15 @@ class DeclinePostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -62,7 +62,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new declinePostRequestBody and sets the default values. + ## Instantiates a new DeclinePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/events/item/instances/item/decline/decline_request_builder.rb b/lib/groups/item/events/item/instances/item/decline/decline_request_builder.rb index 82db02c613..488de0f61b 100644 --- a/lib/groups/item/events/item/instances/item/decline/decline_request_builder.rb +++ b/lib/groups/item/events/item/instances/item/decline/decline_request_builder.rb @@ -42,8 +42,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,16 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a decline_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeclineRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/events/item/instances/item/dismiss_reminder/dismiss_reminder_request_builder.rb b/lib/groups/item/events/item/instances/item/dismiss_reminder/dismiss_reminder_request_builder.rb index b253568ea2..ee98b0240b 100644 --- a/lib/groups/item/events/item/instances/item/dismiss_reminder/dismiss_reminder_request_builder.rb +++ b/lib/groups/item/events/item/instances/item/dismiss_reminder/dismiss_reminder_request_builder.rb @@ -40,8 +40,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,15 +50,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a dismiss_reminder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DismissReminderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/events/item/instances/item/event_item_request_builder.rb b/lib/groups/item/events/item/instances/item/event_item_request_builder.rb index 406fc54ab0..3ca45e1868 100644 --- a/lib/groups/item/events/item/instances/item/event_item_request_builder.rb +++ b/lib/groups/item/events/item/instances/item/event_item_request_builder.rb @@ -16,6 +16,7 @@ require_relative './extensions/extensions_request_builder' require_relative './forward/forward_request_builder' require_relative './item' +require_relative './permanent_delete/permanent_delete_request_builder' require_relative './snooze_reminder/snooze_reminder_request_builder' require_relative './tentatively_accept/tentatively_accept_request_builder' @@ -71,6 +72,11 @@ def forward() return MicrosoftGraph::Groups::Item::Events::Item::Instances::Item::Forward::ForwardRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the permanentDelete method. + def permanent_delete() + return MicrosoftGraph::Groups::Item::Events::Item::Instances::Item::PermanentDelete::PermanentDeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to call the snoozeReminder method. def snooze_reminder() return MicrosoftGraph::Groups::Item::Events::Item::Instances::Item::SnoozeReminder::SnoozeReminderRequestBuilder.new(@path_parameters, @request_adapter) @@ -87,10 +93,10 @@ def tentatively_accept() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}{?startDateTime*,endDateTime*,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24expand,%24select}") end ## - ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of event ## @@ -99,37 +105,48 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + ## The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a event_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EventItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + # The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. class EventItemRequestBuilderGetQueryParameters ## # The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 attr_accessor :end_date_time ## + # Expand related entities + attr_accessor :expand + ## # Select properties to be returned attr_accessor :select ## @@ -145,6 +162,8 @@ def get_query_parameter(original_name) case original_name when "end_date_time" return "endDateTime" + when "expand" + return "%24expand" when "select" return "%24select" when "start_date_time" diff --git a/lib/groups/item/events/item/instances/item/extensions/count/count_request_builder.rb b/lib/groups/item/events/item/instances/item/extensions/count/count_request_builder.rb index f349e5af7e..3d840f4638 100644 --- a/lib/groups/item/events/item/instances/item/extensions/count/count_request_builder.rb +++ b/lib/groups/item/events/item/instances/item/extensions/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/extensions/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/extensions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -73,6 +81,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -82,6 +93,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/events/item/instances/item/extensions/extensions_request_builder.rb b/lib/groups/item/events/item/instances/item/extensions/extensions_request_builder.rb index 4abb4c1295..745706c4c0 100644 --- a/lib/groups/item/events/item/instances/item/extensions/extensions_request_builder.rb +++ b/lib/groups/item/events/item/instances/item/extensions/extensions_request_builder.rb @@ -48,10 +48,10 @@ def by_extension_id(extension_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension_collection_response ## @@ -60,12 +60,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExtensionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + ## Create new navigation property to extensions for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension @@ -76,30 +75,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + ## Create new navigation property to extensions for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -107,20 +105,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extensions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + # The collection of open extensions defined for the event. Nullable. class ExtensionsRequestBuilderGetQueryParameters ## @@ -136,6 +143,9 @@ class ExtensionsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -160,6 +170,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/events/item/instances/item/extensions/item/extension_item_request_builder.rb b/lib/groups/item/events/item/instances/item/extensions/item/extension_item_request_builder.rb index 7594c7e595..bdab1af46e 100644 --- a/lib/groups/item/events/item/instances/item/extensions/item/extension_item_request_builder.rb +++ b/lib/groups/item/events/item/instances/item/extensions/item/extension_item_request_builder.rb @@ -31,7 +31,7 @@ class ExtensionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/extensions/{extension%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/extensions/{extension%2Did}{?%24expand,%24select}") end ## ## Delete navigation property extensions for groups @@ -43,12 +43,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,31 +81,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the event. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,20 +118,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extension_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + # The collection of open extensions defined for the event. Nullable. class ExtensionItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/events/item/instances/item/forward/forward_post_request_body.rb b/lib/groups/item/events/item/instances/item/forward/forward_post_request_body.rb index ffebe5907f..bc236bcb43 100644 --- a/lib/groups/item/events/item/instances/item/forward/forward_post_request_body.rb +++ b/lib/groups/item/events/item/instances/item/forward/forward_post_request_body.rb @@ -29,15 +29,15 @@ class ForwardPostRequestBody # The ToRecipients property @to_recipients ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -59,7 +59,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new forwardPostRequestBody and sets the default values. + ## Instantiates a new ForwardPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/events/item/instances/item/forward/forward_request_builder.rb b/lib/groups/item/events/item/instances/item/forward/forward_request_builder.rb index e9f28a7d59..6a45544b80 100644 --- a/lib/groups/item/events/item/instances/item/forward/forward_request_builder.rb +++ b/lib/groups/item/events/item/instances/item/forward/forward_request_builder.rb @@ -31,7 +31,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/forward") end ## - ## This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + ## This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -42,12 +42,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + ## This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -55,16 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a forward_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ForwardRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/events/item/instances/item/permanent_delete/permanent_delete.rb b/lib/groups/item/events/item/instances/item/permanent_delete/permanent_delete.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/events/item/instances/item/permanent_delete/permanent_delete_request_builder.rb b/lib/groups/item/events/item/instances/item/permanent_delete/permanent_delete_request_builder.rb new file mode 100644 index 0000000000..462cf2ab73 --- /dev/null +++ b/lib/groups/item/events/item/instances/item/permanent_delete/permanent_delete_request_builder.rb @@ -0,0 +1,80 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../events' +require_relative '../../../item' +require_relative '../../instances' +require_relative '../item' +require_relative './permanent_delete' + +module MicrosoftGraph + module Groups + module Item + module Events + module Item + module Instances + module Item + module PermanentDelete + ## + # Provides operations to call the permanentDelete method. + class PermanentDeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new PermanentDeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/permanentDelete") + end + ## + ## Invoke action permanentDelete + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action permanentDelete + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a permanent_delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PermanentDeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/events/item/instances/item/snooze_reminder/snooze_reminder_post_request_body.rb b/lib/groups/item/events/item/instances/item/snooze_reminder/snooze_reminder_post_request_body.rb index 93bc695dc6..e184fa2b37 100644 --- a/lib/groups/item/events/item/instances/item/snooze_reminder/snooze_reminder_post_request_body.rb +++ b/lib/groups/item/events/item/instances/item/snooze_reminder/snooze_reminder_post_request_body.rb @@ -26,22 +26,22 @@ class SnoozeReminderPostRequestBody # The NewReminderTime property @new_reminder_time ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new snoozeReminderPostRequestBody and sets the default values. + ## Instantiates a new SnoozeReminderPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/events/item/instances/item/snooze_reminder/snooze_reminder_request_builder.rb b/lib/groups/item/events/item/instances/item/snooze_reminder/snooze_reminder_request_builder.rb index 43ced57917..78e86b0ff8 100644 --- a/lib/groups/item/events/item/instances/item/snooze_reminder/snooze_reminder_request_builder.rb +++ b/lib/groups/item/events/item/instances/item/snooze_reminder/snooze_reminder_request_builder.rb @@ -42,8 +42,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,16 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a snooze_reminder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SnoozeReminderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/events/item/instances/item/tentatively_accept/tentatively_accept_post_request_body.rb b/lib/groups/item/events/item/instances/item/tentatively_accept/tentatively_accept_post_request_body.rb index 31e98f2c7d..bced5a6e44 100644 --- a/lib/groups/item/events/item/instances/item/tentatively_accept/tentatively_accept_post_request_body.rb +++ b/lib/groups/item/events/item/instances/item/tentatively_accept/tentatively_accept_post_request_body.rb @@ -32,15 +32,15 @@ class TentativelyAcceptPostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -62,7 +62,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new tentativelyAcceptPostRequestBody and sets the default values. + ## Instantiates a new TentativelyAcceptPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/events/item/instances/item/tentatively_accept/tentatively_accept_request_builder.rb b/lib/groups/item/events/item/instances/item/tentatively_accept/tentatively_accept_request_builder.rb index 4c55a1a4e6..0e6e0f0117 100644 --- a/lib/groups/item/events/item/instances/item/tentatively_accept/tentatively_accept_request_builder.rb +++ b/lib/groups/item/events/item/instances/item/tentatively_accept/tentatively_accept_request_builder.rb @@ -42,8 +42,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,16 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a tentatively_accept_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TentativelyAcceptRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/events/item/permanent_delete/permanent_delete.rb b/lib/groups/item/events/item/permanent_delete/permanent_delete.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/events/item/permanent_delete/permanent_delete_request_builder.rb b/lib/groups/item/events/item/permanent_delete/permanent_delete_request_builder.rb new file mode 100644 index 0000000000..8309cf6b5c --- /dev/null +++ b/lib/groups/item/events/item/permanent_delete/permanent_delete_request_builder.rb @@ -0,0 +1,74 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../events' +require_relative '../item' +require_relative './permanent_delete' + +module MicrosoftGraph + module Groups + module Item + module Events + module Item + module PermanentDelete + ## + # Provides operations to call the permanentDelete method. + class PermanentDeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new PermanentDeleteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/permanentDelete") + end + ## + ## Invoke action permanentDelete + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action permanentDelete + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a permanent_delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PermanentDeleteRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/events/item/snooze_reminder/snooze_reminder_post_request_body.rb b/lib/groups/item/events/item/snooze_reminder/snooze_reminder_post_request_body.rb index e07950b0da..6bb8ab8186 100644 --- a/lib/groups/item/events/item/snooze_reminder/snooze_reminder_post_request_body.rb +++ b/lib/groups/item/events/item/snooze_reminder/snooze_reminder_post_request_body.rb @@ -22,22 +22,22 @@ class SnoozeReminderPostRequestBody # The NewReminderTime property @new_reminder_time ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new snoozeReminderPostRequestBody and sets the default values. + ## Instantiates a new SnoozeReminderPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/events/item/snooze_reminder/snooze_reminder_request_builder.rb b/lib/groups/item/events/item/snooze_reminder/snooze_reminder_request_builder.rb index 6c61a288e2..ec28a596ba 100644 --- a/lib/groups/item/events/item/snooze_reminder/snooze_reminder_request_builder.rb +++ b/lib/groups/item/events/item/snooze_reminder/snooze_reminder_request_builder.rb @@ -38,8 +38,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,16 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a snooze_reminder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SnoozeReminderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/events/item/tentatively_accept/tentatively_accept_post_request_body.rb b/lib/groups/item/events/item/tentatively_accept/tentatively_accept_post_request_body.rb index 2a20885e19..26f0b314ac 100644 --- a/lib/groups/item/events/item/tentatively_accept/tentatively_accept_post_request_body.rb +++ b/lib/groups/item/events/item/tentatively_accept/tentatively_accept_post_request_body.rb @@ -28,15 +28,15 @@ class TentativelyAcceptPostRequestBody # The SendResponse property @send_response ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -58,7 +58,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new tentativelyAcceptPostRequestBody and sets the default values. + ## Instantiates a new TentativelyAcceptPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/events/item/tentatively_accept/tentatively_accept_request_builder.rb b/lib/groups/item/events/item/tentatively_accept/tentatively_accept_request_builder.rb index 8e75ab3324..c8be1dfe61 100644 --- a/lib/groups/item/events/item/tentatively_accept/tentatively_accept_request_builder.rb +++ b/lib/groups/item/events/item/tentatively_accept/tentatively_accept_request_builder.rb @@ -38,8 +38,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,16 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a tentatively_accept_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TentativelyAcceptRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/extensions/count/count_request_builder.rb b/lib/groups/item/extensions/count/count_request_builder.rb index 141340f3a8..2effe3ad53 100644 --- a/lib/groups/item/extensions/count/count_request_builder.rb +++ b/lib/groups/item/extensions/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/extensions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/extensions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/extensions/extensions_request_builder.rb b/lib/groups/item/extensions/extensions_request_builder.rb index cf59a69ccf..ff3b1aebff 100644 --- a/lib/groups/item/extensions/extensions_request_builder.rb +++ b/lib/groups/item/extensions/extensions_request_builder.rb @@ -40,7 +40,7 @@ def by_extension_id(extension_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/extensions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The collection of open extensions defined for the group. Read-only. Nullable. @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExtensionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,15 +77,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extensions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionsRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of open extensions defined for the group. Read-only. Nullable. diff --git a/lib/groups/item/extensions/item/extension_item_request_builder.rb b/lib/groups/item/extensions/item/extension_item_request_builder.rb index 14f94672a9..8602ec597f 100644 --- a/lib/groups/item/extensions/item/extension_item_request_builder.rb +++ b/lib/groups/item/extensions/item/extension_item_request_builder.rb @@ -23,7 +23,7 @@ class ExtensionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/extensions/{extension%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/extensions/{extension%2Did}{?%24expand,%24select}") end ## ## Delete navigation property extensions for groups @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extension_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of open extensions defined for the group. Read-only. Nullable. diff --git a/lib/groups/item/get_member_groups/get_member_groups.rb b/lib/groups/item/get_member_groups/get_member_groups.rb index 0a25b012ea..9190b99738 100644 --- a/lib/groups/item/get_member_groups/get_member_groups.rb +++ b/lib/groups/item/get_member_groups/get_member_groups.rb @@ -1,2 +1,2 @@ require_relative 'get_member_groups_post_request_body' -require_relative 'get_member_groups_response' +require_relative 'get_member_groups_post_response' diff --git a/lib/groups/item/get_member_groups/get_member_groups_post_request_body.rb b/lib/groups/item/get_member_groups/get_member_groups_post_request_body.rb index 879b80f218..cb65cf4ca4 100644 --- a/lib/groups/item/get_member_groups/get_member_groups_post_request_body.rb +++ b/lib/groups/item/get_member_groups/get_member_groups_post_request_body.rb @@ -17,22 +17,22 @@ class GetMemberGroupsPostRequestBody # The securityEnabledOnly property @security_enabled_only ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getMemberGroupsPostRequestBody and sets the default values. + ## Instantiates a new GetMemberGroupsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/get_member_groups/get_member_groups_post_response.rb b/lib/groups/item/get_member_groups/get_member_groups_post_response.rb new file mode 100644 index 0000000000..726785ecb9 --- /dev/null +++ b/lib/groups/item/get_member_groups/get_member_groups_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../groups' +require_relative '../item' +require_relative './get_member_groups' + +module MicrosoftGraph + module Groups + module Item + module GetMemberGroups + class GetMemberGroupsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetMemberGroupsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_member_groups_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetMemberGroupsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/groups/item/get_member_groups/get_member_groups_request_builder.rb b/lib/groups/item/get_member_groups/get_member_groups_request_builder.rb index 2e1bf34ed6..9120ac4c36 100644 --- a/lib/groups/item/get_member_groups/get_member_groups_request_builder.rb +++ b/lib/groups/item/get_member_groups/get_member_groups_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/getMemberGroups") end ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. + ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_groups_response + ## @return a Fiber of get_member_groups_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::GetMemberGroups::GetMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::GetMemberGroups::GetMemberGroupsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. + ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_member_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetMemberGroupsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/get_member_groups/get_member_groups_response.rb b/lib/groups/item/get_member_groups/get_member_groups_response.rb deleted file mode 100644 index e614fcb86f..0000000000 --- a/lib/groups/item/get_member_groups/get_member_groups_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../groups' -require_relative '../item' -require_relative './get_member_groups' - -module MicrosoftGraph - module Groups - module Item - module GetMemberGroups - class GetMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/groups/item/get_member_objects/get_member_objects.rb b/lib/groups/item/get_member_objects/get_member_objects.rb index 40edad6b9e..f7a486b0f9 100644 --- a/lib/groups/item/get_member_objects/get_member_objects.rb +++ b/lib/groups/item/get_member_objects/get_member_objects.rb @@ -1,2 +1,2 @@ require_relative 'get_member_objects_post_request_body' -require_relative 'get_member_objects_response' +require_relative 'get_member_objects_post_response' diff --git a/lib/groups/item/get_member_objects/get_member_objects_post_request_body.rb b/lib/groups/item/get_member_objects/get_member_objects_post_request_body.rb index 734ca9c77e..9778d5cdd6 100644 --- a/lib/groups/item/get_member_objects/get_member_objects_post_request_body.rb +++ b/lib/groups/item/get_member_objects/get_member_objects_post_request_body.rb @@ -17,22 +17,22 @@ class GetMemberObjectsPostRequestBody # The securityEnabledOnly property @security_enabled_only ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getMemberObjectsPostRequestBody and sets the default values. + ## Instantiates a new GetMemberObjectsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/get_member_objects/get_member_objects_post_response.rb b/lib/groups/item/get_member_objects/get_member_objects_post_response.rb new file mode 100644 index 0000000000..6c0db8b99b --- /dev/null +++ b/lib/groups/item/get_member_objects/get_member_objects_post_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../groups' +require_relative '../item' +require_relative './get_member_objects' + +module MicrosoftGraph + module Groups + module Item + module GetMemberObjects + class GetMemberObjectsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetMemberObjectsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_member_objects_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetMemberObjectsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/groups/item/get_member_objects/get_member_objects_request_builder.rb b/lib/groups/item/get_member_objects/get_member_objects_request_builder.rb index 26343706d3..c7662c1316 100644 --- a/lib/groups/item/get_member_objects/get_member_objects_request_builder.rb +++ b/lib/groups/item/get_member_objects/get_member_objects_request_builder.rb @@ -23,10 +23,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/getMemberObjects") end ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + ## Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_objects_response + ## @return a Fiber of get_member_objects_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -34,12 +34,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::GetMemberObjects::GetMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::GetMemberObjects::GetMemberObjectsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + ## Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -47,17 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_member_objects_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetMemberObjectsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/get_member_objects/get_member_objects_response.rb b/lib/groups/item/get_member_objects/get_member_objects_response.rb deleted file mode 100644 index c17e6d203d..0000000000 --- a/lib/groups/item/get_member_objects/get_member_objects_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../groups' -require_relative '../item' -require_relative './get_member_objects' - -module MicrosoftGraph - module Groups - module Item - module GetMemberObjects - class GetMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/groups/item/group_item_request_builder.rb b/lib/groups/item/group_item_request_builder.rb index 11061010a6..253b39acdf 100644 --- a/lib/groups/item/group_item_request_builder.rb +++ b/lib/groups/item/group_item_request_builder.rb @@ -36,6 +36,8 @@ require_relative './renew/renew_request_builder' require_relative './reset_unseen_count/reset_unseen_count_request_builder' require_relative './restore/restore_request_builder' +require_relative './retry_service_provisioning/retry_service_provisioning_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' require_relative './settings/settings_request_builder' require_relative './sites/sites_request_builder' require_relative './subscribe_by_mail/subscribe_by_mail_request_builder' @@ -214,6 +216,16 @@ def restore() return MicrosoftGraph::Groups::Item::Restore::RestoreRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the retryServiceProvisioning method. + def retry_service_provisioning() + return MicrosoftGraph::Groups::Item::RetryServiceProvisioning::RetryServiceProvisioningRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Groups::Item::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to manage the settings property of the microsoft.graph.group entity. def settings() return MicrosoftGraph::Groups::Item::Settings::SettingsRequestBuilder.new(@path_parameters, @request_adapter) @@ -265,10 +277,10 @@ def validate_properties() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}{?%24expand,%24select}") end ## - ## Delete group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems. + ## Delete a group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -277,12 +289,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that are not returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. + ## Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that aren't_ returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and aren't returned in the $select query. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of group ## @@ -291,12 +302,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of a group object. + ## Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of group @@ -307,46 +317,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems. + ## Delete a group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that are not returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. + ## Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that aren't_ returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and aren't returned in the $select query. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of a group object. + ## Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -354,20 +364,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a group_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GroupItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that are not returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. + # Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that aren't_ returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and aren't returned in the $select query. class GroupItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/group_lifecycle_policies/count/count_request_builder.rb b/lib/groups/item/group_lifecycle_policies/count/count_request_builder.rb index dedd3651d4..1f93989a6d 100644 --- a/lib/groups/item/group_lifecycle_policies/count/count_request_builder.rb +++ b/lib/groups/item/group_lifecycle_policies/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/groupLifecyclePolicies/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/groupLifecyclePolicies/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/group_lifecycle_policies/group_lifecycle_policies_request_builder.rb b/lib/groups/item/group_lifecycle_policies/group_lifecycle_policies_request_builder.rb index 6d6ce95e0b..96e938b3a8 100644 --- a/lib/groups/item/group_lifecycle_policies/group_lifecycle_policies_request_builder.rb +++ b/lib/groups/item/group_lifecycle_policies/group_lifecycle_policies_request_builder.rb @@ -40,7 +40,7 @@ def by_group_lifecycle_policy_id(group_lifecycle_policy_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/groupLifecyclePolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/groupLifecyclePolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieves a list of groupLifecyclePolicy objects to which a group belongs. @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupLifecyclePolicyCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupLifecyclePolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,15 +77,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a group_lifecycle_policies_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GroupLifecyclePoliciesRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieves a list of groupLifecyclePolicy objects to which a group belongs. diff --git a/lib/groups/item/group_lifecycle_policies/item/add_group/add_group.rb b/lib/groups/item/group_lifecycle_policies/item/add_group/add_group.rb index 45e59992b7..902de78d53 100644 --- a/lib/groups/item/group_lifecycle_policies/item/add_group/add_group.rb +++ b/lib/groups/item/group_lifecycle_policies/item/add_group/add_group.rb @@ -1,2 +1,2 @@ require_relative 'add_group_post_request_body' -require_relative 'add_group_response' +require_relative 'add_group_post_response' diff --git a/lib/groups/item/group_lifecycle_policies/item/add_group/add_group_post_request_body.rb b/lib/groups/item/group_lifecycle_policies/item/add_group/add_group_post_request_body.rb index d3b4910029..b070622b8c 100644 --- a/lib/groups/item/group_lifecycle_policies/item/add_group/add_group_post_request_body.rb +++ b/lib/groups/item/group_lifecycle_policies/item/add_group/add_group_post_request_body.rb @@ -21,22 +21,22 @@ class AddGroupPostRequestBody # The groupId property @group_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new addGroupPostRequestBody and sets the default values. + ## Instantiates a new AddGroupPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/group_lifecycle_policies/item/add_group/add_group_post_response.rb b/lib/groups/item/group_lifecycle_policies/item/add_group/add_group_post_response.rb new file mode 100644 index 0000000000..d4bdb04394 --- /dev/null +++ b/lib/groups/item/group_lifecycle_policies/item/add_group/add_group_post_response.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../group_lifecycle_policies' +require_relative '../item' +require_relative './add_group' + +module MicrosoftGraph + module Groups + module Item + module GroupLifecyclePolicies + module Item + module AddGroup + class AddGroupPostResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new AddGroupPostResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a add_group_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AddGroupPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a boolean + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/group_lifecycle_policies/item/add_group/add_group_request_builder.rb b/lib/groups/item/group_lifecycle_policies/item/add_group/add_group_request_builder.rb index 5ee61a882e..b77daa66f9 100644 --- a/lib/groups/item/group_lifecycle_policies/item/add_group/add_group_request_builder.rb +++ b/lib/groups/item/group_lifecycle_policies/item/add_group/add_group_request_builder.rb @@ -27,10 +27,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}/addGroup") end ## - ## Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. + ## Add a group to a groupLifecyclePolicy. This action is supported only if the managedGroupTypes property of the policy is set to Selected. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of add_group_response + ## @return a Fiber of add_group_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -38,12 +38,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::GroupLifecyclePolicies::Item::AddGroup::AddGroupResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::GroupLifecyclePolicies::Item::AddGroup::AddGroupPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. + ## Add a group to a groupLifecyclePolicy. This action is supported only if the managedGroupTypes property of the policy is set to Selected. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -51,17 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddGroupRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/group_lifecycle_policies/item/add_group/add_group_response.rb b/lib/groups/item/group_lifecycle_policies/item/add_group/add_group_response.rb deleted file mode 100644 index c7dc3e1ab2..0000000000 --- a/lib/groups/item/group_lifecycle_policies/item/add_group/add_group_response.rb +++ /dev/null @@ -1,94 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../group_lifecycle_policies' -require_relative '../item' -require_relative './add_group' - -module MicrosoftGraph - module Groups - module Item - module GroupLifecyclePolicies - module Item - module AddGroup - class AddGroupResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new addGroupResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a add_group_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return AddGroupResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_boolean_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a boolean - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/group_lifecycle_policies/item/group_lifecycle_policy_item_request_builder.rb b/lib/groups/item/group_lifecycle_policies/item/group_lifecycle_policy_item_request_builder.rb index 0cca1c1dc8..d863c82605 100644 --- a/lib/groups/item/group_lifecycle_policies/item/group_lifecycle_policy_item_request_builder.rb +++ b/lib/groups/item/group_lifecycle_policies/item/group_lifecycle_policy_item_request_builder.rb @@ -35,7 +35,7 @@ def remove_group() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}{?%24expand,%24select}") end ## ## Delete navigation property groupLifecyclePolicies for groups @@ -47,8 +47,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupLifecyclePolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupLifecyclePolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,13 +85,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -104,15 +102,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,17 +122,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a group_lifecycle_policy_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GroupLifecyclePolicyItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of lifecycle policies for this group. Read-only. Nullable. diff --git a/lib/groups/item/group_lifecycle_policies/item/remove_group/remove_group.rb b/lib/groups/item/group_lifecycle_policies/item/remove_group/remove_group.rb index c217407e76..06d43ede91 100644 --- a/lib/groups/item/group_lifecycle_policies/item/remove_group/remove_group.rb +++ b/lib/groups/item/group_lifecycle_policies/item/remove_group/remove_group.rb @@ -1,2 +1,2 @@ require_relative 'remove_group_post_request_body' -require_relative 'remove_group_response' +require_relative 'remove_group_post_response' diff --git a/lib/groups/item/group_lifecycle_policies/item/remove_group/remove_group_post_request_body.rb b/lib/groups/item/group_lifecycle_policies/item/remove_group/remove_group_post_request_body.rb index 82fb549c78..415b81fede 100644 --- a/lib/groups/item/group_lifecycle_policies/item/remove_group/remove_group_post_request_body.rb +++ b/lib/groups/item/group_lifecycle_policies/item/remove_group/remove_group_post_request_body.rb @@ -21,22 +21,22 @@ class RemoveGroupPostRequestBody # The groupId property @group_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new removeGroupPostRequestBody and sets the default values. + ## Instantiates a new RemoveGroupPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/group_lifecycle_policies/item/remove_group/remove_group_post_response.rb b/lib/groups/item/group_lifecycle_policies/item/remove_group/remove_group_post_response.rb new file mode 100644 index 0000000000..3aec52a812 --- /dev/null +++ b/lib/groups/item/group_lifecycle_policies/item/remove_group/remove_group_post_response.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../group_lifecycle_policies' +require_relative '../item' +require_relative './remove_group' + +module MicrosoftGraph + module Groups + module Item + module GroupLifecyclePolicies + module Item + module RemoveGroup + class RemoveGroupPostResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new RemoveGroupPostResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a remove_group_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return RemoveGroupPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a boolean + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/group_lifecycle_policies/item/remove_group/remove_group_request_builder.rb b/lib/groups/item/group_lifecycle_policies/item/remove_group/remove_group_request_builder.rb index f4f604c0b0..255a8d88bb 100644 --- a/lib/groups/item/group_lifecycle_policies/item/remove_group/remove_group_request_builder.rb +++ b/lib/groups/item/group_lifecycle_policies/item/remove_group/remove_group_request_builder.rb @@ -30,7 +30,7 @@ def initialize(path_parameters, request_adapter) ## Removes a group from a lifecycle policy. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of remove_group_response + ## @return a Fiber of remove_group_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -38,9 +38,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::GroupLifecyclePolicies::Item::RemoveGroup::RemoveGroupResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::GroupLifecyclePolicies::Item::RemoveGroup::RemoveGroupPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Removes a group from a lifecycle policy. @@ -51,17 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a remove_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RemoveGroupRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/group_lifecycle_policies/item/remove_group/remove_group_response.rb b/lib/groups/item/group_lifecycle_policies/item/remove_group/remove_group_response.rb deleted file mode 100644 index 57fcd6a998..0000000000 --- a/lib/groups/item/group_lifecycle_policies/item/remove_group/remove_group_response.rb +++ /dev/null @@ -1,94 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../group_lifecycle_policies' -require_relative '../item' -require_relative './remove_group' - -module MicrosoftGraph - module Groups - module Item - module GroupLifecyclePolicies - module Item - module RemoveGroup - class RemoveGroupResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new removeGroupResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a remove_group_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return RemoveGroupResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_boolean_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a boolean - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/member_of/count/count_request_builder.rb b/lib/groups/item/member_of/count/count_request_builder.rb index d99a452bd7..ccedb4c9f1 100644 --- a/lib/groups/item/member_of/count/count_request_builder.rb +++ b/lib/groups/item/member_of/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/memberOf/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/memberOf/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/member_of/graph_administrative_unit/count/count_request_builder.rb b/lib/groups/item/member_of/graph_administrative_unit/count/count_request_builder.rb index 4326d69ceb..4318878eb5 100644 --- a/lib/groups/item/member_of/graph_administrative_unit/count/count_request_builder.rb +++ b/lib/groups/item/member_of/graph_administrative_unit/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/memberOf/graph.administrativeUnit/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/memberOf/graph.administrativeUnit/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/groups/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb index 064ef7e660..249bb247a0 100644 --- a/lib/groups/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +++ b/lib/groups/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/memberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/memberOf/graph.administrativeUnit{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnitCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_administrative_unit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAdministrativeUnitRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/member_of/graph_group/count/count_request_builder.rb b/lib/groups/item/member_of/graph_group/count/count_request_builder.rb index 928e09e921..b36d3e99c0 100644 --- a/lib/groups/item/member_of/graph_group/count/count_request_builder.rb +++ b/lib/groups/item/member_of/graph_group/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/memberOf/graph.group/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/memberOf/graph.group/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/member_of/graph_group/graph_group_request_builder.rb b/lib/groups/item/member_of/graph_group/graph_group_request_builder.rb index 7dc8f16815..fe5726c772 100644 --- a/lib/groups/item/member_of/graph_group/graph_group_request_builder.rb +++ b/lib/groups/item/member_of/graph_group/graph_group_request_builder.rb @@ -29,10 +29,10 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/memberOf/graph.group{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/memberOf/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection + ## Get groups that the group is a direct member of. This operation is not transitive. Unlike getting a user's Microsoft 365 groups, this returns all types of groups, not just Microsoft 365 groups. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of group_collection_response ## @@ -41,31 +41,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection + ## Get groups that the group is a direct member of. This operation is not transitive. Unlike getting a user's Microsoft 365 groups, this returns all types of groups, not just Microsoft 365 groups. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection + # Get groups that the group is a direct member of. This operation is not transitive. Unlike getting a user's Microsoft 365 groups, this returns all types of groups, not just Microsoft 365 groups. class GraphGroupRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/member_of/item/directory_object_item_request_builder.rb b/lib/groups/item/member_of/item/directory_object_item_request_builder.rb index 8ff8fc5b49..520d88d577 100644 --- a/lib/groups/item/member_of/item/directory_object_item_request_builder.rb +++ b/lib/groups/item/member_of/item/directory_object_item_request_builder.rb @@ -35,7 +35,7 @@ def graph_group() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/memberOf/{directoryObject%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/memberOf/{directoryObject%2Did}{?%24expand,%24select}") end ## ## Groups that this group is a member of. HTTP Methods: GET (supported for all groups). Read-only. Nullable. Supports $expand. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directory_object_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoryObjectItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Groups that this group is a member of. HTTP Methods: GET (supported for all groups). Read-only. Nullable. Supports $expand. diff --git a/lib/groups/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/groups/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb index dba9e50d8b..ccd6477adf 100644 --- a/lib/groups/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +++ b/lib/groups/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -25,7 +25,7 @@ class GraphAdministrativeUnitRequestBuilder < MicrosoftKiotaAbstractions::BaseRe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/memberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/memberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_administrative_unit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAdministrativeUnitRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit diff --git a/lib/groups/item/member_of/item/graph_group/graph_group_request_builder.rb b/lib/groups/item/member_of/item/graph_group/graph_group_request_builder.rb index 675a0443ed..268b4de518 100644 --- a/lib/groups/item/member_of/item/graph_group/graph_group_request_builder.rb +++ b/lib/groups/item/member_of/item/graph_group/graph_group_request_builder.rb @@ -25,10 +25,10 @@ class GraphGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/memberOf/{directoryObject%2Did}/graph.group{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/memberOf/{directoryObject%2Did}/graph.group{?%24expand,%24select}") end ## - ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.group + ## Get groups that the group is a direct member of. This operation is not transitive. Unlike getting a user's Microsoft 365 groups, this returns all types of groups, not just Microsoft 365 groups. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of group ## @@ -37,31 +37,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.group + ## Get groups that the group is a direct member of. This operation is not transitive. Unlike getting a user's Microsoft 365 groups, this returns all types of groups, not just Microsoft 365 groups. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the item of type microsoft.graph.directoryObject as microsoft.graph.group + # Get groups that the group is a direct member of. This operation is not transitive. Unlike getting a user's Microsoft 365 groups, this returns all types of groups, not just Microsoft 365 groups. class GraphGroupRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/member_of/member_of_request_builder.rb b/lib/groups/item/member_of/member_of_request_builder.rb index 76dfcdcb2e..2e1fea2678 100644 --- a/lib/groups/item/member_of/member_of_request_builder.rb +++ b/lib/groups/item/member_of/member_of_request_builder.rb @@ -51,10 +51,10 @@ def by_directory_object_id(directory_object_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/memberOf{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/memberOf{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Groups that this group is a member of. HTTP Methods: GET (supported for all groups). Read-only. Nullable. Supports $expand. + ## Get groups that the group is a direct member of. This operation is not transitive. Unlike getting a user's Microsoft 365 groups, this returns all types of groups, not just Microsoft 365 groups. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object_collection_response ## @@ -63,31 +63,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Groups that this group is a member of. HTTP Methods: GET (supported for all groups). Read-only. Nullable. Supports $expand. + ## Get groups that the group is a direct member of. This operation is not transitive. Unlike getting a user's Microsoft 365 groups, this returns all types of groups, not just Microsoft 365 groups. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a member_of_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MemberOfRequestBuilder.new(raw_url, @request_adapter) + end ## - # Groups that this group is a member of. HTTP Methods: GET (supported for all groups). Read-only. Nullable. Supports $expand. + # Get groups that the group is a direct member of. This operation is not transitive. Unlike getting a user's Microsoft 365 groups, this returns all types of groups, not just Microsoft 365 groups. class MemberOfRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/members/count/count_request_builder.rb b/lib/groups/item/members/count/count_request_builder.rb index 04dca500d4..76a16a8f1c 100644 --- a/lib/groups/item/members/count/count_request_builder.rb +++ b/lib/groups/item/members/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/members/graph_application/count/count_request_builder.rb b/lib/groups/item/members/graph_application/count/count_request_builder.rb index e4422c2729..87da7aca6e 100644 --- a/lib/groups/item/members/graph_application/count/count_request_builder.rb +++ b/lib/groups/item/members/graph_application/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.application/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.application/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/members/graph_application/graph_application_request_builder.rb b/lib/groups/item/members/graph_application/graph_application_request_builder.rb index e50ab148b1..d8c6acd3e7 100644 --- a/lib/groups/item/members/graph_application/graph_application_request_builder.rb +++ b/lib/groups/item/members/graph_application/graph_application_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.application{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.application{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ApplicationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_application_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphApplicationRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/members/graph_device/count/count_request_builder.rb b/lib/groups/item/members/graph_device/count/count_request_builder.rb index d68c548065..6503e7fa2e 100644 --- a/lib/groups/item/members/graph_device/count/count_request_builder.rb +++ b/lib/groups/item/members/graph_device/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.device/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.device/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/members/graph_device/graph_device_request_builder.rb b/lib/groups/item/members/graph_device/graph_device_request_builder.rb index 8fc7e571c3..bdd2dc533b 100644 --- a/lib/groups/item/members/graph_device/graph_device_request_builder.rb +++ b/lib/groups/item/members/graph_device/graph_device_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.device{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.device{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_device_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphDeviceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/members/graph_group/count/count_request_builder.rb b/lib/groups/item/members/graph_group/count/count_request_builder.rb index 85f4eb4f50..7b28e2f36a 100644 --- a/lib/groups/item/members/graph_group/count/count_request_builder.rb +++ b/lib/groups/item/members/graph_group/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.group/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.group/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/members/graph_group/graph_group_request_builder.rb b/lib/groups/item/members/graph_group/graph_group_request_builder.rb index fa9103e6f1..43947264b1 100644 --- a/lib/groups/item/members/graph_group/graph_group_request_builder.rb +++ b/lib/groups/item/members/graph_group/graph_group_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.group{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/members/graph_org_contact/count/count_request_builder.rb b/lib/groups/item/members/graph_org_contact/count/count_request_builder.rb index 8862bfd1f9..f8adfb7217 100644 --- a/lib/groups/item/members/graph_org_contact/count/count_request_builder.rb +++ b/lib/groups/item/members/graph_org_contact/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.orgContact/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.orgContact/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/members/graph_org_contact/graph_org_contact_request_builder.rb b/lib/groups/item/members/graph_org_contact/graph_org_contact_request_builder.rb index 678b688d6d..95d277b5b7 100644 --- a/lib/groups/item/members/graph_org_contact/graph_org_contact_request_builder.rb +++ b/lib/groups/item/members/graph_org_contact/graph_org_contact_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.orgContact{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.orgContact{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OrgContactCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_org_contact_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphOrgContactRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/members/graph_service_principal/count/count_request_builder.rb b/lib/groups/item/members/graph_service_principal/count/count_request_builder.rb index 48face0e69..173014d6ec 100644 --- a/lib/groups/item/members/graph_service_principal/count/count_request_builder.rb +++ b/lib/groups/item/members/graph_service_principal/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.servicePrincipal/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.servicePrincipal/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/members/graph_service_principal/graph_service_principal_request_builder.rb b/lib/groups/item/members/graph_service_principal/graph_service_principal_request_builder.rb index 1af548f121..e8e0d645de 100644 --- a/lib/groups/item/members/graph_service_principal/graph_service_principal_request_builder.rb +++ b/lib/groups/item/members/graph_service_principal/graph_service_principal_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.servicePrincipal{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.servicePrincipal{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServicePrincipalCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_service_principal_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphServicePrincipalRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/members/graph_user/count/count_request_builder.rb b/lib/groups/item/members/graph_user/count/count_request_builder.rb index 23eb0195f6..5bfd705b88 100644 --- a/lib/groups/item/members/graph_user/count/count_request_builder.rb +++ b/lib/groups/item/members/graph_user/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.user/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.user/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/members/graph_user/graph_user_request_builder.rb b/lib/groups/item/members/graph_user/graph_user_request_builder.rb index b75b3f96e9..168c9ea4f8 100644 --- a/lib/groups/item/members/graph_user/graph_user_request_builder.rb +++ b/lib/groups/item/members/graph_user/graph_user_request_builder.rb @@ -29,10 +29,10 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.user{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/graph.user{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection + ## Get a list of the group's direct members. A group can have users, organizational contacts, devices, service principals and other groups as members. This operation is not transitive. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of user_collection_response ## @@ -41,31 +41,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection + ## Get a list of the group's direct members. A group can have users, organizational contacts, devices, service principals and other groups as members. This operation is not transitive. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphUserRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection + # Get a list of the group's direct members. A group can have users, organizational contacts, devices, service principals and other groups as members. This operation is not transitive. class GraphUserRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/members/item/graph_application/graph_application_request_builder.rb b/lib/groups/item/members/item/graph_application/graph_application_request_builder.rb index 72efe344a9..fc64e94a6c 100644 --- a/lib/groups/item/members/item/graph_application/graph_application_request_builder.rb +++ b/lib/groups/item/members/item/graph_application/graph_application_request_builder.rb @@ -25,7 +25,7 @@ class GraphApplicationRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBu ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.application{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.application{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.application @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Application.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_application_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphApplicationRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.application diff --git a/lib/groups/item/members/item/graph_device/graph_device_request_builder.rb b/lib/groups/item/members/item/graph_device/graph_device_request_builder.rb index c6276ad39e..d2860c6652 100644 --- a/lib/groups/item/members/item/graph_device/graph_device_request_builder.rb +++ b/lib/groups/item/members/item/graph_device/graph_device_request_builder.rb @@ -25,7 +25,7 @@ class GraphDeviceRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.device{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.device{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.device @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Device.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_device_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphDeviceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.device diff --git a/lib/groups/item/members/item/graph_group/graph_group_request_builder.rb b/lib/groups/item/members/item/graph_group/graph_group_request_builder.rb index ad2fea64d1..767b0d7c1f 100644 --- a/lib/groups/item/members/item/graph_group/graph_group_request_builder.rb +++ b/lib/groups/item/members/item/graph_group/graph_group_request_builder.rb @@ -25,7 +25,7 @@ class GraphGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.group{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.group{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.group @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.group diff --git a/lib/groups/item/members/item/graph_org_contact/graph_org_contact_request_builder.rb b/lib/groups/item/members/item/graph_org_contact/graph_org_contact_request_builder.rb index 8631c2e70f..a7f379d60f 100644 --- a/lib/groups/item/members/item/graph_org_contact/graph_org_contact_request_builder.rb +++ b/lib/groups/item/members/item/graph_org_contact/graph_org_contact_request_builder.rb @@ -25,7 +25,7 @@ class GraphOrgContactRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.orgContact{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.orgContact{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OrgContact.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_org_contact_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphOrgContactRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact diff --git a/lib/groups/item/members/item/graph_service_principal/graph_service_principal_request_builder.rb b/lib/groups/item/members/item/graph_service_principal/graph_service_principal_request_builder.rb index 5737f8904e..fa5669c15c 100644 --- a/lib/groups/item/members/item/graph_service_principal/graph_service_principal_request_builder.rb +++ b/lib/groups/item/members/item/graph_service_principal/graph_service_principal_request_builder.rb @@ -25,7 +25,7 @@ class GraphServicePrincipalRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.servicePrincipal{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.servicePrincipal{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServicePrincipal.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_service_principal_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphServicePrincipalRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal diff --git a/lib/groups/item/members/item/graph_user/graph_user_request_builder.rb b/lib/groups/item/members/item/graph_user/graph_user_request_builder.rb index e40fba12cc..66bc42e6e5 100644 --- a/lib/groups/item/members/item/graph_user/graph_user_request_builder.rb +++ b/lib/groups/item/members/item/graph_user/graph_user_request_builder.rb @@ -25,10 +25,10 @@ class GraphUserRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.user{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.user{?%24expand,%24select}") end ## - ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.user + ## Get a list of the group's direct members. A group can have users, organizational contacts, devices, service principals and other groups as members. This operation is not transitive. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of user ## @@ -37,31 +37,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.user + ## Get a list of the group's direct members. A group can have users, organizational contacts, devices, service principals and other groups as members. This operation is not transitive. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphUserRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the item of type microsoft.graph.directoryObject as microsoft.graph.user + # Get a list of the group's direct members. A group can have users, organizational contacts, devices, service principals and other groups as members. This operation is not transitive. class GraphUserRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/members/item/ref/ref_request_builder.rb b/lib/groups/item/members/item/ref/ref_request_builder.rb index 7124b7c515..dab92ac07a 100644 --- a/lib/groups/item/members/item/ref/ref_request_builder.rb +++ b/lib/groups/item/members/item/ref/ref_request_builder.rb @@ -24,7 +24,7 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/$ref") end ## ## Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. @@ -36,8 +36,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,38 +46,24 @@ def delete(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/groups/item/members/members_request_builder.rb b/lib/groups/item/members/members_request_builder.rb index 96c8752880..589f373db4 100644 --- a/lib/groups/item/members/members_request_builder.rb +++ b/lib/groups/item/members/members_request_builder.rb @@ -65,7 +65,7 @@ def ref() end ## ## Gets an item from the MicrosoftGraph.groups.item.members.item collection - ## @param directory_object_id Unique identifier of the item + ## @param directory_object_id The unique identifier of directoryObject ## @return a directory_object_item_request_builder ## def by_directory_object_id(directory_object_id) @@ -81,10 +81,10 @@ def by_directory_object_id(directory_object_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## The members of this group, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable. Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=members($select=id,userPrincipalName,displayName). + ## Get a list of the group's direct members. A group can have users, organizational contacts, devices, service principals and other groups as members. This operation is not transitive. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object_collection_response ## @@ -93,31 +93,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The members of this group, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable. Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=members($select=id,userPrincipalName,displayName). + ## Get a list of the group's direct members. A group can have users, organizational contacts, devices, service principals and other groups as members. This operation is not transitive. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a members_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MembersRequestBuilder.new(raw_url, @request_adapter) + end ## - # The members of this group, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable. Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=members($select=id,userPrincipalName,displayName). + # Get a list of the group's direct members. A group can have users, organizational contacts, devices, service principals and other groups as members. This operation is not transitive. class MembersRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/members/ref/ref_request_builder.rb b/lib/groups/item/members/ref/ref_request_builder.rb index e9595c99ac..d5e7136c65 100644 --- a/lib/groups/item/members/ref/ref_request_builder.rb +++ b/lib/groups/item/members/ref/ref_request_builder.rb @@ -24,10 +24,23 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/members/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") end ## - ## The members of this group, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable. Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=members($select=id,userPrincipalName,displayName). + ## Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Get a list of the group's direct members. A group can have users, organizational contacts, devices, service principals and other groups as members. This operation is not transitive. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of string_collection_response ## @@ -36,12 +49,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. + ## Add a member to a security or Microsoft 365 group. When using the API to add multiple members in one request, you can add up to only 20 members. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -52,30 +64,47 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## The members of this group, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable. Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=members($select=id,userPrincipalName,displayName). + ## Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/groups/{group%2Did}/members/$ref?@id={%40id}' request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Get a list of the group's direct members. A group can have users, organizational contacts, devices, service principals and other groups as members. This operation is not transitive. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/groups/{group%2Did}/members/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. + ## Add a member to a security or Microsoft 365 group. When using the API to add multiple members in one request, you can add up to only 20 members. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -83,19 +112,52 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/groups/{group%2Did}/members/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end ## - # The members of this group, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable. Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=members($select=id,userPrincipalName,displayName). + # Get a list of the group's direct members. A group can have users, organizational contacts, devices, service principals and other groups as members. This operation is not transitive. class RefRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/members_with_license_errors/count/count_request_builder.rb b/lib/groups/item/members_with_license_errors/count/count_request_builder.rb index 0e27729d17..238efde114 100644 --- a/lib/groups/item/members_with_license_errors/count/count_request_builder.rb +++ b/lib/groups/item/members_with_license_errors/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/members_with_license_errors/graph_application/count/count_request_builder.rb b/lib/groups/item/members_with_license_errors/graph_application/count/count_request_builder.rb index 5d0ec47210..53b45d8500 100644 --- a/lib/groups/item/members_with_license_errors/graph_application/count/count_request_builder.rb +++ b/lib/groups/item/members_with_license_errors/graph_application/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.application/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.application/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/members_with_license_errors/graph_application/graph_application_request_builder.rb b/lib/groups/item/members_with_license_errors/graph_application/graph_application_request_builder.rb index bd7620c15c..aaf05a7536 100644 --- a/lib/groups/item/members_with_license_errors/graph_application/graph_application_request_builder.rb +++ b/lib/groups/item/members_with_license_errors/graph_application/graph_application_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.application{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.application{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ApplicationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_application_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphApplicationRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/members_with_license_errors/graph_device/count/count_request_builder.rb b/lib/groups/item/members_with_license_errors/graph_device/count/count_request_builder.rb index 0de0cf659c..d8db533d9f 100644 --- a/lib/groups/item/members_with_license_errors/graph_device/count/count_request_builder.rb +++ b/lib/groups/item/members_with_license_errors/graph_device/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.device/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.device/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/members_with_license_errors/graph_device/graph_device_request_builder.rb b/lib/groups/item/members_with_license_errors/graph_device/graph_device_request_builder.rb index 0b5682341c..61cb7e513e 100644 --- a/lib/groups/item/members_with_license_errors/graph_device/graph_device_request_builder.rb +++ b/lib/groups/item/members_with_license_errors/graph_device/graph_device_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.device{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.device{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_device_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphDeviceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/members_with_license_errors/graph_group/count/count_request_builder.rb b/lib/groups/item/members_with_license_errors/graph_group/count/count_request_builder.rb index d22a2943d7..f9f45c896f 100644 --- a/lib/groups/item/members_with_license_errors/graph_group/count/count_request_builder.rb +++ b/lib/groups/item/members_with_license_errors/graph_group/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.group/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.group/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/members_with_license_errors/graph_group/graph_group_request_builder.rb b/lib/groups/item/members_with_license_errors/graph_group/graph_group_request_builder.rb index e2c8c92a64..dc7ff9c6e3 100644 --- a/lib/groups/item/members_with_license_errors/graph_group/graph_group_request_builder.rb +++ b/lib/groups/item/members_with_license_errors/graph_group/graph_group_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.group{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/members_with_license_errors/graph_org_contact/count/count_request_builder.rb b/lib/groups/item/members_with_license_errors/graph_org_contact/count/count_request_builder.rb index 8a09cd8db9..b1135db33f 100644 --- a/lib/groups/item/members_with_license_errors/graph_org_contact/count/count_request_builder.rb +++ b/lib/groups/item/members_with_license_errors/graph_org_contact/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.orgContact/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.orgContact/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/members_with_license_errors/graph_org_contact/graph_org_contact_request_builder.rb b/lib/groups/item/members_with_license_errors/graph_org_contact/graph_org_contact_request_builder.rb index 9500e4af21..1c4210f71a 100644 --- a/lib/groups/item/members_with_license_errors/graph_org_contact/graph_org_contact_request_builder.rb +++ b/lib/groups/item/members_with_license_errors/graph_org_contact/graph_org_contact_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.orgContact{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.orgContact{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OrgContactCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_org_contact_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphOrgContactRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/members_with_license_errors/graph_service_principal/count/count_request_builder.rb b/lib/groups/item/members_with_license_errors/graph_service_principal/count/count_request_builder.rb index adaf1ac3c3..0f6714992b 100644 --- a/lib/groups/item/members_with_license_errors/graph_service_principal/count/count_request_builder.rb +++ b/lib/groups/item/members_with_license_errors/graph_service_principal/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.servicePrincipal/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.servicePrincipal/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/members_with_license_errors/graph_service_principal/graph_service_principal_request_builder.rb b/lib/groups/item/members_with_license_errors/graph_service_principal/graph_service_principal_request_builder.rb index 75af574c5c..217de161ef 100644 --- a/lib/groups/item/members_with_license_errors/graph_service_principal/graph_service_principal_request_builder.rb +++ b/lib/groups/item/members_with_license_errors/graph_service_principal/graph_service_principal_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.servicePrincipal{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.servicePrincipal{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServicePrincipalCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_service_principal_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphServicePrincipalRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/members_with_license_errors/graph_user/count/count_request_builder.rb b/lib/groups/item/members_with_license_errors/graph_user/count/count_request_builder.rb index 73acae9857..cd1a399a7d 100644 --- a/lib/groups/item/members_with_license_errors/graph_user/count/count_request_builder.rb +++ b/lib/groups/item/members_with_license_errors/graph_user/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.user/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.user/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/members_with_license_errors/graph_user/graph_user_request_builder.rb b/lib/groups/item/members_with_license_errors/graph_user/graph_user_request_builder.rb index 04246343ad..eccf4433b3 100644 --- a/lib/groups/item/members_with_license_errors/graph_user/graph_user_request_builder.rb +++ b/lib/groups/item/members_with_license_errors/graph_user/graph_user_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.user{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.user{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/members_with_license_errors/item/directory_object_item_request_builder.rb b/lib/groups/item/members_with_license_errors/item/directory_object_item_request_builder.rb index 6fb0a62384..d5a9031785 100644 --- a/lib/groups/item/members_with_license_errors/item/directory_object_item_request_builder.rb +++ b/lib/groups/item/members_with_license_errors/item/directory_object_item_request_builder.rb @@ -59,7 +59,7 @@ def graph_user() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}{?%24expand,%24select}") end ## ## A list of group members with license errors from this group-based license assignment. Read-only. @@ -71,8 +71,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,17 +81,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directory_object_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoryObjectItemRequestBuilder.new(raw_url, @request_adapter) + end ## # A list of group members with license errors from this group-based license assignment. Read-only. diff --git a/lib/groups/item/members_with_license_errors/item/graph_application/graph_application_request_builder.rb b/lib/groups/item/members_with_license_errors/item/graph_application/graph_application_request_builder.rb index 9fadd6588a..f8d58f90ee 100644 --- a/lib/groups/item/members_with_license_errors/item/graph_application/graph_application_request_builder.rb +++ b/lib/groups/item/members_with_license_errors/item/graph_application/graph_application_request_builder.rb @@ -25,7 +25,7 @@ class GraphApplicationRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBu ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.application{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.application{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.application @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Application.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_application_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphApplicationRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.application diff --git a/lib/groups/item/members_with_license_errors/item/graph_device/graph_device_request_builder.rb b/lib/groups/item/members_with_license_errors/item/graph_device/graph_device_request_builder.rb index 5af5711a2b..c8ab1dbcc9 100644 --- a/lib/groups/item/members_with_license_errors/item/graph_device/graph_device_request_builder.rb +++ b/lib/groups/item/members_with_license_errors/item/graph_device/graph_device_request_builder.rb @@ -25,7 +25,7 @@ class GraphDeviceRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.device{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.device{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.device @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Device.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_device_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphDeviceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.device diff --git a/lib/groups/item/members_with_license_errors/item/graph_group/graph_group_request_builder.rb b/lib/groups/item/members_with_license_errors/item/graph_group/graph_group_request_builder.rb index 30a8cd9b8d..e77b88469b 100644 --- a/lib/groups/item/members_with_license_errors/item/graph_group/graph_group_request_builder.rb +++ b/lib/groups/item/members_with_license_errors/item/graph_group/graph_group_request_builder.rb @@ -25,7 +25,7 @@ class GraphGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.group{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.group{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.group @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.group diff --git a/lib/groups/item/members_with_license_errors/item/graph_org_contact/graph_org_contact_request_builder.rb b/lib/groups/item/members_with_license_errors/item/graph_org_contact/graph_org_contact_request_builder.rb index daa6231255..5b1c9694b2 100644 --- a/lib/groups/item/members_with_license_errors/item/graph_org_contact/graph_org_contact_request_builder.rb +++ b/lib/groups/item/members_with_license_errors/item/graph_org_contact/graph_org_contact_request_builder.rb @@ -25,7 +25,7 @@ class GraphOrgContactRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.orgContact{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.orgContact{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OrgContact.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_org_contact_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphOrgContactRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact diff --git a/lib/groups/item/members_with_license_errors/item/graph_service_principal/graph_service_principal_request_builder.rb b/lib/groups/item/members_with_license_errors/item/graph_service_principal/graph_service_principal_request_builder.rb index 6375f4c173..9380d62be2 100644 --- a/lib/groups/item/members_with_license_errors/item/graph_service_principal/graph_service_principal_request_builder.rb +++ b/lib/groups/item/members_with_license_errors/item/graph_service_principal/graph_service_principal_request_builder.rb @@ -25,7 +25,7 @@ class GraphServicePrincipalRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.servicePrincipal{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.servicePrincipal{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServicePrincipal.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_service_principal_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphServicePrincipalRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal diff --git a/lib/groups/item/members_with_license_errors/item/graph_user/graph_user_request_builder.rb b/lib/groups/item/members_with_license_errors/item/graph_user/graph_user_request_builder.rb index 0c5eb1b01a..9dc25bec34 100644 --- a/lib/groups/item/members_with_license_errors/item/graph_user/graph_user_request_builder.rb +++ b/lib/groups/item/members_with_license_errors/item/graph_user/graph_user_request_builder.rb @@ -25,7 +25,7 @@ class GraphUserRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.user{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.user{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.user @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.user diff --git a/lib/groups/item/members_with_license_errors/members_with_license_errors_request_builder.rb b/lib/groups/item/members_with_license_errors/members_with_license_errors_request_builder.rb index 88dc7e70de..d325967d15 100644 --- a/lib/groups/item/members_with_license_errors/members_with_license_errors_request_builder.rb +++ b/lib/groups/item/members_with_license_errors/members_with_license_errors_request_builder.rb @@ -75,7 +75,7 @@ def by_directory_object_id(directory_object_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## A list of group members with license errors from this group-based license assignment. Read-only. @@ -87,8 +87,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -98,17 +97,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a members_with_license_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MembersWithLicenseErrorsRequestBuilder.new(raw_url, @request_adapter) + end ## # A list of group members with license errors from this group-based license assignment. Read-only. diff --git a/lib/groups/item/onenote/notebooks/count/count_request_builder.rb b/lib/groups/item/onenote/notebooks/count/count_request_builder.rb index 53d1b9408b..9a8e6a1f6a 100644 --- a/lib/groups/item/onenote/notebooks/count/count_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/onenote/notebooks/get_notebook_from_web_url/get_notebook_from_web_url_post_request_body.rb b/lib/groups/item/onenote/notebooks/get_notebook_from_web_url/get_notebook_from_web_url_post_request_body.rb index 1a781b0cfe..6afa5ccf6e 100644 --- a/lib/groups/item/onenote/notebooks/get_notebook_from_web_url/get_notebook_from_web_url_post_request_body.rb +++ b/lib/groups/item/onenote/notebooks/get_notebook_from_web_url/get_notebook_from_web_url_post_request_body.rb @@ -21,22 +21,22 @@ class GetNotebookFromWebUrlPostRequestBody # The webUrl property @web_url ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getNotebookFromWebUrlPostRequestBody and sets the default values. + ## Instantiates a new GetNotebookFromWebUrlPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/onenote/notebooks/get_notebook_from_web_url/get_notebook_from_web_url_request_builder.rb b/lib/groups/item/onenote/notebooks/get_notebook_from_web_url/get_notebook_from_web_url_request_builder.rb index a20be5f3b1..ef7acbb38d 100644 --- a/lib/groups/item/onenote/notebooks/get_notebook_from_web_url/get_notebook_from_web_url_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/get_notebook_from_web_url/get_notebook_from_web_url_request_builder.rb @@ -39,8 +39,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CopyNotebookModel.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_notebook_from_web_url_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetNotebookFromWebUrlRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks.rb b/lib/groups/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks.rb index 14dc683221..968f50900e 100644 --- a/lib/groups/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks.rb +++ b/lib/groups/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks.rb @@ -1 +1 @@ -require_relative 'get_recent_notebooks_with_include_personal_notebooks_response' +require_relative 'get_recent_notebooks_with_include_personal_notebooks_get_response' diff --git a/lib/groups/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks_get_response.rb b/lib/groups/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks_get_response.rb new file mode 100644 index 0000000000..fa7add6bde --- /dev/null +++ b/lib/groups/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks_get_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../models/recent_notebook' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../onenote' +require_relative '../notebooks' +require_relative './get_recent_notebooks_with_include_personal_notebooks' + +module MicrosoftGraph + module Groups + module Item + module Onenote + module Notebooks + module GetRecentNotebooksWithIncludePersonalNotebooks + class GetRecentNotebooksWithIncludePersonalNotebooksGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetRecentNotebooksWithIncludePersonalNotebooksGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_recent_notebooks_with_include_personal_notebooks_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::RecentNotebook.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a recent_notebook + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks_request_builder.rb b/lib/groups/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks_request_builder.rb index b4b33faa42..4c0651cff0 100644 --- a/lib/groups/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks_request_builder.rb @@ -25,43 +25,51 @@ class GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder < MicrosoftKi ## @return a void ## def initialize(path_parameters, request_adapter, include_personal_notebooks=nil) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/getRecentNotebooks(includePersonalNotebooks={includePersonalNotebooks}){?%24top,%24skip,%24search,%24filter,%24count}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/getRecentNotebooks(includePersonalNotebooks={includePersonalNotebooks}){?%24count,%24filter,%24search,%24skip,%24top}") end ## - ## Invoke function getRecentNotebooks + ## Get a list of recentNotebook instances that have been accessed by the signed-in user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_recent_notebooks_with_include_personal_notebooks_response + ## @return a Fiber of get_recent_notebooks_with_include_personal_notebooks_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Onenote::Notebooks::GetRecentNotebooksWithIncludePersonalNotebooks::GetRecentNotebooksWithIncludePersonalNotebooksResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Onenote::Notebooks::GetRecentNotebooksWithIncludePersonalNotebooks::GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function getRecentNotebooks + ## Get a list of recentNotebook instances that have been accessed by the signed-in user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_recent_notebooks_with_include_personal_notebooks_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function getRecentNotebooks + # Get a list of recentNotebook instances that have been accessed by the signed-in user. class GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks_response.rb b/lib/groups/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks_response.rb deleted file mode 100644 index b47ff3c5ca..0000000000 --- a/lib/groups/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks_response.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../models/recent_notebook' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../onenote' -require_relative '../notebooks' -require_relative './get_recent_notebooks_with_include_personal_notebooks' - -module MicrosoftGraph - module Groups - module Item - module Onenote - module Notebooks - module GetRecentNotebooksWithIncludePersonalNotebooks - class GetRecentNotebooksWithIncludePersonalNotebooksResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getRecentNotebooksWithIncludePersonalNotebooksResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_recent_notebooks_with_include_personal_notebooks_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetRecentNotebooksWithIncludePersonalNotebooksResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::RecentNotebook.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a recent_notebook - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/onenote/notebooks/item/copy_notebook/copy_notebook_post_request_body.rb b/lib/groups/item/onenote/notebooks/item/copy_notebook/copy_notebook_post_request_body.rb index e2b9b3e440..2622e0a103 100644 --- a/lib/groups/item/onenote/notebooks/item/copy_notebook/copy_notebook_post_request_body.rb +++ b/lib/groups/item/onenote/notebooks/item/copy_notebook/copy_notebook_post_request_body.rb @@ -35,22 +35,22 @@ class CopyNotebookPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyNotebookPostRequestBody and sets the default values. + ## Instantiates a new CopyNotebookPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/onenote/notebooks/item/copy_notebook/copy_notebook_request_builder.rb b/lib/groups/item/onenote/notebooks/item/copy_notebook/copy_notebook_request_builder.rb index 2e9be7cbf3..27e87743d7 100644 --- a/lib/groups/item/onenote/notebooks/item/copy_notebook/copy_notebook_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/copy_notebook/copy_notebook_request_builder.rb @@ -41,8 +41,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyNotebookRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/notebooks/item/notebook_item_request_builder.rb b/lib/groups/item/onenote/notebooks/item/notebook_item_request_builder.rb index da98c698fb..884e26ab3a 100644 --- a/lib/groups/item/onenote/notebooks/item/notebook_item_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/notebook_item_request_builder.rb @@ -43,7 +43,7 @@ def sections() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}{?%24expand,%24select}") end ## ## Delete navigation property notebooks for groups @@ -55,12 +55,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a notebook object. + ## The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of notebook ## @@ -69,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,8 +83,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -96,31 +93,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a notebook object. + ## The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,20 +130,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a notebook_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NotebookItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a notebook object. + # The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. class NotebookItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/count/count_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/count/count_request_builder.rb index a37d1f9fdf..ca853789d8 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/count/count_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/parent_notebook/parent_notebook_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/parent_notebook/parent_notebook_request_builder.rb index 1fc99b1966..2bd514a08b 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/parent_notebook/parent_notebook_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/parent_notebook/parent_notebook_request_builder.rb @@ -31,7 +31,7 @@ class ParentNotebookRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/parentNotebook{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/parentNotebook{?%24expand,%24select}") end ## ## The notebook that contains the section group. Read-only. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentNotebookRequestBuilder.new(raw_url, @request_adapter) + end ## # The notebook that contains the section group. Read-only. diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/parent_section_group/parent_section_group_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/parent_section_group/parent_section_group_request_builder.rb index 6604a906b2..343ab02796 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/parent_section_group/parent_section_group_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/parent_section_group/parent_section_group_request_builder.rb @@ -31,7 +31,7 @@ class ParentSectionGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/parentSectionGroup{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/parentSectionGroup{?%24expand,%24select}") end ## ## The section group that contains the section group. Read-only. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_section_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentSectionGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # The section group that contains the section group. Read-only. diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/section_group_item_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/section_group_item_request_builder.rb index bfdf6c5a41..e6d3e73844 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/section_group_item_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/section_group_item_request_builder.rb @@ -53,7 +53,7 @@ def sections() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}{?%24expand,%24select}") end ## ## Delete navigation property sectionGroups for groups @@ -65,8 +65,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -79,8 +78,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -95,8 +93,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -106,13 +103,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,15 +120,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -142,17 +140,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a section_group_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionGroupItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The section groups in the notebook. Read-only. Nullable. diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/section_groups/count/count_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/section_groups/count/count_request_builder.rb index 265f3aa704..4c9924bcd2 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/section_groups/count/count_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/section_groups/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/section_groups/item/section_group_item_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/section_groups/item/section_group_item_request_builder.rb index f4fb9f75b1..7664dfd9db 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/section_groups/item/section_group_item_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/section_groups/item/section_group_item_request_builder.rb @@ -33,7 +33,7 @@ class SectionGroupItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBu ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups/{sectionGroup%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups/{sectionGroup%2Did1}{?%24expand,%24select}") end ## ## The section groups in the section. Read-only. Nullable. @@ -45,8 +45,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a section_group_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionGroupItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The section groups in the section. Read-only. Nullable. diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/section_groups/section_groups_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/section_groups/section_groups_request_builder.rb index 196ee0a35f..a61bd9288c 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/section_groups/section_groups_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/section_groups/section_groups_request_builder.rb @@ -49,10 +49,10 @@ def by_section_group_id1(section_group_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of section groups from the specified section group. + ## The section groups in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of section_group_collection_response ## @@ -61,31 +61,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of section groups from the specified section group. + ## The section groups in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a section_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionGroupsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of section groups from the specified section group. + # The section groups in the section. Read-only. Nullable. class SectionGroupsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/count/count_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/count/count_request_builder.rb index 6048c4f3e8..4100b2cecb 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/count/count_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb index 21ee7087e1..37d1311f3b 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb @@ -43,22 +43,22 @@ class CopyToNotebookPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToNotebookPostRequestBody and sets the default values. + ## Instantiates a new CopyToNotebookPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb index b2533897ec..f013b56aed 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb @@ -49,8 +49,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToNotebookRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb index 3585afd6e4..256e6158e3 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb @@ -43,22 +43,22 @@ class CopyToSectionGroupPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToSectionGroupPostRequestBody and sets the default values. + ## Instantiates a new CopyToSectionGroupPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb index c0a1b9723b..efb91a062b 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb @@ -49,8 +49,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_section_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToSectionGroupRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/onenote_section_item_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/onenote_section_item_request_builder.rb index 947930c245..fe2ab790ac 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/onenote_section_item_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/onenote_section_item_request_builder.rb @@ -63,7 +63,7 @@ def parent_section_group() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}{?%24expand,%24select}") end ## ## Delete navigation property sections for groups @@ -75,8 +75,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -89,8 +88,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -105,8 +103,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -116,13 +113,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,15 +130,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -152,17 +150,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_section_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenoteSectionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The sections in the section group. Read-only. Nullable. diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/count/count_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/count/count_request_builder.rb index 6a5d8b616f..f5812c0983 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/count/count_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/count/count_request_builder.rb @@ -36,7 +36,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -59,17 +58,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/content/content_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/content/content_request_builder.rb index e3eb5acdd3..53f3842cf6 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/content/content_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/content/content_request_builder.rb @@ -44,6 +44,19 @@ def initialize(path_parameters, request_adapter) ## ## The page's HTML content. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The page's HTML content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## def get(request_configuration=nil) @@ -51,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -67,8 +79,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,15 +87,33 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The page's HTML content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -96,17 +125,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb index 3a8fdd328d..dd88e949f0 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb @@ -44,22 +44,22 @@ class CopyToSectionPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToSectionPostRequestBody and sets the default values. + ## Instantiates a new CopyToSectionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb index d78be000c8..6680c4341d 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb @@ -53,8 +53,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_section_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToSectionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_page_item_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_page_item_request_builder.rb index deadf58144..d781f67a9a 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_page_item_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_page_item_request_builder.rb @@ -73,7 +73,7 @@ def preview() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24expand,%24select}") end ## ## Delete navigation property pages for groups @@ -85,8 +85,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -99,8 +98,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -115,8 +113,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -126,13 +123,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -142,15 +140,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -162,17 +160,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_page_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenotePageItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of pages in the section. Read-only. Nullable. diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb index d50136b985..1aacb4ccd6 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb @@ -36,15 +36,15 @@ class OnenotePatchContentPostRequestBody # The commands property @commands ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -66,7 +66,7 @@ def commands=(value) @commands = value end ## - ## Instantiates a new onenotePatchContentPostRequestBody and sets the default values. + ## Instantiates a new OnenotePatchContentPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb index 1a72803c00..65feb3e456 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb @@ -52,8 +52,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,16 +64,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_patch_content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenotePatchContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb index c3b0929ea3..556085407e 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb @@ -39,7 +39,7 @@ class ParentNotebookRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24expand,%24select}") end ## ## The notebook that contains the page. Read-only. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentNotebookRequestBuilder.new(raw_url, @request_adapter) + end ## # The notebook that contains the page. Read-only. diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb index beb1d3d35a..70c7f075a8 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb @@ -39,7 +39,7 @@ class ParentSectionRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24expand,%24select}") end ## ## The section that contains the page. Read-only. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_section_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentSectionRequestBuilder.new(raw_url, @request_adapter) + end ## # The section that contains the page. Read-only. diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/preview/preview_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/preview/preview_request_builder.rb index 3c219b921d..4372b38ea9 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/preview/preview_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/preview/preview_request_builder.rb @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePagePreview.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,16 +61,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a preview_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PreviewRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/pages_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/pages_request_builder.rb index 018ddc21ee..0fe4c964d8 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/pages_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/pages/pages_request_builder.rb @@ -54,10 +54,10 @@ def by_onenote_page_id(onenote_page_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of page objects from the specified section. + ## The collection of pages in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_page_collection_response ## @@ -66,12 +66,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new page in the specified section. + ## Create new navigation property to pages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_page @@ -82,30 +81,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of page objects from the specified section. + ## The collection of pages in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new page in the specified section. + ## Create new navigation property to pages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -113,20 +111,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a pages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PagesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of page objects from the specified section. + # The collection of pages in the section. Read-only. Nullable. class PagesRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/parent_notebook/parent_notebook_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/parent_notebook/parent_notebook_request_builder.rb index e74417258e..c38dc216ff 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/parent_notebook/parent_notebook_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/parent_notebook/parent_notebook_request_builder.rb @@ -35,7 +35,7 @@ class ParentNotebookRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%24expand,%24select}") end ## ## The notebook that contains the section. Read-only. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentNotebookRequestBuilder.new(raw_url, @request_adapter) + end ## # The notebook that contains the section. Read-only. diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/parent_section_group/parent_section_group_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/parent_section_group/parent_section_group_request_builder.rb index 87e25b17ad..6d051d5ef2 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/parent_section_group/parent_section_group_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/item/parent_section_group/parent_section_group_request_builder.rb @@ -35,7 +35,7 @@ class ParentSectionGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%24expand,%24select}") end ## ## The section group that contains the section. Read-only. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_section_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentSectionGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # The section group that contains the section. Read-only. diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/sections_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/sections_request_builder.rb index 8194d2fa2f..aef107cd82 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/sections_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/item/sections/sections_request_builder.rb @@ -50,10 +50,10 @@ def by_onenote_section_id(onenote_section_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of onenoteSection objects from the specified section group. + ## The sections in the section group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_section_collection_response ## @@ -62,12 +62,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSectionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new onenoteSection in the specified section group. + ## Create new navigation property to sections for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_section @@ -78,30 +77,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of onenoteSection objects from the specified section group. + ## The sections in the section group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new onenoteSection in the specified section group. + ## Create new navigation property to sections for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sections_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of onenoteSection objects from the specified section group. + # The sections in the section group. Read-only. Nullable. class SectionsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/onenote/notebooks/item/section_groups/section_groups_request_builder.rb b/lib/groups/item/onenote/notebooks/item/section_groups/section_groups_request_builder.rb index 5d613cdf8d..21df9ea16a 100644 --- a/lib/groups/item/onenote/notebooks/item/section_groups/section_groups_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/section_groups/section_groups_request_builder.rb @@ -46,10 +46,10 @@ def by_section_group_id(section_group_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of section groups from the specified notebook. + ## The section groups in the notebook. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of section_group_collection_response ## @@ -58,12 +58,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new section group in the specified notebook. + ## Create new navigation property to sectionGroups for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of section_group @@ -74,30 +73,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of section groups from the specified notebook. + ## The section groups in the notebook. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new section group in the specified notebook. + ## Create new navigation property to sectionGroups for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a section_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionGroupsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of section groups from the specified notebook. + # The section groups in the notebook. Read-only. Nullable. class SectionGroupsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/onenote/notebooks/item/sections/count/count_request_builder.rb b/lib/groups/item/onenote/notebooks/item/sections/count/count_request_builder.rb index 37169d18e8..1890e0c52c 100644 --- a/lib/groups/item/onenote/notebooks/item/sections/count/count_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/sections/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/onenote/notebooks/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb b/lib/groups/item/onenote/notebooks/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb index d91e4ce534..cc3b1e05f5 100644 --- a/lib/groups/item/onenote/notebooks/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb +++ b/lib/groups/item/onenote/notebooks/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb @@ -39,22 +39,22 @@ class CopyToNotebookPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToNotebookPostRequestBody and sets the default values. + ## Instantiates a new CopyToNotebookPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/onenote/notebooks/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb b/lib/groups/item/onenote/notebooks/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb index 9f3b082ff7..eb71bd9932 100644 --- a/lib/groups/item/onenote/notebooks/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb @@ -45,8 +45,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToNotebookRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/notebooks/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb b/lib/groups/item/onenote/notebooks/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb index b5c3610969..6774f20ea7 100644 --- a/lib/groups/item/onenote/notebooks/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb +++ b/lib/groups/item/onenote/notebooks/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb @@ -39,22 +39,22 @@ class CopyToSectionGroupPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToSectionGroupPostRequestBody and sets the default values. + ## Instantiates a new CopyToSectionGroupPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/onenote/notebooks/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb b/lib/groups/item/onenote/notebooks/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb index d1f504c546..54f022d217 100644 --- a/lib/groups/item/onenote/notebooks/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb @@ -45,8 +45,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_section_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToSectionGroupRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/notebooks/item/sections/item/onenote_section_item_request_builder.rb b/lib/groups/item/onenote/notebooks/item/sections/item/onenote_section_item_request_builder.rb index 2005cfb5d3..74f1f5b361 100644 --- a/lib/groups/item/onenote/notebooks/item/sections/item/onenote_section_item_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/sections/item/onenote_section_item_request_builder.rb @@ -59,7 +59,7 @@ def parent_section_group() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}{?%24expand,%24select}") end ## ## Delete navigation property sections for groups @@ -71,8 +71,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -85,8 +84,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -101,8 +99,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -112,13 +109,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,15 +126,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -148,17 +146,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_section_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenoteSectionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The sections in the notebook. Read-only. Nullable. diff --git a/lib/groups/item/onenote/notebooks/item/sections/item/pages/count/count_request_builder.rb b/lib/groups/item/onenote/notebooks/item/sections/item/pages/count/count_request_builder.rb index 3f5197c3b6..d30cff0b04 100644 --- a/lib/groups/item/onenote/notebooks/item/sections/item/pages/count/count_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/sections/item/pages/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/content/content_request_builder.rb b/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/content/content_request_builder.rb index fe999983e2..6ec0450b2b 100644 --- a/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/content/content_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/content/content_request_builder.rb @@ -40,6 +40,19 @@ def initialize(path_parameters, request_adapter) ## ## The page's HTML content. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The page's HTML content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## def get(request_configuration=nil) @@ -47,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -63,8 +75,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,15 +83,33 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The page's HTML content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -92,17 +121,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb b/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb index d1fa09fc2d..6f4ff2061a 100644 --- a/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb +++ b/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb @@ -40,22 +40,22 @@ class CopyToSectionPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToSectionPostRequestBody and sets the default values. + ## Instantiates a new CopyToSectionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb b/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb index b4762d9641..0e757f2c45 100644 --- a/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb @@ -49,8 +49,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_section_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToSectionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/onenote_page_item_request_builder.rb b/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/onenote_page_item_request_builder.rb index 5f06721573..78c7137269 100644 --- a/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/onenote_page_item_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/onenote_page_item_request_builder.rb @@ -69,7 +69,7 @@ def preview() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24expand,%24select}") end ## ## Delete navigation property pages for groups @@ -81,8 +81,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -95,8 +94,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -111,8 +109,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -122,13 +119,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,15 +136,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -158,17 +156,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_page_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenotePageItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of pages in the section. Read-only. Nullable. diff --git a/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb b/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb index 90828cdc35..34a52ef495 100644 --- a/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb +++ b/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb @@ -32,15 +32,15 @@ class OnenotePatchContentPostRequestBody # The commands property @commands ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -62,7 +62,7 @@ def commands=(value) @commands = value end ## - ## Instantiates a new onenotePatchContentPostRequestBody and sets the default values. + ## Instantiates a new OnenotePatchContentPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb b/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb index fa343150be..0b49b45114 100644 --- a/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb @@ -48,8 +48,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,16 +60,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_patch_content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenotePatchContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb b/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb index ea3859176e..ed7ed5c4ea 100644 --- a/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb @@ -35,7 +35,7 @@ class ParentNotebookRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24expand,%24select}") end ## ## The notebook that contains the page. Read-only. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentNotebookRequestBuilder.new(raw_url, @request_adapter) + end ## # The notebook that contains the page. Read-only. diff --git a/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb b/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb index f6ed3df05f..bfee53c681 100644 --- a/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb @@ -35,7 +35,7 @@ class ParentSectionRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24expand,%24select}") end ## ## The section that contains the page. Read-only. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_section_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentSectionRequestBuilder.new(raw_url, @request_adapter) + end ## # The section that contains the page. Read-only. diff --git a/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/preview/preview_request_builder.rb b/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/preview/preview_request_builder.rb index 68075a654f..02aad3ec36 100644 --- a/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/preview/preview_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/sections/item/pages/item/preview/preview_request_builder.rb @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePagePreview.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,16 +57,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a preview_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PreviewRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/notebooks/item/sections/item/pages/pages_request_builder.rb b/lib/groups/item/onenote/notebooks/item/sections/item/pages/pages_request_builder.rb index bf28939cdd..7b26628e57 100644 --- a/lib/groups/item/onenote/notebooks/item/sections/item/pages/pages_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/sections/item/pages/pages_request_builder.rb @@ -50,10 +50,10 @@ def by_onenote_page_id(onenote_page_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of page objects from the specified section. + ## The collection of pages in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_page_collection_response ## @@ -62,12 +62,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new page in the specified section. + ## Create new navigation property to pages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_page @@ -78,30 +77,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of page objects from the specified section. + ## The collection of pages in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new page in the specified section. + ## Create new navigation property to pages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a pages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PagesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of page objects from the specified section. + # The collection of pages in the section. Read-only. Nullable. class PagesRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/onenote/notebooks/item/sections/item/parent_notebook/parent_notebook_request_builder.rb b/lib/groups/item/onenote/notebooks/item/sections/item/parent_notebook/parent_notebook_request_builder.rb index 27085d6b72..587f170204 100644 --- a/lib/groups/item/onenote/notebooks/item/sections/item/parent_notebook/parent_notebook_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/sections/item/parent_notebook/parent_notebook_request_builder.rb @@ -31,7 +31,7 @@ class ParentNotebookRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%24expand,%24select}") end ## ## The notebook that contains the section. Read-only. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentNotebookRequestBuilder.new(raw_url, @request_adapter) + end ## # The notebook that contains the section. Read-only. diff --git a/lib/groups/item/onenote/notebooks/item/sections/item/parent_section_group/parent_section_group_request_builder.rb b/lib/groups/item/onenote/notebooks/item/sections/item/parent_section_group/parent_section_group_request_builder.rb index f694ee7155..eb91983790 100644 --- a/lib/groups/item/onenote/notebooks/item/sections/item/parent_section_group/parent_section_group_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/sections/item/parent_section_group/parent_section_group_request_builder.rb @@ -31,7 +31,7 @@ class ParentSectionGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%24expand,%24select}") end ## ## The section group that contains the section. Read-only. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_section_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentSectionGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # The section group that contains the section. Read-only. diff --git a/lib/groups/item/onenote/notebooks/item/sections/sections_request_builder.rb b/lib/groups/item/onenote/notebooks/item/sections/sections_request_builder.rb index 211a5660a0..127207830b 100644 --- a/lib/groups/item/onenote/notebooks/item/sections/sections_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/item/sections/sections_request_builder.rb @@ -46,10 +46,10 @@ def by_onenote_section_id(onenote_section_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of onenoteSection objects from the specified notebook. + ## The sections in the notebook. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_section_collection_response ## @@ -58,12 +58,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSectionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new onenoteSection in the specified notebook. + ## Create new navigation property to sections for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_section @@ -74,30 +73,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of onenoteSection objects from the specified notebook. + ## The sections in the notebook. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new onenoteSection in the specified notebook. + ## Create new navigation property to sections for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sections_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of onenoteSection objects from the specified notebook. + # The sections in the notebook. Read-only. Nullable. class SectionsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/onenote/notebooks/notebooks_request_builder.rb b/lib/groups/item/onenote/notebooks/notebooks_request_builder.rb index f0449ebe61..f5ebe179b5 100644 --- a/lib/groups/item/onenote/notebooks/notebooks_request_builder.rb +++ b/lib/groups/item/onenote/notebooks/notebooks_request_builder.rb @@ -49,10 +49,10 @@ def by_notebook_id(notebook_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of notebook objects. + ## The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of notebook_collection_response ## @@ -61,8 +61,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::NotebookCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,7 +74,7 @@ def get_recent_notebooks_with_include_personal_notebooks(include_personal_notebo return GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.new(@path_parameters, @request_adapter, includePersonalNotebooks) end ## - ## Create a new OneNote notebook. + ## Create new navigation property to notebooks for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of notebook @@ -86,30 +85,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of notebook objects. + ## The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new OneNote notebook. + ## Create new navigation property to notebooks for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -117,20 +115,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a notebooks_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NotebooksRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of notebook objects. + # The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. class NotebooksRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/onenote/onenote_request_builder.rb b/lib/groups/item/onenote/onenote_request_builder.rb index cfe9d8e87f..6c898476f5 100644 --- a/lib/groups/item/onenote/onenote_request_builder.rb +++ b/lib/groups/item/onenote/onenote_request_builder.rb @@ -57,7 +57,7 @@ def sections() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote{?%24expand,%24select}") end ## ## Delete navigation property onenote for groups @@ -69,8 +69,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -83,8 +82,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Onenote.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,8 +97,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Onenote.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -110,13 +107,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,15 +124,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -146,17 +144,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenoteRequestBuilder.new(raw_url, @request_adapter) + end ## # Get onenote from groups diff --git a/lib/groups/item/onenote/operations/count/count_request_builder.rb b/lib/groups/item/onenote/operations/count/count_request_builder.rb index ea76edbedb..4f21de9943 100644 --- a/lib/groups/item/onenote/operations/count/count_request_builder.rb +++ b/lib/groups/item/onenote/operations/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/operations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/operations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/onenote/operations/item/onenote_operation_item_request_builder.rb b/lib/groups/item/onenote/operations/item/onenote_operation_item_request_builder.rb index e1556fad51..a3a716c8a5 100644 --- a/lib/groups/item/onenote/operations/item/onenote_operation_item_request_builder.rb +++ b/lib/groups/item/onenote/operations/item/onenote_operation_item_request_builder.rb @@ -25,7 +25,7 @@ class OnenoteOperationItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReque ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/operations/{onenoteOperation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/operations/{onenoteOperation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property operations for groups @@ -37,12 +37,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + ## The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_operation ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,31 +75,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + ## The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,20 +112,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_operation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenoteOperationItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + # The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. class OnenoteOperationItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/onenote/operations/operations_request_builder.rb b/lib/groups/item/onenote/operations/operations_request_builder.rb index 97d925cf64..65a0bd5a0b 100644 --- a/lib/groups/item/onenote/operations/operations_request_builder.rb +++ b/lib/groups/item/onenote/operations/operations_request_builder.rb @@ -42,10 +42,10 @@ def by_onenote_operation_id(onenote_operation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + ## The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_operation_collection_response ## @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,26 +69,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + ## The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,20 +99,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a operations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OperationsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + # The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. class OperationsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/onenote/pages/count/count_request_builder.rb b/lib/groups/item/onenote/pages/count/count_request_builder.rb index 7bf9db7714..c98bcccb0e 100644 --- a/lib/groups/item/onenote/pages/count/count_request_builder.rb +++ b/lib/groups/item/onenote/pages/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/pages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/pages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/onenote/pages/item/content/content_request_builder.rb b/lib/groups/item/onenote/pages/item/content/content_request_builder.rb index af7e7a1c74..e981ac020a 100644 --- a/lib/groups/item/onenote/pages/item/content/content_request_builder.rb +++ b/lib/groups/item/onenote/pages/item/content/content_request_builder.rb @@ -32,6 +32,19 @@ def initialize(path_parameters, request_adapter) ## ## The page's HTML content. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The page's HTML content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## def get(request_configuration=nil) @@ -39,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -55,8 +67,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,15 +75,33 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The page's HTML content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -84,17 +113,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/pages/item/copy_to_section/copy_to_section_post_request_body.rb b/lib/groups/item/onenote/pages/item/copy_to_section/copy_to_section_post_request_body.rb index 95f221e8d7..ad9aa5a42a 100644 --- a/lib/groups/item/onenote/pages/item/copy_to_section/copy_to_section_post_request_body.rb +++ b/lib/groups/item/onenote/pages/item/copy_to_section/copy_to_section_post_request_body.rb @@ -32,22 +32,22 @@ class CopyToSectionPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToSectionPostRequestBody and sets the default values. + ## Instantiates a new CopyToSectionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/onenote/pages/item/copy_to_section/copy_to_section_request_builder.rb b/lib/groups/item/onenote/pages/item/copy_to_section/copy_to_section_request_builder.rb index c7b092fadd..2f889b2862 100644 --- a/lib/groups/item/onenote/pages/item/copy_to_section/copy_to_section_request_builder.rb +++ b/lib/groups/item/onenote/pages/item/copy_to_section/copy_to_section_request_builder.rb @@ -41,8 +41,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_section_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToSectionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/pages/item/onenote_page_item_request_builder.rb b/lib/groups/item/onenote/pages/item/onenote_page_item_request_builder.rb index 882c952573..217bb8a81d 100644 --- a/lib/groups/item/onenote/pages/item/onenote_page_item_request_builder.rb +++ b/lib/groups/item/onenote/pages/item/onenote_page_item_request_builder.rb @@ -61,10 +61,10 @@ def preview() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/pages/{onenotePage%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/pages/{onenotePage%2Did}{?%24expand,%24select}") end ## - ## Delete a OneNote page. + ## Delete navigation property pages for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -73,12 +73,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + ## The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_page ## @@ -87,8 +86,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -103,42 +101,42 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a OneNote page. + ## Delete navigation property pages for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + ## The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -150,20 +148,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_page_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenotePageItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + # The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. class OnenotePageItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/onenote/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb b/lib/groups/item/onenote/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb index 4a5cf150ce..6907a067e9 100644 --- a/lib/groups/item/onenote/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb +++ b/lib/groups/item/onenote/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb @@ -24,15 +24,15 @@ class OnenotePatchContentPostRequestBody # The commands property @commands ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -54,7 +54,7 @@ def commands=(value) @commands = value end ## - ## Instantiates a new onenotePatchContentPostRequestBody and sets the default values. + ## Instantiates a new OnenotePatchContentPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/onenote/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb b/lib/groups/item/onenote/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb index dfe69e978b..ee52f88c4a 100644 --- a/lib/groups/item/onenote/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb +++ b/lib/groups/item/onenote/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb @@ -40,8 +40,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,16 +52,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_patch_content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenotePatchContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/pages/item/parent_notebook/parent_notebook_request_builder.rb b/lib/groups/item/onenote/pages/item/parent_notebook/parent_notebook_request_builder.rb index f2051dbcbd..51f4071f20 100644 --- a/lib/groups/item/onenote/pages/item/parent_notebook/parent_notebook_request_builder.rb +++ b/lib/groups/item/onenote/pages/item/parent_notebook/parent_notebook_request_builder.rb @@ -27,7 +27,7 @@ class ParentNotebookRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/pages/{onenotePage%2Did}/parentNotebook{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/pages/{onenotePage%2Did}/parentNotebook{?%24expand,%24select}") end ## ## The notebook that contains the page. Read-only. @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentNotebookRequestBuilder.new(raw_url, @request_adapter) + end ## # The notebook that contains the page. Read-only. diff --git a/lib/groups/item/onenote/pages/item/parent_section/parent_section_request_builder.rb b/lib/groups/item/onenote/pages/item/parent_section/parent_section_request_builder.rb index 307e82433e..5e03ada735 100644 --- a/lib/groups/item/onenote/pages/item/parent_section/parent_section_request_builder.rb +++ b/lib/groups/item/onenote/pages/item/parent_section/parent_section_request_builder.rb @@ -27,7 +27,7 @@ class ParentSectionRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/pages/{onenotePage%2Did}/parentSection{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/pages/{onenotePage%2Did}/parentSection{?%24expand,%24select}") end ## ## The section that contains the page. Read-only. @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_section_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentSectionRequestBuilder.new(raw_url, @request_adapter) + end ## # The section that contains the page. Read-only. diff --git a/lib/groups/item/onenote/pages/item/preview/preview_request_builder.rb b/lib/groups/item/onenote/pages/item/preview/preview_request_builder.rb index 960f67acec..01887c45fb 100644 --- a/lib/groups/item/onenote/pages/item/preview/preview_request_builder.rb +++ b/lib/groups/item/onenote/pages/item/preview/preview_request_builder.rb @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePagePreview.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,16 +49,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a preview_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PreviewRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/pages/pages_request_builder.rb b/lib/groups/item/onenote/pages/pages_request_builder.rb index 08f8dd7c4f..8280273dab 100644 --- a/lib/groups/item/onenote/pages/pages_request_builder.rb +++ b/lib/groups/item/onenote/pages/pages_request_builder.rb @@ -42,10 +42,10 @@ def by_onenote_page_id(onenote_page_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of page objects. + ## The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_page_collection_response ## @@ -54,12 +54,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. + ## Create new navigation property to pages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_page @@ -70,30 +69,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of page objects. + ## The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. + ## Create new navigation property to pages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -101,20 +99,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a pages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PagesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of page objects. + # The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. class PagesRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/onenote/resources/count/count_request_builder.rb b/lib/groups/item/onenote/resources/count/count_request_builder.rb index 9095beccb2..022d8ca1e6 100644 --- a/lib/groups/item/onenote/resources/count/count_request_builder.rb +++ b/lib/groups/item/onenote/resources/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/resources/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/resources/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/onenote/resources/item/content/content_request_builder.rb b/lib/groups/item/onenote/resources/item/content/content_request_builder.rb index 9ae9c34052..522d016294 100644 --- a/lib/groups/item/onenote/resources/item/content/content_request_builder.rb +++ b/lib/groups/item/onenote/resources/item/content/content_request_builder.rb @@ -32,6 +32,19 @@ def initialize(path_parameters, request_adapter) ## ## The content stream ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The content stream + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## def get(request_configuration=nil) @@ -39,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -55,8 +67,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,15 +75,33 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The content stream + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -84,17 +113,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/resources/item/onenote_resource_item_request_builder.rb b/lib/groups/item/onenote/resources/item/onenote_resource_item_request_builder.rb index 28946d5ff2..8a47b7a420 100644 --- a/lib/groups/item/onenote/resources/item/onenote_resource_item_request_builder.rb +++ b/lib/groups/item/onenote/resources/item/onenote_resource_item_request_builder.rb @@ -31,7 +31,7 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/resources/{onenoteResource%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/resources/{onenoteResource%2Did}{?%24expand,%24select}") end ## ## Delete navigation property resources for groups @@ -43,12 +43,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + ## The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_resource ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,31 +81,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + ## The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,20 +118,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_resource_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenoteResourceItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + # The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. class OnenoteResourceItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/onenote/resources/resources_request_builder.rb b/lib/groups/item/onenote/resources/resources_request_builder.rb index da5f658733..284b9a631c 100644 --- a/lib/groups/item/onenote/resources/resources_request_builder.rb +++ b/lib/groups/item/onenote/resources/resources_request_builder.rb @@ -42,10 +42,10 @@ def by_onenote_resource_id(onenote_resource_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/resources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + ## The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_resource_collection_response ## @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteResourceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,26 +69,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteResource.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + ## The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,20 +99,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resources_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourcesRequestBuilder.new(raw_url, @request_adapter) + end ## - # The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + # The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. class ResourcesRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/onenote/section_groups/count/count_request_builder.rb b/lib/groups/item/onenote/section_groups/count/count_request_builder.rb index 2ca5186e6c..8fc37464fb 100644 --- a/lib/groups/item/onenote/section_groups/count/count_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/onenote/section_groups/item/parent_notebook/parent_notebook_request_builder.rb b/lib/groups/item/onenote/section_groups/item/parent_notebook/parent_notebook_request_builder.rb index ee8175d273..b7c0f60360 100644 --- a/lib/groups/item/onenote/section_groups/item/parent_notebook/parent_notebook_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/item/parent_notebook/parent_notebook_request_builder.rb @@ -27,7 +27,7 @@ class ParentNotebookRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/parentNotebook{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/parentNotebook{?%24expand,%24select}") end ## ## The notebook that contains the section group. Read-only. @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentNotebookRequestBuilder.new(raw_url, @request_adapter) + end ## # The notebook that contains the section group. Read-only. diff --git a/lib/groups/item/onenote/section_groups/item/parent_section_group/parent_section_group_request_builder.rb b/lib/groups/item/onenote/section_groups/item/parent_section_group/parent_section_group_request_builder.rb index 34b017f881..3bb1313aa5 100644 --- a/lib/groups/item/onenote/section_groups/item/parent_section_group/parent_section_group_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/item/parent_section_group/parent_section_group_request_builder.rb @@ -27,7 +27,7 @@ class ParentSectionGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/parentSectionGroup{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/parentSectionGroup{?%24expand,%24select}") end ## ## The section group that contains the section group. Read-only. @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_section_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentSectionGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # The section group that contains the section group. Read-only. diff --git a/lib/groups/item/onenote/section_groups/item/section_group_item_request_builder.rb b/lib/groups/item/onenote/section_groups/item/section_group_item_request_builder.rb index 10176dd27b..6712c991dd 100644 --- a/lib/groups/item/onenote/section_groups/item/section_group_item_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/item/section_group_item_request_builder.rb @@ -49,7 +49,7 @@ def sections() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}{?%24expand,%24select}") end ## ## Delete navigation property sectionGroups for groups @@ -61,12 +61,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a sectionGroup object. + ## The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of section_group ## @@ -75,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,31 +99,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a sectionGroup object. + ## The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,20 +136,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a section_group_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionGroupItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a sectionGroup object. + # The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. class SectionGroupItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/onenote/section_groups/item/section_groups/count/count_request_builder.rb b/lib/groups/item/onenote/section_groups/item/section_groups/count/count_request_builder.rb index b3f6b903da..4681ea4ca8 100644 --- a/lib/groups/item/onenote/section_groups/item/section_groups/count/count_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/item/section_groups/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/onenote/section_groups/item/section_groups/item/section_group_item_request_builder.rb b/lib/groups/item/onenote/section_groups/item/section_groups/item/section_group_item_request_builder.rb index 673ec9c832..f366310474 100644 --- a/lib/groups/item/onenote/section_groups/item/section_groups/item/section_group_item_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/item/section_groups/item/section_group_item_request_builder.rb @@ -29,7 +29,7 @@ class SectionGroupItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBu ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups/{sectionGroup%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups/{sectionGroup%2Did1}{?%24expand,%24select}") end ## ## The section groups in the section. Read-only. Nullable. @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a section_group_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionGroupItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The section groups in the section. Read-only. Nullable. diff --git a/lib/groups/item/onenote/section_groups/item/section_groups/section_groups_request_builder.rb b/lib/groups/item/onenote/section_groups/item/section_groups/section_groups_request_builder.rb index 15ef662287..b078bf2564 100644 --- a/lib/groups/item/onenote/section_groups/item/section_groups/section_groups_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/item/section_groups/section_groups_request_builder.rb @@ -45,10 +45,10 @@ def by_section_group_id1(section_group_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of section groups from the specified section group. + ## The section groups in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of section_group_collection_response ## @@ -57,31 +57,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of section groups from the specified section group. + ## The section groups in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a section_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionGroupsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of section groups from the specified section group. + # The section groups in the section. Read-only. Nullable. class SectionGroupsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/onenote/section_groups/item/sections/count/count_request_builder.rb b/lib/groups/item/onenote/section_groups/item/sections/count/count_request_builder.rb index ae493b9e32..88403e3c0f 100644 --- a/lib/groups/item/onenote/section_groups/item/sections/count/count_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/item/sections/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/onenote/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb b/lib/groups/item/onenote/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb index 6db85d8b14..63456d89c1 100644 --- a/lib/groups/item/onenote/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb +++ b/lib/groups/item/onenote/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb @@ -39,22 +39,22 @@ class CopyToNotebookPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToNotebookPostRequestBody and sets the default values. + ## Instantiates a new CopyToNotebookPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/onenote/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb b/lib/groups/item/onenote/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb index dbdede3a64..b86a5a0978 100644 --- a/lib/groups/item/onenote/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb @@ -45,8 +45,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToNotebookRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb b/lib/groups/item/onenote/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb index 1cda9bf7e2..d60c12aa8b 100644 --- a/lib/groups/item/onenote/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb +++ b/lib/groups/item/onenote/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb @@ -39,22 +39,22 @@ class CopyToSectionGroupPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToSectionGroupPostRequestBody and sets the default values. + ## Instantiates a new CopyToSectionGroupPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/onenote/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb b/lib/groups/item/onenote/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb index 7ddfa5d506..7402bee32f 100644 --- a/lib/groups/item/onenote/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb @@ -45,8 +45,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_section_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToSectionGroupRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/section_groups/item/sections/item/onenote_section_item_request_builder.rb b/lib/groups/item/onenote/section_groups/item/sections/item/onenote_section_item_request_builder.rb index b28773b656..7b14a16e4c 100644 --- a/lib/groups/item/onenote/section_groups/item/sections/item/onenote_section_item_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/item/sections/item/onenote_section_item_request_builder.rb @@ -59,7 +59,7 @@ def parent_section_group() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}{?%24expand,%24select}") end ## ## Delete navigation property sections for groups @@ -71,8 +71,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -85,8 +84,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -101,8 +99,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -112,13 +109,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,15 +126,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -148,17 +146,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_section_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenoteSectionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The sections in the section group. Read-only. Nullable. diff --git a/lib/groups/item/onenote/section_groups/item/sections/item/pages/count/count_request_builder.rb b/lib/groups/item/onenote/section_groups/item/sections/item/pages/count/count_request_builder.rb index 0ee8e6b2f0..b8847bf984 100644 --- a/lib/groups/item/onenote/section_groups/item/sections/item/pages/count/count_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/item/sections/item/pages/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/content/content_request_builder.rb b/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/content/content_request_builder.rb index d0d3b375e0..dc7ca395b5 100644 --- a/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/content/content_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/content/content_request_builder.rb @@ -40,6 +40,19 @@ def initialize(path_parameters, request_adapter) ## ## The page's HTML content. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The page's HTML content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## def get(request_configuration=nil) @@ -47,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -63,8 +75,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,15 +83,33 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The page's HTML content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -92,17 +121,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb b/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb index 55ff9b0fa5..54c5e21282 100644 --- a/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb +++ b/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb @@ -40,22 +40,22 @@ class CopyToSectionPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToSectionPostRequestBody and sets the default values. + ## Instantiates a new CopyToSectionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb b/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb index 0145f90fb7..d296eda6e3 100644 --- a/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb @@ -49,8 +49,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_section_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToSectionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/onenote_page_item_request_builder.rb b/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/onenote_page_item_request_builder.rb index 780d194b97..7202d07741 100644 --- a/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/onenote_page_item_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/onenote_page_item_request_builder.rb @@ -69,7 +69,7 @@ def preview() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24expand,%24select}") end ## ## Delete navigation property pages for groups @@ -81,8 +81,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -95,8 +94,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -111,8 +109,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -122,13 +119,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,15 +136,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -158,17 +156,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_page_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenotePageItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of pages in the section. Read-only. Nullable. diff --git a/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb b/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb index 7d2ee9b6c4..c1e6555210 100644 --- a/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb +++ b/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb @@ -32,15 +32,15 @@ class OnenotePatchContentPostRequestBody # The commands property @commands ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -62,7 +62,7 @@ def commands=(value) @commands = value end ## - ## Instantiates a new onenotePatchContentPostRequestBody and sets the default values. + ## Instantiates a new OnenotePatchContentPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb b/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb index 0cc23a5378..1349c0ff9d 100644 --- a/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb @@ -48,8 +48,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,16 +60,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_patch_content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenotePatchContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb b/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb index 5102930fe6..74a41647df 100644 --- a/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb @@ -35,7 +35,7 @@ class ParentNotebookRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24expand,%24select}") end ## ## The notebook that contains the page. Read-only. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentNotebookRequestBuilder.new(raw_url, @request_adapter) + end ## # The notebook that contains the page. Read-only. diff --git a/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb b/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb index 4d7337001d..5908e026ca 100644 --- a/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb @@ -35,7 +35,7 @@ class ParentSectionRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24expand,%24select}") end ## ## The section that contains the page. Read-only. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_section_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentSectionRequestBuilder.new(raw_url, @request_adapter) + end ## # The section that contains the page. Read-only. diff --git a/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/preview/preview_request_builder.rb b/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/preview/preview_request_builder.rb index 4ff956d0a2..b19c344a72 100644 --- a/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/preview/preview_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/item/sections/item/pages/item/preview/preview_request_builder.rb @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePagePreview.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,16 +57,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a preview_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PreviewRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/section_groups/item/sections/item/pages/pages_request_builder.rb b/lib/groups/item/onenote/section_groups/item/sections/item/pages/pages_request_builder.rb index 6dd2262d9a..6044a9e99d 100644 --- a/lib/groups/item/onenote/section_groups/item/sections/item/pages/pages_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/item/sections/item/pages/pages_request_builder.rb @@ -50,10 +50,10 @@ def by_onenote_page_id(onenote_page_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of page objects from the specified section. + ## The collection of pages in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_page_collection_response ## @@ -62,12 +62,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new page in the specified section. + ## Create new navigation property to pages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_page @@ -78,30 +77,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of page objects from the specified section. + ## The collection of pages in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new page in the specified section. + ## Create new navigation property to pages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a pages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PagesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of page objects from the specified section. + # The collection of pages in the section. Read-only. Nullable. class PagesRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/onenote/section_groups/item/sections/item/parent_notebook/parent_notebook_request_builder.rb b/lib/groups/item/onenote/section_groups/item/sections/item/parent_notebook/parent_notebook_request_builder.rb index 808d0d403e..0faa0d2fd4 100644 --- a/lib/groups/item/onenote/section_groups/item/sections/item/parent_notebook/parent_notebook_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/item/sections/item/parent_notebook/parent_notebook_request_builder.rb @@ -31,7 +31,7 @@ class ParentNotebookRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%24expand,%24select}") end ## ## The notebook that contains the section. Read-only. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentNotebookRequestBuilder.new(raw_url, @request_adapter) + end ## # The notebook that contains the section. Read-only. diff --git a/lib/groups/item/onenote/section_groups/item/sections/item/parent_section_group/parent_section_group_request_builder.rb b/lib/groups/item/onenote/section_groups/item/sections/item/parent_section_group/parent_section_group_request_builder.rb index c8318d1916..ecdd5cf044 100644 --- a/lib/groups/item/onenote/section_groups/item/sections/item/parent_section_group/parent_section_group_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/item/sections/item/parent_section_group/parent_section_group_request_builder.rb @@ -31,7 +31,7 @@ class ParentSectionGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%24expand,%24select}") end ## ## The section group that contains the section. Read-only. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_section_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentSectionGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # The section group that contains the section. Read-only. diff --git a/lib/groups/item/onenote/section_groups/item/sections/sections_request_builder.rb b/lib/groups/item/onenote/section_groups/item/sections/sections_request_builder.rb index 01e4c37958..30c1067920 100644 --- a/lib/groups/item/onenote/section_groups/item/sections/sections_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/item/sections/sections_request_builder.rb @@ -46,10 +46,10 @@ def by_onenote_section_id(onenote_section_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of onenoteSection objects from the specified section group. + ## The sections in the section group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_section_collection_response ## @@ -58,12 +58,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSectionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new onenoteSection in the specified section group. + ## Create new navigation property to sections for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_section @@ -74,30 +73,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of onenoteSection objects from the specified section group. + ## The sections in the section group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new onenoteSection in the specified section group. + ## Create new navigation property to sections for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sections_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of onenoteSection objects from the specified section group. + # The sections in the section group. Read-only. Nullable. class SectionsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/onenote/section_groups/section_groups_request_builder.rb b/lib/groups/item/onenote/section_groups/section_groups_request_builder.rb index fa5ff53ee5..630ccb93a7 100644 --- a/lib/groups/item/onenote/section_groups/section_groups_request_builder.rb +++ b/lib/groups/item/onenote/section_groups/section_groups_request_builder.rb @@ -42,10 +42,10 @@ def by_section_group_id(section_group_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of sectionGroup objects. + ## The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of section_group_collection_response ## @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,26 +69,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of sectionGroup objects. + ## The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,20 +99,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a section_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionGroupsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of sectionGroup objects. + # The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. class SectionGroupsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/onenote/sections/count/count_request_builder.rb b/lib/groups/item/onenote/sections/count/count_request_builder.rb index d9466c6d31..639b012835 100644 --- a/lib/groups/item/onenote/sections/count/count_request_builder.rb +++ b/lib/groups/item/onenote/sections/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sections/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sections/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/onenote/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb b/lib/groups/item/onenote/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb index 174089111c..a4ef1708fe 100644 --- a/lib/groups/item/onenote/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb +++ b/lib/groups/item/onenote/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb @@ -35,22 +35,22 @@ class CopyToNotebookPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToNotebookPostRequestBody and sets the default values. + ## Instantiates a new CopyToNotebookPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/onenote/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb b/lib/groups/item/onenote/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb index d8b33c5c40..dd96942686 100644 --- a/lib/groups/item/onenote/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb +++ b/lib/groups/item/onenote/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb @@ -41,8 +41,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToNotebookRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb b/lib/groups/item/onenote/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb index 44b6858423..c716b34832 100644 --- a/lib/groups/item/onenote/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb +++ b/lib/groups/item/onenote/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb @@ -35,22 +35,22 @@ class CopyToSectionGroupPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToSectionGroupPostRequestBody and sets the default values. + ## Instantiates a new CopyToSectionGroupPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/onenote/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb b/lib/groups/item/onenote/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb index 461f34977d..d4373a4c37 100644 --- a/lib/groups/item/onenote/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb +++ b/lib/groups/item/onenote/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb @@ -41,8 +41,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_section_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToSectionGroupRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/sections/item/onenote_section_item_request_builder.rb b/lib/groups/item/onenote/sections/item/onenote_section_item_request_builder.rb index c07409b5ff..9a8e2a920b 100644 --- a/lib/groups/item/onenote/sections/item/onenote_section_item_request_builder.rb +++ b/lib/groups/item/onenote/sections/item/onenote_section_item_request_builder.rb @@ -55,7 +55,7 @@ def parent_section_group() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}{?%24expand,%24select}") end ## ## Delete navigation property sections for groups @@ -67,12 +67,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a onenoteSection object. + ## The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_section ## @@ -81,8 +80,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -97,8 +95,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -108,31 +105,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a onenoteSection object. + ## The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -144,20 +142,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_section_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenoteSectionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a onenoteSection object. + # The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. class OnenoteSectionItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/onenote/sections/item/pages/count/count_request_builder.rb b/lib/groups/item/onenote/sections/item/pages/count/count_request_builder.rb index 45f2911571..e697ed43a8 100644 --- a/lib/groups/item/onenote/sections/item/pages/count/count_request_builder.rb +++ b/lib/groups/item/onenote/sections/item/pages/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/onenote/sections/item/pages/item/content/content_request_builder.rb b/lib/groups/item/onenote/sections/item/pages/item/content/content_request_builder.rb index 3d0ec75e45..4646a0d2fd 100644 --- a/lib/groups/item/onenote/sections/item/pages/item/content/content_request_builder.rb +++ b/lib/groups/item/onenote/sections/item/pages/item/content/content_request_builder.rb @@ -36,6 +36,19 @@ def initialize(path_parameters, request_adapter) ## ## The page's HTML content. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The page's HTML content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## def get(request_configuration=nil) @@ -43,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -59,8 +71,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,15 +79,33 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The page's HTML content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -88,17 +117,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb b/lib/groups/item/onenote/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb index 56cc4731b4..26dde9a007 100644 --- a/lib/groups/item/onenote/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb +++ b/lib/groups/item/onenote/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb @@ -36,22 +36,22 @@ class CopyToSectionPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToSectionPostRequestBody and sets the default values. + ## Instantiates a new CopyToSectionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/onenote/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb b/lib/groups/item/onenote/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb index f7f19c0c7a..d08e90fb36 100644 --- a/lib/groups/item/onenote/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb +++ b/lib/groups/item/onenote/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb @@ -45,8 +45,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_section_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToSectionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/sections/item/pages/item/onenote_page_item_request_builder.rb b/lib/groups/item/onenote/sections/item/pages/item/onenote_page_item_request_builder.rb index 3c3e6d5b35..42eb8ff512 100644 --- a/lib/groups/item/onenote/sections/item/pages/item/onenote_page_item_request_builder.rb +++ b/lib/groups/item/onenote/sections/item/pages/item/onenote_page_item_request_builder.rb @@ -65,7 +65,7 @@ def preview() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24expand,%24select}") end ## ## Delete navigation property pages for groups @@ -77,8 +77,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -91,8 +90,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -107,8 +105,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -118,13 +115,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -134,15 +132,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -154,17 +152,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_page_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenotePageItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of pages in the section. Read-only. Nullable. diff --git a/lib/groups/item/onenote/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb b/lib/groups/item/onenote/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb index 7955921857..b8b4b21ef5 100644 --- a/lib/groups/item/onenote/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb +++ b/lib/groups/item/onenote/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb @@ -28,15 +28,15 @@ class OnenotePatchContentPostRequestBody # The commands property @commands ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -58,7 +58,7 @@ def commands=(value) @commands = value end ## - ## Instantiates a new onenotePatchContentPostRequestBody and sets the default values. + ## Instantiates a new OnenotePatchContentPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/onenote/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb b/lib/groups/item/onenote/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb index e707a472e1..60d3c1a746 100644 --- a/lib/groups/item/onenote/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb +++ b/lib/groups/item/onenote/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb @@ -44,8 +44,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,16 +56,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_patch_content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenotePatchContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb b/lib/groups/item/onenote/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb index e62a815cdf..59a3d164ef 100644 --- a/lib/groups/item/onenote/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb +++ b/lib/groups/item/onenote/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb @@ -31,7 +31,7 @@ class ParentNotebookRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24expand,%24select}") end ## ## The notebook that contains the page. Read-only. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentNotebookRequestBuilder.new(raw_url, @request_adapter) + end ## # The notebook that contains the page. Read-only. diff --git a/lib/groups/item/onenote/sections/item/pages/item/parent_section/parent_section_request_builder.rb b/lib/groups/item/onenote/sections/item/pages/item/parent_section/parent_section_request_builder.rb index c44d3772fe..f8d5ffeb46 100644 --- a/lib/groups/item/onenote/sections/item/pages/item/parent_section/parent_section_request_builder.rb +++ b/lib/groups/item/onenote/sections/item/pages/item/parent_section/parent_section_request_builder.rb @@ -31,7 +31,7 @@ class ParentSectionRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24expand,%24select}") end ## ## The section that contains the page. Read-only. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_section_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentSectionRequestBuilder.new(raw_url, @request_adapter) + end ## # The section that contains the page. Read-only. diff --git a/lib/groups/item/onenote/sections/item/pages/item/preview/preview_request_builder.rb b/lib/groups/item/onenote/sections/item/pages/item/preview/preview_request_builder.rb index ab83919ab3..ed45b8511f 100644 --- a/lib/groups/item/onenote/sections/item/pages/item/preview/preview_request_builder.rb +++ b/lib/groups/item/onenote/sections/item/pages/item/preview/preview_request_builder.rb @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePagePreview.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,16 +53,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a preview_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PreviewRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/onenote/sections/item/pages/pages_request_builder.rb b/lib/groups/item/onenote/sections/item/pages/pages_request_builder.rb index fd54ac3924..c443e03056 100644 --- a/lib/groups/item/onenote/sections/item/pages/pages_request_builder.rb +++ b/lib/groups/item/onenote/sections/item/pages/pages_request_builder.rb @@ -46,10 +46,10 @@ def by_onenote_page_id(onenote_page_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of page objects from the specified section. + ## The collection of pages in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_page_collection_response ## @@ -58,12 +58,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new page in the specified section. + ## Create new navigation property to pages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_page @@ -74,30 +73,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of page objects from the specified section. + ## The collection of pages in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new page in the specified section. + ## Create new navigation property to pages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a pages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PagesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of page objects from the specified section. + # The collection of pages in the section. Read-only. Nullable. class PagesRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/onenote/sections/item/parent_notebook/parent_notebook_request_builder.rb b/lib/groups/item/onenote/sections/item/parent_notebook/parent_notebook_request_builder.rb index e735f28393..77573a1728 100644 --- a/lib/groups/item/onenote/sections/item/parent_notebook/parent_notebook_request_builder.rb +++ b/lib/groups/item/onenote/sections/item/parent_notebook/parent_notebook_request_builder.rb @@ -27,7 +27,7 @@ class ParentNotebookRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/parentNotebook{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/parentNotebook{?%24expand,%24select}") end ## ## The notebook that contains the section. Read-only. @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentNotebookRequestBuilder.new(raw_url, @request_adapter) + end ## # The notebook that contains the section. Read-only. diff --git a/lib/groups/item/onenote/sections/item/parent_section_group/parent_section_group_request_builder.rb b/lib/groups/item/onenote/sections/item/parent_section_group/parent_section_group_request_builder.rb index e46584db1b..2139198e75 100644 --- a/lib/groups/item/onenote/sections/item/parent_section_group/parent_section_group_request_builder.rb +++ b/lib/groups/item/onenote/sections/item/parent_section_group/parent_section_group_request_builder.rb @@ -27,7 +27,7 @@ class ParentSectionGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/parentSectionGroup{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/parentSectionGroup{?%24expand,%24select}") end ## ## The section group that contains the section. Read-only. @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_section_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentSectionGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # The section group that contains the section. Read-only. diff --git a/lib/groups/item/onenote/sections/sections_request_builder.rb b/lib/groups/item/onenote/sections/sections_request_builder.rb index 7e72cf2159..67bdd8e881 100644 --- a/lib/groups/item/onenote/sections/sections_request_builder.rb +++ b/lib/groups/item/onenote/sections/sections_request_builder.rb @@ -42,10 +42,10 @@ def by_onenote_section_id(onenote_section_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/onenote/sections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of onenoteSection objects. + ## The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_section_collection_response ## @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSectionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,26 +69,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of onenoteSection objects. + ## The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,20 +99,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sections_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of onenoteSection objects. + # The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. class SectionsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/owners/count/count_request_builder.rb b/lib/groups/item/owners/count/count_request_builder.rb index de4f17e830..1a106ee458 100644 --- a/lib/groups/item/owners/count/count_request_builder.rb +++ b/lib/groups/item/owners/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/owners/graph_application/count/count_request_builder.rb b/lib/groups/item/owners/graph_application/count/count_request_builder.rb index da6ac43d9e..284b50bb7c 100644 --- a/lib/groups/item/owners/graph_application/count/count_request_builder.rb +++ b/lib/groups/item/owners/graph_application/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.application/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.application/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/owners/graph_application/graph_application_request_builder.rb b/lib/groups/item/owners/graph_application/graph_application_request_builder.rb index dd8e8d17ec..f114d457ec 100644 --- a/lib/groups/item/owners/graph_application/graph_application_request_builder.rb +++ b/lib/groups/item/owners/graph_application/graph_application_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.application{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.application{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ApplicationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_application_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphApplicationRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/owners/graph_device/count/count_request_builder.rb b/lib/groups/item/owners/graph_device/count/count_request_builder.rb index 2d47eb94fd..67fbbca902 100644 --- a/lib/groups/item/owners/graph_device/count/count_request_builder.rb +++ b/lib/groups/item/owners/graph_device/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.device/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.device/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/owners/graph_device/graph_device_request_builder.rb b/lib/groups/item/owners/graph_device/graph_device_request_builder.rb index cadc60fa43..b84d611ddf 100644 --- a/lib/groups/item/owners/graph_device/graph_device_request_builder.rb +++ b/lib/groups/item/owners/graph_device/graph_device_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.device{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.device{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_device_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphDeviceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/owners/graph_group/count/count_request_builder.rb b/lib/groups/item/owners/graph_group/count/count_request_builder.rb index 3e6722cb81..20f4056323 100644 --- a/lib/groups/item/owners/graph_group/count/count_request_builder.rb +++ b/lib/groups/item/owners/graph_group/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.group/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.group/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/owners/graph_group/graph_group_request_builder.rb b/lib/groups/item/owners/graph_group/graph_group_request_builder.rb index a034fe14d1..283a161eff 100644 --- a/lib/groups/item/owners/graph_group/graph_group_request_builder.rb +++ b/lib/groups/item/owners/graph_group/graph_group_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.group{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/owners/graph_org_contact/count/count_request_builder.rb b/lib/groups/item/owners/graph_org_contact/count/count_request_builder.rb index d43c1c1049..8222b5a837 100644 --- a/lib/groups/item/owners/graph_org_contact/count/count_request_builder.rb +++ b/lib/groups/item/owners/graph_org_contact/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.orgContact/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.orgContact/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/owners/graph_org_contact/graph_org_contact_request_builder.rb b/lib/groups/item/owners/graph_org_contact/graph_org_contact_request_builder.rb index 24bf57c2cf..0471cbcfc3 100644 --- a/lib/groups/item/owners/graph_org_contact/graph_org_contact_request_builder.rb +++ b/lib/groups/item/owners/graph_org_contact/graph_org_contact_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.orgContact{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.orgContact{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OrgContactCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_org_contact_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphOrgContactRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/owners/graph_service_principal/count/count_request_builder.rb b/lib/groups/item/owners/graph_service_principal/count/count_request_builder.rb index 84943af42e..cbf08025fa 100644 --- a/lib/groups/item/owners/graph_service_principal/count/count_request_builder.rb +++ b/lib/groups/item/owners/graph_service_principal/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.servicePrincipal/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.servicePrincipal/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/owners/graph_service_principal/graph_service_principal_request_builder.rb b/lib/groups/item/owners/graph_service_principal/graph_service_principal_request_builder.rb index 606301c1c0..708b3d379d 100644 --- a/lib/groups/item/owners/graph_service_principal/graph_service_principal_request_builder.rb +++ b/lib/groups/item/owners/graph_service_principal/graph_service_principal_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.servicePrincipal{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.servicePrincipal{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServicePrincipalCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_service_principal_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphServicePrincipalRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/owners/graph_user/count/count_request_builder.rb b/lib/groups/item/owners/graph_user/count/count_request_builder.rb index eb58b85084..0bcbdf1b7c 100644 --- a/lib/groups/item/owners/graph_user/count/count_request_builder.rb +++ b/lib/groups/item/owners/graph_user/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.user/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.user/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/owners/graph_user/graph_user_request_builder.rb b/lib/groups/item/owners/graph_user/graph_user_request_builder.rb index 9a1fbe0ced..d669bcbc35 100644 --- a/lib/groups/item/owners/graph_user/graph_user_request_builder.rb +++ b/lib/groups/item/owners/graph_user/graph_user_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.user{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/graph.user{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/owners/item/graph_application/graph_application_request_builder.rb b/lib/groups/item/owners/item/graph_application/graph_application_request_builder.rb index 0e999699a1..0a8a5d60ab 100644 --- a/lib/groups/item/owners/item/graph_application/graph_application_request_builder.rb +++ b/lib/groups/item/owners/item/graph_application/graph_application_request_builder.rb @@ -25,7 +25,7 @@ class GraphApplicationRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBu ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.application{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.application{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.application @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Application.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_application_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphApplicationRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.application diff --git a/lib/groups/item/owners/item/graph_device/graph_device_request_builder.rb b/lib/groups/item/owners/item/graph_device/graph_device_request_builder.rb index c944e21151..9577352cc7 100644 --- a/lib/groups/item/owners/item/graph_device/graph_device_request_builder.rb +++ b/lib/groups/item/owners/item/graph_device/graph_device_request_builder.rb @@ -25,7 +25,7 @@ class GraphDeviceRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.device{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.device{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.device @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Device.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_device_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphDeviceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.device diff --git a/lib/groups/item/owners/item/graph_group/graph_group_request_builder.rb b/lib/groups/item/owners/item/graph_group/graph_group_request_builder.rb index 918c49ec14..fc40ce2f78 100644 --- a/lib/groups/item/owners/item/graph_group/graph_group_request_builder.rb +++ b/lib/groups/item/owners/item/graph_group/graph_group_request_builder.rb @@ -25,7 +25,7 @@ class GraphGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.group{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.group{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.group @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.group diff --git a/lib/groups/item/owners/item/graph_org_contact/graph_org_contact_request_builder.rb b/lib/groups/item/owners/item/graph_org_contact/graph_org_contact_request_builder.rb index cc0ea7e0b2..0e02c685f8 100644 --- a/lib/groups/item/owners/item/graph_org_contact/graph_org_contact_request_builder.rb +++ b/lib/groups/item/owners/item/graph_org_contact/graph_org_contact_request_builder.rb @@ -25,7 +25,7 @@ class GraphOrgContactRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.orgContact{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.orgContact{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OrgContact.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_org_contact_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphOrgContactRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact diff --git a/lib/groups/item/owners/item/graph_service_principal/graph_service_principal_request_builder.rb b/lib/groups/item/owners/item/graph_service_principal/graph_service_principal_request_builder.rb index 65e48a6705..fdae385bdf 100644 --- a/lib/groups/item/owners/item/graph_service_principal/graph_service_principal_request_builder.rb +++ b/lib/groups/item/owners/item/graph_service_principal/graph_service_principal_request_builder.rb @@ -25,7 +25,7 @@ class GraphServicePrincipalRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.servicePrincipal{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.servicePrincipal{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServicePrincipal.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_service_principal_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphServicePrincipalRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal diff --git a/lib/groups/item/owners/item/graph_user/graph_user_request_builder.rb b/lib/groups/item/owners/item/graph_user/graph_user_request_builder.rb index 69b0a38ea8..561f774cf3 100644 --- a/lib/groups/item/owners/item/graph_user/graph_user_request_builder.rb +++ b/lib/groups/item/owners/item/graph_user/graph_user_request_builder.rb @@ -25,7 +25,7 @@ class GraphUserRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.user{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.user{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.user @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.user diff --git a/lib/groups/item/owners/item/ref/ref_request_builder.rb b/lib/groups/item/owners/item/ref/ref_request_builder.rb index ba6b7192e4..fe62edac67 100644 --- a/lib/groups/item/owners/item/ref/ref_request_builder.rb +++ b/lib/groups/item/owners/item/ref/ref_request_builder.rb @@ -24,7 +24,7 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/$ref") end ## ## Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. @@ -36,8 +36,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,38 +46,24 @@ def delete(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/groups/item/owners/owners_request_builder.rb b/lib/groups/item/owners/owners_request_builder.rb index d8f025cc02..dcd90f020b 100644 --- a/lib/groups/item/owners/owners_request_builder.rb +++ b/lib/groups/item/owners/owners_request_builder.rb @@ -65,7 +65,7 @@ def ref() end ## ## Gets an item from the MicrosoftGraph.groups.item.owners.item collection - ## @param directory_object_id Unique identifier of the item + ## @param directory_object_id The unique identifier of directoryObject ## @return a directory_object_item_request_builder ## def by_directory_object_id(directory_object_id) @@ -81,10 +81,10 @@ def by_directory_object_id(directory_object_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## The owners of the group. Limited to 100 owners. Nullable. If this property is not specified when creating a Microsoft 365 group, the calling user is automatically assigned as the group owner. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). + ## Retrieve a list of the group's owners. The owners are a set of users or service principals who are allowed to modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in Exchange, distribution groups, or groups that are synchronized from an on-premises environment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object_collection_response ## @@ -93,31 +93,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The owners of the group. Limited to 100 owners. Nullable. If this property is not specified when creating a Microsoft 365 group, the calling user is automatically assigned as the group owner. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). + ## Retrieve a list of the group's owners. The owners are a set of users or service principals who are allowed to modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in Exchange, distribution groups, or groups that are synchronized from an on-premises environment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a owners_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OwnersRequestBuilder.new(raw_url, @request_adapter) + end ## - # The owners of the group. Limited to 100 owners. Nullable. If this property is not specified when creating a Microsoft 365 group, the calling user is automatically assigned as the group owner. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). + # Retrieve a list of the group's owners. The owners are a set of users or service principals who are allowed to modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in Exchange, distribution groups, or groups that are synchronized from an on-premises environment. class OwnersRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/owners/ref/ref_request_builder.rb b/lib/groups/item/owners/ref/ref_request_builder.rb index d476d84731..30e33552a6 100644 --- a/lib/groups/item/owners/ref/ref_request_builder.rb +++ b/lib/groups/item/owners/ref/ref_request_builder.rb @@ -24,10 +24,23 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/owners/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") end ## - ## The owners of the group. Limited to 100 owners. Nullable. If this property is not specified when creating a Microsoft 365 group, the calling user is automatically assigned as the group owner. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). + ## Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Retrieve a list of the group's owners. The owners are a set of users or service principals who are allowed to modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in Exchange, distribution groups, or groups that are synchronized from an on-premises environment. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of string_collection_response ## @@ -36,8 +49,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,26 +64,43 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## The owners of the group. Limited to 100 owners. Nullable. If this property is not specified when creating a Microsoft 365 group, the calling user is automatically assigned as the group owner. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). + ## Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/groups/{group%2Did}/owners/$ref?@id={%40id}' request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Retrieve a list of the group's owners. The owners are a set of users or service principals who are allowed to modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in Exchange, distribution groups, or groups that are synchronized from an on-premises environment. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/groups/{group%2Did}/owners/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -83,19 +112,52 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/groups/{group%2Did}/owners/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end ## - # The owners of the group. Limited to 100 owners. Nullable. If this property is not specified when creating a Microsoft 365 group, the calling user is automatically assigned as the group owner. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). + # Retrieve a list of the group's owners. The owners are a set of users or service principals who are allowed to modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in Exchange, distribution groups, or groups that are synchronized from an on-premises environment. class RefRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/permission_grants/count/count_request_builder.rb b/lib/groups/item/permission_grants/count/count_request_builder.rb index c9968b5e8b..36aeeb4f6e 100644 --- a/lib/groups/item/permission_grants/count/count_request_builder.rb +++ b/lib/groups/item/permission_grants/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/permissionGrants/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/permissionGrants/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/permission_grants/delta/delta.rb b/lib/groups/item/permission_grants/delta/delta.rb deleted file mode 100644 index 0c348d20cb..0000000000 --- a/lib/groups/item/permission_grants/delta/delta.rb +++ /dev/null @@ -1 +0,0 @@ -require_relative 'delta_response' diff --git a/lib/groups/item/permission_grants/delta/delta_request_builder.rb b/lib/groups/item/permission_grants/delta/delta_request_builder.rb deleted file mode 100644 index efcca7191e..0000000000 --- a/lib/groups/item/permission_grants/delta/delta_request_builder.rb +++ /dev/null @@ -1,117 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/o_data_errors_o_data_error' -require_relative '../../../groups' -require_relative '../../item' -require_relative '../permission_grants' -require_relative './delta' - -module MicrosoftGraph - module Groups - module Item - module PermissionGrants - module Delta - ## - # Provides operations to call the delta method. - class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new DeltaRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/permissionGrants/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") - end - ## - ## Invoke function delta - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response - ## - def get(request_configuration=nil) - request_info = self.to_get_request_information( - request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::PermissionGrants::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Invoke function delta - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_get_request_information(request_configuration=nil) - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) - request_info.add_request_options(request_configuration.options) - end - return request_info - end - - ## - # Invoke function delta - class DeltaRequestBuilderGetQueryParameters - - ## - # Include count of items - attr_accessor :count - ## - # Filter items by property values - attr_accessor :filter - ## - # Order items by property values - attr_accessor :orderby - ## - # Search items by search phrases - attr_accessor :search - ## - # Select properties to be returned - attr_accessor :select - ## - # Skip the first n items - attr_accessor :skip - ## - # Show only the first n items - attr_accessor :top - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "count" - return "%24count" - when "filter" - return "%24filter" - when "orderby" - return "%24orderby" - when "search" - return "%24search" - when "select" - return "%24select" - when "skip" - return "%24skip" - when "top" - return "%24top" - else - return original_name - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/permission_grants/delta/delta_response.rb b/lib/groups/item/permission_grants/delta/delta_response.rb deleted file mode 100644 index 603a22cdbd..0000000000 --- a/lib/groups/item/permission_grants/delta/delta_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/base_delta_function_response' -require_relative '../../../../models/directory_object' -require_relative '../../../groups' -require_relative '../../item' -require_relative '../permission_grants' -require_relative './delta' - -module MicrosoftGraph - module Groups - module Item - module PermissionGrants - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/groups/item/permission_grants/get_available_extension_properties/get_available_extension_properties.rb b/lib/groups/item/permission_grants/get_available_extension_properties/get_available_extension_properties.rb deleted file mode 100644 index b6fee576bf..0000000000 --- a/lib/groups/item/permission_grants/get_available_extension_properties/get_available_extension_properties.rb +++ /dev/null @@ -1,2 +0,0 @@ -require_relative 'get_available_extension_properties_post_request_body' -require_relative 'get_available_extension_properties_response' diff --git a/lib/groups/item/permission_grants/get_available_extension_properties/get_available_extension_properties_post_request_body.rb b/lib/groups/item/permission_grants/get_available_extension_properties/get_available_extension_properties_post_request_body.rb deleted file mode 100644 index 4445cfd9ab..0000000000 --- a/lib/groups/item/permission_grants/get_available_extension_properties/get_available_extension_properties_post_request_body.rb +++ /dev/null @@ -1,91 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../groups' -require_relative '../../item' -require_relative '../permission_grants' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module Groups - module Item - module PermissionGrants - module GetAvailableExtensionProperties - class GetAvailableExtensionPropertiesPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The isSyncedFromOnPremises property - @is_synced_from_on_premises - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new getAvailableExtensionPropertiesPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_available_extension_properties_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAvailableExtensionPropertiesPostRequestBody.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "isSyncedFromOnPremises" => lambda {|n| @is_synced_from_on_premises = n.get_boolean_value() }, - } - end - ## - ## Gets the isSyncedFromOnPremises property value. The isSyncedFromOnPremises property - ## @return a boolean - ## - def is_synced_from_on_premises - return @is_synced_from_on_premises - end - ## - ## Sets the isSyncedFromOnPremises property value. The isSyncedFromOnPremises property - ## @param value Value to set for the isSyncedFromOnPremises property. - ## @return a void - ## - def is_synced_from_on_premises=(value) - @is_synced_from_on_premises = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("isSyncedFromOnPremises", @is_synced_from_on_premises) - writer.write_additional_data(@additional_data) - end - end - end - end - end - end -end diff --git a/lib/groups/item/permission_grants/get_available_extension_properties/get_available_extension_properties_request_builder.rb b/lib/groups/item/permission_grants/get_available_extension_properties/get_available_extension_properties_request_builder.rb deleted file mode 100644 index 49bbd46a4e..0000000000 --- a/lib/groups/item/permission_grants/get_available_extension_properties/get_available_extension_properties_request_builder.rb +++ /dev/null @@ -1,68 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/o_data_errors_o_data_error' -require_relative '../../../groups' -require_relative '../../item' -require_relative '../permission_grants' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module Groups - module Item - module PermissionGrants - module GetAvailableExtensionProperties - ## - # Provides operations to call the getAvailableExtensionProperties method. - class GetAvailableExtensionPropertiesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new GetAvailableExtensionPropertiesRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/permissionGrants/getAvailableExtensionProperties") - end - ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_available_extension_properties_response - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::PermissionGrants::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end -end diff --git a/lib/groups/item/permission_grants/get_available_extension_properties/get_available_extension_properties_response.rb b/lib/groups/item/permission_grants/get_available_extension_properties/get_available_extension_properties_response.rb deleted file mode 100644 index 49ddfcbd3a..0000000000 --- a/lib/groups/item/permission_grants/get_available_extension_properties/get_available_extension_properties_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../../models/extension_property' -require_relative '../../../groups' -require_relative '../../item' -require_relative '../permission_grants' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module Groups - module Item - module PermissionGrants - module GetAvailableExtensionProperties - class GetAvailableExtensionPropertiesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_available_extension_properties_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAvailableExtensionPropertiesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a extension_property - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/groups/item/permission_grants/get_by_ids/get_by_ids.rb b/lib/groups/item/permission_grants/get_by_ids/get_by_ids.rb deleted file mode 100644 index e4b0824834..0000000000 --- a/lib/groups/item/permission_grants/get_by_ids/get_by_ids.rb +++ /dev/null @@ -1,2 +0,0 @@ -require_relative 'get_by_ids_post_request_body' -require_relative 'get_by_ids_response' diff --git a/lib/groups/item/permission_grants/get_by_ids/get_by_ids_post_request_body.rb b/lib/groups/item/permission_grants/get_by_ids/get_by_ids_post_request_body.rb deleted file mode 100644 index 704b1b1d49..0000000000 --- a/lib/groups/item/permission_grants/get_by_ids/get_by_ids_post_request_body.rb +++ /dev/null @@ -1,111 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../groups' -require_relative '../../item' -require_relative '../permission_grants' -require_relative './get_by_ids' - -module MicrosoftGraph - module Groups - module Item - module PermissionGrants - module GetByIds - class GetByIdsPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The ids property - @ids - ## - # The types property - @types - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new getByIdsPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_by_ids_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetByIdsPostRequestBody.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "ids" => lambda {|n| @ids = n.get_collection_of_primitive_values(String) }, - "types" => lambda {|n| @types = n.get_collection_of_primitive_values(String) }, - } - end - ## - ## Gets the ids property value. The ids property - ## @return a string - ## - def ids - return @ids - end - ## - ## Sets the ids property value. The ids property - ## @param value Value to set for the ids property. - ## @return a void - ## - def ids=(value) - @ids = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_collection_of_primitive_values("ids", @ids) - writer.write_collection_of_primitive_values("types", @types) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the types property value. The types property - ## @return a string - ## - def types - return @types - end - ## - ## Sets the types property value. The types property - ## @param value Value to set for the types property. - ## @return a void - ## - def types=(value) - @types = value - end - end - end - end - end - end -end diff --git a/lib/groups/item/permission_grants/get_by_ids/get_by_ids_request_builder.rb b/lib/groups/item/permission_grants/get_by_ids/get_by_ids_request_builder.rb deleted file mode 100644 index d656df621f..0000000000 --- a/lib/groups/item/permission_grants/get_by_ids/get_by_ids_request_builder.rb +++ /dev/null @@ -1,68 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/o_data_errors_o_data_error' -require_relative '../../../groups' -require_relative '../../item' -require_relative '../permission_grants' -require_relative './get_by_ids' - -module MicrosoftGraph - module Groups - module Item - module PermissionGrants - module GetByIds - ## - # Provides operations to call the getByIds method. - class GetByIdsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new GetByIdsRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/permissionGrants/getByIds") - end - ## - ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_by_ids_response - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::PermissionGrants::GetByIds::GetByIdsResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end -end diff --git a/lib/groups/item/permission_grants/get_by_ids/get_by_ids_response.rb b/lib/groups/item/permission_grants/get_by_ids/get_by_ids_response.rb deleted file mode 100644 index 42e6656526..0000000000 --- a/lib/groups/item/permission_grants/get_by_ids/get_by_ids_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../../models/directory_object' -require_relative '../../../groups' -require_relative '../../item' -require_relative '../permission_grants' -require_relative './get_by_ids' - -module MicrosoftGraph - module Groups - module Item - module PermissionGrants - module GetByIds - class GetByIdsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getByIdsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_by_ids_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetByIdsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/groups/item/permission_grants/item/check_member_groups/check_member_groups.rb b/lib/groups/item/permission_grants/item/check_member_groups/check_member_groups.rb deleted file mode 100644 index 938b908522..0000000000 --- a/lib/groups/item/permission_grants/item/check_member_groups/check_member_groups.rb +++ /dev/null @@ -1,2 +0,0 @@ -require_relative 'check_member_groups_post_request_body' -require_relative 'check_member_groups_response' diff --git a/lib/groups/item/permission_grants/item/check_member_groups/check_member_groups_post_request_body.rb b/lib/groups/item/permission_grants/item/check_member_groups/check_member_groups_post_request_body.rb deleted file mode 100644 index a32c44ee23..0000000000 --- a/lib/groups/item/permission_grants/item/check_member_groups/check_member_groups_post_request_body.rb +++ /dev/null @@ -1,94 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './check_member_groups' - -module MicrosoftGraph - module Groups - module Item - module PermissionGrants - module Item - module CheckMemberGroups - class CheckMemberGroupsPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The groupIds property - @group_ids - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new checkMemberGroupsPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_groups_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberGroupsPostRequestBody.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "groupIds" => lambda {|n| @group_ids = n.get_collection_of_primitive_values(String) }, - } - end - ## - ## Gets the groupIds property value. The groupIds property - ## @return a string - ## - def group_ids - return @group_ids - end - ## - ## Sets the groupIds property value. The groupIds property - ## @param value Value to set for the groupIds property. - ## @return a void - ## - def group_ids=(value) - @group_ids = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_collection_of_primitive_values("groupIds", @group_ids) - writer.write_additional_data(@additional_data) - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/permission_grants/item/check_member_groups/check_member_groups_request_builder.rb b/lib/groups/item/permission_grants/item/check_member_groups/check_member_groups_request_builder.rb deleted file mode 100644 index 3200616059..0000000000 --- a/lib/groups/item/permission_grants/item/check_member_groups/check_member_groups_request_builder.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './check_member_groups' - -module MicrosoftGraph - module Groups - module Item - module PermissionGrants - module Item - module CheckMemberGroups - ## - # Provides operations to call the checkMemberGroups method. - class CheckMemberGroupsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new CheckMemberGroupsRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/checkMemberGroups") - end - ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_groups_response - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::PermissionGrants::Item::CheckMemberGroups::CheckMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/permission_grants/item/check_member_groups/check_member_groups_response.rb b/lib/groups/item/permission_grants/item/check_member_groups/check_member_groups_response.rb deleted file mode 100644 index 38520df561..0000000000 --- a/lib/groups/item/permission_grants/item/check_member_groups/check_member_groups_response.rb +++ /dev/null @@ -1,77 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './check_member_groups' - -module MicrosoftGraph - module Groups - module Item - module PermissionGrants - module Item - module CheckMemberGroups - class CheckMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/permission_grants/item/check_member_objects/check_member_objects.rb b/lib/groups/item/permission_grants/item/check_member_objects/check_member_objects.rb deleted file mode 100644 index 67fbf971e7..0000000000 --- a/lib/groups/item/permission_grants/item/check_member_objects/check_member_objects.rb +++ /dev/null @@ -1,2 +0,0 @@ -require_relative 'check_member_objects_post_request_body' -require_relative 'check_member_objects_response' diff --git a/lib/groups/item/permission_grants/item/check_member_objects/check_member_objects_post_request_body.rb b/lib/groups/item/permission_grants/item/check_member_objects/check_member_objects_post_request_body.rb deleted file mode 100644 index f1fb3a580a..0000000000 --- a/lib/groups/item/permission_grants/item/check_member_objects/check_member_objects_post_request_body.rb +++ /dev/null @@ -1,94 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './check_member_objects' - -module MicrosoftGraph - module Groups - module Item - module PermissionGrants - module Item - module CheckMemberObjects - class CheckMemberObjectsPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The ids property - @ids - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new checkMemberObjectsPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_objects_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberObjectsPostRequestBody.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "ids" => lambda {|n| @ids = n.get_collection_of_primitive_values(String) }, - } - end - ## - ## Gets the ids property value. The ids property - ## @return a string - ## - def ids - return @ids - end - ## - ## Sets the ids property value. The ids property - ## @param value Value to set for the ids property. - ## @return a void - ## - def ids=(value) - @ids = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_collection_of_primitive_values("ids", @ids) - writer.write_additional_data(@additional_data) - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/permission_grants/item/check_member_objects/check_member_objects_request_builder.rb b/lib/groups/item/permission_grants/item/check_member_objects/check_member_objects_request_builder.rb deleted file mode 100644 index e63c71910a..0000000000 --- a/lib/groups/item/permission_grants/item/check_member_objects/check_member_objects_request_builder.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './check_member_objects' - -module MicrosoftGraph - module Groups - module Item - module PermissionGrants - module Item - module CheckMemberObjects - ## - # Provides operations to call the checkMemberObjects method. - class CheckMemberObjectsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new CheckMemberObjectsRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/checkMemberObjects") - end - ## - ## Invoke action checkMemberObjects - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_objects_response - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::PermissionGrants::Item::CheckMemberObjects::CheckMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Invoke action checkMemberObjects - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/permission_grants/item/check_member_objects/check_member_objects_response.rb b/lib/groups/item/permission_grants/item/check_member_objects/check_member_objects_response.rb deleted file mode 100644 index d871f15479..0000000000 --- a/lib/groups/item/permission_grants/item/check_member_objects/check_member_objects_response.rb +++ /dev/null @@ -1,77 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './check_member_objects' - -module MicrosoftGraph - module Groups - module Item - module PermissionGrants - module Item - module CheckMemberObjects - class CheckMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/permission_grants/item/get_member_groups/get_member_groups.rb b/lib/groups/item/permission_grants/item/get_member_groups/get_member_groups.rb deleted file mode 100644 index 0a25b012ea..0000000000 --- a/lib/groups/item/permission_grants/item/get_member_groups/get_member_groups.rb +++ /dev/null @@ -1,2 +0,0 @@ -require_relative 'get_member_groups_post_request_body' -require_relative 'get_member_groups_response' diff --git a/lib/groups/item/permission_grants/item/get_member_groups/get_member_groups_post_request_body.rb b/lib/groups/item/permission_grants/item/get_member_groups/get_member_groups_post_request_body.rb deleted file mode 100644 index cb86baf755..0000000000 --- a/lib/groups/item/permission_grants/item/get_member_groups/get_member_groups_post_request_body.rb +++ /dev/null @@ -1,94 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './get_member_groups' - -module MicrosoftGraph - module Groups - module Item - module PermissionGrants - module Item - module GetMemberGroups - class GetMemberGroupsPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The securityEnabledOnly property - @security_enabled_only - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new getMemberGroupsPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_groups_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberGroupsPostRequestBody.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "securityEnabledOnly" => lambda {|n| @security_enabled_only = n.get_boolean_value() }, - } - end - ## - ## Gets the securityEnabledOnly property value. The securityEnabledOnly property - ## @return a boolean - ## - def security_enabled_only - return @security_enabled_only - end - ## - ## Sets the securityEnabledOnly property value. The securityEnabledOnly property - ## @param value Value to set for the securityEnabledOnly property. - ## @return a void - ## - def security_enabled_only=(value) - @security_enabled_only = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("securityEnabledOnly", @security_enabled_only) - writer.write_additional_data(@additional_data) - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/permission_grants/item/get_member_groups/get_member_groups_request_builder.rb b/lib/groups/item/permission_grants/item/get_member_groups/get_member_groups_request_builder.rb deleted file mode 100644 index 05310a8015..0000000000 --- a/lib/groups/item/permission_grants/item/get_member_groups/get_member_groups_request_builder.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './get_member_groups' - -module MicrosoftGraph - module Groups - module Item - module PermissionGrants - module Item - module GetMemberGroups - ## - # Provides operations to call the getMemberGroups method. - class GetMemberGroupsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new GetMemberGroupsRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberGroups") - end - ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_groups_response - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::PermissionGrants::Item::GetMemberGroups::GetMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/permission_grants/item/get_member_groups/get_member_groups_response.rb b/lib/groups/item/permission_grants/item/get_member_groups/get_member_groups_response.rb deleted file mode 100644 index b5e66eaf4f..0000000000 --- a/lib/groups/item/permission_grants/item/get_member_groups/get_member_groups_response.rb +++ /dev/null @@ -1,77 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './get_member_groups' - -module MicrosoftGraph - module Groups - module Item - module PermissionGrants - module Item - module GetMemberGroups - class GetMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/permission_grants/item/get_member_objects/get_member_objects.rb b/lib/groups/item/permission_grants/item/get_member_objects/get_member_objects.rb deleted file mode 100644 index 40edad6b9e..0000000000 --- a/lib/groups/item/permission_grants/item/get_member_objects/get_member_objects.rb +++ /dev/null @@ -1,2 +0,0 @@ -require_relative 'get_member_objects_post_request_body' -require_relative 'get_member_objects_response' diff --git a/lib/groups/item/permission_grants/item/get_member_objects/get_member_objects_post_request_body.rb b/lib/groups/item/permission_grants/item/get_member_objects/get_member_objects_post_request_body.rb deleted file mode 100644 index e9745ca108..0000000000 --- a/lib/groups/item/permission_grants/item/get_member_objects/get_member_objects_post_request_body.rb +++ /dev/null @@ -1,94 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './get_member_objects' - -module MicrosoftGraph - module Groups - module Item - module PermissionGrants - module Item - module GetMemberObjects - class GetMemberObjectsPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The securityEnabledOnly property - @security_enabled_only - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new getMemberObjectsPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_objects_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberObjectsPostRequestBody.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "securityEnabledOnly" => lambda {|n| @security_enabled_only = n.get_boolean_value() }, - } - end - ## - ## Gets the securityEnabledOnly property value. The securityEnabledOnly property - ## @return a boolean - ## - def security_enabled_only - return @security_enabled_only - end - ## - ## Sets the securityEnabledOnly property value. The securityEnabledOnly property - ## @param value Value to set for the securityEnabledOnly property. - ## @return a void - ## - def security_enabled_only=(value) - @security_enabled_only = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("securityEnabledOnly", @security_enabled_only) - writer.write_additional_data(@additional_data) - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/permission_grants/item/get_member_objects/get_member_objects_request_builder.rb b/lib/groups/item/permission_grants/item/get_member_objects/get_member_objects_request_builder.rb deleted file mode 100644 index b48ef33cdf..0000000000 --- a/lib/groups/item/permission_grants/item/get_member_objects/get_member_objects_request_builder.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './get_member_objects' - -module MicrosoftGraph - module Groups - module Item - module PermissionGrants - module Item - module GetMemberObjects - ## - # Provides operations to call the getMemberObjects method. - class GetMemberObjectsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new GetMemberObjectsRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberObjects") - end - ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_objects_response - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::PermissionGrants::Item::GetMemberObjects::GetMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/permission_grants/item/get_member_objects/get_member_objects_response.rb b/lib/groups/item/permission_grants/item/get_member_objects/get_member_objects_response.rb deleted file mode 100644 index d21bad16f0..0000000000 --- a/lib/groups/item/permission_grants/item/get_member_objects/get_member_objects_response.rb +++ /dev/null @@ -1,77 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './get_member_objects' - -module MicrosoftGraph - module Groups - module Item - module PermissionGrants - module Item - module GetMemberObjects - class GetMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/permission_grants/item/resource_specific_permission_grant_item_request_builder.rb b/lib/groups/item/permission_grants/item/resource_specific_permission_grant_item_request_builder.rb index d867905828..b08c692a80 100644 --- a/lib/groups/item/permission_grants/item/resource_specific_permission_grant_item_request_builder.rb +++ b/lib/groups/item/permission_grants/item/resource_specific_permission_grant_item_request_builder.rb @@ -5,12 +5,7 @@ require_relative '../../../groups' require_relative '../../item' require_relative '../permission_grants' -require_relative './check_member_groups/check_member_groups_request_builder' -require_relative './check_member_objects/check_member_objects_request_builder' -require_relative './get_member_groups/get_member_groups_request_builder' -require_relative './get_member_objects/get_member_objects_request_builder' require_relative './item' -require_relative './restore/restore_request_builder' module MicrosoftGraph module Groups @@ -21,31 +16,6 @@ module Item # Provides operations to manage the permissionGrants property of the microsoft.graph.group entity. class ResourceSpecificPermissionGrantItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - ## - # Provides operations to call the checkMemberGroups method. - def check_member_groups() - return MicrosoftGraph::Groups::Item::PermissionGrants::Item::CheckMemberGroups::CheckMemberGroupsRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the checkMemberObjects method. - def check_member_objects() - return MicrosoftGraph::Groups::Item::PermissionGrants::Item::CheckMemberObjects::CheckMemberObjectsRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the getMemberGroups method. - def get_member_groups() - return MicrosoftGraph::Groups::Item::PermissionGrants::Item::GetMemberGroups::GetMemberGroupsRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the getMemberObjects method. - def get_member_objects() - return MicrosoftGraph::Groups::Item::PermissionGrants::Item::GetMemberObjects::GetMemberObjectsRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the restore method. - def restore() - return MicrosoftGraph::Groups::Item::PermissionGrants::Item::Restore::RestoreRequestBuilder.new(@path_parameters, @request_adapter) - end ## ## Instantiates a new ResourceSpecificPermissionGrantItemRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -53,7 +23,7 @@ def restore() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}{?%24expand,%24select}") end ## ## Delete navigation property permissionGrants for groups @@ -65,12 +35,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## The permission that has been granted for a group to a specific application. Supports $expand. + ## Get permissionGrants from groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of resource_specific_permission_grant ## @@ -79,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ResourceSpecificPermissionGrant.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -95,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ResourceSpecificPermissionGrant.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -106,31 +73,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## The permission that has been granted for a group to a specific application. Supports $expand. + ## Get permissionGrants from groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -142,20 +110,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resource_specific_permission_grant_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourceSpecificPermissionGrantItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # The permission that has been granted for a group to a specific application. Supports $expand. + # Get permissionGrants from groups class ResourceSpecificPermissionGrantItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/permission_grants/item/restore/restore_request_builder.rb b/lib/groups/item/permission_grants/item/restore/restore_request_builder.rb deleted file mode 100644 index ca5d583c0e..0000000000 --- a/lib/groups/item/permission_grants/item/restore/restore_request_builder.rb +++ /dev/null @@ -1,67 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/directory_object' -require_relative '../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './restore' - -module MicrosoftGraph - module Groups - module Item - module PermissionGrants - module Item - module Restore - ## - # Provides operations to call the restore method. - class RestoreRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new RestoreRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/restore") - end - ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of directory_object - ## - def post(request_configuration=nil) - request_info = self.to_post_request_information( - request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(request_configuration=nil) - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - return request_info - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/permission_grants/permission_grants_request_builder.rb b/lib/groups/item/permission_grants/permission_grants_request_builder.rb index c636de6b40..6a5548a492 100644 --- a/lib/groups/item/permission_grants/permission_grants_request_builder.rb +++ b/lib/groups/item/permission_grants/permission_grants_request_builder.rb @@ -6,12 +6,8 @@ require_relative '../../groups' require_relative '../item' require_relative './count/count_request_builder' -require_relative './delta/delta_request_builder' -require_relative './get_available_extension_properties/get_available_extension_properties_request_builder' -require_relative './get_by_ids/get_by_ids_request_builder' require_relative './item/resource_specific_permission_grant_item_request_builder' require_relative './permission_grants' -require_relative './validate_properties/validate_properties_request_builder' module MicrosoftGraph module Groups @@ -27,26 +23,6 @@ def count() return MicrosoftGraph::Groups::Item::PermissionGrants::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## - # Provides operations to call the delta method. - def delta() - return MicrosoftGraph::Groups::Item::PermissionGrants::Delta::DeltaRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the getAvailableExtensionProperties method. - def get_available_extension_properties() - return MicrosoftGraph::Groups::Item::PermissionGrants::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the getByIds method. - def get_by_ids() - return MicrosoftGraph::Groups::Item::PermissionGrants::GetByIds::GetByIdsRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the validateProperties method. - def validate_properties() - return MicrosoftGraph::Groups::Item::PermissionGrants::ValidateProperties::ValidatePropertiesRequestBuilder.new(@path_parameters, @request_adapter) - end - ## ## Provides operations to manage the permissionGrants property of the microsoft.graph.group entity. ## @param resource_specific_permission_grant_id The unique identifier of resourceSpecificPermissionGrant ## @return a resource_specific_permission_grant_item_request_builder @@ -64,10 +40,10 @@ def by_resource_specific_permission_grant_id(resource_specific_permission_grant_ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/permissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/permissionGrants{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List all resource-specific permission grants on the group. This list specifies the Azure AD apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. + ## List all resource-specific permission grants on the group. This list specifies the Microsoft Entra apps that have access to the group, along with the corresponding resource-specific access that each app has. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of resource_specific_permission_grant_collection_response ## @@ -76,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ResourceSpecificPermissionGrantCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,26 +67,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ResourceSpecificPermissionGrant.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List all resource-specific permission grants on the group. This list specifies the Azure AD apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. + ## List all resource-specific permission grants on the group. This list specifies the Microsoft Entra apps that have access to the group, along with the corresponding resource-specific access that each app has. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -123,20 +97,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a permission_grants_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PermissionGrantsRequestBuilder.new(raw_url, @request_adapter) + end ## - # List all resource-specific permission grants on the group. This list specifies the Azure AD apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. + # List all resource-specific permission grants on the group. This list specifies the Microsoft Entra apps that have access to the group, along with the corresponding resource-specific access that each app has. class PermissionGrantsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/permission_grants/validate_properties/validate_properties.rb b/lib/groups/item/permission_grants/validate_properties/validate_properties.rb deleted file mode 100644 index 6b178d139b..0000000000 --- a/lib/groups/item/permission_grants/validate_properties/validate_properties.rb +++ /dev/null @@ -1 +0,0 @@ -require_relative 'validate_properties_post_request_body' diff --git a/lib/groups/item/permission_grants/validate_properties/validate_properties_post_request_body.rb b/lib/groups/item/permission_grants/validate_properties/validate_properties_post_request_body.rb deleted file mode 100644 index efdb963dab..0000000000 --- a/lib/groups/item/permission_grants/validate_properties/validate_properties_post_request_body.rb +++ /dev/null @@ -1,151 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../groups' -require_relative '../../item' -require_relative '../permission_grants' -require_relative './validate_properties' - -module MicrosoftGraph - module Groups - module Item - module PermissionGrants - module ValidateProperties - class ValidatePropertiesPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The displayName property - @display_name - ## - # The entityType property - @entity_type - ## - # The mailNickname property - @mail_nickname - ## - # The onBehalfOfUserId property - @on_behalf_of_user_id - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new validatePropertiesPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a validate_properties_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return ValidatePropertiesPostRequestBody.new - end - ## - ## Gets the displayName property value. The displayName property - ## @return a string - ## - def display_name - return @display_name - end - ## - ## Sets the displayName property value. The displayName property - ## @param value Value to set for the displayName property. - ## @return a void - ## - def display_name=(value) - @display_name = value - end - ## - ## Gets the entityType property value. The entityType property - ## @return a string - ## - def entity_type - return @entity_type - end - ## - ## Sets the entityType property value. The entityType property - ## @param value Value to set for the entityType property. - ## @return a void - ## - def entity_type=(value) - @entity_type = value - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "displayName" => lambda {|n| @display_name = n.get_string_value() }, - "entityType" => lambda {|n| @entity_type = n.get_string_value() }, - "mailNickname" => lambda {|n| @mail_nickname = n.get_string_value() }, - "onBehalfOfUserId" => lambda {|n| @on_behalf_of_user_id = n.get_guid_value() }, - } - end - ## - ## Gets the mailNickname property value. The mailNickname property - ## @return a string - ## - def mail_nickname - return @mail_nickname - end - ## - ## Sets the mailNickname property value. The mailNickname property - ## @param value Value to set for the mailNickname property. - ## @return a void - ## - def mail_nickname=(value) - @mail_nickname = value - end - ## - ## Gets the onBehalfOfUserId property value. The onBehalfOfUserId property - ## @return a guid - ## - def on_behalf_of_user_id - return @on_behalf_of_user_id - end - ## - ## Sets the onBehalfOfUserId property value. The onBehalfOfUserId property - ## @param value Value to set for the onBehalfOfUserId property. - ## @return a void - ## - def on_behalf_of_user_id=(value) - @on_behalf_of_user_id = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_string_value("displayName", @display_name) - writer.write_string_value("entityType", @entity_type) - writer.write_string_value("mailNickname", @mail_nickname) - writer.write_guid_value("onBehalfOfUserId", @on_behalf_of_user_id) - writer.write_additional_data(@additional_data) - end - end - end - end - end - end -end diff --git a/lib/groups/item/permission_grants/validate_properties/validate_properties_request_builder.rb b/lib/groups/item/permission_grants/validate_properties/validate_properties_request_builder.rb deleted file mode 100644 index d8ba5e4e6b..0000000000 --- a/lib/groups/item/permission_grants/validate_properties/validate_properties_request_builder.rb +++ /dev/null @@ -1,67 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/o_data_errors_o_data_error' -require_relative '../../../groups' -require_relative '../../item' -require_relative '../permission_grants' -require_relative './validate_properties' - -module MicrosoftGraph - module Groups - module Item - module PermissionGrants - module ValidateProperties - ## - # Provides operations to call the validateProperties method. - class ValidatePropertiesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new ValidatePropertiesRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/permissionGrants/validateProperties") - end - ## - ## Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of void - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, nil, error_mapping) - end - ## - ## Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end -end diff --git a/lib/groups/item/photo/photo_request_builder.rb b/lib/groups/item/photo/photo_request_builder.rb index 0ff36bb520..19cb1a7b45 100644 --- a/lib/groups/item/photo/photo_request_builder.rb +++ b/lib/groups/item/photo/photo_request_builder.rb @@ -27,7 +27,7 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/photo{?%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/photo{?%24expand,%24select}") end ## ## Delete navigation property photo for groups @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ProfilePhoto.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ProfilePhoto.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,13 +77,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,15 +94,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,22 +114,34 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a photo_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PhotoRequestBuilder.new(raw_url, @request_adapter) + end ## # The group's profile photo class PhotoRequestBuilderGetQueryParameters + ## + # Expand related entities + attr_accessor :expand ## # Select properties to be returned attr_accessor :select @@ -143,6 +153,8 @@ class PhotoRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "expand" + return "%24expand" when "select" return "%24select" else diff --git a/lib/groups/item/photo/value/content_request_builder.rb b/lib/groups/item/photo/value/content_request_builder.rb index a3f7a4b9bf..05027a4fdb 100644 --- a/lib/groups/item/photo/value/content_request_builder.rb +++ b/lib/groups/item/photo/value/content_request_builder.rb @@ -25,7 +25,20 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/photo/$value") end ## - ## Get media content for the navigation property photo from groups + ## The group's profile photo + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The group's profile photo ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## @@ -34,12 +47,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Update media content for the navigation property photo in groups + ## The group's profile photo ## @param body Binary request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary @@ -50,28 +62,45 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Get media content for the navigation property photo from groups + ## The group's profile photo ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The group's profile photo + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## - ## Update media content for the navigation property photo in groups + ## The group's profile photo ## @param body Binary request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -79,16 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/photos/count/count_request_builder.rb b/lib/groups/item/photos/count/count_request_builder.rb deleted file mode 100644 index cfbb206e59..0000000000 --- a/lib/groups/item/photos/count/count_request_builder.rb +++ /dev/null @@ -1,87 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/o_data_errors_o_data_error' -require_relative '../../../groups' -require_relative '../../item' -require_relative '../photos' -require_relative './count' - -module MicrosoftGraph - module Groups - module Item - module Photos - module Count - ## - # Provides operations to count the resources in the collection. - class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new CountRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/photos/$count{?%24filter}") - end - ## - ## Get the number of the resource - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of integer - ## - def get(request_configuration=nil) - request_info = self.to_get_request_information( - request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, number, error_mapping) - end - ## - ## Get the number of the resource - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_get_request_information(request_configuration=nil) - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) - request_info.add_request_options(request_configuration.options) - end - return request_info - end - - ## - # Get the number of the resource - class CountRequestBuilderGetQueryParameters - - ## - # Filter items by property values - attr_accessor :filter - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "filter" - return "%24filter" - else - return original_name - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/photos/item/profile_photo_item_request_builder.rb b/lib/groups/item/photos/item/profile_photo_item_request_builder.rb index 7434caefc3..51296fa823 100644 --- a/lib/groups/item/photos/item/profile_photo_item_request_builder.rb +++ b/lib/groups/item/photos/item/profile_photo_item_request_builder.rb @@ -29,7 +29,7 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/photos/{profilePhoto%2Did}{?%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/photos/{profilePhoto%2Did}{?%24expand,%24select}") end ## ## The profile photos owned by the group. Read-only. Nullable. @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ProfilePhoto.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,22 +51,34 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a profile_photo_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ProfilePhotoItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The profile photos owned by the group. Read-only. Nullable. class ProfilePhotoItemRequestBuilderGetQueryParameters + ## + # Expand related entities + attr_accessor :expand ## # Select properties to be returned attr_accessor :select @@ -79,6 +90,8 @@ class ProfilePhotoItemRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "expand" + return "%24expand" when "select" return "%24select" else diff --git a/lib/groups/item/photos/item/value/content_request_builder.rb b/lib/groups/item/photos/item/value/content_request_builder.rb index 0e8e21be33..998da943ff 100644 --- a/lib/groups/item/photos/item/value/content_request_builder.rb +++ b/lib/groups/item/photos/item/value/content_request_builder.rb @@ -27,7 +27,20 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/photos/{profilePhoto%2Did}/$value") end ## - ## Get media content for the navigation property photos from groups + ## The unique identifier for an entity. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Retrieve a list of profilePhoto objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## @@ -36,12 +49,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Update media content for the navigation property photos in groups + ## The unique identifier for an entity. Read-only. ## @param body Binary request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary @@ -52,28 +64,45 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Get media content for the navigation property photos from groups + ## The unique identifier for an entity. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Retrieve a list of profilePhoto objects. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## - ## Update media content for the navigation property photos in groups + ## The unique identifier for an entity. Read-only. ## @param body Binary request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -81,16 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/photos/photos_request_builder.rb b/lib/groups/item/photos/photos_request_builder.rb index c9dee782d2..811e79e93b 100644 --- a/lib/groups/item/photos/photos_request_builder.rb +++ b/lib/groups/item/photos/photos_request_builder.rb @@ -4,7 +4,6 @@ require_relative '../../../models/profile_photo_collection_response' require_relative '../../groups' require_relative '../item' -require_relative './count/count_request_builder' require_relative './item/profile_photo_item_request_builder' require_relative './photos' @@ -16,11 +15,6 @@ module Photos # Provides operations to manage the photos property of the microsoft.graph.group entity. class PhotosRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - ## - # Provides operations to count the resources in the collection. - def count() - return MicrosoftGraph::Groups::Item::Photos::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) - end ## ## Provides operations to manage the photos property of the microsoft.graph.group entity. ## @param profile_photo_id The unique identifier of profilePhoto @@ -39,7 +33,7 @@ def by_profile_photo_id(profile_photo_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/photos{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/photos{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of profilePhoto objects. @@ -51,8 +45,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ProfilePhotoCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +55,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a photos_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PhotosRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of profilePhoto objects. @@ -82,12 +84,18 @@ class PhotosRequestBuilderGetQueryParameters # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -106,10 +114,14 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/planner/planner_request_builder.rb b/lib/groups/item/planner/planner_request_builder.rb index d19e2a9281..c80c61d4d0 100644 --- a/lib/groups/item/planner/planner_request_builder.rb +++ b/lib/groups/item/planner/planner_request_builder.rb @@ -27,7 +27,7 @@ def plans() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner{?%24expand,%24select}") end ## ## Delete navigation property planner for groups @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,13 +77,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,15 +94,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,17 +114,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a planner_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PlannerRequestBuilder.new(raw_url, @request_adapter) + end ## # Entry-point to Planner resource that might exist for a Unified Group. diff --git a/lib/groups/item/planner/plans/count/count_request_builder.rb b/lib/groups/item/planner/plans/count/count_request_builder.rb index bd5e90afa0..72a348595e 100644 --- a/lib/groups/item/planner/plans/count/count_request_builder.rb +++ b/lib/groups/item/planner/plans/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/planner/plans/item/buckets/buckets_request_builder.rb b/lib/groups/item/planner/plans/item/buckets/buckets_request_builder.rb index 4c2e370be2..32a5e5adef 100644 --- a/lib/groups/item/planner/plans/item/buckets/buckets_request_builder.rb +++ b/lib/groups/item/planner/plans/item/buckets/buckets_request_builder.rb @@ -46,10 +46,10 @@ def by_planner_bucket_id(planner_bucket_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of plannerBucket objects contained by a plannerPlan object. + ## Read-only. Nullable. Collection of buckets in the plan. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of planner_bucket_collection_response ## @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerBucketCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,26 +73,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerBucket.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of plannerBucket objects contained by a plannerPlan object. + ## Read-only. Nullable. Collection of buckets in the plan. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a buckets_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BucketsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of plannerBucket objects contained by a plannerPlan object. + # Read-only. Nullable. Collection of buckets in the plan. class BucketsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/planner/plans/item/buckets/count/count_request_builder.rb b/lib/groups/item/planner/plans/item/buckets/count/count_request_builder.rb index d425e317f4..28f1a10cb9 100644 --- a/lib/groups/item/planner/plans/item/buckets/count/count_request_builder.rb +++ b/lib/groups/item/planner/plans/item/buckets/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/planner/plans/item/buckets/item/planner_bucket_item_request_builder.rb b/lib/groups/item/planner/plans/item/buckets/item/planner_bucket_item_request_builder.rb index 75bc8f7f0a..622cc65812 100644 --- a/lib/groups/item/planner/plans/item/buckets/item/planner_bucket_item_request_builder.rb +++ b/lib/groups/item/planner/plans/item/buckets/item/planner_bucket_item_request_builder.rb @@ -35,7 +35,7 @@ def tasks() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}{?%24expand,%24select}") end ## ## Delete navigation property buckets for groups @@ -47,8 +47,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerBucket.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerBucket.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,13 +85,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -104,15 +102,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,17 +122,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a planner_bucket_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PlannerBucketItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Collection of buckets in the plan. diff --git a/lib/groups/item/planner/plans/item/buckets/item/tasks/count/count_request_builder.rb b/lib/groups/item/planner/plans/item/buckets/item/tasks/count/count_request_builder.rb index e1fd312c0e..fcbb9e4cc1 100644 --- a/lib/groups/item/planner/plans/item/buckets/item/tasks/count/count_request_builder.rb +++ b/lib/groups/item/planner/plans/item/buckets/item/tasks/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/planner/plans/item/buckets/item/tasks/item/assigned_to_task_board_format/assigned_to_task_board_format_request_builder.rb b/lib/groups/item/planner/plans/item/buckets/item/tasks/item/assigned_to_task_board_format/assigned_to_task_board_format_request_builder.rb index b6ddfa1eda..7166dd179f 100644 --- a/lib/groups/item/planner/plans/item/buckets/item/tasks/item/assigned_to_task_board_format/assigned_to_task_board_format_request_builder.rb +++ b/lib/groups/item/planner/plans/item/buckets/item/tasks/item/assigned_to_task_board_format/assigned_to_task_board_format_request_builder.rb @@ -35,7 +35,7 @@ class AssignedToTaskBoardFormatRequestBuilder < MicrosoftKiotaAbstractions::Base ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/{plannerTask%2Did}/assignedToTaskBoardFormat{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/{plannerTask%2Did}/assignedToTaskBoardFormat{?%24expand,%24select}") end ## ## Delete navigation property assignedToTaskBoardFormat for groups @@ -47,12 +47,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + ## Read-only. Nullable. Used to render the task correctly in the task board view when grouped by assignedTo. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of planner_assigned_to_task_board_task_format ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerAssignedToTaskBoardTaskFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerAssignedToTaskBoardTaskFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,31 +85,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + ## Read-only. Nullable. Used to render the task correctly in the task board view when grouped by assignedTo. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,20 +122,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assigned_to_task_board_format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignedToTaskBoardFormatRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + # Read-only. Nullable. Used to render the task correctly in the task board view when grouped by assignedTo. class AssignedToTaskBoardFormatRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/planner/plans/item/buckets/item/tasks/item/bucket_task_board_format/bucket_task_board_format_request_builder.rb b/lib/groups/item/planner/plans/item/buckets/item/tasks/item/bucket_task_board_format/bucket_task_board_format_request_builder.rb index 25a1a71acf..b2bbee4740 100644 --- a/lib/groups/item/planner/plans/item/buckets/item/tasks/item/bucket_task_board_format/bucket_task_board_format_request_builder.rb +++ b/lib/groups/item/planner/plans/item/buckets/item/tasks/item/bucket_task_board_format/bucket_task_board_format_request_builder.rb @@ -35,7 +35,7 @@ class BucketTaskBoardFormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/{plannerTask%2Did}/bucketTaskBoardFormat{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/{plannerTask%2Did}/bucketTaskBoardFormat{?%24expand,%24select}") end ## ## Delete navigation property bucketTaskBoardFormat for groups @@ -47,12 +47,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + ## Read-only. Nullable. Used to render the task correctly in the task board view when grouped by bucket. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of planner_bucket_task_board_task_format ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerBucketTaskBoardTaskFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerBucketTaskBoardTaskFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,31 +85,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + ## Read-only. Nullable. Used to render the task correctly in the task board view when grouped by bucket. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,20 +122,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bucket_task_board_format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BucketTaskBoardFormatRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + # Read-only. Nullable. Used to render the task correctly in the task board view when grouped by bucket. class BucketTaskBoardFormatRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/planner/plans/item/buckets/item/tasks/item/details/details_request_builder.rb b/lib/groups/item/planner/plans/item/buckets/item/tasks/item/details/details_request_builder.rb index fea661fb1f..3773fdaf40 100644 --- a/lib/groups/item/planner/plans/item/buckets/item/tasks/item/details/details_request_builder.rb +++ b/lib/groups/item/planner/plans/item/buckets/item/tasks/item/details/details_request_builder.rb @@ -35,7 +35,7 @@ class DetailsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/{plannerTask%2Did}/details{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/{plannerTask%2Did}/details{?%24expand,%24select}") end ## ## Delete navigation property details for groups @@ -47,12 +47,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a plannerTaskDetails object. + ## Read-only. Nullable. More details about the task. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of planner_task_details ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerTaskDetails.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerTaskDetails.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,31 +85,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a plannerTaskDetails object. + ## Read-only. Nullable. More details about the task. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,20 +122,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a details_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DetailsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a plannerTaskDetails object. + # Read-only. Nullable. More details about the task. class DetailsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/planner/plans/item/buckets/item/tasks/item/planner_task_item_request_builder.rb b/lib/groups/item/planner/plans/item/buckets/item/tasks/item/planner_task_item_request_builder.rb index 15a5e040b6..b57bc15e1d 100644 --- a/lib/groups/item/planner/plans/item/buckets/item/tasks/item/planner_task_item_request_builder.rb +++ b/lib/groups/item/planner/plans/item/buckets/item/tasks/item/planner_task_item_request_builder.rb @@ -57,7 +57,7 @@ def progress_task_board_format() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/{plannerTask%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/{plannerTask%2Did}{?%24expand,%24select}") end ## ## Delete navigation property tasks for groups @@ -69,8 +69,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -83,8 +82,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerTask.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,8 +97,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerTask.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -110,13 +107,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,15 +124,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -146,17 +144,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a planner_task_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PlannerTaskItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. The collection of tasks in the bucket. diff --git a/lib/groups/item/planner/plans/item/buckets/item/tasks/item/progress_task_board_format/progress_task_board_format_request_builder.rb b/lib/groups/item/planner/plans/item/buckets/item/tasks/item/progress_task_board_format/progress_task_board_format_request_builder.rb index de47395d31..f5f65faea2 100644 --- a/lib/groups/item/planner/plans/item/buckets/item/tasks/item/progress_task_board_format/progress_task_board_format_request_builder.rb +++ b/lib/groups/item/planner/plans/item/buckets/item/tasks/item/progress_task_board_format/progress_task_board_format_request_builder.rb @@ -35,7 +35,7 @@ class ProgressTaskBoardFormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/{plannerTask%2Did}/progressTaskBoardFormat{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/{plannerTask%2Did}/progressTaskBoardFormat{?%24expand,%24select}") end ## ## Delete navigation property progressTaskBoardFormat for groups @@ -47,12 +47,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + ## Read-only. Nullable. Used to render the task correctly in the task board view when grouped by progress. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of planner_progress_task_board_task_format ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerProgressTaskBoardTaskFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerProgressTaskBoardTaskFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,31 +85,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + ## Read-only. Nullable. Used to render the task correctly in the task board view when grouped by progress. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,20 +122,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a progress_task_board_format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ProgressTaskBoardFormatRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + # Read-only. Nullable. Used to render the task correctly in the task board view when grouped by progress. class ProgressTaskBoardFormatRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/planner/plans/item/buckets/item/tasks/tasks_request_builder.rb b/lib/groups/item/planner/plans/item/buckets/item/tasks/tasks_request_builder.rb index 8650f75573..8de0dcbbfd 100644 --- a/lib/groups/item/planner/plans/item/buckets/item/tasks/tasks_request_builder.rb +++ b/lib/groups/item/planner/plans/item/buckets/item/tasks/tasks_request_builder.rb @@ -50,10 +50,10 @@ def by_planner_task_id(planner_task_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of plannerTask objects associated to a plannerBucket object. + ## Read-only. Nullable. The collection of tasks in the bucket. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of planner_task_collection_response ## @@ -62,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerTaskCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,26 +77,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerTask.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of plannerTask objects associated to a plannerBucket object. + ## Read-only. Nullable. The collection of tasks in the bucket. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a tasks_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TasksRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of plannerTask objects associated to a plannerBucket object. + # Read-only. Nullable. The collection of tasks in the bucket. class TasksRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/planner/plans/item/details/details_request_builder.rb b/lib/groups/item/planner/plans/item/details/details_request_builder.rb index b818aaf2f7..74fd9161f2 100644 --- a/lib/groups/item/planner/plans/item/details/details_request_builder.rb +++ b/lib/groups/item/planner/plans/item/details/details_request_builder.rb @@ -27,7 +27,7 @@ class DetailsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/details{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/details{?%24expand,%24select}") end ## ## Delete navigation property details for groups @@ -39,12 +39,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a plannerPlanDetails object. + ## Read-only. Nullable. Extra details about the plan. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of planner_plan_details ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerPlanDetails.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerPlanDetails.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,31 +77,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a plannerPlanDetails object. + ## Read-only. Nullable. Extra details about the plan. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,20 +114,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a details_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DetailsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a plannerPlanDetails object. + # Read-only. Nullable. Extra details about the plan. class DetailsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/planner/plans/item/planner_plan_item_request_builder.rb b/lib/groups/item/planner/plans/item/planner_plan_item_request_builder.rb index c5a73ffe7c..a762e0263b 100644 --- a/lib/groups/item/planner/plans/item/planner_plan_item_request_builder.rb +++ b/lib/groups/item/planner/plans/item/planner_plan_item_request_builder.rb @@ -43,7 +43,7 @@ def tasks() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}{?%24expand,%24select}") end ## ## Delete navigation property plans for groups @@ -55,8 +55,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -69,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerPlan.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,8 +83,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerPlan.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -96,13 +93,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,15 +110,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,17 +130,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a planner_plan_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PlannerPlanItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Returns the plannerPlans owned by the group. diff --git a/lib/groups/item/planner/plans/item/tasks/count/count_request_builder.rb b/lib/groups/item/planner/plans/item/tasks/count/count_request_builder.rb index 99e66befde..caa45b29e6 100644 --- a/lib/groups/item/planner/plans/item/tasks/count/count_request_builder.rb +++ b/lib/groups/item/planner/plans/item/tasks/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/planner/plans/item/tasks/item/assigned_to_task_board_format/assigned_to_task_board_format_request_builder.rb b/lib/groups/item/planner/plans/item/tasks/item/assigned_to_task_board_format/assigned_to_task_board_format_request_builder.rb index b2c8fdc42b..6b47ddb0f7 100644 --- a/lib/groups/item/planner/plans/item/tasks/item/assigned_to_task_board_format/assigned_to_task_board_format_request_builder.rb +++ b/lib/groups/item/planner/plans/item/tasks/item/assigned_to_task_board_format/assigned_to_task_board_format_request_builder.rb @@ -31,7 +31,7 @@ class AssignedToTaskBoardFormatRequestBuilder < MicrosoftKiotaAbstractions::Base ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/{plannerTask%2Did}/assignedToTaskBoardFormat{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/{plannerTask%2Did}/assignedToTaskBoardFormat{?%24expand,%24select}") end ## ## Delete navigation property assignedToTaskBoardFormat for groups @@ -43,12 +43,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + ## Read-only. Nullable. Used to render the task correctly in the task board view when grouped by assignedTo. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of planner_assigned_to_task_board_task_format ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerAssignedToTaskBoardTaskFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerAssignedToTaskBoardTaskFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,31 +81,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + ## Read-only. Nullable. Used to render the task correctly in the task board view when grouped by assignedTo. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,20 +118,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assigned_to_task_board_format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignedToTaskBoardFormatRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + # Read-only. Nullable. Used to render the task correctly in the task board view when grouped by assignedTo. class AssignedToTaskBoardFormatRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/planner/plans/item/tasks/item/bucket_task_board_format/bucket_task_board_format_request_builder.rb b/lib/groups/item/planner/plans/item/tasks/item/bucket_task_board_format/bucket_task_board_format_request_builder.rb index 219daf23c4..3f80df3d9c 100644 --- a/lib/groups/item/planner/plans/item/tasks/item/bucket_task_board_format/bucket_task_board_format_request_builder.rb +++ b/lib/groups/item/planner/plans/item/tasks/item/bucket_task_board_format/bucket_task_board_format_request_builder.rb @@ -31,7 +31,7 @@ class BucketTaskBoardFormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/{plannerTask%2Did}/bucketTaskBoardFormat{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/{plannerTask%2Did}/bucketTaskBoardFormat{?%24expand,%24select}") end ## ## Delete navigation property bucketTaskBoardFormat for groups @@ -43,12 +43,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + ## Read-only. Nullable. Used to render the task correctly in the task board view when grouped by bucket. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of planner_bucket_task_board_task_format ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerBucketTaskBoardTaskFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerBucketTaskBoardTaskFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,31 +81,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + ## Read-only. Nullable. Used to render the task correctly in the task board view when grouped by bucket. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,20 +118,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a bucket_task_board_format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BucketTaskBoardFormatRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + # Read-only. Nullable. Used to render the task correctly in the task board view when grouped by bucket. class BucketTaskBoardFormatRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/planner/plans/item/tasks/item/details/details_request_builder.rb b/lib/groups/item/planner/plans/item/tasks/item/details/details_request_builder.rb index 99c00ad18b..9bdd8050d3 100644 --- a/lib/groups/item/planner/plans/item/tasks/item/details/details_request_builder.rb +++ b/lib/groups/item/planner/plans/item/tasks/item/details/details_request_builder.rb @@ -31,7 +31,7 @@ class DetailsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/{plannerTask%2Did}/details{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/{plannerTask%2Did}/details{?%24expand,%24select}") end ## ## Delete navigation property details for groups @@ -43,12 +43,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a plannerTaskDetails object. + ## Read-only. Nullable. More details about the task. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of planner_task_details ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerTaskDetails.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerTaskDetails.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,31 +81,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a plannerTaskDetails object. + ## Read-only. Nullable. More details about the task. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,20 +118,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a details_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DetailsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a plannerTaskDetails object. + # Read-only. Nullable. More details about the task. class DetailsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/planner/plans/item/tasks/item/planner_task_item_request_builder.rb b/lib/groups/item/planner/plans/item/tasks/item/planner_task_item_request_builder.rb index e423b7e5ba..1140925b23 100644 --- a/lib/groups/item/planner/plans/item/tasks/item/planner_task_item_request_builder.rb +++ b/lib/groups/item/planner/plans/item/tasks/item/planner_task_item_request_builder.rb @@ -53,7 +53,7 @@ def progress_task_board_format() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/{plannerTask%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/{plannerTask%2Did}{?%24expand,%24select}") end ## ## Delete navigation property tasks for groups @@ -65,8 +65,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -79,8 +78,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerTask.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -95,8 +93,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerTask.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -106,13 +103,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,15 +120,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -142,17 +140,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a planner_task_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PlannerTaskItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Collection of tasks in the plan. diff --git a/lib/groups/item/planner/plans/item/tasks/item/progress_task_board_format/progress_task_board_format_request_builder.rb b/lib/groups/item/planner/plans/item/tasks/item/progress_task_board_format/progress_task_board_format_request_builder.rb index a14307ba28..2fd59caa2e 100644 --- a/lib/groups/item/planner/plans/item/tasks/item/progress_task_board_format/progress_task_board_format_request_builder.rb +++ b/lib/groups/item/planner/plans/item/tasks/item/progress_task_board_format/progress_task_board_format_request_builder.rb @@ -31,7 +31,7 @@ class ProgressTaskBoardFormatRequestBuilder < MicrosoftKiotaAbstractions::BaseRe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/{plannerTask%2Did}/progressTaskBoardFormat{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/{plannerTask%2Did}/progressTaskBoardFormat{?%24expand,%24select}") end ## ## Delete navigation property progressTaskBoardFormat for groups @@ -43,12 +43,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + ## Read-only. Nullable. Used to render the task correctly in the task board view when grouped by progress. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of planner_progress_task_board_task_format ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerProgressTaskBoardTaskFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerProgressTaskBoardTaskFormat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,31 +81,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + ## Read-only. Nullable. Used to render the task correctly in the task board view when grouped by progress. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,20 +118,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a progress_task_board_format_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ProgressTaskBoardFormatRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + # Read-only. Nullable. Used to render the task correctly in the task board view when grouped by progress. class ProgressTaskBoardFormatRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/planner/plans/item/tasks/tasks_request_builder.rb b/lib/groups/item/planner/plans/item/tasks/tasks_request_builder.rb index 0e2e46e091..075fdb31fe 100644 --- a/lib/groups/item/planner/plans/item/tasks/tasks_request_builder.rb +++ b/lib/groups/item/planner/plans/item/tasks/tasks_request_builder.rb @@ -46,10 +46,10 @@ def by_planner_task_id(planner_task_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of plannerTask objects associated with a plannerPlan object. + ## Read-only. Nullable. Collection of tasks in the plan. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of planner_task_collection_response ## @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerTaskCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,26 +73,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerTask.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of plannerTask objects associated with a plannerPlan object. + ## Read-only. Nullable. Collection of tasks in the plan. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a tasks_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TasksRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of plannerTask objects associated with a plannerPlan object. + # Read-only. Nullable. Collection of tasks in the plan. class TasksRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/planner/plans/plans_request_builder.rb b/lib/groups/item/planner/plans/plans_request_builder.rb index e3f752204d..443191bcde 100644 --- a/lib/groups/item/planner/plans/plans_request_builder.rb +++ b/lib/groups/item/planner/plans/plans_request_builder.rb @@ -42,7 +42,7 @@ def by_planner_plan_id(planner_plan_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/planner/plans{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of plannerPlan objects owned by a group object. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerPlanCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PlannerPlan.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a plans_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PlansRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of plannerPlan objects owned by a group object. diff --git a/lib/groups/item/rejected_senders/count/count_request_builder.rb b/lib/groups/item/rejected_senders/count/count_request_builder.rb index c0b5094891..8399a713b7 100644 --- a/lib/groups/item/rejected_senders/count/count_request_builder.rb +++ b/lib/groups/item/rejected_senders/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -65,6 +73,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -74,6 +85,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/rejected_senders/item/ref/ref_request_builder.rb b/lib/groups/item/rejected_senders/item/ref/ref_request_builder.rb index 1dda0aacbe..0ed5580744 100644 --- a/lib/groups/item/rejected_senders/item/ref/ref_request_builder.rb +++ b/lib/groups/item/rejected_senders/item/ref/ref_request_builder.rb @@ -24,7 +24,7 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/{directoryObject%2Did}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/{directoryObject%2Did}/$ref") end ## ## Remove rejectedSender @@ -36,8 +36,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,38 +46,24 @@ def delete(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Remove rejectedSender - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/groups/item/rejected_senders/ref/ref_request_builder.rb b/lib/groups/item/rejected_senders/ref/ref_request_builder.rb index 9ae7889298..6294eef1ba 100644 --- a/lib/groups/item/rejected_senders/ref/ref_request_builder.rb +++ b/lib/groups/item/rejected_senders/ref/ref_request_builder.rb @@ -24,10 +24,23 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref{?%24top,%24skip,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") end ## - ## Users in the rejected senders list cannot post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error. + ## Remove rejectedSender + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of string_collection_response ## @@ -36,12 +49,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Specify the user or group in @odata.id in the request body. Users in the rejected senders list cannot post to conversations of the group (identified in the POST request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error. + ## Specify the user or group in @odata.id in the request body. Users in the rejected senders list can't post to conversations of the group (identified in the POST request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you'll get an error. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -52,30 +64,47 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Users in the rejected senders list cannot post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error. + ## Remove rejectedSender ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref?@id={%40id}' request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Specify the user or group in @odata.id in the request body. Users in the rejected senders list cannot post to conversations of the group (identified in the POST request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error. + ## Specify the user or group in @odata.id in the request body. Users in the rejected senders list can't post to conversations of the group (identified in the POST request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you'll get an error. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -83,19 +112,52 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end ## - # Users in the rejected senders list cannot post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error. + # Remove rejectedSender + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end + + ## + # Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. class RefRequestBuilderGetQueryParameters ## @@ -108,6 +170,9 @@ class RefRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Skip the first n items attr_accessor :skip ## @@ -127,6 +192,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "skip" return "%24skip" when "top" diff --git a/lib/groups/item/rejected_senders/rejected_senders_request_builder.rb b/lib/groups/item/rejected_senders/rejected_senders_request_builder.rb index c2ae8d60b2..8ead5d9ba6 100644 --- a/lib/groups/item/rejected_senders/rejected_senders_request_builder.rb +++ b/lib/groups/item/rejected_senders/rejected_senders_request_builder.rb @@ -29,7 +29,7 @@ def ref() end ## ## Gets an item from the MicrosoftGraph.groups.item.rejectedSenders.item collection - ## @param directory_object_id Unique identifier of the item + ## @param directory_object_id The unique identifier of directoryObject ## @return a directory_object_item_request_builder ## def by_directory_object_id(directory_object_id) @@ -45,10 +45,10 @@ def by_directory_object_id(directory_object_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Users in the rejected senders list cannot post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error. + ## Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object_collection_response ## @@ -57,43 +57,57 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Users in the rejected senders list cannot post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error. + ## Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rejected_senders_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RejectedSendersRequestBuilder.new(raw_url, @request_adapter) + end ## - # Users in the rejected senders list cannot post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error. + # Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. class RejectedSendersRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -112,10 +126,14 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/remove_favorite/remove_favorite_request_builder.rb b/lib/groups/item/remove_favorite/remove_favorite_request_builder.rb index 1536361d95..bb3ae8c3a8 100644 --- a/lib/groups/item/remove_favorite/remove_favorite_request_builder.rb +++ b/lib/groups/item/remove_favorite/remove_favorite_request_builder.rb @@ -32,8 +32,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -43,15 +42,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a remove_favorite_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RemoveFavoriteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/renew/renew_request_builder.rb b/lib/groups/item/renew/renew_request_builder.rb index 887238b642..9c6c788d00 100644 --- a/lib/groups/item/renew/renew_request_builder.rb +++ b/lib/groups/item/renew/renew_request_builder.rb @@ -23,7 +23,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/renew") end ## - ## Renews a group's expiration. When a group is renewed, the group expiration is extended by the number of days defined in the policy. + ## Renew a group's expiration. When a group is renewed, the group expiration is extended by the number of days defined in the policy. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -32,26 +32,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Renews a group's expiration. When a group is renewed, the group expiration is extended by the number of days defined in the policy. + ## Renew a group's expiration. When a group is renewed, the group expiration is extended by the number of days defined in the policy. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a renew_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RenewRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/reset_unseen_count/reset_unseen_count_request_builder.rb b/lib/groups/item/reset_unseen_count/reset_unseen_count_request_builder.rb index 6630b32a09..30c00b8e02 100644 --- a/lib/groups/item/reset_unseen_count/reset_unseen_count_request_builder.rb +++ b/lib/groups/item/reset_unseen_count/reset_unseen_count_request_builder.rb @@ -23,7 +23,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/resetUnseenCount") end ## - ## Reset the unseenCount of all the posts that the current user has not seen since their last visit. Supported for Microsoft 365 groups only. + ## Reset the unseenCount of all the posts that the current user hasn't seen since their last visit. Supported for Microsoft 365 groups only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -32,26 +32,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Reset the unseenCount of all the posts that the current user has not seen since their last visit. Supported for Microsoft 365 groups only. + ## Reset the unseenCount of all the posts that the current user hasn't seen since their last visit. Supported for Microsoft 365 groups only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reset_unseen_count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResetUnseenCountRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/restore/restore_request_builder.rb b/lib/groups/item/restore/restore_request_builder.rb index 06b7617685..b7d219063f 100644 --- a/lib/groups/item/restore/restore_request_builder.rb +++ b/lib/groups/item/restore/restore_request_builder.rb @@ -24,7 +24,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/restore") end ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object ## @@ -33,27 +33,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't 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 request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a restore_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RestoreRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/retry_service_provisioning/retry_service_provisioning.rb b/lib/groups/item/retry_service_provisioning/retry_service_provisioning.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/retry_service_provisioning/retry_service_provisioning_request_builder.rb b/lib/groups/item/retry_service_provisioning/retry_service_provisioning_request_builder.rb new file mode 100644 index 0000000000..10c9d7bc58 --- /dev/null +++ b/lib/groups/item/retry_service_provisioning/retry_service_provisioning_request_builder.rb @@ -0,0 +1,68 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../groups' +require_relative '../item' +require_relative './retry_service_provisioning' + +module MicrosoftGraph + module Groups + module Item + module RetryServiceProvisioning + ## + # Provides operations to call the retryServiceProvisioning method. + class RetryServiceProvisioningRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RetryServiceProvisioningRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/retryServiceProvisioning") + end + ## + ## Retry the group service provisioning. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Retry the group service provisioning. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a retry_service_provisioning_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RetryServiceProvisioningRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end +end diff --git a/lib/groups/item/service_provisioning_errors/count/count.rb b/lib/groups/item/service_provisioning_errors/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/service_provisioning_errors/count/count_request_builder.rb b/lib/groups/item/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..e440c0c94d --- /dev/null +++ b/lib/groups/item/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../groups' +require_relative '../../item' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/service_provisioning_errors/service_provisioning_errors.rb b/lib/groups/item/service_provisioning_errors/service_provisioning_errors.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/groups/item/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..a27814f0e4 --- /dev/null +++ b/lib/groups/item/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,134 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../../models/service_provisioning_error_collection_response' +require_relative '../../groups' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Groups + module Item + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \groups\{group-id}\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/settings/count/count_request_builder.rb b/lib/groups/item/settings/count/count_request_builder.rb index 147cfc58c8..4d17472896 100644 --- a/lib/groups/item/settings/count/count_request_builder.rb +++ b/lib/groups/item/settings/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/settings/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/settings/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/settings/item/group_setting_item_request_builder.rb b/lib/groups/item/settings/item/group_setting_item_request_builder.rb index ff50c285c3..a9fc95b9a7 100644 --- a/lib/groups/item/settings/item/group_setting_item_request_builder.rb +++ b/lib/groups/item/settings/item/group_setting_item_request_builder.rb @@ -23,7 +23,7 @@ class GroupSettingItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBu ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/settings/{groupSetting%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/settings/{groupSetting%2Did}{?%24expand,%24select}") end ## ## Delete navigation property settings for groups @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupSetting.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupSetting.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a group_setting_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GroupSettingItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. diff --git a/lib/groups/item/settings/settings_request_builder.rb b/lib/groups/item/settings/settings_request_builder.rb index 6a0675816d..8077786cf6 100644 --- a/lib/groups/item/settings/settings_request_builder.rb +++ b/lib/groups/item/settings/settings_request_builder.rb @@ -40,7 +40,7 @@ def by_group_setting_id(group_setting_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/settings{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/settings{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of tenant-level or group-specific group settings objects. @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupSettingCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupSetting.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,15 +77,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SettingsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of tenant-level or group-specific group settings objects. diff --git a/lib/groups/item/sites/add/add.rb b/lib/groups/item/sites/add/add.rb index 629ad98abe..4f4fe401db 100644 --- a/lib/groups/item/sites/add/add.rb +++ b/lib/groups/item/sites/add/add.rb @@ -1,2 +1,2 @@ require_relative 'add_post_request_body' -require_relative 'add_response' +require_relative 'add_post_response' diff --git a/lib/groups/item/sites/add/add_post_request_body.rb b/lib/groups/item/sites/add/add_post_request_body.rb index 097edaf60f..c3dea9d246 100644 --- a/lib/groups/item/sites/add/add_post_request_body.rb +++ b/lib/groups/item/sites/add/add_post_request_body.rb @@ -20,22 +20,22 @@ class AddPostRequestBody # The value property @value ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new addPostRequestBody and sets the default values. + ## Instantiates a new AddPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/add/add_post_response.rb b/lib/groups/item/sites/add/add_post_response.rb new file mode 100644 index 0000000000..9825842101 --- /dev/null +++ b/lib/groups/item/sites/add/add_post_response.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/base_collection_pagination_count_response' +require_relative '../../../../models/site' +require_relative '../../../groups' +require_relative '../../item' +require_relative '../sites' +require_relative './add' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Add + class AddPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new AddPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a add_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AddPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Site.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a site + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/add/add_request_builder.rb b/lib/groups/item/sites/add/add_request_builder.rb index 0765321074..a087771e03 100644 --- a/lib/groups/item/sites/add/add_request_builder.rb +++ b/lib/groups/item/sites/add/add_request_builder.rb @@ -28,7 +28,7 @@ def initialize(path_parameters, request_adapter) ## Follow a user's site or multiple sites. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of add_response + ## @return a Fiber of add_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -36,9 +36,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Add::AddResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Add::AddPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Follow a user's site or multiple sites. @@ -49,17 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/add/add_response.rb b/lib/groups/item/sites/add/add_response.rb deleted file mode 100644 index 0b2019da0c..0000000000 --- a/lib/groups/item/sites/add/add_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../../models/site' -require_relative '../../../groups' -require_relative '../../item' -require_relative '../sites' -require_relative './add' - -module MicrosoftGraph - module Groups - module Item - module Sites - module Add - class AddResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new addResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a add_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return AddResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Site.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a site - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/groups/item/sites/count/count_request_builder.rb b/lib/groups/item/sites/count/count_request_builder.rb index 0761022a0f..aeddb2937c 100644 --- a/lib/groups/item/sites/count/count_request_builder.rb +++ b/lib/groups/item/sites/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/delta/delta.rb b/lib/groups/item/sites/delta/delta.rb new file mode 100644 index 0000000000..8a3dc08b72 --- /dev/null +++ b/lib/groups/item/sites/delta/delta.rb @@ -0,0 +1 @@ +require_relative 'delta_get_response' diff --git a/lib/groups/item/sites/delta/delta_get_response.rb b/lib/groups/item/sites/delta/delta_get_response.rb new file mode 100644 index 0000000000..c91d353dc4 --- /dev/null +++ b/lib/groups/item/sites/delta/delta_get_response.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/base_delta_function_response' +require_relative '../../../../models/site' +require_relative '../../../groups' +require_relative '../../item' +require_relative '../sites' +require_relative './delta' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Site.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a site + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/delta/delta_request_builder.rb b/lib/groups/item/sites/delta/delta_request_builder.rb new file mode 100644 index 0000000000..c84bbd8ccb --- /dev/null +++ b/lib/groups/item/sites/delta/delta_request_builder.rb @@ -0,0 +1,130 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../groups' +require_relative '../../item' +require_relative '../sites' +require_relative './delta' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Delta + ## + # Provides operations to call the delta method. + class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeltaRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get newly created, updated, or deleted sites without having to perform a full read of the entire sites collection. A delta function call for sites is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls,you can query for incremental changes in the sites. It allows you to maintain and synchronize a local store of a user's sites without having to fetch all the sites from the server every time.The application calls the API without specifying any parameters.The service begins enumerating sites and returns pages of changes to these sites, accompanied by either an @odata.nextLink or an @odata.deltaLink.Your application should continue making calls using the @odata.nextLink until there's an @odata.deltaLink in the response. After you receive all the changes, you can apply them to your local state.To monitor future changes, call the delta API by using the @odata.deltaLink in the previous response. Any resources marked as deleted should be removed from your local state. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of delta_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get newly created, updated, or deleted sites without having to perform a full read of the entire sites collection. A delta function call for sites is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls,you can query for incremental changes in the sites. It allows you to maintain and synchronize a local store of a user's sites without having to fetch all the sites from the server every time.The application calls the API without specifying any parameters.The service begins enumerating sites and returns pages of changes to these sites, accompanied by either an @odata.nextLink or an @odata.deltaLink.Your application should continue making calls using the @odata.nextLink until there's an @odata.deltaLink in the response. After you receive all the changes, you can apply them to your local state.To monitor future changes, call the delta API by using the @odata.deltaLink in the previous response. Any resources marked as deleted should be removed from your local state. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get newly created, updated, or deleted sites without having to perform a full read of the entire sites collection. A delta function call for sites is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls,you can query for incremental changes in the sites. It allows you to maintain and synchronize a local store of a user's sites without having to fetch all the sites from the server every time.The application calls the API without specifying any parameters.The service begins enumerating sites and returns pages of changes to these sites, accompanied by either an @odata.nextLink or an @odata.deltaLink.Your application should continue making calls using the @odata.nextLink until there's an @odata.deltaLink in the response. After you receive all the changes, you can apply them to your local state.To monitor future changes, call the delta API by using the @odata.deltaLink in the previous response. Any resources marked as deleted should be removed from your local state. + class DeltaRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/get_all_sites/get_all_sites.rb b/lib/groups/item/sites/get_all_sites/get_all_sites.rb index 72c105bd11..430a63a7f4 100644 --- a/lib/groups/item/sites/get_all_sites/get_all_sites.rb +++ b/lib/groups/item/sites/get_all_sites/get_all_sites.rb @@ -1 +1 @@ -require_relative 'get_all_sites_response' +require_relative 'get_all_sites_get_response' diff --git a/lib/groups/item/sites/get_all_sites/get_all_sites_get_response.rb b/lib/groups/item/sites/get_all_sites/get_all_sites_get_response.rb new file mode 100644 index 0000000000..091dd783b3 --- /dev/null +++ b/lib/groups/item/sites/get_all_sites/get_all_sites_get_response.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/base_collection_pagination_count_response' +require_relative '../../../../models/site' +require_relative '../../../groups' +require_relative '../../item' +require_relative '../sites' +require_relative './get_all_sites' + +module MicrosoftGraph + module Groups + module Item + module Sites + module GetAllSites + class GetAllSitesGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetAllSitesGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_all_sites_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetAllSitesGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Site.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a site + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/get_all_sites/get_all_sites_request_builder.rb b/lib/groups/item/sites/get_all_sites/get_all_sites_request_builder.rb index 9dd78e745f..00c5aa69c7 100644 --- a/lib/groups/item/sites/get_all_sites/get_all_sites_request_builder.rb +++ b/lib/groups/item/sites/get_all_sites/get_all_sites_request_builder.rb @@ -22,49 +22,60 @@ class GetAllSitesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/getAllSites(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/getAllSites(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function getAllSites + ## List sites across geographies in an organization. This API can also be used to enumerate all sites in a non-multi-geo tenant. For more information, see Best practices for discovering files and detecting changes at scale. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_all_sites_response + ## @return a Fiber of get_all_sites_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::GetAllSites::GetAllSitesResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::GetAllSites::GetAllSitesGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function getAllSites + ## List sites across geographies in an organization. This API can also be used to enumerate all sites in a non-multi-geo tenant. For more information, see Best practices for discovering files and detecting changes at scale. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_all_sites_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetAllSitesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function getAllSites + # List sites across geographies in an organization. This API can also be used to enumerate all sites in a non-multi-geo tenant. For more information, see Best practices for discovering files and detecting changes at scale. class GetAllSitesRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -92,6 +103,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/sites/get_all_sites/get_all_sites_response.rb b/lib/groups/item/sites/get_all_sites/get_all_sites_response.rb deleted file mode 100644 index a41bb8f21c..0000000000 --- a/lib/groups/item/sites/get_all_sites/get_all_sites_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../../models/site' -require_relative '../../../groups' -require_relative '../../item' -require_relative '../sites' -require_relative './get_all_sites' - -module MicrosoftGraph - module Groups - module Item - module Sites - module GetAllSites - class GetAllSitesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getAllSitesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_all_sites_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAllSitesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Site.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a site - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/groups/item/sites/item/analytics/all_time/all_time_request_builder.rb b/lib/groups/item/sites/item/analytics/all_time/all_time_request_builder.rb index 6049663038..be410d2494 100644 --- a/lib/groups/item/sites/item/analytics/all_time/all_time_request_builder.rb +++ b/lib/groups/item/sites/item/analytics/all_time/all_time_request_builder.rb @@ -27,10 +27,10 @@ class AllTimeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/allTime{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/allTime{?%24expand,%24select}") end ## - ## Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the [getActivitiesByInterval][] API. + ## Get allTime from groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of item_activity_stat ## @@ -39,31 +39,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the [getActivitiesByInterval][] API. + ## Get allTime from groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a all_time_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AllTimeRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the [getActivitiesByInterval][] API. + # Get allTime from groups class AllTimeRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/analytics/analytics_request_builder.rb b/lib/groups/item/sites/item/analytics/analytics_request_builder.rb index 74519a6ed2..42ae42f097 100644 --- a/lib/groups/item/sites/item/analytics/analytics_request_builder.rb +++ b/lib/groups/item/sites/item/analytics/analytics_request_builder.rb @@ -43,7 +43,7 @@ def last_seven_days() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics{?%24expand,%24select}") end ## ## Delete navigation property analytics for groups @@ -55,12 +55,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Analytics about the view activities that took place in this site. + ## Analytics about the view activities that took place on this site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of item_analytics ## @@ -69,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemAnalytics.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,8 +83,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemAnalytics.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -96,31 +93,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Analytics about the view activities that took place in this site. + ## Analytics about the view activities that took place on this site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,20 +130,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a analytics_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AnalyticsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Analytics about the view activities that took place in this site. + # Analytics about the view activities that took place on this site. class AnalyticsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/analytics/item_activity_stats/count/count_request_builder.rb b/lib/groups/item/sites/item/analytics/item_activity_stats/count/count_request_builder.rb index c3204160fa..690a3324d1 100644 --- a/lib/groups/item/sites/item/analytics/item_activity_stats/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/analytics/item_activity_stats/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/analytics/item_activity_stats/item/activities/activities_request_builder.rb b/lib/groups/item/sites/item/analytics/item_activity_stats/item/activities/activities_request_builder.rb index ba40776fad..66b573336e 100644 --- a/lib/groups/item/sites/item/analytics/item_activity_stats/item/activities/activities_request_builder.rb +++ b/lib/groups/item/sites/item/analytics/item_activity_stats/item/activities/activities_request_builder.rb @@ -50,7 +50,7 @@ def by_item_activity_id(item_activity_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Exposes the itemActivities represented in this itemActivityStat resource. @@ -62,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemActivityCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,8 +77,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemActivity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,15 +87,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -109,17 +107,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a activities_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ActivitiesRequestBuilder.new(raw_url, @request_adapter) + end ## # Exposes the itemActivities represented in this itemActivityStat resource. diff --git a/lib/groups/item/sites/item/analytics/item_activity_stats/item/activities/count/count_request_builder.rb b/lib/groups/item/sites/item/analytics/item_activity_stats/item/activities/count/count_request_builder.rb index 12c3b30611..ae230a4a75 100644 --- a/lib/groups/item/sites/item/analytics/item_activity_stats/item/activities/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/analytics/item_activity_stats/item/activities/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/analytics/item_activity_stats/item/activities/item/drive_item/content/content_request_builder.rb b/lib/groups/item/sites/item/analytics/item_activity_stats/item/activities/item/drive_item/content/content_request_builder.rb index 0a7f5ce3f7..e34b1329c8 100644 --- a/lib/groups/item/sites/item/analytics/item_activity_stats/item/activities/item/drive_item/content/content_request_builder.rb +++ b/lib/groups/item/sites/item/analytics/item_activity_stats/item/activities/item/drive_item/content/content_request_builder.rb @@ -37,7 +37,20 @@ class ContentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem/content") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem/content{?%24format*}") + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) end ## ## The content stream, if the item represents a file. @@ -49,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -65,8 +77,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,15 +85,34 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -94,17 +124,49 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The content stream, if the item represents a file. + class ContentRequestBuilderGetQueryParameters + + ## + # Format of the content + attr_accessor :format + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "format" + return "%24format" + else + return original_name + end + end + end end end end diff --git a/lib/groups/item/sites/item/analytics/item_activity_stats/item/activities/item/drive_item/drive_item_request_builder.rb b/lib/groups/item/sites/item/analytics/item_activity_stats/item/activities/item/drive_item/drive_item_request_builder.rb index b7352e7525..e54a988cf3 100644 --- a/lib/groups/item/sites/item/analytics/item_activity_stats/item/activities/item/drive_item/drive_item_request_builder.rb +++ b/lib/groups/item/sites/item/analytics/item_activity_stats/item/activities/item/drive_item/drive_item_request_builder.rb @@ -41,7 +41,7 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem{?%24expand,%24select}") end ## ## Exposes the driveItem that was the target of this activity. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a drive_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DriveItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Exposes the driveItem that was the target of this activity. diff --git a/lib/groups/item/sites/item/analytics/item_activity_stats/item/activities/item/item_activity_item_request_builder.rb b/lib/groups/item/sites/item/analytics/item_activity_stats/item/activities/item/item_activity_item_request_builder.rb index 5cf0adb84f..4da41ab208 100644 --- a/lib/groups/item/sites/item/analytics/item_activity_stats/item/activities/item/item_activity_item_request_builder.rb +++ b/lib/groups/item/sites/item/analytics/item_activity_stats/item/activities/item/item_activity_item_request_builder.rb @@ -39,7 +39,7 @@ def drive_item() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}{?%24expand,%24select}") end ## ## Delete navigation property activities for groups @@ -51,8 +51,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemActivity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemActivity.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,13 +89,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,15 +106,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,17 +126,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a item_activity_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemActivityItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Exposes the itemActivities represented in this itemActivityStat resource. diff --git a/lib/groups/item/sites/item/analytics/item_activity_stats/item/item_activity_stat_item_request_builder.rb b/lib/groups/item/sites/item/analytics/item_activity_stats/item/item_activity_stat_item_request_builder.rb index f647a20d29..7b69fd82c2 100644 --- a/lib/groups/item/sites/item/analytics/item_activity_stats/item/item_activity_stat_item_request_builder.rb +++ b/lib/groups/item/sites/item/analytics/item_activity_stats/item/item_activity_stat_item_request_builder.rb @@ -35,7 +35,7 @@ def activities() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}{?%24expand,%24select}") end ## ## Delete navigation property itemActivityStats for groups @@ -47,8 +47,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,13 +85,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -104,15 +102,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,17 +122,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a item_activity_stat_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemActivityStatItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get itemActivityStats from groups diff --git a/lib/groups/item/sites/item/analytics/item_activity_stats/item_activity_stats_request_builder.rb b/lib/groups/item/sites/item/analytics/item_activity_stats/item_activity_stats_request_builder.rb index 4afd78e38f..43751a5649 100644 --- a/lib/groups/item/sites/item/analytics/item_activity_stats/item_activity_stats_request_builder.rb +++ b/lib/groups/item/sites/item/analytics/item_activity_stats/item_activity_stats_request_builder.rb @@ -46,7 +46,7 @@ def by_item_activity_stat_id(item_activity_stat_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get itemActivityStats from groups @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemActivityStatCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,8 +73,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,15 +83,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,17 +103,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a item_activity_stats_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemActivityStatsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get itemActivityStats from groups diff --git a/lib/groups/item/sites/item/analytics/last_seven_days/last_seven_days_request_builder.rb b/lib/groups/item/sites/item/analytics/last_seven_days/last_seven_days_request_builder.rb index 8146249de3..b9e0906ed1 100644 --- a/lib/groups/item/sites/item/analytics/last_seven_days/last_seven_days_request_builder.rb +++ b/lib/groups/item/sites/item/analytics/last_seven_days/last_seven_days_request_builder.rb @@ -27,7 +27,7 @@ class LastSevenDaysRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/lastSevenDays{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/lastSevenDays{?%24expand,%24select}") end ## ## Get lastSevenDays from groups @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_seven_days_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastSevenDaysRequestBuilder.new(raw_url, @request_adapter) + end ## # Get lastSevenDays from groups diff --git a/lib/groups/item/sites/item/columns/columns_request_builder.rb b/lib/groups/item/sites/item/columns/columns_request_builder.rb index d775210be2..d777deb193 100644 --- a/lib/groups/item/sites/item/columns/columns_request_builder.rb +++ b/lib/groups/item/sites/item/columns/columns_request_builder.rb @@ -44,10 +44,10 @@ def by_column_definition_id(column_definition_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [site][site]. + ## The collection of column definitions reusable across lists under this site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of column_definition_collection_response ## @@ -56,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinitionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a column for a [site][site] with a request that specifies a [columnDefinition][columnDefinition]. + ## Create new navigation property to columns for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of column_definition @@ -72,30 +71,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [site][site]. + ## The collection of column definitions reusable across lists under this site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a column for a [site][site] with a request that specifies a [columnDefinition][columnDefinition]. + ## Create new navigation property to columns for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [site][site]. + # The collection of column definitions reusable across lists under this site. class ColumnsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/columns/count/count_request_builder.rb b/lib/groups/item/sites/item/columns/count/count_request_builder.rb index 44a58ab8ba..cfdaece00e 100644 --- a/lib/groups/item/sites/item/columns/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/columns/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/columns/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/columns/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/columns/item/column_definition_item_request_builder.rb b/lib/groups/item/sites/item/columns/item/column_definition_item_request_builder.rb index b24990b812..c86b1383ce 100644 --- a/lib/groups/item/sites/item/columns/item/column_definition_item_request_builder.rb +++ b/lib/groups/item/sites/item/columns/item/column_definition_item_request_builder.rb @@ -33,7 +33,7 @@ def source_column() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/columns/{columnDefinition%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/columns/{columnDefinition%2Did}{?%24expand,%24select}") end ## ## Delete navigation property columns for groups @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,13 +83,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -102,15 +100,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,17 +120,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_definition_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnDefinitionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of column definitions reusable across lists under this site. diff --git a/lib/groups/item/sites/item/columns/item/source_column/source_column_request_builder.rb b/lib/groups/item/sites/item/columns/item/source_column/source_column_request_builder.rb index 263316b35c..afd334b047 100644 --- a/lib/groups/item/sites/item/columns/item/source_column/source_column_request_builder.rb +++ b/lib/groups/item/sites/item/columns/item/source_column/source_column_request_builder.rb @@ -29,7 +29,7 @@ class SourceColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilde ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%24expand,%24select}") end ## ## The source column for the content type column. @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a source_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SourceColumnRequestBuilder.new(raw_url, @request_adapter) + end ## # The source column for the content type column. diff --git a/lib/groups/item/sites/item/content_types/add_copy/add_copy_post_request_body.rb b/lib/groups/item/sites/item/content_types/add_copy/add_copy_post_request_body.rb index cc62b76887..8bd667c08a 100644 --- a/lib/groups/item/sites/item/content_types/add_copy/add_copy_post_request_body.rb +++ b/lib/groups/item/sites/item/content_types/add_copy/add_copy_post_request_body.rb @@ -23,22 +23,22 @@ class AddCopyPostRequestBody # The contentType property @content_type ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new addCopyPostRequestBody and sets the default values. + ## Instantiates a new AddCopyPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/content_types/add_copy/add_copy_request_builder.rb b/lib/groups/item/sites/item/content_types/add_copy/add_copy_request_builder.rb index 3507ed6485..b95d6ccbe7 100644 --- a/lib/groups/item/sites/item/content_types/add_copy/add_copy_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/add_copy/add_copy_request_builder.rb @@ -30,7 +30,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/addCopy") end ## - ## Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + ## Add a copy of a content type from a site to a list. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of content_type @@ -41,12 +41,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + ## Add a copy of a content type from a site to a list. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -54,17 +53,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_copy_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddCopyRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_post_request_body.rb b/lib/groups/item/sites/item/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_post_request_body.rb index d80d22675d..074137defb 100644 --- a/lib/groups/item/sites/item/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_post_request_body.rb +++ b/lib/groups/item/sites/item/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_post_request_body.rb @@ -23,22 +23,22 @@ class AddCopyFromContentTypeHubPostRequestBody # The contentTypeId property @content_type_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new addCopyFromContentTypeHubPostRequestBody and sets the default values. + ## Instantiates a new AddCopyFromContentTypeHubPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_request_builder.rb b/lib/groups/item/sites/item/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_request_builder.rb index da096b345c..ff0fb7c9d5 100644 --- a/lib/groups/item/sites/item/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_request_builder.rb @@ -41,8 +41,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_copy_from_content_type_hub_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddCopyFromContentTypeHubRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/content_types/content_types_request_builder.rb b/lib/groups/item/sites/item/content_types/content_types_request_builder.rb index e90017c4ba..8b25443528 100644 --- a/lib/groups/item/sites/item/content_types/content_types_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/content_types_request_builder.rb @@ -62,10 +62,10 @@ def by_content_type_id(content_type_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the collection of [contentType][contentType] resources in a [site][]. + ## The collection of content types defined for this site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of content_type_collection_response ## @@ -74,12 +74,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentTypeCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new [contentType][] in a [site][]. + ## Create new navigation property to contentTypes for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of content_type @@ -90,30 +89,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the collection of [contentType][contentType] resources in a [site][]. + ## The collection of content types defined for this site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new [contentType][] in a [site][]. + ## Create new navigation property to contentTypes for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -121,20 +119,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_types_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentTypesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the collection of [contentType][contentType] resources in a [site][]. + # The collection of content types defined for this site. class ContentTypesRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/content_types/count/count_request_builder.rb b/lib/groups/item/sites/item/content_types/count/count_request_builder.rb index 18cda1e553..7170653091 100644 --- a/lib/groups/item/sites/item/content_types/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types.rb b/lib/groups/item/sites/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types.rb index 6908c8ff63..58d326dbe5 100644 --- a/lib/groups/item/sites/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types.rb +++ b/lib/groups/item/sites/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types.rb @@ -1 +1 @@ -require_relative 'get_compatible_hub_content_types_response' +require_relative 'get_compatible_hub_content_types_get_response' diff --git a/lib/groups/item/sites/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_get_response.rb b/lib/groups/item/sites/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_get_response.rb new file mode 100644 index 0000000000..65ce7aefb7 --- /dev/null +++ b/lib/groups/item/sites/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_get_response.rb @@ -0,0 +1,81 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../models/content_type' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../content_types' +require_relative './get_compatible_hub_content_types' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module ContentTypes + module GetCompatibleHubContentTypes + class GetCompatibleHubContentTypesGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetCompatibleHubContentTypesGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_compatible_hub_content_types_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetCompatibleHubContentTypesGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a content_type + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_request_builder.rb b/lib/groups/item/sites/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_request_builder.rb index 6b304817b9..07bd0f0708 100644 --- a/lib/groups/item/sites/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_request_builder.rb @@ -26,49 +26,60 @@ class GetCompatibleHubContentTypesRequestBuilder < MicrosoftKiotaAbstractions::B ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/getCompatibleHubContentTypes(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/getCompatibleHubContentTypes(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function getCompatibleHubContentTypes + ## Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates – August 2021. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_compatible_hub_content_types_response + ## @return a Fiber of get_compatible_hub_content_types_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::ContentTypes::GetCompatibleHubContentTypes::GetCompatibleHubContentTypesResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::ContentTypes::GetCompatibleHubContentTypes::GetCompatibleHubContentTypesGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function getCompatibleHubContentTypes + ## Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates – August 2021. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_compatible_hub_content_types_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetCompatibleHubContentTypesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function getCompatibleHubContentTypes + # Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates – August 2021. class GetCompatibleHubContentTypesRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -96,6 +107,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/sites/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_response.rb b/lib/groups/item/sites/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_response.rb deleted file mode 100644 index 3f8f045556..0000000000 --- a/lib/groups/item/sites/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_response.rb +++ /dev/null @@ -1,81 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../../models/content_type' -require_relative '../../../../../groups' -require_relative '../../../../item' -require_relative '../../../sites' -require_relative '../../item' -require_relative '../content_types' -require_relative './get_compatible_hub_content_types' - -module MicrosoftGraph - module Groups - module Item - module Sites - module Item - module ContentTypes - module GetCompatibleHubContentTypes - class GetCompatibleHubContentTypesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getCompatibleHubContentTypesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_compatible_hub_content_types_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetCompatibleHubContentTypesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a content_type - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/sites/item/content_types/item/associate_with_hub_sites/associate_with_hub_sites_post_request_body.rb b/lib/groups/item/sites/item/content_types/item/associate_with_hub_sites/associate_with_hub_sites_post_request_body.rb index b95e44bd6b..dc9d03accf 100644 --- a/lib/groups/item/sites/item/content_types/item/associate_with_hub_sites/associate_with_hub_sites_post_request_body.rb +++ b/lib/groups/item/sites/item/content_types/item/associate_with_hub_sites/associate_with_hub_sites_post_request_body.rb @@ -28,22 +28,22 @@ class AssociateWithHubSitesPostRequestBody # The propagateToExistingLists property @propagate_to_existing_lists ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new associateWithHubSitesPostRequestBody and sets the default values. + ## Instantiates a new AssociateWithHubSitesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/content_types/item/associate_with_hub_sites/associate_with_hub_sites_request_builder.rb b/lib/groups/item/sites/item/content_types/item/associate_with_hub_sites/associate_with_hub_sites_request_builder.rb index 072e0235fe..11776bc46f 100644 --- a/lib/groups/item/sites/item/content_types/item/associate_with_hub_sites/associate_with_hub_sites_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/item/associate_with_hub_sites/associate_with_hub_sites_request_builder.rb @@ -31,7 +31,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/associateWithHubSites") end ## - ## Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + ## Associate a published content type present in a content type hub with a list of hub sites. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -42,12 +42,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + ## Associate a published content type present in a content type hub with a list of hub sites. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -55,16 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a associate_with_hub_sites_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssociateWithHubSitesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/content_types/item/base/base_request_builder_escaped.rb b/lib/groups/item/sites/item/content_types/item/base/base_request_builder_escaped.rb index 6fafc65e21..b6bd0f4ec9 100644 --- a/lib/groups/item/sites/item/content_types/item/base/base_request_builder_escaped.rb +++ b/lib/groups/item/sites/item/content_types/item/base/base_request_builder_escaped.rb @@ -23,13 +23,13 @@ module Base class BaseRequestBuilder_escaped < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new BaseRequestBuilder and sets the default values. + ## Instantiates a new BaseRequestBuilder_escaped and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/base{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/base{?%24expand,%24select}") end ## ## Parent contentType from which this content type is derived. @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a base_request_builder_escaped + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BaseRequestBuilder_escaped.new(raw_url, @request_adapter) + end ## # Parent contentType from which this content type is derived. diff --git a/lib/groups/item/sites/item/content_types/item/base_types/base_types_request_builder.rb b/lib/groups/item/sites/item/content_types/item/base_types/base_types_request_builder.rb index b5e1ad1879..e108b856e2 100644 --- a/lib/groups/item/sites/item/content_types/item/base_types/base_types_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/item/base_types/base_types_request_builder.rb @@ -47,7 +47,7 @@ def by_content_type_id1(content_type_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/baseTypes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/baseTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The collection of content types that are ancestors of this content type. @@ -59,8 +59,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentTypeCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,17 +69,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a base_types_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BaseTypesRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of content types that are ancestors of this content type. diff --git a/lib/groups/item/sites/item/content_types/item/base_types/count/count_request_builder.rb b/lib/groups/item/sites/item/content_types/item/base_types/count/count_request_builder.rb index 1aed597ca0..d930118971 100644 --- a/lib/groups/item/sites/item/content_types/item/base_types/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/item/base_types/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/baseTypes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/baseTypes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/content_types/item/base_types/item/content_type_item_request_builder.rb b/lib/groups/item/sites/item/content_types/item/base_types/item/content_type_item_request_builder.rb index 828b1e1bd2..ca852295e0 100644 --- a/lib/groups/item/sites/item/content_types/item/base_types/item/content_type_item_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/item/base_types/item/content_type_item_request_builder.rb @@ -31,7 +31,7 @@ class ContentTypeItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/baseTypes/{contentType%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/baseTypes/{contentType%2Did1}{?%24expand,%24select}") end ## ## The collection of content types that are ancestors of this content type. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_type_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentTypeItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of content types that are ancestors of this content type. diff --git a/lib/groups/item/sites/item/content_types/item/column_links/column_links_request_builder.rb b/lib/groups/item/sites/item/content_types/item/column_links/column_links_request_builder.rb index eed90a19d1..245418a996 100644 --- a/lib/groups/item/sites/item/content_types/item/column_links/column_links_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/item/column_links/column_links_request_builder.rb @@ -48,7 +48,7 @@ def by_column_link_id(column_link_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnLinks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnLinks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The collection of columns that are required by this content type. @@ -60,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnLinkCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,8 +75,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnLink.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,15 +85,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -107,17 +105,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_links_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnLinksRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of columns that are required by this content type. diff --git a/lib/groups/item/sites/item/content_types/item/column_links/count/count_request_builder.rb b/lib/groups/item/sites/item/content_types/item/column_links/count/count_request_builder.rb index 7aa7724ee0..576f77b7a8 100644 --- a/lib/groups/item/sites/item/content_types/item/column_links/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/item/column_links/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnLinks/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnLinks/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/content_types/item/column_links/item/column_link_item_request_builder.rb b/lib/groups/item/sites/item/content_types/item/column_links/item/column_link_item_request_builder.rb index e31f7aa0f9..888099eab9 100644 --- a/lib/groups/item/sites/item/content_types/item/column_links/item/column_link_item_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/item/column_links/item/column_link_item_request_builder.rb @@ -31,7 +31,7 @@ class ColumnLinkItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnLinks/{columnLink%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnLinks/{columnLink%2Did}{?%24expand,%24select}") end ## ## Delete navigation property columnLinks for groups @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnLink.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnLink.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,15 +98,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_link_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnLinkItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of columns that are required by this content type. diff --git a/lib/groups/item/sites/item/content_types/item/column_positions/column_positions_request_builder.rb b/lib/groups/item/sites/item/content_types/item/column_positions/column_positions_request_builder.rb index 74432dfb03..5e7cd5d511 100644 --- a/lib/groups/item/sites/item/content_types/item/column_positions/column_positions_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/item/column_positions/column_positions_request_builder.rb @@ -47,7 +47,7 @@ def by_column_definition_id(column_definition_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnPositions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnPositions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Column order information in a content type. @@ -59,8 +59,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinitionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,17 +69,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_positions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnPositionsRequestBuilder.new(raw_url, @request_adapter) + end ## # Column order information in a content type. diff --git a/lib/groups/item/sites/item/content_types/item/column_positions/count/count_request_builder.rb b/lib/groups/item/sites/item/content_types/item/column_positions/count/count_request_builder.rb index e0964b51e4..4230ca5f42 100644 --- a/lib/groups/item/sites/item/content_types/item/column_positions/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/item/column_positions/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnPositions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnPositions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/content_types/item/column_positions/item/column_definition_item_request_builder.rb b/lib/groups/item/sites/item/content_types/item/column_positions/item/column_definition_item_request_builder.rb index dacde54563..64f61018bc 100644 --- a/lib/groups/item/sites/item/content_types/item/column_positions/item/column_definition_item_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/item/column_positions/item/column_definition_item_request_builder.rb @@ -31,7 +31,7 @@ class ColumnDefinitionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReque ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnPositions/{columnDefinition%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnPositions/{columnDefinition%2Did}{?%24expand,%24select}") end ## ## Column order information in a content type. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_definition_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnDefinitionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Column order information in a content type. diff --git a/lib/groups/item/sites/item/content_types/item/columns/columns_request_builder.rb b/lib/groups/item/sites/item/content_types/item/columns/columns_request_builder.rb index 7f9c07545f..7a11c91f19 100644 --- a/lib/groups/item/sites/item/content_types/item/columns/columns_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/item/columns/columns_request_builder.rb @@ -48,10 +48,10 @@ def by_column_definition_id(column_definition_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + ## The collection of column definitions for this content type. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of column_definition_collection_response ## @@ -60,12 +60,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinitionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + ## Create new navigation property to columns for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of column_definition @@ -76,30 +75,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + ## The collection of column definitions for this content type. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + ## Create new navigation property to columns for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -107,20 +105,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + # The collection of column definitions for this content type. class ColumnsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/content_types/item/columns/count/count_request_builder.rb b/lib/groups/item/sites/item/content_types/item/columns/count/count_request_builder.rb index 4da76fdb3b..c2ed20b8aa 100644 --- a/lib/groups/item/sites/item/content_types/item/columns/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/item/columns/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/content_types/item/columns/item/column_definition_item_request_builder.rb b/lib/groups/item/sites/item/content_types/item/columns/item/column_definition_item_request_builder.rb index 38ec63ca12..47e3d35f0c 100644 --- a/lib/groups/item/sites/item/content_types/item/columns/item/column_definition_item_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/item/columns/item/column_definition_item_request_builder.rb @@ -37,10 +37,10 @@ def source_column() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}{?%24expand,%24select}") end ## - ## Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + ## Delete navigation property columns for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -49,12 +49,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + ## The collection of column definitions for this content type. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of column_definition ## @@ -63,12 +62,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + ## Update the navigation property columns in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of column_definition @@ -79,46 +77,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + ## Delete navigation property columns for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + ## The collection of column definitions for this content type. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + ## Update the navigation property columns in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -126,20 +124,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_definition_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnDefinitionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + # The collection of column definitions for this content type. class ColumnDefinitionItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/content_types/item/columns/item/source_column/source_column_request_builder.rb b/lib/groups/item/sites/item/content_types/item/columns/item/source_column/source_column_request_builder.rb index 74614608b3..ad0a3e7e90 100644 --- a/lib/groups/item/sites/item/content_types/item/columns/item/source_column/source_column_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/item/columns/item/source_column/source_column_request_builder.rb @@ -33,7 +33,7 @@ class SourceColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilde ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%24expand,%24select}") end ## ## The source column for the content type column. @@ -45,8 +45,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a source_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SourceColumnRequestBuilder.new(raw_url, @request_adapter) + end ## # The source column for the content type column. diff --git a/lib/groups/item/sites/item/content_types/item/content_type_item_request_builder.rb b/lib/groups/item/sites/item/content_types/item/content_type_item_request_builder.rb index 5b1f2d76eb..380713b294 100644 --- a/lib/groups/item/sites/item/content_types/item/content_type_item_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/item/content_type_item_request_builder.rb @@ -87,10 +87,10 @@ def unpublish() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}{?%24expand,%24select}") end ## - ## Remove a [content type][contentType] from a [list][] or a [site][]. + ## Delete navigation property contentTypes for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -99,12 +99,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the metadata for a [content type][contentType] in a [site][] or a [list][]. + ## The collection of content types defined for this site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of content_type ## @@ -113,12 +112,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update a [content type][contentType]. + ## Update the navigation property contentTypes in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of content_type @@ -129,46 +127,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Remove a [content type][contentType] from a [list][] or a [site][]. + ## Delete navigation property contentTypes for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the metadata for a [content type][contentType] in a [site][] or a [list][]. + ## The collection of content types defined for this site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update a [content type][contentType]. + ## Update the navigation property contentTypes in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -176,20 +174,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_type_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentTypeItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the metadata for a [content type][contentType] in a [site][] or a [list][]. + # The collection of content types defined for this site. class ContentTypeItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/content_types/item/copy_to_default_content_location/copy_to_default_content_location_post_request_body.rb b/lib/groups/item/sites/item/content_types/item/copy_to_default_content_location/copy_to_default_content_location_post_request_body.rb index 265b032a13..caf817c787 100644 --- a/lib/groups/item/sites/item/content_types/item/copy_to_default_content_location/copy_to_default_content_location_post_request_body.rb +++ b/lib/groups/item/sites/item/content_types/item/copy_to_default_content_location/copy_to_default_content_location_post_request_body.rb @@ -29,22 +29,22 @@ class CopyToDefaultContentLocationPostRequestBody # The sourceFile property @source_file ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToDefaultContentLocationPostRequestBody and sets the default values. + ## Instantiates a new CopyToDefaultContentLocationPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/content_types/item/copy_to_default_content_location/copy_to_default_content_location_request_builder.rb b/lib/groups/item/sites/item/content_types/item/copy_to_default_content_location/copy_to_default_content_location_request_builder.rb index aa3301ef1e..02fc7b455f 100644 --- a/lib/groups/item/sites/item/content_types/item/copy_to_default_content_location/copy_to_default_content_location_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/item/copy_to_default_content_location/copy_to_default_content_location_request_builder.rb @@ -31,7 +31,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/copyToDefaultContentLocation") end ## - ## Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + ## Copy a file to a default content location in a content type. The file can then be added as a default file or template via a POST operation. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -42,12 +42,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + ## Copy a file to a default content location in a content type. The file can then be added as a default file or template via a POST operation. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -55,16 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_default_content_location_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToDefaultContentLocationRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/content_types/item/is_published/is_published.rb b/lib/groups/item/sites/item/content_types/item/is_published/is_published.rb index b926a8ba4d..ee45196a75 100644 --- a/lib/groups/item/sites/item/content_types/item/is_published/is_published.rb +++ b/lib/groups/item/sites/item/content_types/item/is_published/is_published.rb @@ -1 +1 @@ -require_relative 'is_published_response' +require_relative 'is_published_get_response' diff --git a/lib/groups/item/sites/item/content_types/item/is_published/is_published_get_response.rb b/lib/groups/item/sites/item/content_types/item/is_published/is_published_get_response.rb new file mode 100644 index 0000000000..8ad5111e5e --- /dev/null +++ b/lib/groups/item/sites/item/content_types/item/is_published/is_published_get_response.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../sites' +require_relative '../../../item' +require_relative '../../content_types' +require_relative '../item' +require_relative './is_published' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module ContentTypes + module Item + module IsPublished + class IsPublishedGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new IsPublishedGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a is_published_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return IsPublishedGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a boolean + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/content_types/item/is_published/is_published_request_builder.rb b/lib/groups/item/sites/item/content_types/item/is_published/is_published_request_builder.rb index ccbef8ca2d..caefbd1f9f 100644 --- a/lib/groups/item/sites/item/content_types/item/is_published/is_published_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/item/is_published/is_published_request_builder.rb @@ -31,36 +31,44 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/isPublished()") end ## - ## Invoke function isPublished + ## Check the publishing status of a contentType in a content type hub site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of is_published_response + ## @return a Fiber of is_published_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::ContentTypes::Item::IsPublished::IsPublishedResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::ContentTypes::Item::IsPublished::IsPublishedGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function isPublished + ## Check the publishing status of a contentType in a content type hub site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a is_published_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IsPublishedRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/content_types/item/is_published/is_published_response.rb b/lib/groups/item/sites/item/content_types/item/is_published/is_published_response.rb deleted file mode 100644 index ef40cdbed4..0000000000 --- a/lib/groups/item/sites/item/content_types/item/is_published/is_published_response.rb +++ /dev/null @@ -1,100 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../groups' -require_relative '../../../../../item' -require_relative '../../../../sites' -require_relative '../../../item' -require_relative '../../content_types' -require_relative '../item' -require_relative './is_published' - -module MicrosoftGraph - module Groups - module Item - module Sites - module Item - module ContentTypes - module Item - module IsPublished - class IsPublishedResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new isPublishedResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a is_published_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return IsPublishedResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_boolean_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a boolean - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/sites/item/content_types/item/publish/publish_request_builder.rb b/lib/groups/item/sites/item/content_types/item/publish/publish_request_builder.rb index c217d2dc93..48d106aea9 100644 --- a/lib/groups/item/sites/item/content_types/item/publish/publish_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/item/publish/publish_request_builder.rb @@ -31,7 +31,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/publish") end ## - ## Publishes a [contentType][] present in the content type hub site. + ## Publishes a contentType present in the content type hub site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -40,26 +40,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Publishes a [contentType][] present in the content type hub site. + ## Publishes a contentType present in the content type hub site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a publish_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PublishRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/content_types/item/unpublish/unpublish_request_builder.rb b/lib/groups/item/sites/item/content_types/item/unpublish/unpublish_request_builder.rb index 0c84f8c12e..5067f9763c 100644 --- a/lib/groups/item/sites/item/content_types/item/unpublish/unpublish_request_builder.rb +++ b/lib/groups/item/sites/item/content_types/item/unpublish/unpublish_request_builder.rb @@ -31,7 +31,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/unpublish") end ## - ## Unpublish a [contentType][] from a content type hub site. + ## Unpublish a contentType from a content type hub site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -40,26 +40,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Unpublish a [contentType][] from a content type hub site. + ## Unpublish a contentType from a content type hub site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unpublish_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnpublishRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/created_by_user/created_by_user_request_builder.rb b/lib/groups/item/sites/item/created_by_user/created_by_user_request_builder.rb index 2a77a6cd8c..c9235dcedf 100644 --- a/lib/groups/item/sites/item/created_by_user/created_by_user_request_builder.rb +++ b/lib/groups/item/sites/item/created_by_user/created_by_user_request_builder.rb @@ -8,6 +8,7 @@ require_relative '../item' require_relative './created_by_user' require_relative './mailbox_settings/mailbox_settings_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' module MicrosoftGraph module Groups @@ -25,13 +26,18 @@ def mailbox_settings() return MicrosoftGraph::Groups::Item::Sites::Item::CreatedByUser::MailboxSettings::MailboxSettingsRequestBuilder.new(@path_parameters, @request_adapter) end ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Groups::Item::Sites::Item::CreatedByUser::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Instantiates a new CreatedByUserRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/createdByUser{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/createdByUser{?%24expand,%24select}") end ## ## Identity of the user who created the item. Read-only. @@ -43,8 +49,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +59,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a created_by_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreatedByUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Identity of the user who created the item. Read-only. diff --git a/lib/groups/item/sites/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb b/lib/groups/item/sites/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb index 084415dae8..d067ac9614 100644 --- a/lib/groups/item/sites/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb +++ b/lib/groups/item/sites/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb @@ -27,10 +27,10 @@ class MailboxSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/createdByUser/mailboxSettings{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}") end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of mailbox_settings ## @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -55,26 +54,25 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -86,20 +84,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mailbox_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MailboxSettingsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. class MailboxSettingsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/created_by_user/service_provisioning_errors/count/count.rb b/lib/groups/item/sites/item/created_by_user/service_provisioning_errors/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/created_by_user/service_provisioning_errors/count/count_request_builder.rb b/lib/groups/item/sites/item/created_by_user/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..6285c32625 --- /dev/null +++ b/lib/groups/item/sites/item/created_by_user/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,109 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../sites' +require_relative '../../../item' +require_relative '../../created_by_user' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module CreatedByUser + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/created_by_user/service_provisioning_errors/service_provisioning_errors.rb b/lib/groups/item/sites/item/created_by_user/service_provisioning_errors/service_provisioning_errors.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/groups/item/sites/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..1b6fa630a1 --- /dev/null +++ b/lib/groups/item/sites/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,143 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../models/service_provisioning_error_collection_response' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../created_by_user' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module CreatedByUser + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\createdByUser\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::Sites::Item::CreatedByUser::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/drive/drive_request_builder.rb b/lib/groups/item/sites/item/drive/drive_request_builder.rb index 27684f3af5..872c6b2acf 100644 --- a/lib/groups/item/sites/item/drive/drive_request_builder.rb +++ b/lib/groups/item/sites/item/drive/drive_request_builder.rb @@ -25,7 +25,7 @@ class DriveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/drive{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/drive{?%24expand,%24select}") end ## ## The default drive (document library) for this site. @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Drive.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a drive_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DriveRequestBuilder.new(raw_url, @request_adapter) + end ## # The default drive (document library) for this site. diff --git a/lib/groups/item/sites/item/drives/count/count_request_builder.rb b/lib/groups/item/sites/item/drives/count/count_request_builder.rb index 9efac1eade..ad2fb57a0d 100644 --- a/lib/groups/item/sites/item/drives/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/drives/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/drives/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/drives/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/drives/drives_request_builder.rb b/lib/groups/item/sites/item/drives/drives_request_builder.rb index c0f319b9f3..fbf677e38d 100644 --- a/lib/groups/item/sites/item/drives/drives_request_builder.rb +++ b/lib/groups/item/sites/item/drives/drives_request_builder.rb @@ -43,7 +43,7 @@ def by_drive_id(drive_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/drives{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/drives{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The collection of drives (document libraries) under this site. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a drives_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DrivesRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of drives (document libraries) under this site. diff --git a/lib/groups/item/sites/item/drives/item/drive_item_request_builder.rb b/lib/groups/item/sites/item/drives/item/drive_item_request_builder.rb index 9fb9c44562..3cc491ad7e 100644 --- a/lib/groups/item/sites/item/drives/item/drive_item_request_builder.rb +++ b/lib/groups/item/sites/item/drives/item/drive_item_request_builder.rb @@ -27,7 +27,7 @@ class DriveItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/drives/{drive%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/drives/{drive%2Did}{?%24expand,%24select}") end ## ## The collection of drives (document libraries) under this site. @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Drive.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a drive_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DriveItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of drives (document libraries) under this site. diff --git a/lib/groups/item/sites/item/external_columns/count/count_request_builder.rb b/lib/groups/item/sites/item/external_columns/count/count_request_builder.rb index 88cc4868bc..c77f9e3d1c 100644 --- a/lib/groups/item/sites/item/external_columns/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/external_columns/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/externalColumns/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/externalColumns/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/external_columns/external_columns_request_builder.rb b/lib/groups/item/sites/item/external_columns/external_columns_request_builder.rb index 6810106e51..da381b0e80 100644 --- a/lib/groups/item/sites/item/external_columns/external_columns_request_builder.rb +++ b/lib/groups/item/sites/item/external_columns/external_columns_request_builder.rb @@ -43,7 +43,7 @@ def by_column_definition_id(column_definition_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/externalColumns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/externalColumns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get externalColumns from groups @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinitionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a external_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExternalColumnsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get externalColumns from groups diff --git a/lib/groups/item/sites/item/external_columns/item/column_definition_item_request_builder.rb b/lib/groups/item/sites/item/external_columns/item/column_definition_item_request_builder.rb index 7179bdcc61..810f5e4793 100644 --- a/lib/groups/item/sites/item/external_columns/item/column_definition_item_request_builder.rb +++ b/lib/groups/item/sites/item/external_columns/item/column_definition_item_request_builder.rb @@ -27,7 +27,7 @@ class ColumnDefinitionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReque ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/externalColumns/{columnDefinition%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/externalColumns/{columnDefinition%2Did}{?%24expand,%24select}") end ## ## Get externalColumns from groups @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_definition_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnDefinitionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get externalColumns from groups diff --git a/lib/groups/item/sites/item/get_activities_by_interval/get_activities_by_interval.rb b/lib/groups/item/sites/item/get_activities_by_interval/get_activities_by_interval.rb index 392eb95c99..ab461e5b20 100644 --- a/lib/groups/item/sites/item/get_activities_by_interval/get_activities_by_interval.rb +++ b/lib/groups/item/sites/item/get_activities_by_interval/get_activities_by_interval.rb @@ -1 +1 @@ -require_relative 'get_activities_by_interval_response' +require_relative 'get_activities_by_interval_get_response' diff --git a/lib/groups/item/sites/item/get_activities_by_interval/get_activities_by_interval_get_response.rb b/lib/groups/item/sites/item/get_activities_by_interval/get_activities_by_interval_get_response.rb new file mode 100644 index 0000000000..3c883d5bf1 --- /dev/null +++ b/lib/groups/item/sites/item/get_activities_by_interval/get_activities_by_interval_get_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../models/item_activity_stat' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../sites' +require_relative '../item' +require_relative './get_activities_by_interval' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetActivitiesByInterval + class GetActivitiesByIntervalGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetActivitiesByIntervalGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_activities_by_interval_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetActivitiesByIntervalGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a item_activity_stat + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_activities_by_interval/get_activities_by_interval_request_builder.rb b/lib/groups/item/sites/item/get_activities_by_interval/get_activities_by_interval_request_builder.rb index 14743f7222..ced00a9055 100644 --- a/lib/groups/item/sites/item/get_activities_by_interval/get_activities_by_interval_request_builder.rb +++ b/lib/groups/item/sites/item/get_activities_by_interval/get_activities_by_interval_request_builder.rb @@ -24,21 +24,20 @@ class GetActivitiesByIntervalRequestBuilder < MicrosoftKiotaAbstractions::BaseRe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getActivitiesByInterval(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getActivitiesByInterval(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Invoke function getActivitiesByInterval ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_activities_by_interval_response + ## @return a Fiber of get_activities_by_interval_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::GetActivitiesByInterval::GetActivitiesByIntervalResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::GetActivitiesByInterval::GetActivitiesByIntervalGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function getActivitiesByInterval @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_activities_by_interval_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetActivitiesByIntervalRequestBuilder.new(raw_url, @request_adapter) + end ## # Invoke function getActivitiesByInterval @@ -67,6 +75,9 @@ class GetActivitiesByIntervalRequestBuilderGetQueryParameters # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -94,6 +105,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/sites/item/get_activities_by_interval/get_activities_by_interval_response.rb b/lib/groups/item/sites/item/get_activities_by_interval/get_activities_by_interval_response.rb deleted file mode 100644 index 2e75733a61..0000000000 --- a/lib/groups/item/sites/item/get_activities_by_interval/get_activities_by_interval_response.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../models/item_activity_stat' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../sites' -require_relative '../item' -require_relative './get_activities_by_interval' - -module MicrosoftGraph - module Groups - module Item - module Sites - module Item - module GetActivitiesByInterval - class GetActivitiesByIntervalResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getActivitiesByIntervalResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_activities_by_interval_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetActivitiesByIntervalResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a item_activity_stat - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/sites/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/dab1c2feb9ecf2d349721478e4ff8fe9c46b97a0c44110851b2b17a08d22383e.rb b/lib/groups/item/sites/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/dab1c2feb9ecf2d349721478e4ff8fe9c46b97a0c44110851b2b17a08d22383e.rb index 48904fee4b..4b422fe5b3 100644 --- a/lib/groups/item/sites/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/dab1c2feb9ecf2d349721478e4ff8fe9c46b97a0c44110851b2b17a08d22383e.rb +++ b/lib/groups/item/sites/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/dab1c2feb9ecf2d349721478e4ff8fe9c46b97a0c44110851b2b17a08d22383e.rb @@ -27,21 +27,20 @@ class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequest ## @return a void ## def initialize(path_parameters, request_adapter, end_date_time=nil, interval=nil, start_date_time=nil) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Invoke function getActivitiesByInterval ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response + ## @return a Fiber of get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval::GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval::GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function getActivitiesByInterval @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.new(raw_url, @request_adapter) + end ## # Invoke function getActivitiesByInterval @@ -70,6 +78,9 @@ class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequest # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -97,6 +108,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/sites/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval.rb b/lib/groups/item/sites/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval.rb index a8604aeec9..d4ef65f826 100644 --- a/lib/groups/item/sites/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval.rb +++ b/lib/groups/item/sites/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval.rb @@ -1 +1 @@ -require_relative 'get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response' +require_relative 'get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response' diff --git a/lib/groups/item/sites/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response.rb b/lib/groups/item/sites/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response.rb new file mode 100644 index 0000000000..95be92dca1 --- /dev/null +++ b/lib/groups/item/sites/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../models/item_activity_stat' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../sites' +require_relative '../item' +require_relative './get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval + class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a item_activity_stat + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response.rb b/lib/groups/item/sites/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response.rb deleted file mode 100644 index 798cf32670..0000000000 --- a/lib/groups/item/sites/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../models/item_activity_stat' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../sites' -require_relative '../item' -require_relative './get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval' - -module MicrosoftGraph - module Groups - module Item - module Sites - module Item - module GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval - class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a item_activity_stat - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/sites/item/get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id.rb b/lib/groups/item/sites/item/get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id.rb index 59ec5542a6..8f95a09174 100644 --- a/lib/groups/item/sites/item/get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id.rb +++ b/lib/groups/item/sites/item/get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id.rb @@ -1 +1 @@ -require_relative 'get_applicable_content_types_for_list_with_list_id_response' +require_relative 'get_applicable_content_types_for_list_with_list_id_get_response' diff --git a/lib/groups/item/sites/item/get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id_get_response.rb b/lib/groups/item/sites/item/get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id_get_response.rb new file mode 100644 index 0000000000..80d6a0a664 --- /dev/null +++ b/lib/groups/item/sites/item/get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id_get_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../models/content_type' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../sites' +require_relative '../item' +require_relative './get_applicable_content_types_for_list_with_list_id' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetApplicableContentTypesForListWithListId + class GetApplicableContentTypesForListWithListIdGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetApplicableContentTypesForListWithListIdGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_applicable_content_types_for_list_with_list_id_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetApplicableContentTypesForListWithListIdGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a content_type + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id_request_builder.rb b/lib/groups/item/sites/item/get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id_request_builder.rb index 7ef6ade5e3..a0c54c1a61 100644 --- a/lib/groups/item/sites/item/get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id_request_builder.rb +++ b/lib/groups/item/sites/item/get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id_request_builder.rb @@ -25,49 +25,60 @@ class GetApplicableContentTypesForListWithListIdRequestBuilder < MicrosoftKiotaA ## @return a void ## def initialize(path_parameters, request_adapter, list_id=nil) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getApplicableContentTypesForList(listId='{listId}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getApplicableContentTypesForList(listId='{listId}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function getApplicableContentTypesForList + ## Get site contentTypes that can be added to a list. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_applicable_content_types_for_list_with_list_id_response + ## @return a Fiber of get_applicable_content_types_for_list_with_list_id_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::GetApplicableContentTypesForListWithListId::GetApplicableContentTypesForListWithListIdResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::GetApplicableContentTypesForListWithListId::GetApplicableContentTypesForListWithListIdGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function getApplicableContentTypesForList + ## Get site contentTypes that can be added to a list. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_applicable_content_types_for_list_with_list_id_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetApplicableContentTypesForListWithListIdRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function getApplicableContentTypesForList + # Get site contentTypes that can be added to a list. class GetApplicableContentTypesForListWithListIdRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -95,6 +106,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/sites/item/get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id_response.rb b/lib/groups/item/sites/item/get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id_response.rb deleted file mode 100644 index 782cdfb588..0000000000 --- a/lib/groups/item/sites/item/get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id_response.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../models/content_type' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../sites' -require_relative '../item' -require_relative './get_applicable_content_types_for_list_with_list_id' - -module MicrosoftGraph - module Groups - module Item - module Sites - module Item - module GetApplicableContentTypesForListWithListId - class GetApplicableContentTypesForListWithListIdResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getApplicableContentTypesForListWithListIdResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_applicable_content_types_for_list_with_list_id_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetApplicableContentTypesForListWithListIdResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a content_type - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/analytics/analytics.rb b/lib/groups/item/sites/item/get_by_path_with_path/analytics/analytics.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/get_by_path_with_path/analytics/analytics_request_builder.rb b/lib/groups/item/sites/item/get_by_path_with_path/analytics/analytics_request_builder.rb new file mode 100644 index 0000000000..3d4d0f3033 --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/analytics/analytics_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/item_analytics' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../get_by_path_with_path' +require_relative './analytics' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetByPathWithPath + module Analytics + ## + # Provides operations to manage the analytics property of the microsoft.graph.site entity. + class AnalyticsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new AnalyticsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/analytics{?%24expand,%24select}") + end + ## + ## Delete navigation property analytics for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Analytics about the view activities that took place on this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of item_analytics + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemAnalytics.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property analytics in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of item_analytics + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemAnalytics.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property analytics for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Analytics about the view activities that took place on this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property analytics in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a analytics_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AnalyticsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Analytics about the view activities that took place on this site. + class AnalyticsRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/columns/columns.rb b/lib/groups/item/sites/item/get_by_path_with_path/columns/columns.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/get_by_path_with_path/columns/columns_request_builder.rb b/lib/groups/item/sites/item/get_by_path_with_path/columns/columns_request_builder.rb new file mode 100644 index 0000000000..84bcd2be96 --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/columns/columns_request_builder.rb @@ -0,0 +1,173 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/column_definition' +require_relative '../../../../../../models/column_definition_collection_response' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../get_by_path_with_path' +require_relative './columns' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetByPathWithPath + module Columns + ## + # Provides operations to manage the columns property of the microsoft.graph.site entity. + class ColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ColumnsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The collection of column definitions reusable across lists under this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of column_definition_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinitionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to columns for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of column_definition + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The collection of column definitions reusable across lists under this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to columns for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of column definitions reusable across lists under this site. + class ColumnsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/content_types/content_types.rb b/lib/groups/item/sites/item/get_by_path_with_path/content_types/content_types.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/get_by_path_with_path/content_types/content_types_request_builder.rb b/lib/groups/item/sites/item/get_by_path_with_path/content_types/content_types_request_builder.rb new file mode 100644 index 0000000000..bbddcb6f5b --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/content_types/content_types_request_builder.rb @@ -0,0 +1,173 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/content_type' +require_relative '../../../../../../models/content_type_collection_response' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../get_by_path_with_path' +require_relative './content_types' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetByPathWithPath + module ContentTypes + ## + # Provides operations to manage the contentTypes property of the microsoft.graph.site entity. + class ContentTypesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ContentTypesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The collection of content types defined for this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of content_type_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentTypeCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to contentTypes for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of content_type + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The collection of content types defined for this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to contentTypes for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_types_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentTypesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of content types defined for this site. + class ContentTypesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/created_by_user/created_by_user.rb b/lib/groups/item/sites/item/get_by_path_with_path/created_by_user/created_by_user.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/get_by_path_with_path/created_by_user/created_by_user_request_builder.rb b/lib/groups/item/sites/item/get_by_path_with_path/created_by_user/created_by_user_request_builder.rb new file mode 100644 index 0000000000..04d4976001 --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/created_by_user/created_by_user_request_builder.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../models/user' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../get_by_path_with_path' +require_relative './created_by_user' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetByPathWithPath + module CreatedByUser + ## + # Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. + class CreatedByUserRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CreatedByUserRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/createdByUser{?%24expand,%24select}") + end + ## + ## Identity of the user who created the item. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of user + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Identity of the user who created the item. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a created_by_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreatedByUserRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Identity of the user who created the item. Read-only. + class CreatedByUserRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/drive/drive.rb b/lib/groups/item/sites/item/get_by_path_with_path/drive/drive.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/get_by_path_with_path/drive/drive_request_builder.rb b/lib/groups/item/sites/item/get_by_path_with_path/drive/drive_request_builder.rb new file mode 100644 index 0000000000..441f31b18b --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/drive/drive_request_builder.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/drive' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../get_by_path_with_path' +require_relative './drive' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetByPathWithPath + module Drive + ## + # Provides operations to manage the drive property of the microsoft.graph.site entity. + class DriveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DriveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/drive{?%24expand,%24select}") + end + ## + ## The default drive (document library) for this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of drive + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Drive.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The default drive (document library) for this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a drive_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DriveRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The default drive (document library) for this site. + class DriveRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/drives/drives.rb b/lib/groups/item/sites/item/get_by_path_with_path/drives/drives.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/get_by_path_with_path/drives/drives_request_builder.rb b/lib/groups/item/sites/item/get_by_path_with_path/drives/drives_request_builder.rb new file mode 100644 index 0000000000..591af4187f --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/drives/drives_request_builder.rb @@ -0,0 +1,137 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/drive_collection_response' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../get_by_path_with_path' +require_relative './drives' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetByPathWithPath + module Drives + ## + # Provides operations to manage the drives property of the microsoft.graph.site entity. + class DrivesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DrivesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/drives{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The collection of drives (document libraries) under this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of drive_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The collection of drives (document libraries) under this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a drives_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DrivesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of drives (document libraries) under this site. + class DrivesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/external_columns/external_columns.rb b/lib/groups/item/sites/item/get_by_path_with_path/external_columns/external_columns.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/get_by_path_with_path/external_columns/external_columns_request_builder.rb b/lib/groups/item/sites/item/get_by_path_with_path/external_columns/external_columns_request_builder.rb new file mode 100644 index 0000000000..b185b30129 --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/external_columns/external_columns_request_builder.rb @@ -0,0 +1,137 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/column_definition_collection_response' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../get_by_path_with_path' +require_relative './external_columns' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetByPathWithPath + module ExternalColumns + ## + # Provides operations to manage the externalColumns property of the microsoft.graph.site entity. + class ExternalColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ExternalColumnsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/externalColumns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get externalColumns from groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of column_definition_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinitionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get externalColumns from groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a external_columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExternalColumnsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get externalColumns from groups + class ExternalColumnsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/get_activities_by_interval/get_activities_by_interval.rb b/lib/groups/item/sites/item/get_by_path_with_path/get_activities_by_interval/get_activities_by_interval.rb new file mode 100644 index 0000000000..ab461e5b20 --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/get_activities_by_interval/get_activities_by_interval.rb @@ -0,0 +1 @@ +require_relative 'get_activities_by_interval_get_response' diff --git a/lib/groups/item/sites/item/get_by_path_with_path/get_activities_by_interval/get_activities_by_interval_get_response.rb b/lib/groups/item/sites/item/get_by_path_with_path/get_activities_by_interval/get_activities_by_interval_get_response.rb new file mode 100644 index 0000000000..bca3b2961a --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/get_activities_by_interval/get_activities_by_interval_get_response.rb @@ -0,0 +1,81 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../models/item_activity_stat' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../get_by_path_with_path' +require_relative './get_activities_by_interval' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetByPathWithPath + module GetActivitiesByInterval + class GetActivitiesByIntervalGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetActivitiesByIntervalGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_activities_by_interval_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetActivitiesByIntervalGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a item_activity_stat + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/get_activities_by_interval/get_activities_by_interval_request_builder.rb b/lib/groups/item/sites/item/get_by_path_with_path/get_activities_by_interval/get_activities_by_interval_request_builder.rb new file mode 100644 index 0000000000..e390c82975 --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/get_activities_by_interval/get_activities_by_interval_request_builder.rb @@ -0,0 +1,136 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../get_by_path_with_path' +require_relative './get_activities_by_interval' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetByPathWithPath + module GetActivitiesByInterval + ## + # Provides operations to call the getActivitiesByInterval method. + class GetActivitiesByIntervalRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new GetActivitiesByIntervalRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getActivitiesByInterval(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Invoke function getActivitiesByInterval + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of get_activities_by_interval_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::GetByPathWithPath::GetActivitiesByInterval::GetActivitiesByIntervalGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function getActivitiesByInterval + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_activities_by_interval_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetActivitiesByIntervalRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Invoke function getActivitiesByInterval + class GetActivitiesByIntervalRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/dab1c2feb9ecf2d349721478e4ff8fe9c46b97a0c44110851b2b17a08d22383e.rb b/lib/groups/item/sites/item/get_by_path_with_path/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/dab1c2feb9ecf2d349721478e4ff8fe9c46b97a0c44110851b2b17a08d22383e.rb new file mode 100644 index 0000000000..a3de3df0e8 --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/dab1c2feb9ecf2d349721478e4ff8fe9c46b97a0c44110851b2b17a08d22383e.rb @@ -0,0 +1,139 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../get_by_path_with_path' +require_relative './get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetByPathWithPath + module GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval + ## + # Provides operations to call the getActivitiesByInterval method. + class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder and sets the default values. + ## @param end_date_time Usage: endDateTime='{endDateTime}' + ## @param interval Usage: interval='{interval}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param start_date_time Usage: startDateTime='{startDateTime}' + ## @return a void + ## + def initialize(path_parameters, request_adapter, end_date_time=nil, interval=nil, start_date_time=nil) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Invoke function getActivitiesByInterval + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::GetByPathWithPath::GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval::GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function getActivitiesByInterval + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Invoke function getActivitiesByInterval + class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval.rb b/lib/groups/item/sites/item/get_by_path_with_path/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval.rb new file mode 100644 index 0000000000..d4ef65f826 --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval.rb @@ -0,0 +1 @@ +require_relative 'get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response' diff --git a/lib/groups/item/sites/item/get_by_path_with_path/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response.rb b/lib/groups/item/sites/item/get_by_path_with_path/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response.rb new file mode 100644 index 0000000000..4205008a8f --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response.rb @@ -0,0 +1,81 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../models/item_activity_stat' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../get_by_path_with_path' +require_relative './get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetByPathWithPath + module GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval + class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a item_activity_stat + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id.rb b/lib/groups/item/sites/item/get_by_path_with_path/get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id.rb new file mode 100644 index 0000000000..8f95a09174 --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id.rb @@ -0,0 +1 @@ +require_relative 'get_applicable_content_types_for_list_with_list_id_get_response' diff --git a/lib/groups/item/sites/item/get_by_path_with_path/get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id_get_response.rb b/lib/groups/item/sites/item/get_by_path_with_path/get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id_get_response.rb new file mode 100644 index 0000000000..8ebbdbd8d8 --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id_get_response.rb @@ -0,0 +1,81 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../models/content_type' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../get_by_path_with_path' +require_relative './get_applicable_content_types_for_list_with_list_id' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetByPathWithPath + module GetApplicableContentTypesForListWithListId + class GetApplicableContentTypesForListWithListIdGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetApplicableContentTypesForListWithListIdGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_applicable_content_types_for_list_with_list_id_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetApplicableContentTypesForListWithListIdGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a content_type + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id_request_builder.rb b/lib/groups/item/sites/item/get_by_path_with_path/get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id_request_builder.rb new file mode 100644 index 0000000000..25893678d7 --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id_request_builder.rb @@ -0,0 +1,137 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../get_by_path_with_path' +require_relative './get_applicable_content_types_for_list_with_list_id' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetByPathWithPath + module GetApplicableContentTypesForListWithListId + ## + # Provides operations to call the getApplicableContentTypesForList method. + class GetApplicableContentTypesForListWithListIdRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new GetApplicableContentTypesForListWithListIdRequestBuilder and sets the default values. + ## @param list_id Usage: listId='{listId}' + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter, list_id=nil) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getApplicableContentTypesForList(listId='{listId}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get site contentTypes that can be added to a list. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of get_applicable_content_types_for_list_with_list_id_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::GetByPathWithPath::GetApplicableContentTypesForListWithListId::GetApplicableContentTypesForListWithListIdGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get site contentTypes that can be added to a list. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_applicable_content_types_for_list_with_list_id_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetApplicableContentTypesForListWithListIdRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get site contentTypes that can be added to a list. + class GetApplicableContentTypesForListWithListIdRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/get_by_path_with_path_request_builder.rb b/lib/groups/item/sites/item/get_by_path_with_path/get_by_path_with_path_request_builder.rb index 49da78e6ce..defa58b9f8 100644 --- a/lib/groups/item/sites/item/get_by_path_with_path/get_by_path_with_path_request_builder.rb +++ b/lib/groups/item/sites/item/get_by_path_with_path/get_by_path_with_path_request_builder.rb @@ -6,7 +6,27 @@ require_relative '../../../item' require_relative '../../sites' require_relative '../item' +require_relative './analytics/analytics_request_builder' +require_relative './columns/columns_request_builder' +require_relative './content_types/content_types_request_builder' +require_relative './created_by_user/created_by_user_request_builder' +require_relative './drive/drive_request_builder' +require_relative './drives/drives_request_builder' +require_relative './external_columns/external_columns_request_builder' +require_relative './get_activities_by_interval/get_activities_by_interval_request_builder' +require_relative './get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/dab1c2feb9ecf2d349721478e4ff8fe9c46b97a0c44110851b2b17a08d22383e' +require_relative './get_applicable_content_types_for_list_with_list_id/get_applicable_content_types_for_list_with_list_id_request_builder' require_relative './get_by_path_with_path' +require_relative './items/items_request_builder' +require_relative './last_modified_by_user/last_modified_by_user_request_builder' +require_relative './lists/lists_request_builder' +require_relative './onenote/onenote_request_builder' +require_relative './operations/operations_request_builder' +require_relative './pages/pages_request_builder' +require_relative './permissions/permissions_request_builder' +require_relative './sites/sites_request_builder' +require_relative './term_store/term_store_request_builder' +require_relative './term_stores/term_stores_request_builder' module MicrosoftGraph module Groups @@ -18,6 +38,96 @@ module GetByPathWithPath # Provides operations to call the getByPath method. class GetByPathWithPathRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to manage the analytics property of the microsoft.graph.site entity. + def analytics() + return MicrosoftGraph::Groups::Item::Sites::Item::GetByPathWithPath::Analytics::AnalyticsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the columns property of the microsoft.graph.site entity. + def columns() + return MicrosoftGraph::Groups::Item::Sites::Item::GetByPathWithPath::Columns::ColumnsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the contentTypes property of the microsoft.graph.site entity. + def content_types() + return MicrosoftGraph::Groups::Item::Sites::Item::GetByPathWithPath::ContentTypes::ContentTypesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. + def created_by_user() + return MicrosoftGraph::Groups::Item::Sites::Item::GetByPathWithPath::CreatedByUser::CreatedByUserRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the drive property of the microsoft.graph.site entity. + def drive() + return MicrosoftGraph::Groups::Item::Sites::Item::GetByPathWithPath::Drive::DriveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the drives property of the microsoft.graph.site entity. + def drives() + return MicrosoftGraph::Groups::Item::Sites::Item::GetByPathWithPath::Drives::DrivesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the externalColumns property of the microsoft.graph.site entity. + def external_columns() + return MicrosoftGraph::Groups::Item::Sites::Item::GetByPathWithPath::ExternalColumns::ExternalColumnsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the getActivitiesByInterval method. + def get_activities_by_interval() + return MicrosoftGraph::Groups::Item::Sites::Item::GetByPathWithPath::GetActivitiesByInterval::GetActivitiesByIntervalRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the items property of the microsoft.graph.site entity. + def items() + return MicrosoftGraph::Groups::Item::Sites::Item::GetByPathWithPath::Items::ItemsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. + def last_modified_by_user() + return MicrosoftGraph::Groups::Item::Sites::Item::GetByPathWithPath::LastModifiedByUser::LastModifiedByUserRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the lists property of the microsoft.graph.site entity. + def lists() + return MicrosoftGraph::Groups::Item::Sites::Item::GetByPathWithPath::Lists::ListsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the onenote property of the microsoft.graph.site entity. + def onenote() + return MicrosoftGraph::Groups::Item::Sites::Item::GetByPathWithPath::Onenote::OnenoteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the operations property of the microsoft.graph.site entity. + def operations() + return MicrosoftGraph::Groups::Item::Sites::Item::GetByPathWithPath::Operations::OperationsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the pages property of the microsoft.graph.site entity. + def pages() + return MicrosoftGraph::Groups::Item::Sites::Item::GetByPathWithPath::Pages::PagesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the permissions property of the microsoft.graph.site entity. + def permissions() + return MicrosoftGraph::Groups::Item::Sites::Item::GetByPathWithPath::Permissions::PermissionsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the sites property of the microsoft.graph.site entity. + def sites() + return MicrosoftGraph::Groups::Item::Sites::Item::GetByPathWithPath::Sites::SitesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the termStore property of the microsoft.graph.site entity. + def term_store() + return MicrosoftGraph::Groups::Item::Sites::Item::GetByPathWithPath::TermStore::TermStoreRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the termStores property of the microsoft.graph.site entity. + def term_stores() + return MicrosoftGraph::Groups::Item::Sites::Item::GetByPathWithPath::TermStores::TermStoresRequestBuilder.new(@path_parameters, @request_adapter) + end ## ## Instantiates a new GetByPathWithPathRequestBuilder and sets the default values. ## @param path Usage: path='{path}' @@ -38,27 +148,57 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Site.create_from_discriminator_value(pn) }, error_mapping) end ## + ## Provides operations to call the getActivitiesByInterval method. + ## @param end_date_time Usage: endDateTime='{endDateTime}' + ## @param interval Usage: interval='{interval}' + ## @param start_date_time Usage: startDateTime='{startDateTime}' + ## @return a get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_request_builder + ## + def get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval(end_date_time, interval, start_date_time) + raise StandardError, 'end_date_time cannot be null' if end_date_time.nil? + raise StandardError, 'interval cannot be null' if interval.nil? + raise StandardError, 'start_date_time cannot be null' if start_date_time.nil? + return GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.new(@path_parameters, @request_adapter, endDateTime, interval, startDateTime) + end + ## + ## Provides operations to call the getApplicableContentTypesForList method. + ## @param list_id Usage: listId='{listId}' + ## @return a get_applicable_content_types_for_list_with_list_id_request_builder + ## + def get_applicable_content_types_for_list_with_list_id(list_id) + raise StandardError, 'list_id cannot be null' if list_id.nil? + return GetApplicableContentTypesForListWithListIdRequestBuilder.new(@path_parameters, @request_adapter, listId) + end + ## ## Invoke function getByPath ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_by_path_with_path_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetByPathWithPathRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/items/items.rb b/lib/groups/item/sites/item/get_by_path_with_path/items/items.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/get_by_path_with_path/items/items_request_builder.rb b/lib/groups/item/sites/item/get_by_path_with_path/items/items_request_builder.rb new file mode 100644 index 0000000000..84bb45c1a9 --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/items/items_request_builder.rb @@ -0,0 +1,137 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/base_item_collection_response' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../get_by_path_with_path' +require_relative './items' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetByPathWithPath + module Items + ## + # Provides operations to manage the items property of the microsoft.graph.site entity. + class ItemsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ItemsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Used to address any item contained in this site. This collection can't be enumerated. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of base_item_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BaseItemCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Used to address any item contained in this site. This collection can't be enumerated. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a items_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Used to address any item contained in this site. This collection can't be enumerated. + class ItemsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/last_modified_by_user/last_modified_by_user.rb b/lib/groups/item/sites/item/get_by_path_with_path/last_modified_by_user/last_modified_by_user.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/get_by_path_with_path/last_modified_by_user/last_modified_by_user_request_builder.rb b/lib/groups/item/sites/item/get_by_path_with_path/last_modified_by_user/last_modified_by_user_request_builder.rb new file mode 100644 index 0000000000..00e19d53f1 --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/last_modified_by_user/last_modified_by_user_request_builder.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../models/user' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../get_by_path_with_path' +require_relative './last_modified_by_user' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetByPathWithPath + module LastModifiedByUser + ## + # Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. + class LastModifiedByUserRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/lastModifiedByUser{?%24expand,%24select}") + end + ## + ## Identity of the user who last modified the item. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of user + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Identity of the user who last modified the item. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_modified_by_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastModifiedByUserRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Identity of the user who last modified the item. Read-only. + class LastModifiedByUserRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/lists/lists.rb b/lib/groups/item/sites/item/get_by_path_with_path/lists/lists.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/get_by_path_with_path/lists/lists_request_builder.rb b/lib/groups/item/sites/item/get_by_path_with_path/lists/lists_request_builder.rb new file mode 100644 index 0000000000..6fe56e620b --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/lists/lists_request_builder.rb @@ -0,0 +1,173 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/list' +require_relative '../../../../../../models/list_collection_response' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../get_by_path_with_path' +require_relative './lists' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetByPathWithPath + module Lists + ## + # Provides operations to manage the lists property of the microsoft.graph.site entity. + class ListsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ListsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/lists{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The collection of lists under this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of list_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ListCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to lists for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of list + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::List.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The collection of lists under this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to lists for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a lists_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ListsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of lists under this site. + class ListsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/onenote/onenote.rb b/lib/groups/item/sites/item/get_by_path_with_path/onenote/onenote.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/get_by_path_with_path/onenote/onenote_request_builder.rb b/lib/groups/item/sites/item/get_by_path_with_path/onenote/onenote_request_builder.rb new file mode 100644 index 0000000000..bdd26d8f32 --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/onenote/onenote_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/onenote' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../get_by_path_with_path' +require_relative './onenote' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetByPathWithPath + module Onenote + ## + # Provides operations to manage the onenote property of the microsoft.graph.site entity. + class OnenoteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OnenoteRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/onenote{?%24expand,%24select}") + end + ## + ## Delete navigation property onenote for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Calls the OneNote service for notebook related operations. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of onenote + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Onenote.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property onenote in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of onenote + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Onenote.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property onenote for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Calls the OneNote service for notebook related operations. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property onenote in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenoteRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Calls the OneNote service for notebook related operations. + class OnenoteRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/operations/operations.rb b/lib/groups/item/sites/item/get_by_path_with_path/operations/operations.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/get_by_path_with_path/operations/operations_request_builder.rb b/lib/groups/item/sites/item/get_by_path_with_path/operations/operations_request_builder.rb new file mode 100644 index 0000000000..709f3f3fd3 --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/operations/operations_request_builder.rb @@ -0,0 +1,173 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../models/rich_long_running_operation' +require_relative '../../../../../../models/rich_long_running_operation_collection_response' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../get_by_path_with_path' +require_relative './operations' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetByPathWithPath + module Operations + ## + # Provides operations to manage the operations property of the microsoft.graph.site entity. + class OperationsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new OperationsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The collection of long-running operations on the site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of rich_long_running_operation_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RichLongRunningOperationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to operations for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of rich_long_running_operation + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RichLongRunningOperation.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The collection of long-running operations on the site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to operations for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a operations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OperationsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of long-running operations on the site. + class OperationsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/pages/pages.rb b/lib/groups/item/sites/item/get_by_path_with_path/pages/pages.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/get_by_path_with_path/pages/pages_request_builder.rb b/lib/groups/item/sites/item/get_by_path_with_path/pages/pages_request_builder.rb new file mode 100644 index 0000000000..ddd00b3549 --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/pages/pages_request_builder.rb @@ -0,0 +1,173 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/base_site_page' +require_relative '../../../../../../models/base_site_page_collection_response' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../get_by_path_with_path' +require_relative './pages' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetByPathWithPath + module Pages + ## + # Provides operations to manage the pages property of the microsoft.graph.site entity. + class PagesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new PagesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The collection of pages in the baseSitePages list in this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of base_site_page_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BaseSitePageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to pages for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of base_site_page + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BaseSitePage.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The collection of pages in the baseSitePages list in this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to pages for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a pages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PagesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of pages in the baseSitePages list in this site. + class PagesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/permissions/permissions.rb b/lib/groups/item/sites/item/get_by_path_with_path/permissions/permissions.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/get_by_path_with_path/permissions/permissions_request_builder.rb b/lib/groups/item/sites/item/get_by_path_with_path/permissions/permissions_request_builder.rb new file mode 100644 index 0000000000..255c19d985 --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/permissions/permissions_request_builder.rb @@ -0,0 +1,173 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../models/permission' +require_relative '../../../../../../models/permission_collection_response' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../get_by_path_with_path' +require_relative './permissions' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetByPathWithPath + module Permissions + ## + # Provides operations to manage the permissions property of the microsoft.graph.site entity. + class PermissionsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new PermissionsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The permissions associated with the site. Nullable. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of permission_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PermissionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to permissions for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of permission + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Permission.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The permissions associated with the site. Nullable. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to permissions for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a permissions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PermissionsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The permissions associated with the site. Nullable. + class PermissionsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/sites/sites.rb b/lib/groups/item/sites/item/get_by_path_with_path/sites/sites.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/get_by_path_with_path/sites/sites_request_builder.rb b/lib/groups/item/sites/item/get_by_path_with_path/sites/sites_request_builder.rb new file mode 100644 index 0000000000..1556d49d94 --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/sites/sites_request_builder.rb @@ -0,0 +1,137 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../models/site_collection_response' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../get_by_path_with_path' +require_relative './sites' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetByPathWithPath + module Sites + ## + # Provides operations to manage the sites property of the microsoft.graph.site entity. + class SitesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new SitesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/sites{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The collection of the sub-sites under this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of site_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SiteCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The collection of the sub-sites under this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sites_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SitesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of the sub-sites under this site. + class SitesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/term_store/term_store.rb b/lib/groups/item/sites/item/get_by_path_with_path/term_store/term_store.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/get_by_path_with_path/term_store/term_store_request_builder.rb b/lib/groups/item/sites/item/get_by_path_with_path/term_store/term_store_request_builder.rb new file mode 100644 index 0000000000..205cf43028 --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/term_store/term_store_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../models/term_store_store' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../get_by_path_with_path' +require_relative './term_store' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetByPathWithPath + module TermStore + ## + # Provides operations to manage the termStore property of the microsoft.graph.site entity. + class TermStoreRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new TermStoreRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/termStore{?%24expand,%24select}") + end + ## + ## Delete navigation property termStore for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The default termStore under this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of term_store_store + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreStore.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property termStore in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of term_store_store + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreStore.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property termStore for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The default termStore under this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property termStore in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_store_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermStoreRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The default termStore under this site. + class TermStoreRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/get_by_path_with_path/term_stores/term_stores.rb b/lib/groups/item/sites/item/get_by_path_with_path/term_stores/term_stores.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/get_by_path_with_path/term_stores/term_stores_request_builder.rb b/lib/groups/item/sites/item/get_by_path_with_path/term_stores/term_stores_request_builder.rb new file mode 100644 index 0000000000..2698078117 --- /dev/null +++ b/lib/groups/item/sites/item/get_by_path_with_path/term_stores/term_stores_request_builder.rb @@ -0,0 +1,173 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../models/term_store_store' +require_relative '../../../../../../models/term_store_store_collection_response' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../get_by_path_with_path' +require_relative './term_stores' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module GetByPathWithPath + module TermStores + ## + # Provides operations to manage the termStores property of the microsoft.graph.site entity. + class TermStoresRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new TermStoresRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/termStores{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The collection of termStores under this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of term_store_store_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreStoreCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to termStores for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of term_store_store + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreStore.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The collection of termStores under this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to termStores for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_stores_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermStoresRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of termStores under this site. + class TermStoresRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/items/count/count_request_builder.rb b/lib/groups/item/sites/item/items/count/count_request_builder.rb index 6bcb0fdeab..34c41d169b 100644 --- a/lib/groups/item/sites/item/items/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/items/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/items/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/items/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/items/item/base_item_item_request_builder.rb b/lib/groups/item/sites/item/items/item/base_item_item_request_builder.rb index aa877068dd..c6258fc0d5 100644 --- a/lib/groups/item/sites/item/items/item/base_item_item_request_builder.rb +++ b/lib/groups/item/sites/item/items/item/base_item_item_request_builder.rb @@ -27,7 +27,7 @@ class BaseItemItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilde ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/items/{baseItem%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/items/{baseItem%2Did}{?%24expand,%24select}") end ## ## Used to address any item contained in this site. This collection can't be enumerated. @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BaseItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a base_item_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BaseItemItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Used to address any item contained in this site. This collection can't be enumerated. diff --git a/lib/groups/item/sites/item/items/items_request_builder.rb b/lib/groups/item/sites/item/items/items_request_builder.rb index 05bc8411c8..e4ac128585 100644 --- a/lib/groups/item/sites/item/items/items_request_builder.rb +++ b/lib/groups/item/sites/item/items/items_request_builder.rb @@ -43,7 +43,7 @@ def by_base_item_id(base_item_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/items{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Used to address any item contained in this site. This collection can't be enumerated. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BaseItemCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a items_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemsRequestBuilder.new(raw_url, @request_adapter) + end ## # Used to address any item contained in this site. This collection can't be enumerated. diff --git a/lib/groups/item/sites/item/last_modified_by_user/last_modified_by_user_request_builder.rb b/lib/groups/item/sites/item/last_modified_by_user/last_modified_by_user_request_builder.rb index 4c6f76c013..a8ca72b4fd 100644 --- a/lib/groups/item/sites/item/last_modified_by_user/last_modified_by_user_request_builder.rb +++ b/lib/groups/item/sites/item/last_modified_by_user/last_modified_by_user_request_builder.rb @@ -8,6 +8,7 @@ require_relative '../item' require_relative './last_modified_by_user' require_relative './mailbox_settings/mailbox_settings_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' module MicrosoftGraph module Groups @@ -25,13 +26,18 @@ def mailbox_settings() return MicrosoftGraph::Groups::Item::Sites::Item::LastModifiedByUser::MailboxSettings::MailboxSettingsRequestBuilder.new(@path_parameters, @request_adapter) end ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Groups::Item::Sites::Item::LastModifiedByUser::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lastModifiedByUser{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lastModifiedByUser{?%24expand,%24select}") end ## ## Identity of the user who last modified the item. Read-only. @@ -43,8 +49,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +59,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_modified_by_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastModifiedByUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Identity of the user who last modified the item. Read-only. diff --git a/lib/groups/item/sites/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb b/lib/groups/item/sites/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb index 391fa9caba..317a5ae8a7 100644 --- a/lib/groups/item/sites/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb +++ b/lib/groups/item/sites/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb @@ -27,10 +27,10 @@ class MailboxSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lastModifiedByUser/mailboxSettings{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}") end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of mailbox_settings ## @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -55,26 +54,25 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -86,20 +84,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mailbox_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MailboxSettingsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. class MailboxSettingsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/last_modified_by_user/service_provisioning_errors/count/count.rb b/lib/groups/item/sites/item/last_modified_by_user/service_provisioning_errors/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb b/lib/groups/item/sites/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..b5a95601d9 --- /dev/null +++ b/lib/groups/item/sites/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,109 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../sites' +require_relative '../../../item' +require_relative '../../last_modified_by_user' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module LastModifiedByUser + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors.rb b/lib/groups/item/sites/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/groups/item/sites/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..a8c7240930 --- /dev/null +++ b/lib/groups/item/sites/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,143 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../models/service_provisioning_error_collection_response' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../last_modified_by_user' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module LastModifiedByUser + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\lastModifiedByUser\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::Sites::Item::LastModifiedByUser::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/lists/count/count_request_builder.rb b/lib/groups/item/sites/item/lists/count/count_request_builder.rb index 0d13453ffa..0e3cec6d90 100644 --- a/lib/groups/item/sites/item/lists/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/lists/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/lists/item/columns/columns_request_builder.rb b/lib/groups/item/sites/item/lists/item/columns/columns_request_builder.rb index e9f9fae1cb..e8e9ff748a 100644 --- a/lib/groups/item/sites/item/lists/item/columns/columns_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/columns/columns_request_builder.rb @@ -48,10 +48,10 @@ def by_column_definition_id(column_definition_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + ## The collection of field definitions for this list. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of column_definition_collection_response ## @@ -60,12 +60,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinitionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. + ## Create new navigation property to columns for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of column_definition @@ -76,30 +75,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + ## The collection of field definitions for this list. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. + ## Create new navigation property to columns for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -107,20 +105,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + # The collection of field definitions for this list. class ColumnsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/lists/item/columns/count/count_request_builder.rb b/lib/groups/item/sites/item/lists/item/columns/count/count_request_builder.rb index e7b6ed4836..4221a7a291 100644 --- a/lib/groups/item/sites/item/lists/item/columns/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/columns/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/columns/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/columns/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/lists/item/columns/item/column_definition_item_request_builder.rb b/lib/groups/item/sites/item/lists/item/columns/item/column_definition_item_request_builder.rb index 4fad2a6fb3..505a733267 100644 --- a/lib/groups/item/sites/item/lists/item/columns/item/column_definition_item_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/columns/item/column_definition_item_request_builder.rb @@ -37,7 +37,7 @@ def source_column() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/columns/{columnDefinition%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/columns/{columnDefinition%2Did}{?%24expand,%24select}") end ## ## Delete navigation property columns for groups @@ -49,8 +49,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,8 +77,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,13 +87,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -106,15 +104,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,17 +124,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_definition_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnDefinitionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of field definitions for this list. diff --git a/lib/groups/item/sites/item/lists/item/columns/item/source_column/source_column_request_builder.rb b/lib/groups/item/sites/item/lists/item/columns/item/source_column/source_column_request_builder.rb index 5e3a33f1a4..159bd3a79d 100644 --- a/lib/groups/item/sites/item/lists/item/columns/item/source_column/source_column_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/columns/item/source_column/source_column_request_builder.rb @@ -33,7 +33,7 @@ class SourceColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilde ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%24expand,%24select}") end ## ## The source column for the content type column. @@ -45,8 +45,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a source_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SourceColumnRequestBuilder.new(raw_url, @request_adapter) + end ## # The source column for the content type column. diff --git a/lib/groups/item/sites/item/lists/item/content_types/add_copy/add_copy_post_request_body.rb b/lib/groups/item/sites/item/lists/item/content_types/add_copy/add_copy_post_request_body.rb index cc0bfc3813..7e5c0a5782 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/add_copy/add_copy_post_request_body.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/add_copy/add_copy_post_request_body.rb @@ -27,22 +27,22 @@ class AddCopyPostRequestBody # The contentType property @content_type ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new addCopyPostRequestBody and sets the default values. + ## Instantiates a new AddCopyPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/lists/item/content_types/add_copy/add_copy_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/add_copy/add_copy_request_builder.rb index 4cf62e970d..b057f6690e 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/add_copy/add_copy_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/add_copy/add_copy_request_builder.rb @@ -34,7 +34,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/addCopy") end ## - ## Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + ## Add a copy of a content type from a site to a list. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of content_type @@ -45,12 +45,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + ## Add a copy of a content type from a site to a list. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -58,17 +57,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_copy_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddCopyRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/lists/item/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_post_request_body.rb b/lib/groups/item/sites/item/lists/item/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_post_request_body.rb index 0c298c8542..ad51b33173 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_post_request_body.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_post_request_body.rb @@ -27,22 +27,22 @@ class AddCopyFromContentTypeHubPostRequestBody # The contentTypeId property @content_type_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new addCopyFromContentTypeHubPostRequestBody and sets the default values. + ## Instantiates a new AddCopyFromContentTypeHubPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/lists/item/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_request_builder.rb index e7a34befc5..cc380ef6bf 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_request_builder.rb @@ -45,8 +45,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_copy_from_content_type_hub_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddCopyFromContentTypeHubRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/lists/item/content_types/content_types_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/content_types_request_builder.rb index 460c33f360..24ffa97e18 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/content_types_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/content_types_request_builder.rb @@ -66,10 +66,10 @@ def by_content_type_id(content_type_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the collection of [contentType][contentType] resources in a [list][]. + ## The collection of content types present in this list. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of content_type_collection_response ## @@ -78,8 +78,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentTypeCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -94,26 +93,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the collection of [contentType][contentType] resources in a [list][]. + ## The collection of content types present in this list. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -125,20 +123,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_types_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentTypesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the collection of [contentType][contentType] resources in a [list][]. + # The collection of content types present in this list. class ContentTypesRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/lists/item/content_types/count/count_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/count/count_request_builder.rb index 04264b8a2f..a5e5a7bc56 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/lists/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types.rb b/lib/groups/item/sites/item/lists/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types.rb index 6908c8ff63..58d326dbe5 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types.rb @@ -1 +1 @@ -require_relative 'get_compatible_hub_content_types_response' +require_relative 'get_compatible_hub_content_types_get_response' diff --git a/lib/groups/item/sites/item/lists/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_get_response.rb b/lib/groups/item/sites/item/lists/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_get_response.rb new file mode 100644 index 0000000000..8e00a10090 --- /dev/null +++ b/lib/groups/item/sites/item/lists/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_get_response.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../../../models/content_type' +require_relative '../../../../../../../groups' +require_relative '../../../../../../item' +require_relative '../../../../../sites' +require_relative '../../../../item' +require_relative '../../../lists' +require_relative '../../item' +require_relative '../content_types' +require_relative './get_compatible_hub_content_types' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Lists + module Item + module ContentTypes + module GetCompatibleHubContentTypes + class GetCompatibleHubContentTypesGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetCompatibleHubContentTypesGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_compatible_hub_content_types_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetCompatibleHubContentTypesGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a content_type + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/lists/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_request_builder.rb index a6a3039b22..0178c13b8b 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_request_builder.rb @@ -30,49 +30,60 @@ class GetCompatibleHubContentTypesRequestBuilder < MicrosoftKiotaAbstractions::B ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/getCompatibleHubContentTypes(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/getCompatibleHubContentTypes(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function getCompatibleHubContentTypes + ## Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates – August 2021. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_compatible_hub_content_types_response + ## @return a Fiber of get_compatible_hub_content_types_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::ContentTypes::GetCompatibleHubContentTypes::GetCompatibleHubContentTypesResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::ContentTypes::GetCompatibleHubContentTypes::GetCompatibleHubContentTypesGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function getCompatibleHubContentTypes + ## Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates – August 2021. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_compatible_hub_content_types_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetCompatibleHubContentTypesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function getCompatibleHubContentTypes + # Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates – August 2021. class GetCompatibleHubContentTypesRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -100,6 +111,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/sites/item/lists/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_response.rb b/lib/groups/item/sites/item/lists/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_response.rb deleted file mode 100644 index bcd474bedb..0000000000 --- a/lib/groups/item/sites/item/lists/item/content_types/get_compatible_hub_content_types/get_compatible_hub_content_types_response.rb +++ /dev/null @@ -1,87 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../../../../models/content_type' -require_relative '../../../../../../../groups' -require_relative '../../../../../../item' -require_relative '../../../../../sites' -require_relative '../../../../item' -require_relative '../../../lists' -require_relative '../../item' -require_relative '../content_types' -require_relative './get_compatible_hub_content_types' - -module MicrosoftGraph - module Groups - module Item - module Sites - module Item - module Lists - module Item - module ContentTypes - module GetCompatibleHubContentTypes - class GetCompatibleHubContentTypesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getCompatibleHubContentTypesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_compatible_hub_content_types_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetCompatibleHubContentTypesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a content_type - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/associate_with_hub_sites/associate_with_hub_sites_post_request_body.rb b/lib/groups/item/sites/item/lists/item/content_types/item/associate_with_hub_sites/associate_with_hub_sites_post_request_body.rb index da1bacf10c..13b1c05889 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/item/associate_with_hub_sites/associate_with_hub_sites_post_request_body.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/item/associate_with_hub_sites/associate_with_hub_sites_post_request_body.rb @@ -32,22 +32,22 @@ class AssociateWithHubSitesPostRequestBody # The propagateToExistingLists property @propagate_to_existing_lists ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new associateWithHubSitesPostRequestBody and sets the default values. + ## Instantiates a new AssociateWithHubSitesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/associate_with_hub_sites/associate_with_hub_sites_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/item/associate_with_hub_sites/associate_with_hub_sites_request_builder.rb index 039fa9b8f7..5616eba9e5 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/item/associate_with_hub_sites/associate_with_hub_sites_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/item/associate_with_hub_sites/associate_with_hub_sites_request_builder.rb @@ -35,7 +35,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/associateWithHubSites") end ## - ## Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + ## Associate a published content type present in a content type hub with a list of hub sites. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -46,12 +46,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + ## Associate a published content type present in a content type hub with a list of hub sites. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -59,16 +58,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a associate_with_hub_sites_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssociateWithHubSitesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/base/base_request_builder_escaped.rb b/lib/groups/item/sites/item/lists/item/content_types/item/base/base_request_builder_escaped.rb index fdc09557e9..627f67ee07 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/item/base/base_request_builder_escaped.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/item/base/base_request_builder_escaped.rb @@ -27,13 +27,13 @@ module Base class BaseRequestBuilder_escaped < MicrosoftKiotaAbstractions::BaseRequestBuilder ## - ## Instantiates a new BaseRequestBuilder and sets the default values. + ## Instantiates a new BaseRequestBuilder_escaped and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/base{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/base{?%24expand,%24select}") end ## ## Parent contentType from which this content type is derived. @@ -45,8 +45,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a base_request_builder_escaped + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BaseRequestBuilder_escaped.new(raw_url, @request_adapter) + end ## # Parent contentType from which this content type is derived. diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/base_types/base_types_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/item/base_types/base_types_request_builder.rb index 0e1ee2b944..7e2c561991 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/item/base_types/base_types_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/item/base_types/base_types_request_builder.rb @@ -51,7 +51,7 @@ def by_content_type_id1(content_type_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/baseTypes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/baseTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The collection of content types that are ancestors of this content type. @@ -63,8 +63,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentTypeCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,17 +73,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a base_types_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BaseTypesRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of content types that are ancestors of this content type. diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/base_types/count/count_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/item/base_types/count/count_request_builder.rb index d675f672a2..90796607f6 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/item/base_types/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/item/base_types/count/count_request_builder.rb @@ -34,7 +34,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/baseTypes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/baseTypes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -46,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -57,17 +56,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/base_types/item/content_type_item_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/item/base_types/item/content_type_item_request_builder.rb index 7f876d6087..4f1996571b 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/item/base_types/item/content_type_item_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/item/base_types/item/content_type_item_request_builder.rb @@ -35,7 +35,7 @@ class ContentTypeItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/baseTypes/{contentType%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/baseTypes/{contentType%2Did1}{?%24expand,%24select}") end ## ## The collection of content types that are ancestors of this content type. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_type_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentTypeItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of content types that are ancestors of this content type. diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/column_links/column_links_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/item/column_links/column_links_request_builder.rb index 2f0ecdce86..33e1caf9bc 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/item/column_links/column_links_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/item/column_links/column_links_request_builder.rb @@ -52,7 +52,7 @@ def by_column_link_id(column_link_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnLinks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnLinks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The collection of columns that are required by this content type. @@ -64,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnLinkCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,8 +79,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnLink.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,15 +89,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -111,17 +109,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_links_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnLinksRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of columns that are required by this content type. diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/column_links/count/count_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/item/column_links/count/count_request_builder.rb index 26b75628b0..373af9d4f4 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/item/column_links/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/item/column_links/count/count_request_builder.rb @@ -34,7 +34,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnLinks/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnLinks/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -46,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -57,17 +56,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/column_links/item/column_link_item_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/item/column_links/item/column_link_item_request_builder.rb index bcdf720ad3..a5872a46ee 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/item/column_links/item/column_link_item_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/item/column_links/item/column_link_item_request_builder.rb @@ -35,7 +35,7 @@ class ColumnLinkItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnLinks/{columnLink%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnLinks/{columnLink%2Did}{?%24expand,%24select}") end ## ## Delete navigation property columnLinks for groups @@ -47,8 +47,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnLink.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnLink.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,13 +85,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -104,15 +102,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,17 +122,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_link_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnLinkItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of columns that are required by this content type. diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/column_positions/column_positions_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/item/column_positions/column_positions_request_builder.rb index 225ab218db..abea30803c 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/item/column_positions/column_positions_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/item/column_positions/column_positions_request_builder.rb @@ -51,7 +51,7 @@ def by_column_definition_id(column_definition_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnPositions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnPositions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Column order information in a content type. @@ -63,8 +63,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinitionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,17 +73,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_positions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnPositionsRequestBuilder.new(raw_url, @request_adapter) + end ## # Column order information in a content type. diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/column_positions/count/count_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/item/column_positions/count/count_request_builder.rb index eb2b573324..98f27b4a71 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/item/column_positions/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/item/column_positions/count/count_request_builder.rb @@ -34,7 +34,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnPositions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnPositions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -46,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -57,17 +56,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/column_positions/item/column_definition_item_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/item/column_positions/item/column_definition_item_request_builder.rb index cb8d82f36b..66d27ad1f7 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/item/column_positions/item/column_definition_item_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/item/column_positions/item/column_definition_item_request_builder.rb @@ -35,7 +35,7 @@ class ColumnDefinitionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReque ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnPositions/{columnDefinition%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnPositions/{columnDefinition%2Did}{?%24expand,%24select}") end ## ## Column order information in a content type. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_definition_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnDefinitionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Column order information in a content type. diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/columns/columns_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/item/columns/columns_request_builder.rb index 6d37e65a4e..ff5f7aebbb 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/item/columns/columns_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/item/columns/columns_request_builder.rb @@ -52,10 +52,10 @@ def by_column_definition_id(column_definition_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + ## The collection of column definitions for this content type. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of column_definition_collection_response ## @@ -64,12 +64,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinitionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + ## Create new navigation property to columns for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of column_definition @@ -80,30 +79,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + ## The collection of column definitions for this content type. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + ## Create new navigation property to columns for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -111,20 +109,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + # The collection of column definitions for this content type. class ColumnsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/columns/count/count_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/item/columns/count/count_request_builder.rb index 4eb4f8c8fa..eb4d8f1ca1 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/item/columns/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/item/columns/count/count_request_builder.rb @@ -34,7 +34,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -46,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -57,17 +56,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/columns/item/column_definition_item_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/item/columns/item/column_definition_item_request_builder.rb index 6ea4612182..c664fad681 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/item/columns/item/column_definition_item_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/item/columns/item/column_definition_item_request_builder.rb @@ -41,10 +41,10 @@ def source_column() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}{?%24expand,%24select}") end ## - ## Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + ## Delete navigation property columns for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -53,12 +53,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + ## The collection of column definitions for this content type. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of column_definition ## @@ -67,12 +66,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + ## Update the navigation property columns in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of column_definition @@ -83,46 +81,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + ## Delete navigation property columns for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + ## The collection of column definitions for this content type. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + ## Update the navigation property columns in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -130,20 +128,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a column_definition_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnDefinitionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + # The collection of column definitions for this content type. class ColumnDefinitionItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/columns/item/source_column/source_column_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/item/columns/item/source_column/source_column_request_builder.rb index 5abe0ef11b..c162a3bb18 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/item/columns/item/source_column/source_column_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/item/columns/item/source_column/source_column_request_builder.rb @@ -37,7 +37,7 @@ class SourceColumnRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilde ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%24expand,%24select}") end ## ## The source column for the content type column. @@ -49,8 +49,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -60,17 +59,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a source_column_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SourceColumnRequestBuilder.new(raw_url, @request_adapter) + end ## # The source column for the content type column. diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/content_type_item_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/item/content_type_item_request_builder.rb index 7fb62ba1f2..ee2102ea08 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/item/content_type_item_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/item/content_type_item_request_builder.rb @@ -91,7 +91,7 @@ def unpublish() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}{?%24expand,%24select}") end ## ## Delete navigation property contentTypes for groups @@ -103,8 +103,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -117,8 +116,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -133,8 +131,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -144,13 +141,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -160,15 +158,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -180,17 +178,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_type_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentTypeItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of content types present in this list. diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/copy_to_default_content_location/copy_to_default_content_location_post_request_body.rb b/lib/groups/item/sites/item/lists/item/content_types/item/copy_to_default_content_location/copy_to_default_content_location_post_request_body.rb index c41e3f9011..f4eb078da7 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/item/copy_to_default_content_location/copy_to_default_content_location_post_request_body.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/item/copy_to_default_content_location/copy_to_default_content_location_post_request_body.rb @@ -33,22 +33,22 @@ class CopyToDefaultContentLocationPostRequestBody # The sourceFile property @source_file ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToDefaultContentLocationPostRequestBody and sets the default values. + ## Instantiates a new CopyToDefaultContentLocationPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/copy_to_default_content_location/copy_to_default_content_location_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/item/copy_to_default_content_location/copy_to_default_content_location_request_builder.rb index 04590b6f32..340bb8b11d 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/item/copy_to_default_content_location/copy_to_default_content_location_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/item/copy_to_default_content_location/copy_to_default_content_location_request_builder.rb @@ -35,7 +35,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/copyToDefaultContentLocation") end ## - ## Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + ## Copy a file to a default content location in a content type. The file can then be added as a default file or template via a POST operation. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -46,12 +46,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + ## Copy a file to a default content location in a content type. The file can then be added as a default file or template via a POST operation. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -59,16 +58,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_default_content_location_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToDefaultContentLocationRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/is_published/is_published.rb b/lib/groups/item/sites/item/lists/item/content_types/item/is_published/is_published.rb index b926a8ba4d..ee45196a75 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/item/is_published/is_published.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/item/is_published/is_published.rb @@ -1 +1 @@ -require_relative 'is_published_response' +require_relative 'is_published_get_response' diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/is_published/is_published_get_response.rb b/lib/groups/item/sites/item/lists/item/content_types/item/is_published/is_published_get_response.rb new file mode 100644 index 0000000000..ef1358eb7c --- /dev/null +++ b/lib/groups/item/sites/item/lists/item/content_types/item/is_published/is_published_get_response.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../groups' +require_relative '../../../../../../../item' +require_relative '../../../../../../sites' +require_relative '../../../../../item' +require_relative '../../../../lists' +require_relative '../../../item' +require_relative '../../content_types' +require_relative '../item' +require_relative './is_published' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Lists + module Item + module ContentTypes + module Item + module IsPublished + class IsPublishedGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new IsPublishedGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a is_published_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return IsPublishedGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a boolean + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/is_published/is_published_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/item/is_published/is_published_request_builder.rb index b6b6dc6e0e..513061c0e0 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/item/is_published/is_published_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/item/is_published/is_published_request_builder.rb @@ -35,36 +35,44 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/isPublished()") end ## - ## Invoke function isPublished + ## Check the publishing status of a contentType in a content type hub site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of is_published_response + ## @return a Fiber of is_published_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::ContentTypes::Item::IsPublished::IsPublishedResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::ContentTypes::Item::IsPublished::IsPublishedGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function isPublished + ## Check the publishing status of a contentType in a content type hub site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a is_published_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IsPublishedRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/is_published/is_published_response.rb b/lib/groups/item/sites/item/lists/item/content_types/item/is_published/is_published_response.rb deleted file mode 100644 index 617dccca87..0000000000 --- a/lib/groups/item/sites/item/lists/item/content_types/item/is_published/is_published_response.rb +++ /dev/null @@ -1,106 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../groups' -require_relative '../../../../../../../item' -require_relative '../../../../../../sites' -require_relative '../../../../../item' -require_relative '../../../../lists' -require_relative '../../../item' -require_relative '../../content_types' -require_relative '../item' -require_relative './is_published' - -module MicrosoftGraph - module Groups - module Item - module Sites - module Item - module Lists - module Item - module ContentTypes - module Item - module IsPublished - class IsPublishedResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new isPublishedResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a is_published_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return IsPublishedResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_boolean_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a boolean - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/publish/publish_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/item/publish/publish_request_builder.rb index 375e5eae6d..06679a7e45 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/item/publish/publish_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/item/publish/publish_request_builder.rb @@ -35,7 +35,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/publish") end ## - ## Publishes a [contentType][] present in the content type hub site. + ## Publishes a contentType present in the content type hub site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -44,26 +44,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Publishes a [contentType][] present in the content type hub site. + ## Publishes a contentType present in the content type hub site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a publish_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PublishRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/lists/item/content_types/item/unpublish/unpublish_request_builder.rb b/lib/groups/item/sites/item/lists/item/content_types/item/unpublish/unpublish_request_builder.rb index 074c6e2ca3..a5186a09a9 100644 --- a/lib/groups/item/sites/item/lists/item/content_types/item/unpublish/unpublish_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/content_types/item/unpublish/unpublish_request_builder.rb @@ -35,7 +35,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/unpublish") end ## - ## Unpublish a [contentType][] from a content type hub site. + ## Unpublish a contentType from a content type hub site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -44,26 +44,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Unpublish a [contentType][] from a content type hub site. + ## Unpublish a contentType from a content type hub site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unpublish_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnpublishRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/lists/item/created_by_user/created_by_user_request_builder.rb b/lib/groups/item/sites/item/lists/item/created_by_user/created_by_user_request_builder.rb index b2dac2d38b..9825fccab7 100644 --- a/lib/groups/item/sites/item/lists/item/created_by_user/created_by_user_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/created_by_user/created_by_user_request_builder.rb @@ -10,6 +10,7 @@ require_relative '../item' require_relative './created_by_user' require_relative './mailbox_settings/mailbox_settings_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' module MicrosoftGraph module Groups @@ -29,13 +30,18 @@ def mailbox_settings() return MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::CreatedByUser::MailboxSettings::MailboxSettingsRequestBuilder.new(@path_parameters, @request_adapter) end ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::CreatedByUser::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Instantiates a new CreatedByUserRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/createdByUser{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/createdByUser{?%24expand,%24select}") end ## ## Identity of the user who created the item. Read-only. @@ -47,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a created_by_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreatedByUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Identity of the user who created the item. Read-only. diff --git a/lib/groups/item/sites/item/lists/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb b/lib/groups/item/sites/item/lists/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb index 72a2a4d497..d61b90d6f3 100644 --- a/lib/groups/item/sites/item/lists/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb @@ -31,10 +31,10 @@ class MailboxSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/createdByUser/mailboxSettings{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}") end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of mailbox_settings ## @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -59,26 +58,25 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,20 +88,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mailbox_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MailboxSettingsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. class MailboxSettingsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/lists/item/created_by_user/service_provisioning_errors/count/count.rb b/lib/groups/item/sites/item/lists/item/created_by_user/service_provisioning_errors/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/lists/item/created_by_user/service_provisioning_errors/count/count_request_builder.rb b/lib/groups/item/sites/item/lists/item/created_by_user/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..b454570577 --- /dev/null +++ b/lib/groups/item/sites/item/lists/item/created_by_user/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,115 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../groups' +require_relative '../../../../../../../item' +require_relative '../../../../../../sites' +require_relative '../../../../../item' +require_relative '../../../../lists' +require_relative '../../../item' +require_relative '../../created_by_user' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Lists + module Item + module CreatedByUser + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/lists/item/created_by_user/service_provisioning_errors/service_provisioning_errors.rb b/lib/groups/item/sites/item/lists/item/created_by_user/service_provisioning_errors/service_provisioning_errors.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/lists/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/groups/item/sites/item/lists/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..79a9225f30 --- /dev/null +++ b/lib/groups/item/sites/item/lists/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,149 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../models/service_provisioning_error_collection_response' +require_relative '../../../../../../../groups' +require_relative '../../../../../../item' +require_relative '../../../../../sites' +require_relative '../../../../item' +require_relative '../../../lists' +require_relative '../../item' +require_relative '../created_by_user' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Lists + module Item + module CreatedByUser + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\lists\{list-id}\createdByUser\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::CreatedByUser::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/lists/item/drive/drive_request_builder.rb b/lib/groups/item/sites/item/lists/item/drive/drive_request_builder.rb index 5e96e2e4dd..609086b8af 100644 --- a/lib/groups/item/sites/item/lists/item/drive/drive_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/drive/drive_request_builder.rb @@ -29,10 +29,10 @@ class DriveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/drive{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/drive{?%24expand,%24select}") end ## - ## Only present on document libraries. Allows access to the list as a [drive][] resource with [driveItems][driveItem]. + ## Allows access to the list as a drive resource with driveItems. Only present on document libraries. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of drive ## @@ -41,31 +41,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Drive.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Only present on document libraries. Allows access to the list as a [drive][] resource with [driveItems][driveItem]. + ## Allows access to the list as a drive resource with driveItems. Only present on document libraries. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a drive_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DriveRequestBuilder.new(raw_url, @request_adapter) + end ## - # Only present on document libraries. Allows access to the list as a [drive][] resource with [driveItems][driveItem]. + # Allows access to the list as a drive resource with driveItems. Only present on document libraries. class DriveRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/lists/item/items/delta/delta.rb b/lib/groups/item/sites/item/lists/item/items/delta/delta.rb new file mode 100644 index 0000000000..8a3dc08b72 --- /dev/null +++ b/lib/groups/item/sites/item/lists/item/items/delta/delta.rb @@ -0,0 +1 @@ +require_relative 'delta_get_response' diff --git a/lib/groups/item/sites/item/lists/item/items/delta/delta_get_response.rb b/lib/groups/item/sites/item/lists/item/items/delta/delta_get_response.rb new file mode 100644 index 0000000000..21bc76dcdb --- /dev/null +++ b/lib/groups/item/sites/item/lists/item/items/delta/delta_get_response.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/base_delta_function_response' +require_relative '../../../../../../../../models/list_item' +require_relative '../../../../../../../groups' +require_relative '../../../../../../item' +require_relative '../../../../../sites' +require_relative '../../../../item' +require_relative '../../../lists' +require_relative '../../item' +require_relative '../items' +require_relative './delta' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Lists + module Item + module Items + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ListItem.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a list_item + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/lists/item/items/delta/delta_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/delta/delta_request_builder.rb new file mode 100644 index 0000000000..3d95d753d0 --- /dev/null +++ b/lib/groups/item/sites/item/lists/item/items/delta/delta_request_builder.rb @@ -0,0 +1,142 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../groups' +require_relative '../../../../../../item' +require_relative '../../../../../sites' +require_relative '../../../../item' +require_relative '../../../lists' +require_relative '../../item' +require_relative '../items' +require_relative './delta' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Lists + module Item + module Items + module Delta + ## + # Provides operations to call the delta method. + class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeltaRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get newly created, updated, or deleted list items without having to perform a full read of the entire items collection. Your app begins by calling delta without any parameters.The service starts enumerating the hierarchy of the list, returning pages of items, and either an @odata.nextLink or an @odata.deltaLink.Your app should continue calling with the @odata.nextLink until you see an @odata.deltaLink returned. After you received all the changes, you can apply them to your local state.To check for changes in the future, call delta again with the @odata.deltaLink from the previous response. The delta feed shows the latest state for each item, not each change. If an item was renamed twice, it only shows up once, with its latest name.The same item might appear more than once in a delta feed, for various reasons. You should use the last occurrence you see. Items with this property should be removed from your local state. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of delta_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::Items::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get newly created, updated, or deleted list items without having to perform a full read of the entire items collection. Your app begins by calling delta without any parameters.The service starts enumerating the hierarchy of the list, returning pages of items, and either an @odata.nextLink or an @odata.deltaLink.Your app should continue calling with the @odata.nextLink until you see an @odata.deltaLink returned. After you received all the changes, you can apply them to your local state.To check for changes in the future, call delta again with the @odata.deltaLink from the previous response. The delta feed shows the latest state for each item, not each change. If an item was renamed twice, it only shows up once, with its latest name.The same item might appear more than once in a delta feed, for various reasons. You should use the last occurrence you see. Items with this property should be removed from your local state. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get newly created, updated, or deleted list items without having to perform a full read of the entire items collection. Your app begins by calling delta without any parameters.The service starts enumerating the hierarchy of the list, returning pages of items, and either an @odata.nextLink or an @odata.deltaLink.Your app should continue calling with the @odata.nextLink until you see an @odata.deltaLink returned. After you received all the changes, you can apply them to your local state.To check for changes in the future, call delta again with the @odata.deltaLink from the previous response. The delta feed shows the latest state for each item, not each change. If an item was renamed twice, it only shows up once, with its latest name.The same item might appear more than once in a delta feed, for various reasons. You should use the last occurrence you see. Items with this property should be removed from your local state. + class DeltaRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/lists/item/items/delta_with_token/delta_with_token.rb b/lib/groups/item/sites/item/lists/item/items/delta_with_token/delta_with_token.rb new file mode 100644 index 0000000000..c470085280 --- /dev/null +++ b/lib/groups/item/sites/item/lists/item/items/delta_with_token/delta_with_token.rb @@ -0,0 +1 @@ +require_relative 'delta_with_token_get_response' diff --git a/lib/groups/item/sites/item/lists/item/items/delta_with_token/delta_with_token_get_response.rb b/lib/groups/item/sites/item/lists/item/items/delta_with_token/delta_with_token_get_response.rb new file mode 100644 index 0000000000..d09298f73c --- /dev/null +++ b/lib/groups/item/sites/item/lists/item/items/delta_with_token/delta_with_token_get_response.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/base_delta_function_response' +require_relative '../../../../../../../../models/list_item' +require_relative '../../../../../../../groups' +require_relative '../../../../../../item' +require_relative '../../../../../sites' +require_relative '../../../../item' +require_relative '../../../lists' +require_relative '../../item' +require_relative '../items' +require_relative './delta_with_token' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Lists + module Item + module Items + module DeltaWithToken + class DeltaWithTokenGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaWithTokenGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_with_token_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaWithTokenGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ListItem.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a list_item + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/lists/item/items/delta_with_token/delta_with_token_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/delta_with_token/delta_with_token_request_builder.rb new file mode 100644 index 0000000000..4da5786dea --- /dev/null +++ b/lib/groups/item/sites/item/lists/item/items/delta_with_token/delta_with_token_request_builder.rb @@ -0,0 +1,143 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../groups' +require_relative '../../../../../../item' +require_relative '../../../../../sites' +require_relative '../../../../item' +require_relative '../../../lists' +require_relative '../../item' +require_relative '../items' +require_relative './delta_with_token' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Lists + module Item + module Items + module DeltaWithToken + ## + # Provides operations to call the delta method. + class DeltaWithTokenRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DeltaWithTokenRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param token Usage: token='{token}' + ## @return a void + ## + def initialize(path_parameters, request_adapter, token=nil) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/delta(token='{token}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Invoke function delta + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of delta_with_token_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::Items::DeltaWithToken::DeltaWithTokenGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function delta + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_with_token_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaWithTokenRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Invoke function delta + class DeltaWithTokenRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/lists/item/items/item/analytics/analytics_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/analytics/analytics_request_builder.rb index c510830297..2b07a3832c 100644 --- a/lib/groups/item/sites/item/lists/item/items/item/analytics/analytics_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/items/item/analytics/analytics_request_builder.rb @@ -33,7 +33,7 @@ class AnalyticsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/analytics{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/analytics{?%24expand,%24select}") end ## ## Analytics about the view activities that took place on this item. @@ -45,8 +45,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ItemAnalytics.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a analytics_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AnalyticsRequestBuilder.new(raw_url, @request_adapter) + end ## # Analytics about the view activities that took place on this item. diff --git a/lib/groups/item/sites/item/lists/item/items/item/create_link/create_link.rb b/lib/groups/item/sites/item/lists/item/items/item/create_link/create_link.rb new file mode 100644 index 0000000000..27eac25458 --- /dev/null +++ b/lib/groups/item/sites/item/lists/item/items/item/create_link/create_link.rb @@ -0,0 +1 @@ +require_relative 'create_link_post_request_body' diff --git a/lib/groups/item/sites/item/lists/item/items/item/create_link/create_link_post_request_body.rb b/lib/groups/item/sites/item/lists/item/items/item/create_link/create_link_post_request_body.rb new file mode 100644 index 0000000000..afc0eca8f3 --- /dev/null +++ b/lib/groups/item/sites/item/lists/item/items/item/create_link/create_link_post_request_body.rb @@ -0,0 +1,248 @@ +require 'date' +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/drive_recipient' +require_relative '../../../../../../../../groups' +require_relative '../../../../../../../item' +require_relative '../../../../../../sites' +require_relative '../../../../../item' +require_relative '../../../../lists' +require_relative '../../../item' +require_relative '../../items' +require_relative '../item' +require_relative './create_link' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Lists + module Item + module Items + module Item + module CreateLink + class CreateLinkPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The expirationDateTime property + @expiration_date_time + ## + # The message property + @message + ## + # The password property + @password + ## + # The recipients property + @recipients + ## + # The retainInheritedPermissions property + @retain_inherited_permissions + ## + # The scope property + @scope + ## + # The sendNotification property + @send_notification + ## + # The type property + @type + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new CreateLinkPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a create_link_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return CreateLinkPostRequestBody.new + end + ## + ## Gets the expirationDateTime property value. The expirationDateTime property + ## @return a date_time + ## + def expiration_date_time + return @expiration_date_time + end + ## + ## Sets the expirationDateTime property value. The expirationDateTime property + ## @param value Value to set for the expirationDateTime property. + ## @return a void + ## + def expiration_date_time=(value) + @expiration_date_time = value + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "expirationDateTime" => lambda {|n| @expiration_date_time = n.get_date_time_value() }, + "message" => lambda {|n| @message = n.get_string_value() }, + "password" => lambda {|n| @password = n.get_string_value() }, + "recipients" => lambda {|n| @recipients = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DriveRecipient.create_from_discriminator_value(pn) }) }, + "retainInheritedPermissions" => lambda {|n| @retain_inherited_permissions = n.get_boolean_value() }, + "scope" => lambda {|n| @scope = n.get_string_value() }, + "sendNotification" => lambda {|n| @send_notification = n.get_boolean_value() }, + "type" => lambda {|n| @type = n.get_string_value() }, + } + end + ## + ## Gets the message property value. The message property + ## @return a string + ## + def message + return @message + end + ## + ## Sets the message property value. The message property + ## @param value Value to set for the message property. + ## @return a void + ## + def message=(value) + @message = value + end + ## + ## Gets the password property value. The password property + ## @return a string + ## + def password + return @password + end + ## + ## Sets the password property value. The password property + ## @param value Value to set for the password property. + ## @return a void + ## + def password=(value) + @password = value + end + ## + ## Gets the recipients property value. The recipients property + ## @return a drive_recipient + ## + def recipients + return @recipients + end + ## + ## Sets the recipients property value. The recipients property + ## @param value Value to set for the recipients property. + ## @return a void + ## + def recipients=(value) + @recipients = value + end + ## + ## Gets the retainInheritedPermissions property value. The retainInheritedPermissions property + ## @return a boolean + ## + def retain_inherited_permissions + return @retain_inherited_permissions + end + ## + ## Sets the retainInheritedPermissions property value. The retainInheritedPermissions property + ## @param value Value to set for the retainInheritedPermissions property. + ## @return a void + ## + def retain_inherited_permissions=(value) + @retain_inherited_permissions = value + end + ## + ## Gets the scope property value. The scope property + ## @return a string + ## + def scope + return @scope + end + ## + ## Sets the scope property value. The scope property + ## @param value Value to set for the scope property. + ## @return a void + ## + def scope=(value) + @scope = value + end + ## + ## Gets the sendNotification property value. The sendNotification property + ## @return a boolean + ## + def send_notification + return @send_notification + end + ## + ## Sets the sendNotification property value. The sendNotification property + ## @param value Value to set for the sendNotification property. + ## @return a void + ## + def send_notification=(value) + @send_notification = value + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_date_time_value("expirationDateTime", @expiration_date_time) + writer.write_string_value("message", @message) + writer.write_string_value("password", @password) + writer.write_collection_of_object_values("recipients", @recipients) + writer.write_boolean_value("retainInheritedPermissions", @retain_inherited_permissions) + writer.write_string_value("scope", @scope) + writer.write_boolean_value("sendNotification", @send_notification) + writer.write_string_value("type", @type) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the type property value. The type property + ## @return a string + ## + def type + return @type + end + ## + ## Sets the type property value. The type property + ## @param value Value to set for the type property. + ## @return a void + ## + def type=(value) + @type = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/lists/item/items/item/create_link/create_link_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/create_link/create_link_request_builder.rb new file mode 100644 index 0000000000..c79592f5c2 --- /dev/null +++ b/lib/groups/item/sites/item/lists/item/items/item/create_link/create_link_request_builder.rb @@ -0,0 +1,92 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/permission' +require_relative '../../../../../../../../groups' +require_relative '../../../../../../../item' +require_relative '../../../../../../sites' +require_relative '../../../../../item' +require_relative '../../../../lists' +require_relative '../../../item' +require_relative '../../items' +require_relative '../item' +require_relative './create_link' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Lists + module Item + module Items + module Item + module CreateLink + ## + # Provides operations to call the createLink method. + class CreateLinkRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CreateLinkRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createLink") + end + ## + ## Invoke action createLink + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of permission + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Permission.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action createLink + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a create_link_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreateLinkRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/lists/item/items/item/created_by_user/created_by_user_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/created_by_user/created_by_user_request_builder.rb index 172f28d6e7..13fbbe07a5 100644 --- a/lib/groups/item/sites/item/lists/item/items/item/created_by_user/created_by_user_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/items/item/created_by_user/created_by_user_request_builder.rb @@ -12,6 +12,7 @@ require_relative '../item' require_relative './created_by_user' require_relative './mailbox_settings/mailbox_settings_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' module MicrosoftGraph module Groups @@ -33,13 +34,18 @@ def mailbox_settings() return MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::Items::Item::CreatedByUser::MailboxSettings::MailboxSettingsRequestBuilder.new(@path_parameters, @request_adapter) end ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::Items::Item::CreatedByUser::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Instantiates a new CreatedByUserRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser{?%24expand,%24select}") end ## ## Identity of the user who created the item. Read-only. @@ -51,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a created_by_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreatedByUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Identity of the user who created the item. Read-only. diff --git a/lib/groups/item/sites/item/lists/item/items/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb index 1424b30aba..dbda65d1fc 100644 --- a/lib/groups/item/sites/item/lists/item/items/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/items/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb @@ -35,10 +35,10 @@ class MailboxSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser/mailboxSettings{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}") end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of mailbox_settings ## @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,26 +62,25 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,20 +92,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mailbox_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MailboxSettingsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. class MailboxSettingsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/lists/item/items/item/created_by_user/service_provisioning_errors/count/count.rb b/lib/groups/item/sites/item/lists/item/items/item/created_by_user/service_provisioning_errors/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/lists/item/items/item/created_by_user/service_provisioning_errors/count/count_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/created_by_user/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..2b2078495f --- /dev/null +++ b/lib/groups/item/sites/item/lists/item/items/item/created_by_user/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,121 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../groups' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../sites' +require_relative '../../../../../../../item' +require_relative '../../../../../../lists' +require_relative '../../../../../item' +require_relative '../../../../items' +require_relative '../../../item' +require_relative '../../created_by_user' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Lists + module Item + module Items + module Item + module CreatedByUser + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/lists/item/items/item/created_by_user/service_provisioning_errors/service_provisioning_errors.rb b/lib/groups/item/sites/item/lists/item/items/item/created_by_user/service_provisioning_errors/service_provisioning_errors.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/lists/item/items/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..9e0a00740d --- /dev/null +++ b/lib/groups/item/sites/item/lists/item/items/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,155 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/service_provisioning_error_collection_response' +require_relative '../../../../../../../../../groups' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../sites' +require_relative '../../../../../../item' +require_relative '../../../../../lists' +require_relative '../../../../item' +require_relative '../../../items' +require_relative '../../item' +require_relative '../created_by_user' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Lists + module Item + module Items + module Item + module CreatedByUser + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\lists\{list-id}\items\{listItem-id}\createdByUser\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::Items::Item::CreatedByUser::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/lists/item/items/item/document_set_versions/count/count_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/document_set_versions/count/count_request_builder.rb index 76053e1d47..9eb81dc6cf 100644 --- a/lib/groups/item/sites/item/lists/item/items/item/document_set_versions/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/items/item/document_set_versions/count/count_request_builder.rb @@ -34,7 +34,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -46,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -57,17 +56,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/lists/item/items/item/document_set_versions/document_set_versions_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/document_set_versions/document_set_versions_request_builder.rb index 980358a92b..ae7df8a9e1 100644 --- a/lib/groups/item/sites/item/lists/item/items/item/document_set_versions/document_set_versions_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/items/item/document_set_versions/document_set_versions_request_builder.rb @@ -52,10 +52,10 @@ def by_document_set_version_id(document_set_version_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get a list of the versions of a document set item in a list. + ## Version information for a document set version created by a user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of document_set_version_collection_response ## @@ -64,12 +64,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DocumentSetVersionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new version of a document set item in a list. + ## Create new navigation property to documentSetVersions for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of document_set_version @@ -80,30 +79,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DocumentSetVersion.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get a list of the versions of a document set item in a list. + ## Version information for a document set version created by a user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new version of a document set item in a list. + ## Create new navigation property to documentSetVersions for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -111,20 +109,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a document_set_versions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DocumentSetVersionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a list of the versions of a document set item in a list. + # Version information for a document set version created by a user. class DocumentSetVersionsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/lists/item/items/item/document_set_versions/item/document_set_version_item_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/document_set_versions/item/document_set_version_item_request_builder.rb index d5a2271f6a..4dc6ac8337 100644 --- a/lib/groups/item/sites/item/lists/item/items/item/document_set_versions/item/document_set_version_item_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/items/item/document_set_versions/item/document_set_version_item_request_builder.rb @@ -47,10 +47,10 @@ def restore() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}{?%24expand,%24select}") end ## - ## Delete a version of a document set in a list. + ## Delete navigation property documentSetVersions for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -59,12 +59,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read the properties and relationships of a documentSetVersion object. + ## Version information for a document set version created by a user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of document_set_version ## @@ -73,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DocumentSetVersion.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,42 +87,42 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DocumentSetVersion.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a version of a document set in a list. + ## Delete navigation property documentSetVersions for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read the properties and relationships of a documentSetVersion object. + ## Version information for a document set version created by a user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,20 +134,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a document_set_version_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DocumentSetVersionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a documentSetVersion object. + # Version information for a document set version created by a user. class DocumentSetVersionItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/lists/item/items/item/document_set_versions/item/fields/fields_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/document_set_versions/item/fields/fields_request_builder.rb index 10972ad803..968392a68d 100644 --- a/lib/groups/item/sites/item/lists/item/items/item/document_set_versions/item/fields/fields_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/items/item/document_set_versions/item/fields/fields_request_builder.rb @@ -37,7 +37,7 @@ class FieldsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}/fields{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}/fields{?%24expand,%24select}") end ## ## Delete navigation property fields for groups @@ -49,8 +49,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::FieldValueSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,8 +77,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::FieldValueSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,13 +87,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -106,15 +104,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,17 +124,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a fields_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FieldsRequestBuilder.new(raw_url, @request_adapter) + end ## # A collection of the fields and values for this version of the list item. diff --git a/lib/groups/item/sites/item/lists/item/items/item/document_set_versions/item/restore/restore_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/document_set_versions/item/restore/restore_request_builder.rb index cf43b827ca..065f0f54a8 100644 --- a/lib/groups/item/sites/item/lists/item/items/item/document_set_versions/item/restore/restore_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/items/item/document_set_versions/item/restore/restore_request_builder.rb @@ -48,8 +48,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,15 +58,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a restore_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RestoreRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/lists/item/items/item/drive_item/content/content_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/drive_item/content/content_request_builder.rb index cdea99c099..e677237c03 100644 --- a/lib/groups/item/sites/item/lists/item/items/item/drive_item/content/content_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/items/item/drive_item/content/content_request_builder.rb @@ -35,7 +35,20 @@ class ContentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/driveItem/content") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/driveItem/content{?%24format*}") + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) end ## ## The content stream, if the item represents a file. @@ -47,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -63,8 +75,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,15 +83,34 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -92,17 +122,49 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The content stream, if the item represents a file. + class ContentRequestBuilderGetQueryParameters + + ## + # Format of the content + attr_accessor :format + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "format" + return "%24format" + else + return original_name + end + end + end end end end diff --git a/lib/groups/item/sites/item/lists/item/items/item/drive_item/drive_item_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/drive_item/drive_item_request_builder.rb index 6d5a19cb63..5d04fa75d2 100644 --- a/lib/groups/item/sites/item/lists/item/items/item/drive_item/drive_item_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/items/item/drive_item/drive_item_request_builder.rb @@ -39,10 +39,10 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/driveItem{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/driveItem{?%24expand,%24select}") end ## - ## For document libraries, the driveItem relationship exposes the listItem as a [driveItem][] + ## For document libraries, the driveItem relationship exposes the listItem as a driveItem ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of drive_item ## @@ -51,31 +51,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## - ## For document libraries, the driveItem relationship exposes the listItem as a [driveItem][] + ## For document libraries, the driveItem relationship exposes the listItem as a driveItem ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a drive_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DriveItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # For document libraries, the driveItem relationship exposes the listItem as a [driveItem][] + # For document libraries, the driveItem relationship exposes the listItem as a driveItem class DriveItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/lists/item/items/item/fields/fields_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/fields/fields_request_builder.rb index b7a33c697a..57e5914254 100644 --- a/lib/groups/item/sites/item/lists/item/items/item/fields/fields_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/items/item/fields/fields_request_builder.rb @@ -33,7 +33,7 @@ class FieldsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/fields{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/fields{?%24expand,%24select}") end ## ## Delete navigation property fields for groups @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,12 +58,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::FieldValueSet.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties on a [listItem][]. + ## Update the navigation property fields in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of field_value_set @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::FieldValueSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,13 +83,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -102,19 +100,19 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties on a [listItem][]. + ## Update the navigation property fields in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -122,17 +120,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a fields_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FieldsRequestBuilder.new(raw_url, @request_adapter) + end ## # The values of the columns set on this list item. diff --git a/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval/get_activities_by_interval.rb b/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval/get_activities_by_interval.rb index 392eb95c99..ab461e5b20 100644 --- a/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval/get_activities_by_interval.rb +++ b/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval/get_activities_by_interval.rb @@ -1 +1 @@ -require_relative 'get_activities_by_interval_response' +require_relative 'get_activities_by_interval_get_response' diff --git a/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval/get_activities_by_interval_get_response.rb b/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval/get_activities_by_interval_get_response.rb new file mode 100644 index 0000000000..026202c130 --- /dev/null +++ b/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval/get_activities_by_interval_get_response.rb @@ -0,0 +1,90 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../../../../models/item_activity_stat' +require_relative '../../../../../../../../groups' +require_relative '../../../../../../../item' +require_relative '../../../../../../sites' +require_relative '../../../../../item' +require_relative '../../../../lists' +require_relative '../../../item' +require_relative '../../items' +require_relative '../item' +require_relative './get_activities_by_interval' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Lists + module Item + module Items + module Item + module GetActivitiesByInterval + class GetActivitiesByIntervalGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetActivitiesByIntervalGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_activities_by_interval_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetActivitiesByIntervalGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a item_activity_stat + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval/get_activities_by_interval_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval/get_activities_by_interval_request_builder.rb index f74f5aeba3..bc7544d7cd 100644 --- a/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval/get_activities_by_interval_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval/get_activities_by_interval_request_builder.rb @@ -32,21 +32,20 @@ class GetActivitiesByIntervalRequestBuilder < MicrosoftKiotaAbstractions::BaseRe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/getActivitiesByInterval(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/getActivitiesByInterval(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Invoke function getActivitiesByInterval ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_activities_by_interval_response + ## @return a Fiber of get_activities_by_interval_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::Items::Item::GetActivitiesByInterval::GetActivitiesByIntervalResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::Items::Item::GetActivitiesByInterval::GetActivitiesByIntervalGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function getActivitiesByInterval @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_activities_by_interval_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetActivitiesByIntervalRequestBuilder.new(raw_url, @request_adapter) + end ## # Invoke function getActivitiesByInterval @@ -75,6 +83,9 @@ class GetActivitiesByIntervalRequestBuilderGetQueryParameters # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -102,6 +113,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval/get_activities_by_interval_response.rb b/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval/get_activities_by_interval_response.rb deleted file mode 100644 index fa45f6cd84..0000000000 --- a/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval/get_activities_by_interval_response.rb +++ /dev/null @@ -1,90 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../../../../../models/item_activity_stat' -require_relative '../../../../../../../../groups' -require_relative '../../../../../../../item' -require_relative '../../../../../../sites' -require_relative '../../../../../item' -require_relative '../../../../lists' -require_relative '../../../item' -require_relative '../../items' -require_relative '../item' -require_relative './get_activities_by_interval' - -module MicrosoftGraph - module Groups - module Item - module Sites - module Item - module Lists - module Item - module Items - module Item - module GetActivitiesByInterval - class GetActivitiesByIntervalResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getActivitiesByIntervalResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_activities_by_interval_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetActivitiesByIntervalResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a item_activity_stat - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/dab1c2feb9ecf2d349721478e4ff8fe9c46b97a0c44110851b2b17a08d22383e.rb b/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/dab1c2feb9ecf2d349721478e4ff8fe9c46b97a0c44110851b2b17a08d22383e.rb index f40bc18de0..c01769f440 100644 --- a/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/dab1c2feb9ecf2d349721478e4ff8fe9c46b97a0c44110851b2b17a08d22383e.rb +++ b/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/dab1c2feb9ecf2d349721478e4ff8fe9c46b97a0c44110851b2b17a08d22383e.rb @@ -35,21 +35,20 @@ class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequest ## @return a void ## def initialize(path_parameters, request_adapter, end_date_time=nil, interval=nil, start_date_time=nil) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Invoke function getActivitiesByInterval ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response + ## @return a Fiber of get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::Items::Item::GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval::GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::Items::Item::GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval::GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function getActivitiesByInterval @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.new(raw_url, @request_adapter) + end ## # Invoke function getActivitiesByInterval @@ -78,6 +86,9 @@ class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequest # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -105,6 +116,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval.rb b/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval.rb index a8604aeec9..d4ef65f826 100644 --- a/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval.rb +++ b/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval.rb @@ -1 +1 @@ -require_relative 'get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response' +require_relative 'get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response' diff --git a/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response.rb b/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response.rb new file mode 100644 index 0000000000..59449bbeb1 --- /dev/null +++ b/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response.rb @@ -0,0 +1,90 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../../../../models/item_activity_stat' +require_relative '../../../../../../../../groups' +require_relative '../../../../../../../item' +require_relative '../../../../../../sites' +require_relative '../../../../../item' +require_relative '../../../../lists' +require_relative '../../../item' +require_relative '../../items' +require_relative '../item' +require_relative './get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Lists + module Item + module Items + module Item + module GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval + class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a item_activity_stat + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response.rb b/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response.rb deleted file mode 100644 index 367e70d7b3..0000000000 --- a/lib/groups/item/sites/item/lists/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response.rb +++ /dev/null @@ -1,90 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../../../../../models/item_activity_stat' -require_relative '../../../../../../../../groups' -require_relative '../../../../../../../item' -require_relative '../../../../../../sites' -require_relative '../../../../../item' -require_relative '../../../../lists' -require_relative '../../../item' -require_relative '../../items' -require_relative '../item' -require_relative './get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval' - -module MicrosoftGraph - module Groups - module Item - module Sites - module Item - module Lists - module Item - module Items - module Item - module GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval - class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ItemActivityStat.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a item_activity_stat - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/sites/item/lists/item/items/item/last_modified_by_user/last_modified_by_user_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/last_modified_by_user/last_modified_by_user_request_builder.rb index be4664d929..382a14a570 100644 --- a/lib/groups/item/sites/item/lists/item/items/item/last_modified_by_user/last_modified_by_user_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/items/item/last_modified_by_user/last_modified_by_user_request_builder.rb @@ -12,6 +12,7 @@ require_relative '../item' require_relative './last_modified_by_user' require_relative './mailbox_settings/mailbox_settings_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' module MicrosoftGraph module Groups @@ -33,13 +34,18 @@ def mailbox_settings() return MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::Items::Item::LastModifiedByUser::MailboxSettings::MailboxSettingsRequestBuilder.new(@path_parameters, @request_adapter) end ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::Items::Item::LastModifiedByUser::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser{?%24expand,%24select}") end ## ## Identity of the user who last modified the item. Read-only. @@ -51,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_modified_by_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastModifiedByUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Identity of the user who last modified the item. Read-only. diff --git a/lib/groups/item/sites/item/lists/item/items/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb index dcae98e977..358593c9bd 100644 --- a/lib/groups/item/sites/item/lists/item/items/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/items/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb @@ -35,10 +35,10 @@ class MailboxSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser/mailboxSettings{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}") end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of mailbox_settings ## @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -63,26 +62,25 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,20 +92,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mailbox_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MailboxSettingsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. class MailboxSettingsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/lists/item/items/item/last_modified_by_user/service_provisioning_errors/count/count.rb b/lib/groups/item/sites/item/lists/item/items/item/last_modified_by_user/service_provisioning_errors/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/lists/item/items/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..cd5160012c --- /dev/null +++ b/lib/groups/item/sites/item/lists/item/items/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,121 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../groups' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../sites' +require_relative '../../../../../../../item' +require_relative '../../../../../../lists' +require_relative '../../../../../item' +require_relative '../../../../items' +require_relative '../../../item' +require_relative '../../last_modified_by_user' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Lists + module Item + module Items + module Item + module LastModifiedByUser + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/lists/item/items/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors.rb b/lib/groups/item/sites/item/lists/item/items/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/lists/item/items/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..58265a7ecc --- /dev/null +++ b/lib/groups/item/sites/item/lists/item/items/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,155 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/service_provisioning_error_collection_response' +require_relative '../../../../../../../../../groups' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../sites' +require_relative '../../../../../../item' +require_relative '../../../../../lists' +require_relative '../../../../item' +require_relative '../../../items' +require_relative '../../item' +require_relative '../last_modified_by_user' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Lists + module Item + module Items + module Item + module LastModifiedByUser + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\lists\{list-id}\items\{listItem-id}\lastModifiedByUser\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::Items::Item::LastModifiedByUser::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/lists/item/items/item/list_item_item_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/list_item_item_request_builder.rb index e9750ab073..38dd899f57 100644 --- a/lib/groups/item/sites/item/lists/item/items/item/list_item_item_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/items/item/list_item_item_request_builder.rb @@ -11,6 +11,7 @@ require_relative '../items' require_relative './analytics/analytics_request_builder' require_relative './created_by_user/created_by_user_request_builder' +require_relative './create_link/create_link_request_builder' require_relative './document_set_versions/document_set_versions_request_builder' require_relative './drive_item/drive_item_request_builder' require_relative './fields/fields_request_builder' @@ -44,6 +45,11 @@ def created_by_user() return MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::Items::Item::CreatedByUser::CreatedByUserRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the createLink method. + def create_link() + return MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::Items::Item::CreateLink::CreateLinkRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to manage the documentSetVersions property of the microsoft.graph.listItem entity. def document_set_versions() return MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::Items::Item::DocumentSetVersions::DocumentSetVersionsRequestBuilder.new(@path_parameters, @request_adapter) @@ -80,10 +86,10 @@ def versions() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}{?%24expand,%24select}") end ## - ## Removes an item from a [list][]. + ## Delete navigation property items for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -92,12 +98,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Returns the metadata for an [item][] in a [list][]. + ## All items contained in the list. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of list_item ## @@ -106,8 +111,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ListItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -135,42 +139,42 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ListItem.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Removes an item from a [list][]. + ## Delete navigation property items for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Returns the metadata for an [item][] in a [list][]. + ## All items contained in the list. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -182,20 +186,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a list_item_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ListItemItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Returns the metadata for an [item][] in a [list][]. + # All items contained in the list. class ListItemItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/lists/item/items/item/versions/count/count_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/versions/count/count_request_builder.rb index 7e58eb512e..c48ae38133 100644 --- a/lib/groups/item/sites/item/lists/item/items/item/versions/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/items/item/versions/count/count_request_builder.rb @@ -34,7 +34,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/versions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/versions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -46,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -57,17 +56,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/lists/item/items/item/versions/item/fields/fields_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/versions/item/fields/fields_request_builder.rb index d28bdaadad..e63a3b92ca 100644 --- a/lib/groups/item/sites/item/lists/item/items/item/versions/item/fields/fields_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/items/item/versions/item/fields/fields_request_builder.rb @@ -37,7 +37,7 @@ class FieldsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/versions/{listItemVersion%2Did}/fields{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/versions/{listItemVersion%2Did}/fields{?%24expand,%24select}") end ## ## Delete navigation property fields for groups @@ -49,8 +49,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::FieldValueSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,8 +77,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::FieldValueSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,13 +87,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -106,15 +104,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,17 +124,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a fields_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FieldsRequestBuilder.new(raw_url, @request_adapter) + end ## # A collection of the fields and values for this version of the list item. diff --git a/lib/groups/item/sites/item/lists/item/items/item/versions/item/list_item_version_item_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/versions/item/list_item_version_item_request_builder.rb index c28f7fd88b..6fcc404e8f 100644 --- a/lib/groups/item/sites/item/lists/item/items/item/versions/item/list_item_version_item_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/items/item/versions/item/list_item_version_item_request_builder.rb @@ -47,7 +47,7 @@ def restore_version() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/versions/{listItemVersion%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/versions/{listItemVersion%2Did}{?%24expand,%24select}") end ## ## Delete navigation property versions for groups @@ -59,12 +59,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the metadata for a specific version of a ListItem. + ## The list of previous versions of the list item. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of list_item_version ## @@ -73,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ListItemVersion.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,8 +87,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ListItemVersion.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -100,31 +97,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the metadata for a specific version of a ListItem. + ## The list of previous versions of the list item. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,20 +134,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a list_item_version_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ListItemVersionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the metadata for a specific version of a ListItem. + # The list of previous versions of the list item. class ListItemVersionItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/lists/item/items/item/versions/item/restore_version/restore_version_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/versions/item/restore_version/restore_version_request_builder.rb index 8e39a12523..4cb04df079 100644 --- a/lib/groups/item/sites/item/lists/item/items/item/versions/item/restore_version/restore_version_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/items/item/versions/item/restore_version/restore_version_request_builder.rb @@ -48,8 +48,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,15 +58,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a restore_version_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RestoreVersionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/lists/item/items/item/versions/versions_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/item/versions/versions_request_builder.rb index 24c6584290..7b742213d3 100644 --- a/lib/groups/item/sites/item/lists/item/items/item/versions/versions_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/items/item/versions/versions_request_builder.rb @@ -52,10 +52,10 @@ def by_list_item_version_id(list_item_version_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/versions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/versions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + ## The list of previous versions of the list item. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of list_item_version_collection_response ## @@ -64,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ListItemVersionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,26 +79,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ListItemVersion.create_from_discriminator_value(pn) }, error_mapping) end ## - ## SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + ## The list of previous versions of the list item. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -111,20 +109,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a versions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VersionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + # The list of previous versions of the list item. class VersionsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/lists/item/items/items_request_builder.rb b/lib/groups/item/sites/item/lists/item/items/items_request_builder.rb index 7e6256f70c..ff3b47eccc 100644 --- a/lib/groups/item/sites/item/lists/item/items/items_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/items/items_request_builder.rb @@ -9,6 +9,8 @@ require_relative '../../../item' require_relative '../../lists' require_relative '../item' +require_relative './delta/delta_request_builder' +require_relative './delta_with_token/delta_with_token_request_builder' require_relative './item/list_item_item_request_builder' require_relative './items' @@ -24,6 +26,11 @@ module Items # Provides operations to manage the items property of the microsoft.graph.list entity. class ItemsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to call the delta method. + def delta() + return MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::Items::Delta::DeltaRequestBuilder.new(@path_parameters, @request_adapter) + end ## ## Provides operations to manage the items property of the microsoft.graph.list entity. ## @param list_item_id The unique identifier of listItem @@ -42,10 +49,19 @@ def by_list_item_id(list_item_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items{?%24top,%24skip,%24search,%24filter,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Provides operations to call the delta method. + ## @param token Usage: token='{token}' + ## @return a delta_with_token_request_builder + ## + def delta_with_token(token) + raise StandardError, 'token cannot be null' if token.nil? + return DeltaWithTokenRequestBuilder.new(@path_parameters, @request_adapter, token) end ## - ## Get the collection of [items][item] in a [list][]. + ## All items contained in the list. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of list_item_collection_response ## @@ -54,12 +70,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ListItemCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new [listItem][] in a [list][]. + ## Create new navigation property to items for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of list_item @@ -70,30 +85,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ListItem.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the collection of [items][item] in a [list][]. + ## All items contained in the list. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new [listItem][] in a [list][]. + ## Create new navigation property to items for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -101,22 +115,34 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a items_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ItemsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the collection of [items][item] in a [list][]. + # All items contained in the list. class ItemsRequestBuilderGetQueryParameters + ## + # Include count of items + attr_accessor :count ## # Expand related entities attr_accessor :expand @@ -146,6 +172,8 @@ class ItemsRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "count" + return "%24count" when "expand" return "%24expand" when "filter" diff --git a/lib/groups/item/sites/item/lists/item/last_modified_by_user/last_modified_by_user_request_builder.rb b/lib/groups/item/sites/item/lists/item/last_modified_by_user/last_modified_by_user_request_builder.rb index ed625a657f..12ab4249f0 100644 --- a/lib/groups/item/sites/item/lists/item/last_modified_by_user/last_modified_by_user_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/last_modified_by_user/last_modified_by_user_request_builder.rb @@ -10,6 +10,7 @@ require_relative '../item' require_relative './last_modified_by_user' require_relative './mailbox_settings/mailbox_settings_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' module MicrosoftGraph module Groups @@ -29,13 +30,18 @@ def mailbox_settings() return MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::LastModifiedByUser::MailboxSettings::MailboxSettingsRequestBuilder.new(@path_parameters, @request_adapter) end ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::LastModifiedByUser::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser{?%24expand,%24select}") end ## ## Identity of the user who last modified the item. Read-only. @@ -47,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_modified_by_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastModifiedByUserRequestBuilder.new(raw_url, @request_adapter) + end ## # Identity of the user who last modified the item. Read-only. diff --git a/lib/groups/item/sites/item/lists/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb b/lib/groups/item/sites/item/lists/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb index be5890bf8e..fb63f4251d 100644 --- a/lib/groups/item/sites/item/lists/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb @@ -31,10 +31,10 @@ class MailboxSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser/mailboxSettings{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}") end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of mailbox_settings ## @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -59,26 +58,25 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,20 +88,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mailbox_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MailboxSettingsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. class MailboxSettingsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/lists/item/last_modified_by_user/service_provisioning_errors/count/count.rb b/lib/groups/item/sites/item/lists/item/last_modified_by_user/service_provisioning_errors/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/lists/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb b/lib/groups/item/sites/item/lists/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..1797f863f0 --- /dev/null +++ b/lib/groups/item/sites/item/lists/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,115 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../groups' +require_relative '../../../../../../../item' +require_relative '../../../../../../sites' +require_relative '../../../../../item' +require_relative '../../../../lists' +require_relative '../../../item' +require_relative '../../last_modified_by_user' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Lists + module Item + module LastModifiedByUser + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/lists/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors.rb b/lib/groups/item/sites/item/lists/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/lists/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/groups/item/sites/item/lists/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..ccd8486c9f --- /dev/null +++ b/lib/groups/item/sites/item/lists/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,149 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../models/service_provisioning_error_collection_response' +require_relative '../../../../../../../groups' +require_relative '../../../../../../item' +require_relative '../../../../../sites' +require_relative '../../../../item' +require_relative '../../../lists' +require_relative '../../item' +require_relative '../last_modified_by_user' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Lists + module Item + module LastModifiedByUser + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\lists\{list-id}\lastModifiedByUser\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::Sites::Item::Lists::Item::LastModifiedByUser::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/lists/item/list_item_request_builder.rb b/lib/groups/item/sites/item/lists/item/list_item_request_builder.rb index ef369b1289..02d4adb57b 100644 --- a/lib/groups/item/sites/item/lists/item/list_item_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/list_item_request_builder.rb @@ -75,7 +75,7 @@ def subscriptions() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}{?%24expand,%24select}") end ## ## Delete navigation property lists for groups @@ -87,12 +87,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Returns the metadata for a [list][]. + ## The collection of lists under this site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of list ## @@ -101,8 +100,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::List.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -117,8 +115,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::List.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -128,31 +125,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Returns the metadata for a [list][]. + ## The collection of lists under this site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -164,20 +162,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a list_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ListItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Returns the metadata for a [list][]. + # The collection of lists under this site. class ListItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/lists/item/operations/count/count_request_builder.rb b/lib/groups/item/sites/item/lists/item/operations/count/count_request_builder.rb index 5546d11eae..b7b4137570 100644 --- a/lib/groups/item/sites/item/lists/item/operations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/operations/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/operations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/operations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/lists/item/operations/item/rich_long_running_operation_item_request_builder.rb b/lib/groups/item/sites/item/lists/item/operations/item/rich_long_running_operation_item_request_builder.rb index 35900bec6b..588ea29b0e 100644 --- a/lib/groups/item/sites/item/lists/item/operations/item/rich_long_running_operation_item_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/operations/item/rich_long_running_operation_item_request_builder.rb @@ -31,7 +31,7 @@ class RichLongRunningOperationItemRequestBuilder < MicrosoftKiotaAbstractions::B ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/operations/{richLongRunningOperation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/operations/{richLongRunningOperation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property operations for groups @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RichLongRunningOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RichLongRunningOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,15 +98,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rich_long_running_operation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RichLongRunningOperationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of long-running operations on the list. diff --git a/lib/groups/item/sites/item/lists/item/operations/operations_request_builder.rb b/lib/groups/item/sites/item/lists/item/operations/operations_request_builder.rb index 70f10acea9..15bd59bbdf 100644 --- a/lib/groups/item/sites/item/lists/item/operations/operations_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/operations/operations_request_builder.rb @@ -48,7 +48,7 @@ def by_rich_long_running_operation_id(rich_long_running_operation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The collection of long-running operations on the list. @@ -60,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RichLongRunningOperationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,8 +75,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RichLongRunningOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,15 +85,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -107,17 +105,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a operations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OperationsRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of long-running operations on the list. diff --git a/lib/groups/item/sites/item/lists/item/subscriptions/count/count_request_builder.rb b/lib/groups/item/sites/item/lists/item/subscriptions/count/count_request_builder.rb index 80593caaa2..68485d344a 100644 --- a/lib/groups/item/sites/item/lists/item/subscriptions/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/subscriptions/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/subscriptions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/subscriptions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/lists/item/subscriptions/item/reauthorize/reauthorize_request_builder.rb b/lib/groups/item/sites/item/lists/item/subscriptions/item/reauthorize/reauthorize_request_builder.rb index 27ac728903..37287417fb 100644 --- a/lib/groups/item/sites/item/lists/item/subscriptions/item/reauthorize/reauthorize_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/subscriptions/item/reauthorize/reauthorize_request_builder.rb @@ -44,8 +44,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,15 +54,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reauthorize_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReauthorizeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/lists/item/subscriptions/item/subscription_item_request_builder.rb b/lib/groups/item/sites/item/lists/item/subscriptions/item/subscription_item_request_builder.rb index 5389753a88..fb3b4272c7 100644 --- a/lib/groups/item/sites/item/lists/item/subscriptions/item/subscription_item_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/subscriptions/item/subscription_item_request_builder.rb @@ -37,7 +37,7 @@ def reauthorize() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/subscriptions/{subscription%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/subscriptions/{subscription%2Did}{?%24expand,%24select}") end ## ## Delete navigation property subscriptions for groups @@ -49,8 +49,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Subscription.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,8 +77,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Subscription.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,13 +87,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -106,15 +104,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,17 +124,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a subscription_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SubscriptionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The set of subscriptions on the list. diff --git a/lib/groups/item/sites/item/lists/item/subscriptions/subscriptions_request_builder.rb b/lib/groups/item/sites/item/lists/item/subscriptions/subscriptions_request_builder.rb index a771fc376b..091a5a7162 100644 --- a/lib/groups/item/sites/item/lists/item/subscriptions/subscriptions_request_builder.rb +++ b/lib/groups/item/sites/item/lists/item/subscriptions/subscriptions_request_builder.rb @@ -48,7 +48,7 @@ def by_subscription_id(subscription_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/subscriptions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/subscriptions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The set of subscriptions on the list. @@ -60,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SubscriptionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,8 +75,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Subscription.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,15 +85,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -107,17 +105,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a subscriptions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SubscriptionsRequestBuilder.new(raw_url, @request_adapter) + end ## # The set of subscriptions on the list. diff --git a/lib/groups/item/sites/item/lists/lists_request_builder.rb b/lib/groups/item/sites/item/lists/lists_request_builder.rb index af10710e0a..c20b8b74a6 100644 --- a/lib/groups/item/sites/item/lists/lists_request_builder.rb +++ b/lib/groups/item/sites/item/lists/lists_request_builder.rb @@ -44,10 +44,10 @@ def by_list_id(list_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. + ## The collection of lists under this site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of list_collection_response ## @@ -56,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ListCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new [list][] in a [site][]. + ## Create new navigation property to lists for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of list @@ -72,30 +71,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::List.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. + ## The collection of lists under this site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new [list][] in a [site][]. + ## Create new navigation property to lists for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a lists_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ListsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. + # The collection of lists under this site. class ListsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/onenote/notebooks/count/count_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/count/count_request_builder.rb index c262531b07..fc71c39085 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/onenote/notebooks/get_notebook_from_web_url/get_notebook_from_web_url_post_request_body.rb b/lib/groups/item/sites/item/onenote/notebooks/get_notebook_from_web_url/get_notebook_from_web_url_post_request_body.rb index 2d29ad851f..ab1c04bce9 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/get_notebook_from_web_url/get_notebook_from_web_url_post_request_body.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/get_notebook_from_web_url/get_notebook_from_web_url_post_request_body.rb @@ -25,22 +25,22 @@ class GetNotebookFromWebUrlPostRequestBody # The webUrl property @web_url ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new getNotebookFromWebUrlPostRequestBody and sets the default values. + ## Instantiates a new GetNotebookFromWebUrlPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/onenote/notebooks/get_notebook_from_web_url/get_notebook_from_web_url_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/get_notebook_from_web_url/get_notebook_from_web_url_request_builder.rb index ea62f0998c..51c98cba67 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/get_notebook_from_web_url/get_notebook_from_web_url_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/get_notebook_from_web_url/get_notebook_from_web_url_request_builder.rb @@ -43,8 +43,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CopyNotebookModel.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_notebook_from_web_url_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetNotebookFromWebUrlRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks.rb b/lib/groups/item/sites/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks.rb index 14dc683221..968f50900e 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks.rb @@ -1 +1 @@ -require_relative 'get_recent_notebooks_with_include_personal_notebooks_response' +require_relative 'get_recent_notebooks_with_include_personal_notebooks_get_response' diff --git a/lib/groups/item/sites/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks_get_response.rb b/lib/groups/item/sites/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks_get_response.rb new file mode 100644 index 0000000000..aa9fd84ad1 --- /dev/null +++ b/lib/groups/item/sites/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks_get_response.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../../models/recent_notebook' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../sites' +require_relative '../../../item' +require_relative '../../onenote' +require_relative '../notebooks' +require_relative './get_recent_notebooks_with_include_personal_notebooks' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Onenote + module Notebooks + module GetRecentNotebooksWithIncludePersonalNotebooks + class GetRecentNotebooksWithIncludePersonalNotebooksGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetRecentNotebooksWithIncludePersonalNotebooksGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_recent_notebooks_with_include_personal_notebooks_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::RecentNotebook.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a recent_notebook + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks_request_builder.rb index 67455c1336..9d39b492e1 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks_request_builder.rb @@ -29,43 +29,51 @@ class GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder < MicrosoftKi ## @return a void ## def initialize(path_parameters, request_adapter, include_personal_notebooks=nil) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/getRecentNotebooks(includePersonalNotebooks={includePersonalNotebooks}){?%24top,%24skip,%24search,%24filter,%24count}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/getRecentNotebooks(includePersonalNotebooks={includePersonalNotebooks}){?%24count,%24filter,%24search,%24skip,%24top}") end ## - ## Invoke function getRecentNotebooks + ## Get a list of recentNotebook instances that have been accessed by the signed-in user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_recent_notebooks_with_include_personal_notebooks_response + ## @return a Fiber of get_recent_notebooks_with_include_personal_notebooks_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::Onenote::Notebooks::GetRecentNotebooksWithIncludePersonalNotebooks::GetRecentNotebooksWithIncludePersonalNotebooksResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::Onenote::Notebooks::GetRecentNotebooksWithIncludePersonalNotebooks::GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function getRecentNotebooks + ## Get a list of recentNotebook instances that have been accessed by the signed-in user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_recent_notebooks_with_include_personal_notebooks_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function getRecentNotebooks + # Get a list of recentNotebook instances that have been accessed by the signed-in user. class GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks_response.rb b/lib/groups/item/sites/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks_response.rb deleted file mode 100644 index 724ea7ee72..0000000000 --- a/lib/groups/item/sites/item/onenote/notebooks/get_recent_notebooks_with_include_personal_notebooks/get_recent_notebooks_with_include_personal_notebooks_response.rb +++ /dev/null @@ -1,84 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../../../models/recent_notebook' -require_relative '../../../../../../groups' -require_relative '../../../../../item' -require_relative '../../../../sites' -require_relative '../../../item' -require_relative '../../onenote' -require_relative '../notebooks' -require_relative './get_recent_notebooks_with_include_personal_notebooks' - -module MicrosoftGraph - module Groups - module Item - module Sites - module Item - module Onenote - module Notebooks - module GetRecentNotebooksWithIncludePersonalNotebooks - class GetRecentNotebooksWithIncludePersonalNotebooksResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getRecentNotebooksWithIncludePersonalNotebooksResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_recent_notebooks_with_include_personal_notebooks_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetRecentNotebooksWithIncludePersonalNotebooksResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::RecentNotebook.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a recent_notebook - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/copy_notebook/copy_notebook_post_request_body.rb b/lib/groups/item/sites/item/onenote/notebooks/item/copy_notebook/copy_notebook_post_request_body.rb index 9a9ce4c7d4..0556fd1a89 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/copy_notebook/copy_notebook_post_request_body.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/copy_notebook/copy_notebook_post_request_body.rb @@ -39,22 +39,22 @@ class CopyNotebookPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyNotebookPostRequestBody and sets the default values. + ## Instantiates a new CopyNotebookPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/copy_notebook/copy_notebook_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/copy_notebook/copy_notebook_request_builder.rb index 55dfdd4a0f..6f401f8137 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/copy_notebook/copy_notebook_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/copy_notebook/copy_notebook_request_builder.rb @@ -45,8 +45,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyNotebookRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/notebook_item_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/notebook_item_request_builder.rb index ebcfc3a0f3..cbcab5499b 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/notebook_item_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/notebook_item_request_builder.rb @@ -47,7 +47,7 @@ def sections() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}{?%24expand,%24select}") end ## ## Delete navigation property notebooks for groups @@ -59,12 +59,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a notebook object. + ## The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of notebook ## @@ -73,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,8 +87,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -100,31 +97,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a notebook object. + ## The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,20 +134,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a notebook_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NotebookItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a notebook object. + # The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. class NotebookItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/count/count_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/count/count_request_builder.rb index 343d4158b8..387dd9df44 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/parent_notebook/parent_notebook_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/parent_notebook/parent_notebook_request_builder.rb index c8e442cbc4..288f8d38d0 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/parent_notebook/parent_notebook_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/parent_notebook/parent_notebook_request_builder.rb @@ -35,7 +35,7 @@ class ParentNotebookRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/parentNotebook{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/parentNotebook{?%24expand,%24select}") end ## ## The notebook that contains the section group. Read-only. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentNotebookRequestBuilder.new(raw_url, @request_adapter) + end ## # The notebook that contains the section group. Read-only. diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/parent_section_group/parent_section_group_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/parent_section_group/parent_section_group_request_builder.rb index 3890b956ba..a5f6059a26 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/parent_section_group/parent_section_group_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/parent_section_group/parent_section_group_request_builder.rb @@ -35,7 +35,7 @@ class ParentSectionGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/parentSectionGroup{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/parentSectionGroup{?%24expand,%24select}") end ## ## The section group that contains the section group. Read-only. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_section_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentSectionGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # The section group that contains the section group. Read-only. diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/section_group_item_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/section_group_item_request_builder.rb index a575f066fe..26fdfaa062 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/section_group_item_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/section_group_item_request_builder.rb @@ -57,7 +57,7 @@ def sections() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}{?%24expand,%24select}") end ## ## Delete navigation property sectionGroups for groups @@ -69,8 +69,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -83,8 +82,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,8 +97,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -110,13 +107,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,15 +124,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -146,17 +144,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a section_group_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionGroupItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The section groups in the notebook. Read-only. Nullable. diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/section_groups/count/count_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/section_groups/count/count_request_builder.rb index 27c2135977..c51bf68e03 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/section_groups/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/section_groups/count/count_request_builder.rb @@ -36,7 +36,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -59,17 +58,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/section_groups/item/section_group_item_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/section_groups/item/section_group_item_request_builder.rb index 8676d091c8..bad0fbf155 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/section_groups/item/section_group_item_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/section_groups/item/section_group_item_request_builder.rb @@ -37,7 +37,7 @@ class SectionGroupItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBu ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups/{sectionGroup%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups/{sectionGroup%2Did1}{?%24expand,%24select}") end ## ## The section groups in the section. Read-only. Nullable. @@ -49,8 +49,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -60,17 +59,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a section_group_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionGroupItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The section groups in the section. Read-only. Nullable. diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/section_groups/section_groups_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/section_groups/section_groups_request_builder.rb index 6be9875b5d..792f3a3b4c 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/section_groups/section_groups_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/section_groups/section_groups_request_builder.rb @@ -53,10 +53,10 @@ def by_section_group_id1(section_group_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of section groups from the specified section group. + ## The section groups in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of section_group_collection_response ## @@ -65,31 +65,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of section groups from the specified section group. + ## The section groups in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a section_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionGroupsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of section groups from the specified section group. + # The section groups in the section. Read-only. Nullable. class SectionGroupsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/count/count_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/count/count_request_builder.rb index 050479df20..888068db0d 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/count/count_request_builder.rb @@ -36,7 +36,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -59,17 +58,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb index 65d5d66a00..d0e71cd768 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb @@ -47,22 +47,22 @@ class CopyToNotebookPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToNotebookPostRequestBody and sets the default values. + ## Instantiates a new CopyToNotebookPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb index 50dce29e75..b9c783cf82 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb @@ -53,8 +53,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToNotebookRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb index 3079a12933..92743ea0c0 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb @@ -47,22 +47,22 @@ class CopyToSectionGroupPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToSectionGroupPostRequestBody and sets the default values. + ## Instantiates a new CopyToSectionGroupPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb index 925bd49fc8..757a7b58f7 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb @@ -53,8 +53,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_section_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToSectionGroupRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/onenote_section_item_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/onenote_section_item_request_builder.rb index 452901afef..0c17b84603 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/onenote_section_item_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/onenote_section_item_request_builder.rb @@ -67,7 +67,7 @@ def parent_section_group() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}{?%24expand,%24select}") end ## ## Delete navigation property sections for groups @@ -79,8 +79,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -93,8 +92,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -109,8 +107,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -120,13 +117,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,15 +134,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -156,17 +154,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_section_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenoteSectionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The sections in the section group. Read-only. Nullable. diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/count/count_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/count/count_request_builder.rb index 4ff4e7657e..6e3f2f9206 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/count/count_request_builder.rb @@ -40,7 +40,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -63,17 +62,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/content/content_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/content/content_request_builder.rb index 35ba87c649..b5bae21427 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/content/content_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/content/content_request_builder.rb @@ -48,6 +48,19 @@ def initialize(path_parameters, request_adapter) ## ## The page's HTML content. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The page's HTML content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## def get(request_configuration=nil) @@ -55,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -71,8 +83,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,15 +91,33 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The page's HTML content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -100,17 +129,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb index e1cedfa2cb..3497280489 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb @@ -48,22 +48,22 @@ class CopyToSectionPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToSectionPostRequestBody and sets the default values. + ## Instantiates a new CopyToSectionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb index e8040f86e8..7cce2c5f20 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb @@ -57,8 +57,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,17 +69,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_section_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToSectionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_page_item_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_page_item_request_builder.rb index faf099957a..7ed7cf063b 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_page_item_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_page_item_request_builder.rb @@ -77,7 +77,7 @@ def preview() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24expand,%24select}") end ## ## Delete navigation property pages for groups @@ -89,8 +89,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -103,8 +102,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -119,8 +117,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -130,13 +127,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -146,15 +144,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -166,17 +164,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_page_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenotePageItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of pages in the section. Read-only. Nullable. diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb index 938a992d89..2553718f7e 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb @@ -40,15 +40,15 @@ class OnenotePatchContentPostRequestBody # The commands property @commands ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -70,7 +70,7 @@ def commands=(value) @commands = value end ## - ## Instantiates a new onenotePatchContentPostRequestBody and sets the default values. + ## Instantiates a new OnenotePatchContentPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb index 790a57706d..43e3cff96a 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb @@ -56,8 +56,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -69,16 +68,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_patch_content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenotePatchContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb index 2ac6f7e027..fecacce80d 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb @@ -43,7 +43,7 @@ class ParentNotebookRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24expand,%24select}") end ## ## The notebook that contains the page. Read-only. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentNotebookRequestBuilder.new(raw_url, @request_adapter) + end ## # The notebook that contains the page. Read-only. diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb index 71f3315cdf..5ec9d7520e 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb @@ -43,7 +43,7 @@ class ParentSectionRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24expand,%24select}") end ## ## The section that contains the page. Read-only. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_section_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentSectionRequestBuilder.new(raw_url, @request_adapter) + end ## # The section that contains the page. Read-only. diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/preview/preview_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/preview/preview_request_builder.rb index e1b23b4f8a..05ea458be3 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/preview/preview_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/item/preview/preview_request_builder.rb @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePagePreview.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,16 +65,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a preview_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PreviewRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/pages_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/pages_request_builder.rb index 5913e8ac23..f3c2d60f0a 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/pages_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/pages/pages_request_builder.rb @@ -58,10 +58,10 @@ def by_onenote_page_id(onenote_page_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of page objects from the specified section. + ## The collection of pages in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_page_collection_response ## @@ -70,12 +70,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new page in the specified section. + ## Create new navigation property to pages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_page @@ -86,30 +85,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of page objects from the specified section. + ## The collection of pages in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new page in the specified section. + ## Create new navigation property to pages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -117,20 +115,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a pages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PagesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of page objects from the specified section. + # The collection of pages in the section. Read-only. Nullable. class PagesRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/parent_notebook/parent_notebook_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/parent_notebook/parent_notebook_request_builder.rb index 77b919bb92..5abd63ecd2 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/parent_notebook/parent_notebook_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/parent_notebook/parent_notebook_request_builder.rb @@ -39,7 +39,7 @@ class ParentNotebookRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%24expand,%24select}") end ## ## The notebook that contains the section. Read-only. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentNotebookRequestBuilder.new(raw_url, @request_adapter) + end ## # The notebook that contains the section. Read-only. diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/parent_section_group/parent_section_group_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/parent_section_group/parent_section_group_request_builder.rb index cd97d785cb..51e034d33f 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/parent_section_group/parent_section_group_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/item/parent_section_group/parent_section_group_request_builder.rb @@ -39,7 +39,7 @@ class ParentSectionGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%24expand,%24select}") end ## ## The section group that contains the section. Read-only. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_section_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentSectionGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # The section group that contains the section. Read-only. diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/sections_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/sections_request_builder.rb index 88308314e4..2b02af9715 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/sections_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/item/sections/sections_request_builder.rb @@ -54,10 +54,10 @@ def by_onenote_section_id(onenote_section_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of onenoteSection objects from the specified section group. + ## The sections in the section group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_section_collection_response ## @@ -66,12 +66,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSectionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new onenoteSection in the specified section group. + ## Create new navigation property to sections for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_section @@ -82,30 +81,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of onenoteSection objects from the specified section group. + ## The sections in the section group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new onenoteSection in the specified section group. + ## Create new navigation property to sections for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -113,20 +111,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sections_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of onenoteSection objects from the specified section group. + # The sections in the section group. Read-only. Nullable. class SectionsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/section_groups_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/section_groups_request_builder.rb index c3d9202d61..6681ad3ebd 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/section_groups_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/section_groups/section_groups_request_builder.rb @@ -50,10 +50,10 @@ def by_section_group_id(section_group_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of section groups from the specified notebook. + ## The section groups in the notebook. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of section_group_collection_response ## @@ -62,12 +62,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new section group in the specified notebook. + ## Create new navigation property to sectionGroups for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of section_group @@ -78,30 +77,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of section groups from the specified notebook. + ## The section groups in the notebook. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new section group in the specified notebook. + ## Create new navigation property to sectionGroups for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a section_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionGroupsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of section groups from the specified notebook. + # The section groups in the notebook. Read-only. Nullable. class SectionGroupsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/sections/count/count_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/sections/count/count_request_builder.rb index c541aab1a4..704fc22918 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/sections/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/sections/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb index a02266d4cb..3984d42fac 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb @@ -43,22 +43,22 @@ class CopyToNotebookPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToNotebookPostRequestBody and sets the default values. + ## Instantiates a new CopyToNotebookPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb index 540c7928a8..4eb53004a9 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb @@ -49,8 +49,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToNotebookRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb index 7e40cccd88..3badcb820e 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb @@ -43,22 +43,22 @@ class CopyToSectionGroupPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToSectionGroupPostRequestBody and sets the default values. + ## Instantiates a new CopyToSectionGroupPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb index 21f629e7e2..feec7c14b3 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb @@ -49,8 +49,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_section_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToSectionGroupRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/onenote_section_item_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/onenote_section_item_request_builder.rb index 3d22af3626..72ca3ca711 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/onenote_section_item_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/onenote_section_item_request_builder.rb @@ -63,7 +63,7 @@ def parent_section_group() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}{?%24expand,%24select}") end ## ## Delete navigation property sections for groups @@ -75,8 +75,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -89,8 +88,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -105,8 +103,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -116,13 +113,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,15 +130,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -152,17 +150,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_section_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenoteSectionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The sections in the notebook. Read-only. Nullable. diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/count/count_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/count/count_request_builder.rb index 6548188e28..ea2f5f09a5 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/count/count_request_builder.rb @@ -36,7 +36,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -59,17 +58,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/content/content_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/content/content_request_builder.rb index cae8375c13..f9a7f5300c 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/content/content_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/content/content_request_builder.rb @@ -44,6 +44,19 @@ def initialize(path_parameters, request_adapter) ## ## The page's HTML content. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The page's HTML content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## def get(request_configuration=nil) @@ -51,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -67,8 +79,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,15 +87,33 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The page's HTML content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -96,17 +125,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb index af3acdb611..7d13d972ce 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb @@ -44,22 +44,22 @@ class CopyToSectionPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToSectionPostRequestBody and sets the default values. + ## Instantiates a new CopyToSectionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb index fbde896607..61051c304b 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb @@ -53,8 +53,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_section_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToSectionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/onenote_page_item_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/onenote_page_item_request_builder.rb index 4939bd4f2d..0b221e519a 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/onenote_page_item_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/onenote_page_item_request_builder.rb @@ -73,7 +73,7 @@ def preview() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24expand,%24select}") end ## ## Delete navigation property pages for groups @@ -85,8 +85,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -99,8 +98,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -115,8 +113,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -126,13 +123,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -142,15 +140,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -162,17 +160,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_page_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenotePageItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of pages in the section. Read-only. Nullable. diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb index 0e32f86328..1be9b14d6a 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb @@ -36,15 +36,15 @@ class OnenotePatchContentPostRequestBody # The commands property @commands ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -66,7 +66,7 @@ def commands=(value) @commands = value end ## - ## Instantiates a new onenotePatchContentPostRequestBody and sets the default values. + ## Instantiates a new OnenotePatchContentPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb index 811bee788c..d4aa58595c 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb @@ -52,8 +52,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,16 +64,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_patch_content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenotePatchContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb index e80340041f..a74c256721 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb @@ -39,7 +39,7 @@ class ParentNotebookRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24expand,%24select}") end ## ## The notebook that contains the page. Read-only. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentNotebookRequestBuilder.new(raw_url, @request_adapter) + end ## # The notebook that contains the page. Read-only. diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb index c1f6007886..30a0eae551 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb @@ -39,7 +39,7 @@ class ParentSectionRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24expand,%24select}") end ## ## The section that contains the page. Read-only. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_section_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentSectionRequestBuilder.new(raw_url, @request_adapter) + end ## # The section that contains the page. Read-only. diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/preview/preview_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/preview/preview_request_builder.rb index d3e126ec86..11fb6c8ef4 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/preview/preview_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/preview/preview_request_builder.rb @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePagePreview.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,16 +61,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a preview_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PreviewRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/pages_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/pages_request_builder.rb index 703cf9420f..0557170fc6 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/pages_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/pages_request_builder.rb @@ -54,10 +54,10 @@ def by_onenote_page_id(onenote_page_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of page objects from the specified section. + ## The collection of pages in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_page_collection_response ## @@ -66,12 +66,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new page in the specified section. + ## Create new navigation property to pages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_page @@ -82,30 +81,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of page objects from the specified section. + ## The collection of pages in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new page in the specified section. + ## Create new navigation property to pages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -113,20 +111,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a pages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PagesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of page objects from the specified section. + # The collection of pages in the section. Read-only. Nullable. class PagesRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/parent_notebook/parent_notebook_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/parent_notebook/parent_notebook_request_builder.rb index c45ec2a88c..ffa5fa676b 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/parent_notebook/parent_notebook_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/parent_notebook/parent_notebook_request_builder.rb @@ -35,7 +35,7 @@ class ParentNotebookRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%24expand,%24select}") end ## ## The notebook that contains the section. Read-only. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentNotebookRequestBuilder.new(raw_url, @request_adapter) + end ## # The notebook that contains the section. Read-only. diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/parent_section_group/parent_section_group_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/parent_section_group/parent_section_group_request_builder.rb index 0d5c923377..5c4ea53277 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/parent_section_group/parent_section_group_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/sections/item/parent_section_group/parent_section_group_request_builder.rb @@ -35,7 +35,7 @@ class ParentSectionGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%24expand,%24select}") end ## ## The section group that contains the section. Read-only. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_section_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentSectionGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # The section group that contains the section. Read-only. diff --git a/lib/groups/item/sites/item/onenote/notebooks/item/sections/sections_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/item/sections/sections_request_builder.rb index 2663ad33eb..71852dc7c2 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/item/sections/sections_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/item/sections/sections_request_builder.rb @@ -50,10 +50,10 @@ def by_onenote_section_id(onenote_section_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of onenoteSection objects from the specified notebook. + ## The sections in the notebook. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_section_collection_response ## @@ -62,12 +62,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSectionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new onenoteSection in the specified notebook. + ## Create new navigation property to sections for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_section @@ -78,30 +77,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of onenoteSection objects from the specified notebook. + ## The sections in the notebook. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new onenoteSection in the specified notebook. + ## Create new navigation property to sections for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sections_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of onenoteSection objects from the specified notebook. + # The sections in the notebook. Read-only. Nullable. class SectionsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/onenote/notebooks/notebooks_request_builder.rb b/lib/groups/item/sites/item/onenote/notebooks/notebooks_request_builder.rb index 99a3e98366..d114264dcf 100644 --- a/lib/groups/item/sites/item/onenote/notebooks/notebooks_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/notebooks/notebooks_request_builder.rb @@ -53,10 +53,10 @@ def by_notebook_id(notebook_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of notebook objects. + ## The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of notebook_collection_response ## @@ -65,8 +65,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::NotebookCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,7 +78,7 @@ def get_recent_notebooks_with_include_personal_notebooks(include_personal_notebo return GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.new(@path_parameters, @request_adapter, includePersonalNotebooks) end ## - ## Create a new OneNote notebook. + ## Create new navigation property to notebooks for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of notebook @@ -90,30 +89,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of notebook objects. + ## The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new OneNote notebook. + ## Create new navigation property to notebooks for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -121,20 +119,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a notebooks_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NotebooksRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of notebook objects. + # The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. class NotebooksRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/onenote/onenote_request_builder.rb b/lib/groups/item/sites/item/onenote/onenote_request_builder.rb index 19b49410e4..7787dc070a 100644 --- a/lib/groups/item/sites/item/onenote/onenote_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/onenote_request_builder.rb @@ -61,7 +61,7 @@ def sections() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote{?%24expand,%24select}") end ## ## Delete navigation property onenote for groups @@ -73,8 +73,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -87,8 +86,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Onenote.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -103,8 +101,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Onenote.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -114,13 +111,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -130,15 +128,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -150,17 +148,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenoteRequestBuilder.new(raw_url, @request_adapter) + end ## # Calls the OneNote service for notebook related operations. diff --git a/lib/groups/item/sites/item/onenote/operations/count/count_request_builder.rb b/lib/groups/item/sites/item/onenote/operations/count/count_request_builder.rb index 37cee17b09..167b3538eb 100644 --- a/lib/groups/item/sites/item/onenote/operations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/operations/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/operations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/operations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/onenote/operations/item/onenote_operation_item_request_builder.rb b/lib/groups/item/sites/item/onenote/operations/item/onenote_operation_item_request_builder.rb index b4b4dc1ba8..50fce6177d 100644 --- a/lib/groups/item/sites/item/onenote/operations/item/onenote_operation_item_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/operations/item/onenote_operation_item_request_builder.rb @@ -29,7 +29,7 @@ class OnenoteOperationItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReque ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/operations/{onenoteOperation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/operations/{onenoteOperation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property operations for groups @@ -41,12 +41,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + ## The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_operation ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,31 +79,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + ## The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,20 +116,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_operation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenoteOperationItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + # The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. class OnenoteOperationItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/onenote/operations/operations_request_builder.rb b/lib/groups/item/sites/item/onenote/operations/operations_request_builder.rb index 0049413b89..1201155fc1 100644 --- a/lib/groups/item/sites/item/onenote/operations/operations_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/operations/operations_request_builder.rb @@ -46,10 +46,10 @@ def by_onenote_operation_id(onenote_operation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + ## The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_operation_collection_response ## @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,26 +73,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + ## The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a operations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OperationsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + # The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. class OperationsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/onenote/pages/count/count_request_builder.rb b/lib/groups/item/sites/item/onenote/pages/count/count_request_builder.rb index 5085ad201a..07992b0e88 100644 --- a/lib/groups/item/sites/item/onenote/pages/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/pages/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/onenote/pages/item/content/content_request_builder.rb b/lib/groups/item/sites/item/onenote/pages/item/content/content_request_builder.rb index 936eb48f49..8ed4d92c8f 100644 --- a/lib/groups/item/sites/item/onenote/pages/item/content/content_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/pages/item/content/content_request_builder.rb @@ -36,6 +36,19 @@ def initialize(path_parameters, request_adapter) ## ## The page's HTML content. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The page's HTML content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## def get(request_configuration=nil) @@ -43,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -59,8 +71,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,15 +79,33 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The page's HTML content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -88,17 +117,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/pages/item/copy_to_section/copy_to_section_post_request_body.rb b/lib/groups/item/sites/item/onenote/pages/item/copy_to_section/copy_to_section_post_request_body.rb index ecee9cc0aa..8ff530d352 100644 --- a/lib/groups/item/sites/item/onenote/pages/item/copy_to_section/copy_to_section_post_request_body.rb +++ b/lib/groups/item/sites/item/onenote/pages/item/copy_to_section/copy_to_section_post_request_body.rb @@ -36,22 +36,22 @@ class CopyToSectionPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToSectionPostRequestBody and sets the default values. + ## Instantiates a new CopyToSectionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/onenote/pages/item/copy_to_section/copy_to_section_request_builder.rb b/lib/groups/item/sites/item/onenote/pages/item/copy_to_section/copy_to_section_request_builder.rb index 80568de949..060a413857 100644 --- a/lib/groups/item/sites/item/onenote/pages/item/copy_to_section/copy_to_section_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/pages/item/copy_to_section/copy_to_section_request_builder.rb @@ -45,8 +45,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_section_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToSectionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/pages/item/onenote_page_item_request_builder.rb b/lib/groups/item/sites/item/onenote/pages/item/onenote_page_item_request_builder.rb index 846e4048ac..59e2bfb058 100644 --- a/lib/groups/item/sites/item/onenote/pages/item/onenote_page_item_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/pages/item/onenote_page_item_request_builder.rb @@ -65,10 +65,10 @@ def preview() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/{onenotePage%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/{onenotePage%2Did}{?%24expand,%24select}") end ## - ## Delete a OneNote page. + ## Delete navigation property pages for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -77,12 +77,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + ## The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_page ## @@ -91,8 +90,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -107,42 +105,42 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a OneNote page. + ## Delete navigation property pages for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + ## The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -154,20 +152,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_page_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenotePageItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + # The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. class OnenotePageItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/onenote/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb b/lib/groups/item/sites/item/onenote/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb index 83205f9703..a16383caa8 100644 --- a/lib/groups/item/sites/item/onenote/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb +++ b/lib/groups/item/sites/item/onenote/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb @@ -28,15 +28,15 @@ class OnenotePatchContentPostRequestBody # The commands property @commands ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -58,7 +58,7 @@ def commands=(value) @commands = value end ## - ## Instantiates a new onenotePatchContentPostRequestBody and sets the default values. + ## Instantiates a new OnenotePatchContentPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/onenote/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb b/lib/groups/item/sites/item/onenote/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb index 86501ce47a..ca3190fda3 100644 --- a/lib/groups/item/sites/item/onenote/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb @@ -44,8 +44,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,16 +56,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_patch_content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenotePatchContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/pages/item/parent_notebook/parent_notebook_request_builder.rb b/lib/groups/item/sites/item/onenote/pages/item/parent_notebook/parent_notebook_request_builder.rb index c9b3aba713..7c8ca29771 100644 --- a/lib/groups/item/sites/item/onenote/pages/item/parent_notebook/parent_notebook_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/pages/item/parent_notebook/parent_notebook_request_builder.rb @@ -31,7 +31,7 @@ class ParentNotebookRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/{onenotePage%2Did}/parentNotebook{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/{onenotePage%2Did}/parentNotebook{?%24expand,%24select}") end ## ## The notebook that contains the page. Read-only. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentNotebookRequestBuilder.new(raw_url, @request_adapter) + end ## # The notebook that contains the page. Read-only. diff --git a/lib/groups/item/sites/item/onenote/pages/item/parent_section/parent_section_request_builder.rb b/lib/groups/item/sites/item/onenote/pages/item/parent_section/parent_section_request_builder.rb index 961e4b7099..cf807363d0 100644 --- a/lib/groups/item/sites/item/onenote/pages/item/parent_section/parent_section_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/pages/item/parent_section/parent_section_request_builder.rb @@ -31,7 +31,7 @@ class ParentSectionRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/{onenotePage%2Did}/parentSection{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/{onenotePage%2Did}/parentSection{?%24expand,%24select}") end ## ## The section that contains the page. Read-only. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_section_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentSectionRequestBuilder.new(raw_url, @request_adapter) + end ## # The section that contains the page. Read-only. diff --git a/lib/groups/item/sites/item/onenote/pages/item/preview/preview_request_builder.rb b/lib/groups/item/sites/item/onenote/pages/item/preview/preview_request_builder.rb index 34cf6f854e..e0012d97f6 100644 --- a/lib/groups/item/sites/item/onenote/pages/item/preview/preview_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/pages/item/preview/preview_request_builder.rb @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePagePreview.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,16 +53,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a preview_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PreviewRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/pages/pages_request_builder.rb b/lib/groups/item/sites/item/onenote/pages/pages_request_builder.rb index 397b1d7355..ad388ce51e 100644 --- a/lib/groups/item/sites/item/onenote/pages/pages_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/pages/pages_request_builder.rb @@ -46,10 +46,10 @@ def by_onenote_page_id(onenote_page_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of page objects. + ## The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_page_collection_response ## @@ -58,12 +58,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. + ## Create new navigation property to pages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_page @@ -74,30 +73,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of page objects. + ## The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. + ## Create new navigation property to pages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a pages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PagesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of page objects. + # The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. class PagesRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/onenote/resources/count/count_request_builder.rb b/lib/groups/item/sites/item/onenote/resources/count/count_request_builder.rb index 8ce8c63a75..92fe4333e9 100644 --- a/lib/groups/item/sites/item/onenote/resources/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/resources/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/resources/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/resources/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/onenote/resources/item/content/content_request_builder.rb b/lib/groups/item/sites/item/onenote/resources/item/content/content_request_builder.rb index a13922416d..0d8d127454 100644 --- a/lib/groups/item/sites/item/onenote/resources/item/content/content_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/resources/item/content/content_request_builder.rb @@ -36,6 +36,19 @@ def initialize(path_parameters, request_adapter) ## ## The content stream ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The content stream + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## def get(request_configuration=nil) @@ -43,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -59,8 +71,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,15 +79,33 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The content stream + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -88,17 +117,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/resources/item/onenote_resource_item_request_builder.rb b/lib/groups/item/sites/item/onenote/resources/item/onenote_resource_item_request_builder.rb index bfd5c563a0..11bbf0b199 100644 --- a/lib/groups/item/sites/item/onenote/resources/item/onenote_resource_item_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/resources/item/onenote_resource_item_request_builder.rb @@ -35,7 +35,7 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/resources/{onenoteResource%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/resources/{onenoteResource%2Did}{?%24expand,%24select}") end ## ## Delete navigation property resources for groups @@ -47,12 +47,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + ## The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_resource ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,31 +85,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + ## The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,20 +122,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_resource_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenoteResourceItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + # The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. class OnenoteResourceItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/onenote/resources/resources_request_builder.rb b/lib/groups/item/sites/item/onenote/resources/resources_request_builder.rb index fcf5a4cf8e..9f05e094a0 100644 --- a/lib/groups/item/sites/item/onenote/resources/resources_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/resources/resources_request_builder.rb @@ -46,10 +46,10 @@ def by_onenote_resource_id(onenote_resource_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/resources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + ## The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_resource_collection_response ## @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteResourceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,26 +73,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteResource.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + ## The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resources_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourcesRequestBuilder.new(raw_url, @request_adapter) + end ## - # The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + # The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. class ResourcesRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/onenote/section_groups/count/count_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/count/count_request_builder.rb index d6cc1864a7..bb949ce510 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/parent_notebook/parent_notebook_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/item/parent_notebook/parent_notebook_request_builder.rb index b0301f6dd6..fcdd40caa8 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/parent_notebook/parent_notebook_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/parent_notebook/parent_notebook_request_builder.rb @@ -31,7 +31,7 @@ class ParentNotebookRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/parentNotebook{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/parentNotebook{?%24expand,%24select}") end ## ## The notebook that contains the section group. Read-only. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentNotebookRequestBuilder.new(raw_url, @request_adapter) + end ## # The notebook that contains the section group. Read-only. diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/parent_section_group/parent_section_group_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/item/parent_section_group/parent_section_group_request_builder.rb index 7d126f2aec..8c2fd1aba4 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/parent_section_group/parent_section_group_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/parent_section_group/parent_section_group_request_builder.rb @@ -31,7 +31,7 @@ class ParentSectionGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/parentSectionGroup{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/parentSectionGroup{?%24expand,%24select}") end ## ## The section group that contains the section group. Read-only. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_section_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentSectionGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # The section group that contains the section group. Read-only. diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/section_group_item_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/item/section_group_item_request_builder.rb index 5795270564..bd9f418413 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/section_group_item_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/section_group_item_request_builder.rb @@ -53,7 +53,7 @@ def sections() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}{?%24expand,%24select}") end ## ## Delete navigation property sectionGroups for groups @@ -65,12 +65,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a sectionGroup object. + ## The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of section_group ## @@ -79,8 +78,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -95,8 +93,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -106,31 +103,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a sectionGroup object. + ## The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -142,20 +140,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a section_group_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionGroupItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a sectionGroup object. + # The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. class SectionGroupItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/section_groups/count/count_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/item/section_groups/count/count_request_builder.rb index 9760ab0de4..cc673ac63e 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/section_groups/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/section_groups/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/section_groups/item/section_group_item_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/item/section_groups/item/section_group_item_request_builder.rb index 8df38e2b57..e815ee5b59 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/section_groups/item/section_group_item_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/section_groups/item/section_group_item_request_builder.rb @@ -33,7 +33,7 @@ class SectionGroupItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBu ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups/{sectionGroup%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups/{sectionGroup%2Did1}{?%24expand,%24select}") end ## ## The section groups in the section. Read-only. Nullable. @@ -45,8 +45,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a section_group_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionGroupItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The section groups in the section. Read-only. Nullable. diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/section_groups/section_groups_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/item/section_groups/section_groups_request_builder.rb index f7cf656fec..fe28f26b7c 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/section_groups/section_groups_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/section_groups/section_groups_request_builder.rb @@ -49,10 +49,10 @@ def by_section_group_id1(section_group_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of section groups from the specified section group. + ## The section groups in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of section_group_collection_response ## @@ -61,31 +61,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of section groups from the specified section group. + ## The section groups in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a section_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionGroupsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of section groups from the specified section group. + # The section groups in the section. Read-only. Nullable. class SectionGroupsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/sections/count/count_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/item/sections/count/count_request_builder.rb index ebee6aacf6..9e95228c3d 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/sections/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/sections/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb index 3109dc4ed2..9b614ba113 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb @@ -43,22 +43,22 @@ class CopyToNotebookPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToNotebookPostRequestBody and sets the default values. + ## Instantiates a new CopyToNotebookPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb index 99d9f89f8c..dc7bcdbf7d 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb @@ -49,8 +49,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToNotebookRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb index 33acc66501..021444693e 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb @@ -43,22 +43,22 @@ class CopyToSectionGroupPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToSectionGroupPostRequestBody and sets the default values. + ## Instantiates a new CopyToSectionGroupPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb index c915bce1c1..d684c69fb0 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb @@ -49,8 +49,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_section_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToSectionGroupRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/onenote_section_item_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/onenote_section_item_request_builder.rb index 5bdf903ddc..3af5cb08d0 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/onenote_section_item_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/onenote_section_item_request_builder.rb @@ -63,7 +63,7 @@ def parent_section_group() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}{?%24expand,%24select}") end ## ## Delete navigation property sections for groups @@ -75,8 +75,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -89,8 +88,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -105,8 +103,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -116,13 +113,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,15 +130,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -152,17 +150,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_section_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenoteSectionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The sections in the section group. Read-only. Nullable. diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/count/count_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/count/count_request_builder.rb index fc020fe535..79e9cffc7d 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/count/count_request_builder.rb @@ -36,7 +36,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -59,17 +58,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/content/content_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/content/content_request_builder.rb index 46b64b186e..01ae60d4af 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/content/content_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/content/content_request_builder.rb @@ -44,6 +44,19 @@ def initialize(path_parameters, request_adapter) ## ## The page's HTML content. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The page's HTML content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## def get(request_configuration=nil) @@ -51,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -67,8 +79,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,15 +87,33 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The page's HTML content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -96,17 +125,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb index c521de71ad..63cb795bea 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb @@ -44,22 +44,22 @@ class CopyToSectionPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToSectionPostRequestBody and sets the default values. + ## Instantiates a new CopyToSectionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb index 9be08d124e..87085964c8 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb @@ -53,8 +53,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_section_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToSectionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/onenote_page_item_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/onenote_page_item_request_builder.rb index fffb3c5de8..cf78d50e79 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/onenote_page_item_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/onenote_page_item_request_builder.rb @@ -73,7 +73,7 @@ def preview() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24expand,%24select}") end ## ## Delete navigation property pages for groups @@ -85,8 +85,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -99,8 +98,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -115,8 +113,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -126,13 +123,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -142,15 +140,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -162,17 +160,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_page_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenotePageItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of pages in the section. Read-only. Nullable. diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb index 6c89051a1c..ace2729d6c 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb @@ -36,15 +36,15 @@ class OnenotePatchContentPostRequestBody # The commands property @commands ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -66,7 +66,7 @@ def commands=(value) @commands = value end ## - ## Instantiates a new onenotePatchContentPostRequestBody and sets the default values. + ## Instantiates a new OnenotePatchContentPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb index 662d8c0520..9c00712d01 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb @@ -52,8 +52,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,16 +64,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_patch_content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenotePatchContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb index 98b5a06b3f..d6b7c617e9 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb @@ -39,7 +39,7 @@ class ParentNotebookRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24expand,%24select}") end ## ## The notebook that contains the page. Read-only. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentNotebookRequestBuilder.new(raw_url, @request_adapter) + end ## # The notebook that contains the page. Read-only. diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb index 150baf8f82..4ab18fa0d0 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/parent_section/parent_section_request_builder.rb @@ -39,7 +39,7 @@ class ParentSectionRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24expand,%24select}") end ## ## The section that contains the page. Read-only. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_section_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentSectionRequestBuilder.new(raw_url, @request_adapter) + end ## # The section that contains the page. Read-only. diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/preview/preview_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/preview/preview_request_builder.rb index 7c168634d7..070358d2e3 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/preview/preview_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/item/preview/preview_request_builder.rb @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePagePreview.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,16 +61,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a preview_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PreviewRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/pages_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/pages_request_builder.rb index 73d78bdb83..55e091c081 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/pages_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/pages/pages_request_builder.rb @@ -54,10 +54,10 @@ def by_onenote_page_id(onenote_page_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of page objects from the specified section. + ## The collection of pages in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_page_collection_response ## @@ -66,12 +66,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new page in the specified section. + ## Create new navigation property to pages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_page @@ -82,30 +81,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of page objects from the specified section. + ## The collection of pages in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new page in the specified section. + ## Create new navigation property to pages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -113,20 +111,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a pages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PagesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of page objects from the specified section. + # The collection of pages in the section. Read-only. Nullable. class PagesRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/parent_notebook/parent_notebook_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/parent_notebook/parent_notebook_request_builder.rb index bc7ec583a3..40729d09be 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/parent_notebook/parent_notebook_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/parent_notebook/parent_notebook_request_builder.rb @@ -35,7 +35,7 @@ class ParentNotebookRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%24expand,%24select}") end ## ## The notebook that contains the section. Read-only. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentNotebookRequestBuilder.new(raw_url, @request_adapter) + end ## # The notebook that contains the section. Read-only. diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/parent_section_group/parent_section_group_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/parent_section_group/parent_section_group_request_builder.rb index 91c71f9cee..e5f1e17510 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/parent_section_group/parent_section_group_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/sections/item/parent_section_group/parent_section_group_request_builder.rb @@ -35,7 +35,7 @@ class ParentSectionGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%24expand,%24select}") end ## ## The section group that contains the section. Read-only. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_section_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentSectionGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # The section group that contains the section. Read-only. diff --git a/lib/groups/item/sites/item/onenote/section_groups/item/sections/sections_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/item/sections/sections_request_builder.rb index 167a05ca81..e15ece6a01 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/item/sections/sections_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/item/sections/sections_request_builder.rb @@ -50,10 +50,10 @@ def by_onenote_section_id(onenote_section_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of onenoteSection objects from the specified section group. + ## The sections in the section group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_section_collection_response ## @@ -62,12 +62,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSectionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new onenoteSection in the specified section group. + ## Create new navigation property to sections for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_section @@ -78,30 +77,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of onenoteSection objects from the specified section group. + ## The sections in the section group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new onenoteSection in the specified section group. + ## Create new navigation property to sections for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sections_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of onenoteSection objects from the specified section group. + # The sections in the section group. Read-only. Nullable. class SectionsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/onenote/section_groups/section_groups_request_builder.rb b/lib/groups/item/sites/item/onenote/section_groups/section_groups_request_builder.rb index ffa858de20..dde2751f56 100644 --- a/lib/groups/item/sites/item/onenote/section_groups/section_groups_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/section_groups/section_groups_request_builder.rb @@ -46,10 +46,10 @@ def by_section_group_id(section_group_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of sectionGroup objects. + ## The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of section_group_collection_response ## @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,26 +73,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of sectionGroup objects. + ## The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a section_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionGroupsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of sectionGroup objects. + # The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. class SectionGroupsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/onenote/sections/count/count_request_builder.rb b/lib/groups/item/sites/item/onenote/sections/count/count_request_builder.rb index deff6e7322..c2b543d00d 100644 --- a/lib/groups/item/sites/item/onenote/sections/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/sections/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/onenote/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb b/lib/groups/item/sites/item/onenote/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb index 987351e8df..0576961b45 100644 --- a/lib/groups/item/sites/item/onenote/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb +++ b/lib/groups/item/sites/item/onenote/sections/item/copy_to_notebook/copy_to_notebook_post_request_body.rb @@ -39,22 +39,22 @@ class CopyToNotebookPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToNotebookPostRequestBody and sets the default values. + ## Instantiates a new CopyToNotebookPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/onenote/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb b/lib/groups/item/sites/item/onenote/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb index d4340d1c99..fe6c438957 100644 --- a/lib/groups/item/sites/item/onenote/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/sections/item/copy_to_notebook/copy_to_notebook_request_builder.rb @@ -45,8 +45,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToNotebookRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb b/lib/groups/item/sites/item/onenote/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb index 9f42e5ba5c..56487c32eb 100644 --- a/lib/groups/item/sites/item/onenote/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb +++ b/lib/groups/item/sites/item/onenote/sections/item/copy_to_section_group/copy_to_section_group_post_request_body.rb @@ -39,22 +39,22 @@ class CopyToSectionGroupPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToSectionGroupPostRequestBody and sets the default values. + ## Instantiates a new CopyToSectionGroupPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/onenote/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb b/lib/groups/item/sites/item/onenote/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb index aa72cb4a56..4cf6e9717a 100644 --- a/lib/groups/item/sites/item/onenote/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/sections/item/copy_to_section_group/copy_to_section_group_request_builder.rb @@ -45,8 +45,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_section_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToSectionGroupRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/sections/item/onenote_section_item_request_builder.rb b/lib/groups/item/sites/item/onenote/sections/item/onenote_section_item_request_builder.rb index 384e7a8ce7..28991c9bdd 100644 --- a/lib/groups/item/sites/item/onenote/sections/item/onenote_section_item_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/sections/item/onenote_section_item_request_builder.rb @@ -59,7 +59,7 @@ def parent_section_group() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}{?%24expand,%24select}") end ## ## Delete navigation property sections for groups @@ -71,12 +71,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a onenoteSection object. + ## The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_section ## @@ -85,8 +84,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -101,8 +99,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -112,31 +109,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a onenoteSection object. + ## The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -148,20 +146,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_section_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenoteSectionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a onenoteSection object. + # The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. class OnenoteSectionItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/onenote/sections/item/pages/count/count_request_builder.rb b/lib/groups/item/sites/item/onenote/sections/item/pages/count/count_request_builder.rb index 4a6c9c48f8..bf5d8593a4 100644 --- a/lib/groups/item/sites/item/onenote/sections/item/pages/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/sections/item/pages/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/onenote/sections/item/pages/item/content/content_request_builder.rb b/lib/groups/item/sites/item/onenote/sections/item/pages/item/content/content_request_builder.rb index 471b3a6cec..3dd89293ae 100644 --- a/lib/groups/item/sites/item/onenote/sections/item/pages/item/content/content_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/sections/item/pages/item/content/content_request_builder.rb @@ -40,6 +40,19 @@ def initialize(path_parameters, request_adapter) ## ## The page's HTML content. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The page's HTML content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## def get(request_configuration=nil) @@ -47,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -63,8 +75,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,15 +83,33 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The page's HTML content. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -92,17 +121,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb b/lib/groups/item/sites/item/onenote/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb index 162e093537..1bbc13d930 100644 --- a/lib/groups/item/sites/item/onenote/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb +++ b/lib/groups/item/sites/item/onenote/sections/item/pages/item/copy_to_section/copy_to_section_post_request_body.rb @@ -40,22 +40,22 @@ class CopyToSectionPostRequestBody # The siteId property @site_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new copyToSectionPostRequestBody and sets the default values. + ## Instantiates a new CopyToSectionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/onenote/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb b/lib/groups/item/sites/item/onenote/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb index c70ec732ca..80bf77e686 100644 --- a/lib/groups/item/sites/item/onenote/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/sections/item/pages/item/copy_to_section/copy_to_section_request_builder.rb @@ -49,8 +49,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a copy_to_section_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CopyToSectionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/sections/item/pages/item/onenote_page_item_request_builder.rb b/lib/groups/item/sites/item/onenote/sections/item/pages/item/onenote_page_item_request_builder.rb index 06009e8de7..177efd828a 100644 --- a/lib/groups/item/sites/item/onenote/sections/item/pages/item/onenote_page_item_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/sections/item/pages/item/onenote_page_item_request_builder.rb @@ -69,7 +69,7 @@ def preview() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24expand,%24select}") end ## ## Delete navigation property pages for groups @@ -81,8 +81,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -95,8 +94,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -111,8 +109,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -122,13 +119,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,15 +136,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -158,17 +156,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_page_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenotePageItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of pages in the section. Read-only. Nullable. diff --git a/lib/groups/item/sites/item/onenote/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb b/lib/groups/item/sites/item/onenote/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb index 0132fef3b7..4725ce2e95 100644 --- a/lib/groups/item/sites/item/onenote/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb +++ b/lib/groups/item/sites/item/onenote/sections/item/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.rb @@ -32,15 +32,15 @@ class OnenotePatchContentPostRequestBody # The commands property @commands ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -62,7 +62,7 @@ def commands=(value) @commands = value end ## - ## Instantiates a new onenotePatchContentPostRequestBody and sets the default values. + ## Instantiates a new OnenotePatchContentPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/onenote/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb b/lib/groups/item/sites/item/onenote/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb index c863e47c45..49b7b1ecda 100644 --- a/lib/groups/item/sites/item/onenote/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/sections/item/pages/item/onenote_patch_content/onenote_patch_content_request_builder.rb @@ -48,8 +48,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,16 +60,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a onenote_patch_content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnenotePatchContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb b/lib/groups/item/sites/item/onenote/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb index 430e922022..a4ad89c34f 100644 --- a/lib/groups/item/sites/item/onenote/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/sections/item/pages/item/parent_notebook/parent_notebook_request_builder.rb @@ -35,7 +35,7 @@ class ParentNotebookRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24expand,%24select}") end ## ## The notebook that contains the page. Read-only. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentNotebookRequestBuilder.new(raw_url, @request_adapter) + end ## # The notebook that contains the page. Read-only. diff --git a/lib/groups/item/sites/item/onenote/sections/item/pages/item/parent_section/parent_section_request_builder.rb b/lib/groups/item/sites/item/onenote/sections/item/pages/item/parent_section/parent_section_request_builder.rb index 07d214e981..72e2489413 100644 --- a/lib/groups/item/sites/item/onenote/sections/item/pages/item/parent_section/parent_section_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/sections/item/pages/item/parent_section/parent_section_request_builder.rb @@ -35,7 +35,7 @@ class ParentSectionRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24expand,%24select}") end ## ## The section that contains the page. Read-only. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_section_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentSectionRequestBuilder.new(raw_url, @request_adapter) + end ## # The section that contains the page. Read-only. diff --git a/lib/groups/item/sites/item/onenote/sections/item/pages/item/preview/preview_request_builder.rb b/lib/groups/item/sites/item/onenote/sections/item/pages/item/preview/preview_request_builder.rb index f79816b57a..34771cab89 100644 --- a/lib/groups/item/sites/item/onenote/sections/item/pages/item/preview/preview_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/sections/item/pages/item/preview/preview_request_builder.rb @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePagePreview.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,16 +57,25 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a preview_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PreviewRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/onenote/sections/item/pages/pages_request_builder.rb b/lib/groups/item/sites/item/onenote/sections/item/pages/pages_request_builder.rb index 9048a92aa9..64cdf77775 100644 --- a/lib/groups/item/sites/item/onenote/sections/item/pages/pages_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/sections/item/pages/pages_request_builder.rb @@ -50,10 +50,10 @@ def by_onenote_page_id(onenote_page_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of page objects from the specified section. + ## The collection of pages in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_page_collection_response ## @@ -62,12 +62,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new page in the specified section. + ## Create new navigation property to pages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_page @@ -78,30 +77,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenotePage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of page objects from the specified section. + ## The collection of pages in the section. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new page in the specified section. + ## Create new navigation property to pages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a pages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PagesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of page objects from the specified section. + # The collection of pages in the section. Read-only. Nullable. class PagesRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/onenote/sections/item/parent_notebook/parent_notebook_request_builder.rb b/lib/groups/item/sites/item/onenote/sections/item/parent_notebook/parent_notebook_request_builder.rb index 7b9add3570..a6768809de 100644 --- a/lib/groups/item/sites/item/onenote/sections/item/parent_notebook/parent_notebook_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/sections/item/parent_notebook/parent_notebook_request_builder.rb @@ -31,7 +31,7 @@ class ParentNotebookRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/parentNotebook{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/parentNotebook{?%24expand,%24select}") end ## ## The notebook that contains the section. Read-only. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Notebook.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_notebook_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentNotebookRequestBuilder.new(raw_url, @request_adapter) + end ## # The notebook that contains the section. Read-only. diff --git a/lib/groups/item/sites/item/onenote/sections/item/parent_section_group/parent_section_group_request_builder.rb b/lib/groups/item/sites/item/onenote/sections/item/parent_section_group/parent_section_group_request_builder.rb index c660f1bdef..504dea8b33 100644 --- a/lib/groups/item/sites/item/onenote/sections/item/parent_section_group/parent_section_group_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/sections/item/parent_section_group/parent_section_group_request_builder.rb @@ -31,7 +31,7 @@ class ParentSectionGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/parentSectionGroup{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/parentSectionGroup{?%24expand,%24select}") end ## ## The section group that contains the section. Read-only. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SectionGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_section_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentSectionGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # The section group that contains the section. Read-only. diff --git a/lib/groups/item/sites/item/onenote/sections/sections_request_builder.rb b/lib/groups/item/sites/item/onenote/sections/sections_request_builder.rb index dbe20654b5..9fd5347881 100644 --- a/lib/groups/item/sites/item/onenote/sections/sections_request_builder.rb +++ b/lib/groups/item/sites/item/onenote/sections/sections_request_builder.rb @@ -46,10 +46,10 @@ def by_onenote_section_id(onenote_section_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of onenoteSection objects. + ## The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of onenote_section_collection_response ## @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSectionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,26 +73,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnenoteSection.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of onenoteSection objects. + ## The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sections_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SectionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of onenoteSection objects. + # The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. class SectionsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/operations/count/count_request_builder.rb b/lib/groups/item/sites/item/operations/count/count_request_builder.rb index 149f2e9e0d..46e3714d5c 100644 --- a/lib/groups/item/sites/item/operations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/operations/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/operations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/operations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/operations/item/rich_long_running_operation_item_request_builder.rb b/lib/groups/item/sites/item/operations/item/rich_long_running_operation_item_request_builder.rb index 1f4c5d1a2d..1c6758538d 100644 --- a/lib/groups/item/sites/item/operations/item/rich_long_running_operation_item_request_builder.rb +++ b/lib/groups/item/sites/item/operations/item/rich_long_running_operation_item_request_builder.rb @@ -27,7 +27,7 @@ class RichLongRunningOperationItemRequestBuilder < MicrosoftKiotaAbstractions::B ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/operations/{richLongRunningOperation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/operations/{richLongRunningOperation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property operations for groups @@ -39,12 +39,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get the status of a rich long-running operation on a site or a list. + ## The collection of long-running operations on the site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of rich_long_running_operation ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RichLongRunningOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RichLongRunningOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,31 +77,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get the status of a rich long-running operation on a site or a list. + ## The collection of long-running operations on the site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,20 +114,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a rich_long_running_operation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RichLongRunningOperationItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the status of a rich long-running operation on a site or a list. + # The collection of long-running operations on the site. class RichLongRunningOperationItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/operations/operations_request_builder.rb b/lib/groups/item/sites/item/operations/operations_request_builder.rb index cfeecdb8e6..e87c1325ac 100644 --- a/lib/groups/item/sites/item/operations/operations_request_builder.rb +++ b/lib/groups/item/sites/item/operations/operations_request_builder.rb @@ -44,10 +44,10 @@ def by_rich_long_running_operation_id(rich_long_running_operation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get a list of rich long-running operations associated with a site. + ## The collection of long-running operations on the site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of rich_long_running_operation_collection_response ## @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RichLongRunningOperationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,26 +71,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RichLongRunningOperation.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get a list of rich long-running operations associated with a site. + ## The collection of long-running operations on the site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a operations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OperationsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a list of rich long-running operations associated with a site. + # The collection of long-running operations on the site. class OperationsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/pages/count/count.rb b/lib/groups/item/sites/item/pages/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/count/count_request_builder.rb b/lib/groups/item/sites/item/pages/count/count_request_builder.rb new file mode 100644 index 0000000000..638c2409f7 --- /dev/null +++ b/lib/groups/item/sites/item/pages/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../pages' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/graph_site_page/count/count.rb b/lib/groups/item/sites/item/pages/graph_site_page/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/graph_site_page/count/count_request_builder.rb b/lib/groups/item/sites/item/pages/graph_site_page/count/count_request_builder.rb new file mode 100644 index 0000000000..b680cc8e48 --- /dev/null +++ b/lib/groups/item/sites/item/pages/graph_site_page/count/count_request_builder.rb @@ -0,0 +1,109 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../sites' +require_relative '../../../item' +require_relative '../../pages' +require_relative '../graph_site_page' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module GraphSitePage + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/graph.sitePage/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/graph_site_page/graph_site_page.rb b/lib/groups/item/sites/item/pages/graph_site_page/graph_site_page.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/graph_site_page/graph_site_page_request_builder.rb b/lib/groups/item/sites/item/pages/graph_site_page/graph_site_page_request_builder.rb new file mode 100644 index 0000000000..ce94e2a616 --- /dev/null +++ b/lib/groups/item/sites/item/pages/graph_site_page/graph_site_page_request_builder.rb @@ -0,0 +1,143 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../models/site_page_collection_response' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../pages' +require_relative './count/count_request_builder' +require_relative './graph_site_page' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module GraphSitePage + ## + # Casts the previous resource to sitePage. + class GraphSitePageRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::GraphSitePage::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphSitePageRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/graph.sitePage{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get the items of type microsoft.graph.sitePage in the microsoft.graph.baseSitePage collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of site_page_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SitePageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.sitePage in the microsoft.graph.baseSitePage collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_site_page_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphSitePageRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the items of type microsoft.graph.sitePage in the microsoft.graph.baseSitePage collection + class GraphSitePageRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/base_site_page_item_request_builder.rb b/lib/groups/item/sites/item/pages/item/base_site_page_item_request_builder.rb new file mode 100644 index 0000000000..b837f6b77a --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/base_site_page_item_request_builder.rb @@ -0,0 +1,190 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/base_site_page' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../sites' +require_relative '../../item' +require_relative '../pages' +require_relative './created_by_user/created_by_user_request_builder' +require_relative './graph_site_page/graph_site_page_request_builder' +require_relative './item' +require_relative './last_modified_by_user/last_modified_by_user_request_builder' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + ## + # Provides operations to manage the pages property of the microsoft.graph.site entity. + class BaseSitePageItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. + def created_by_user() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::CreatedByUser::CreatedByUserRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to sitePage. + def graph_site_page() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::GraphSitePageRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. + def last_modified_by_user() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::LastModifiedByUser::LastModifiedByUserRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new BaseSitePageItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property pages for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The collection of pages in the baseSitePages list in this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of base_site_page + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BaseSitePage.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property pages in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of base_site_page + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BaseSitePage.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property pages for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The collection of pages in the baseSitePages list in this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property pages in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a base_site_page_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BaseSitePageItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of pages in the baseSitePages list in this site. + class BaseSitePageItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/created_by_user/created_by_user.rb b/lib/groups/item/sites/item/pages/item/created_by_user/created_by_user.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/created_by_user/created_by_user_request_builder.rb b/lib/groups/item/sites/item/pages/item/created_by_user/created_by_user_request_builder.rb new file mode 100644 index 0000000000..55b934fa41 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/created_by_user/created_by_user_request_builder.rb @@ -0,0 +1,122 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../models/user' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../sites' +require_relative '../../../item' +require_relative '../../pages' +require_relative '../item' +require_relative './created_by_user' +require_relative './mailbox_settings/mailbox_settings_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module CreatedByUser + ## + # Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. + class CreatedByUserRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # The mailboxSettings property + def mailbox_settings() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::CreatedByUser::MailboxSettings::MailboxSettingsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::CreatedByUser::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new CreatedByUserRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser{?%24expand,%24select}") + end + ## + ## Identity of the user who created the item. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of user + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Identity of the user who created the item. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a created_by_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreatedByUserRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Identity of the user who created the item. Read-only. + class CreatedByUserRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/created_by_user/mailbox_settings/mailbox_settings.rb b/lib/groups/item/sites/item/pages/item/created_by_user/mailbox_settings/mailbox_settings.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb b/lib/groups/item/sites/item/pages/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb new file mode 100644 index 0000000000..0e1f25eff6 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb @@ -0,0 +1,148 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mailbox_settings' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../groups' +require_relative '../../../../../../item' +require_relative '../../../../../sites' +require_relative '../../../../item' +require_relative '../../../pages' +require_relative '../../item' +require_relative '../created_by_user' +require_relative './mailbox_settings' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module CreatedByUser + module MailboxSettings + ## + # Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\pages\{baseSitePage-id}\createdByUser\mailboxSettings + class MailboxSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}") + end + ## + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mailbox_settings + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update property mailboxSettings value. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mailbox_settings + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update property mailboxSettings value. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mailbox_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MailboxSettingsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + class MailboxSettingsRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/created_by_user/service_provisioning_errors/count/count.rb b/lib/groups/item/sites/item/pages/item/created_by_user/service_provisioning_errors/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/created_by_user/service_provisioning_errors/count/count_request_builder.rb b/lib/groups/item/sites/item/pages/item/created_by_user/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..9c2e892798 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/created_by_user/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,115 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../groups' +require_relative '../../../../../../../item' +require_relative '../../../../../../sites' +require_relative '../../../../../item' +require_relative '../../../../pages' +require_relative '../../../item' +require_relative '../../created_by_user' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module CreatedByUser + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/created_by_user/service_provisioning_errors/service_provisioning_errors.rb b/lib/groups/item/sites/item/pages/item/created_by_user/service_provisioning_errors/service_provisioning_errors.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/groups/item/sites/item/pages/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..0822f938b1 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,149 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../models/service_provisioning_error_collection_response' +require_relative '../../../../../../../groups' +require_relative '../../../../../../item' +require_relative '../../../../../sites' +require_relative '../../../../item' +require_relative '../../../pages' +require_relative '../../item' +require_relative '../created_by_user' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module CreatedByUser + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\pages\{baseSitePage-id}\createdByUser\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::CreatedByUser::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/canvas_layout.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/canvas_layout.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/canvas_layout_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/canvas_layout_request_builder.rb new file mode 100644 index 0000000000..d4b1f6338a --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/canvas_layout_request_builder.rb @@ -0,0 +1,190 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/canvas_layout' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../groups' +require_relative '../../../../../../item' +require_relative '../../../../../sites' +require_relative '../../../../item' +require_relative '../../../pages' +require_relative '../../item' +require_relative '../graph_site_page' +require_relative './canvas_layout' +require_relative './horizontal_sections/horizontal_sections_request_builder' +require_relative './vertical_section/vertical_section_request_builder' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module CanvasLayout + ## + # Provides operations to manage the canvasLayout property of the microsoft.graph.sitePage entity. + class CanvasLayoutRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the horizontalSections property of the microsoft.graph.canvasLayout entity. + def horizontal_sections() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::CanvasLayout::HorizontalSections::HorizontalSectionsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the verticalSection property of the microsoft.graph.canvasLayout entity. + def vertical_section() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::CanvasLayout::VerticalSection::VerticalSectionRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new CanvasLayoutRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout{?%24expand,%24select}") + end + ## + ## Delete navigation property canvasLayout for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Indicates the layout of the content in a given SharePoint page, including horizontal sections and vertical sections. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of canvas_layout + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CanvasLayout.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property canvasLayout in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of canvas_layout + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CanvasLayout.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property canvasLayout for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Indicates the layout of the content in a given SharePoint page, including horizontal sections and vertical sections. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property canvasLayout in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a canvas_layout_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CanvasLayoutRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Indicates the layout of the content in a given SharePoint page, including horizontal sections and vertical sections. + class CanvasLayoutRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/count/count.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/count/count_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/count/count_request_builder.rb new file mode 100644 index 0000000000..67c3f96ecf --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/count/count_request_builder.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../groups' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../sites' +require_relative '../../../../../../item' +require_relative '../../../../../pages' +require_relative '../../../../item' +require_relative '../../../graph_site_page' +require_relative '../../canvas_layout' +require_relative '../horizontal_sections' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module CanvasLayout + module HorizontalSections + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/horizontal_sections.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/horizontal_sections.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/horizontal_sections_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/horizontal_sections_request_builder.rb new file mode 100644 index 0000000000..03b460823a --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/horizontal_sections_request_builder.rb @@ -0,0 +1,200 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/horizontal_section' +require_relative '../../../../../../../../../models/horizontal_section_collection_response' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../groups' +require_relative '../../../../../../../item' +require_relative '../../../../../../sites' +require_relative '../../../../../item' +require_relative '../../../../pages' +require_relative '../../../item' +require_relative '../../graph_site_page' +require_relative '../canvas_layout' +require_relative './count/count_request_builder' +require_relative './horizontal_sections' +require_relative './item/horizontal_section_item_request_builder' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module CanvasLayout + module HorizontalSections + ## + # Provides operations to manage the horizontalSections property of the microsoft.graph.canvasLayout entity. + class HorizontalSectionsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::CanvasLayout::HorizontalSections::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the horizontalSections property of the microsoft.graph.canvasLayout entity. + ## @param horizontal_section_id The unique identifier of horizontalSection + ## @return a horizontal_section_item_request_builder + ## + def by_horizontal_section_id(horizontal_section_id) + raise StandardError, 'horizontal_section_id cannot be null' if horizontal_section_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["horizontalSection%2Did"] = horizontal_section_id + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::CanvasLayout::HorizontalSections::Item::HorizontalSectionItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new HorizontalSectionsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Collection of horizontal sections on the SharePoint page. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of horizontal_section_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::HorizontalSectionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to horizontalSections for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of horizontal_section + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::HorizontalSection.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Collection of horizontal sections on the SharePoint page. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to horizontalSections for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a horizontal_sections_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HorizontalSectionsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Collection of horizontal sections on the SharePoint page. + class HorizontalSectionsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/columns.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/columns.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/columns_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/columns_request_builder.rb new file mode 100644 index 0000000000..e26a3be11e --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/columns_request_builder.rb @@ -0,0 +1,206 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/horizontal_section_column' +require_relative '../../../../../../../../../../../models/horizontal_section_column_collection_response' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../groups' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../sites' +require_relative '../../../../../../../item' +require_relative '../../../../../../pages' +require_relative '../../../../../item' +require_relative '../../../../graph_site_page' +require_relative '../../../canvas_layout' +require_relative '../../horizontal_sections' +require_relative '../item' +require_relative './columns' +require_relative './count/count_request_builder' +require_relative './item/horizontal_section_column_item_request_builder' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module CanvasLayout + module HorizontalSections + module Item + module Columns + ## + # Provides operations to manage the columns property of the microsoft.graph.horizontalSection entity. + class ColumnsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::CanvasLayout::HorizontalSections::Item::Columns::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the columns property of the microsoft.graph.horizontalSection entity. + ## @param horizontal_section_column_id The unique identifier of horizontalSectionColumn + ## @return a horizontal_section_column_item_request_builder + ## + def by_horizontal_section_column_id(horizontal_section_column_id) + raise StandardError, 'horizontal_section_column_id cannot be null' if horizontal_section_column_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["horizontalSectionColumn%2Did"] = horizontal_section_column_id + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::CanvasLayout::HorizontalSections::Item::Columns::Item::HorizontalSectionColumnItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new ColumnsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The set of vertical columns in this section. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of horizontal_section_column_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::HorizontalSectionColumnCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to columns for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of horizontal_section_column + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::HorizontalSectionColumn.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The set of vertical columns in this section. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to columns for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a columns_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ColumnsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The set of vertical columns in this section. + class ColumnsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/count/count.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/count/count_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/count/count_request_builder.rb new file mode 100644 index 0000000000..deafb5c799 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/count/count_request_builder.rb @@ -0,0 +1,124 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../groups' +require_relative '../../../../../../../../../../item' +require_relative '../../../../../../../../../sites' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../pages' +require_relative '../../../../../../item' +require_relative '../../../../../graph_site_page' +require_relative '../../../../canvas_layout' +require_relative '../../../horizontal_sections' +require_relative '../../item' +require_relative '../columns' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module CanvasLayout + module HorizontalSections + module Item + module Columns + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/horizontal_section_column_item_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/horizontal_section_column_item_request_builder.rb new file mode 100644 index 0000000000..0864e6064a --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/horizontal_section_column_item_request_builder.rb @@ -0,0 +1,196 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../models/horizontal_section_column' +require_relative '../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../groups' +require_relative '../../../../../../../../../../item' +require_relative '../../../../../../../../../sites' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../pages' +require_relative '../../../../../../item' +require_relative '../../../../../graph_site_page' +require_relative '../../../../canvas_layout' +require_relative '../../../horizontal_sections' +require_relative '../../item' +require_relative '../columns' +require_relative './item' +require_relative './webparts/webparts_request_builder' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module CanvasLayout + module HorizontalSections + module Item + module Columns + module Item + ## + # Provides operations to manage the columns property of the microsoft.graph.horizontalSection entity. + class HorizontalSectionColumnItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the webparts property of the microsoft.graph.horizontalSectionColumn entity. + def webparts() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::CanvasLayout::HorizontalSections::Item::Columns::Item::Webparts::WebpartsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new HorizontalSectionColumnItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property columns for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The set of vertical columns in this section. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of horizontal_section_column + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::HorizontalSectionColumn.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property columns in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of horizontal_section_column + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::HorizontalSectionColumn.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property columns for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The set of vertical columns in this section. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property columns in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a horizontal_section_column_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HorizontalSectionColumnItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The set of vertical columns in this section. + class HorizontalSectionColumnItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/item.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/webparts/count/count.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/webparts/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/webparts/count/count_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/webparts/count/count_request_builder.rb new file mode 100644 index 0000000000..db7120c4a5 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/webparts/count/count_request_builder.rb @@ -0,0 +1,130 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../groups' +require_relative '../../../../../../../../../../../../item' +require_relative '../../../../../../../../../../../sites' +require_relative '../../../../../../../../../../item' +require_relative '../../../../../../../../../pages' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../graph_site_page' +require_relative '../../../../../../canvas_layout' +require_relative '../../../../../horizontal_sections' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../webparts' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module CanvasLayout + module HorizontalSections + module Item + module Columns + module Item + module Webparts + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/webparts/item/get_position_of_web_part/get_position_of_web_part.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/webparts/item/get_position_of_web_part/get_position_of_web_part.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/webparts/item/get_position_of_web_part/get_position_of_web_part_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/webparts/item/get_position_of_web_part/get_position_of_web_part_request_builder.rb new file mode 100644 index 0000000000..c88a869803 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/webparts/item/get_position_of_web_part/get_position_of_web_part_request_builder.rb @@ -0,0 +1,105 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../../../models/web_part_position' +require_relative '../../../../../../../../../../../../../../groups' +require_relative '../../../../../../../../../../../../../item' +require_relative '../../../../../../../../../../../../sites' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../pages' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../graph_site_page' +require_relative '../../../../../../../canvas_layout' +require_relative '../../../../../../horizontal_sections' +require_relative '../../../../../item' +require_relative '../../../../columns' +require_relative '../../../item' +require_relative '../../webparts' +require_relative '../item' +require_relative './get_position_of_web_part' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module CanvasLayout + module HorizontalSections + module Item + module Columns + module Item + module Webparts + module Item + module GetPositionOfWebPart + ## + # Provides operations to call the getPositionOfWebPart method. + class GetPositionOfWebPartRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new GetPositionOfWebPartRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/{webPart%2Did}/getPositionOfWebPart") + end + ## + ## Invoke action getPositionOfWebPart + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of web_part_position + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WebPartPosition.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action getPositionOfWebPart + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_position_of_web_part_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetPositionOfWebPartRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/webparts/item/item.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/webparts/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/webparts/item/web_part_item_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/webparts/item/web_part_item_request_builder.rb new file mode 100644 index 0000000000..b79a28eb0e --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/webparts/item/web_part_item_request_builder.rb @@ -0,0 +1,202 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../../models/web_part' +require_relative '../../../../../../../../../../../../../groups' +require_relative '../../../../../../../../../../../../item' +require_relative '../../../../../../../../../../../sites' +require_relative '../../../../../../../../../../item' +require_relative '../../../../../../../../../pages' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../graph_site_page' +require_relative '../../../../../../canvas_layout' +require_relative '../../../../../horizontal_sections' +require_relative '../../../../item' +require_relative '../../../columns' +require_relative '../../item' +require_relative '../webparts' +require_relative './get_position_of_web_part/get_position_of_web_part_request_builder' +require_relative './item' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module CanvasLayout + module HorizontalSections + module Item + module Columns + module Item + module Webparts + module Item + ## + # Provides operations to manage the webparts property of the microsoft.graph.horizontalSectionColumn entity. + class WebPartItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the getPositionOfWebPart method. + def get_position_of_web_part() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::CanvasLayout::HorizontalSections::Item::Columns::Item::Webparts::Item::GetPositionOfWebPart::GetPositionOfWebPartRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new WebPartItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/{webPart%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property webparts for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The collection of WebParts in this column. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of web_part + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WebPart.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property webparts in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of web_part + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WebPart.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property webparts for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The collection of WebParts in this column. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property webparts in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a web_part_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WebPartItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of WebParts in this column. + class WebPartItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/webparts/webparts.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/webparts/webparts.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/webparts/webparts_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/webparts/webparts_request_builder.rb new file mode 100644 index 0000000000..9a5b728a26 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/columns/item/webparts/webparts_request_builder.rb @@ -0,0 +1,212 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../../models/web_part' +require_relative '../../../../../../../../../../../../../models/web_part_collection_response' +require_relative '../../../../../../../../../../../../groups' +require_relative '../../../../../../../../../../../item' +require_relative '../../../../../../../../../../sites' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../pages' +require_relative '../../../../../../../item' +require_relative '../../../../../../graph_site_page' +require_relative '../../../../../canvas_layout' +require_relative '../../../../horizontal_sections' +require_relative '../../../item' +require_relative '../../columns' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './item/web_part_item_request_builder' +require_relative './webparts' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module CanvasLayout + module HorizontalSections + module Item + module Columns + module Item + module Webparts + ## + # Provides operations to manage the webparts property of the microsoft.graph.horizontalSectionColumn entity. + class WebpartsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::CanvasLayout::HorizontalSections::Item::Columns::Item::Webparts::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the webparts property of the microsoft.graph.horizontalSectionColumn entity. + ## @param web_part_id The unique identifier of webPart + ## @return a web_part_item_request_builder + ## + def by_web_part_id(web_part_id) + raise StandardError, 'web_part_id cannot be null' if web_part_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["webPart%2Did"] = web_part_id + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::CanvasLayout::HorizontalSections::Item::Columns::Item::Webparts::Item::WebPartItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new WebpartsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The collection of WebParts in this column. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of web_part_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WebPartCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to webparts for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of web_part + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WebPart.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The collection of WebParts in this column. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to webparts for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a webparts_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WebpartsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of WebParts in this column. + class WebpartsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/horizontal_section_item_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/horizontal_section_item_request_builder.rb new file mode 100644 index 0000000000..c4c80ba277 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/horizontal_section_item_request_builder.rb @@ -0,0 +1,190 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/horizontal_section' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../groups' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../sites' +require_relative '../../../../../../item' +require_relative '../../../../../pages' +require_relative '../../../../item' +require_relative '../../../graph_site_page' +require_relative '../../canvas_layout' +require_relative '../horizontal_sections' +require_relative './columns/columns_request_builder' +require_relative './item' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module CanvasLayout + module HorizontalSections + module Item + ## + # Provides operations to manage the horizontalSections property of the microsoft.graph.canvasLayout entity. + class HorizontalSectionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the columns property of the microsoft.graph.horizontalSection entity. + def columns() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::CanvasLayout::HorizontalSections::Item::Columns::ColumnsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new HorizontalSectionItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property horizontalSections for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Collection of horizontal sections on the SharePoint page. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of horizontal_section + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::HorizontalSection.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property horizontalSections in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of horizontal_section + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::HorizontalSection.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property horizontalSections for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Collection of horizontal sections on the SharePoint page. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property horizontalSections in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a horizontal_section_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HorizontalSectionItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Collection of horizontal sections on the SharePoint page. + class HorizontalSectionItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/item.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/horizontal_sections/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/vertical_section.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/vertical_section.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/vertical_section_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/vertical_section_request_builder.rb new file mode 100644 index 0000000000..1397d7a0f7 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/vertical_section_request_builder.rb @@ -0,0 +1,187 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/vertical_section' +require_relative '../../../../../../../../groups' +require_relative '../../../../../../../item' +require_relative '../../../../../../sites' +require_relative '../../../../../item' +require_relative '../../../../pages' +require_relative '../../../item' +require_relative '../../graph_site_page' +require_relative '../canvas_layout' +require_relative './vertical_section' +require_relative './webparts/webparts_request_builder' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module CanvasLayout + module VerticalSection + ## + # Provides operations to manage the verticalSection property of the microsoft.graph.canvasLayout entity. + class VerticalSectionRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the webparts property of the microsoft.graph.verticalSection entity. + def webparts() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::CanvasLayout::VerticalSection::Webparts::WebpartsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new VerticalSectionRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection{?%24expand,%24select}") + end + ## + ## Delete navigation property verticalSection for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Vertical section on the SharePoint page. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of vertical_section + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::VerticalSection.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property verticalSection in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of vertical_section + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::VerticalSection.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property verticalSection for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Vertical section on the SharePoint page. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property verticalSection in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a vertical_section_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return VerticalSectionRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Vertical section on the SharePoint page. + class VerticalSectionRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/webparts/count/count.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/webparts/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/webparts/count/count_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/webparts/count/count_request_builder.rb new file mode 100644 index 0000000000..89d875fe65 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/webparts/count/count_request_builder.rb @@ -0,0 +1,121 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../groups' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../sites' +require_relative '../../../../../../../item' +require_relative '../../../../../../pages' +require_relative '../../../../../item' +require_relative '../../../../graph_site_page' +require_relative '../../../canvas_layout' +require_relative '../../vertical_section' +require_relative '../webparts' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module CanvasLayout + module VerticalSection + module Webparts + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/webparts/item/get_position_of_web_part/get_position_of_web_part.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/webparts/item/get_position_of_web_part/get_position_of_web_part.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/webparts/item/get_position_of_web_part/get_position_of_web_part_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/webparts/item/get_position_of_web_part/get_position_of_web_part_request_builder.rb new file mode 100644 index 0000000000..1aeffb8c6a --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/webparts/item/get_position_of_web_part/get_position_of_web_part_request_builder.rb @@ -0,0 +1,96 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../../models/web_part_position' +require_relative '../../../../../../../../../../../groups' +require_relative '../../../../../../../../../../item' +require_relative '../../../../../../../../../sites' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../pages' +require_relative '../../../../../../item' +require_relative '../../../../../graph_site_page' +require_relative '../../../../canvas_layout' +require_relative '../../../vertical_section' +require_relative '../../webparts' +require_relative '../item' +require_relative './get_position_of_web_part' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module CanvasLayout + module VerticalSection + module Webparts + module Item + module GetPositionOfWebPart + ## + # Provides operations to call the getPositionOfWebPart method. + class GetPositionOfWebPartRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new GetPositionOfWebPartRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/{webPart%2Did}/getPositionOfWebPart") + end + ## + ## Invoke action getPositionOfWebPart + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of web_part_position + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WebPartPosition.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action getPositionOfWebPart + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_position_of_web_part_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetPositionOfWebPartRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/webparts/item/item.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/webparts/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/webparts/item/web_part_item_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/webparts/item/web_part_item_request_builder.rb new file mode 100644 index 0000000000..3aac16b2ee --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/webparts/item/web_part_item_request_builder.rb @@ -0,0 +1,193 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../../models/web_part' +require_relative '../../../../../../../../../../groups' +require_relative '../../../../../../../../../item' +require_relative '../../../../../../../../sites' +require_relative '../../../../../../../item' +require_relative '../../../../../../pages' +require_relative '../../../../../item' +require_relative '../../../../graph_site_page' +require_relative '../../../canvas_layout' +require_relative '../../vertical_section' +require_relative '../webparts' +require_relative './get_position_of_web_part/get_position_of_web_part_request_builder' +require_relative './item' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module CanvasLayout + module VerticalSection + module Webparts + module Item + ## + # Provides operations to manage the webparts property of the microsoft.graph.verticalSection entity. + class WebPartItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the getPositionOfWebPart method. + def get_position_of_web_part() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::CanvasLayout::VerticalSection::Webparts::Item::GetPositionOfWebPart::GetPositionOfWebPartRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new WebPartItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/{webPart%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property webparts for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The set of web parts in this section. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of web_part + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WebPart.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property webparts in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of web_part + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WebPart.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property webparts for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The set of web parts in this section. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property webparts in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a web_part_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WebPartItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The set of web parts in this section. + class WebPartItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/webparts/webparts.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/webparts/webparts.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/webparts/webparts_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/webparts/webparts_request_builder.rb new file mode 100644 index 0000000000..1ece1454c1 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/canvas_layout/vertical_section/webparts/webparts_request_builder.rb @@ -0,0 +1,203 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/web_part' +require_relative '../../../../../../../../../../models/web_part_collection_response' +require_relative '../../../../../../../../../groups' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../sites' +require_relative '../../../../../../item' +require_relative '../../../../../pages' +require_relative '../../../../item' +require_relative '../../../graph_site_page' +require_relative '../../canvas_layout' +require_relative '../vertical_section' +require_relative './count/count_request_builder' +require_relative './item/web_part_item_request_builder' +require_relative './webparts' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module CanvasLayout + module VerticalSection + module Webparts + ## + # Provides operations to manage the webparts property of the microsoft.graph.verticalSection entity. + class WebpartsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::CanvasLayout::VerticalSection::Webparts::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the webparts property of the microsoft.graph.verticalSection entity. + ## @param web_part_id The unique identifier of webPart + ## @return a web_part_item_request_builder + ## + def by_web_part_id(web_part_id) + raise StandardError, 'web_part_id cannot be null' if web_part_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["webPart%2Did"] = web_part_id + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::CanvasLayout::VerticalSection::Webparts::Item::WebPartItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new WebpartsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The set of web parts in this section. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of web_part_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WebPartCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to webparts for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of web_part + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WebPart.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The set of web parts in this section. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to webparts for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a webparts_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WebpartsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The set of web parts in this section. + class WebpartsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/created_by_user/created_by_user.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/created_by_user/created_by_user.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/created_by_user/created_by_user_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/created_by_user/created_by_user_request_builder.rb new file mode 100644 index 0000000000..8b052c2b88 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/created_by_user/created_by_user_request_builder.rb @@ -0,0 +1,125 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../models/user' +require_relative '../../../../../../../groups' +require_relative '../../../../../../item' +require_relative '../../../../../sites' +require_relative '../../../../item' +require_relative '../../../pages' +require_relative '../../item' +require_relative '../graph_site_page' +require_relative './created_by_user' +require_relative './mailbox_settings/mailbox_settings_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module CreatedByUser + ## + # Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. + class CreatedByUserRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # The mailboxSettings property + def mailbox_settings() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::CreatedByUser::MailboxSettings::MailboxSettingsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::CreatedByUser::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new CreatedByUserRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser{?%24expand,%24select}") + end + ## + ## Identity of the user who created the item. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of user + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Identity of the user who created the item. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a created_by_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreatedByUserRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Identity of the user who created the item. Read-only. + class CreatedByUserRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/created_by_user/mailbox_settings/mailbox_settings.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/created_by_user/mailbox_settings/mailbox_settings.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb new file mode 100644 index 0000000000..424718f172 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/created_by_user/mailbox_settings/mailbox_settings_request_builder.rb @@ -0,0 +1,151 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/mailbox_settings' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../groups' +require_relative '../../../../../../../item' +require_relative '../../../../../../sites' +require_relative '../../../../../item' +require_relative '../../../../pages' +require_relative '../../../item' +require_relative '../../graph_site_page' +require_relative '../created_by_user' +require_relative './mailbox_settings' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module CreatedByUser + module MailboxSettings + ## + # Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\pages\{baseSitePage-id}\graph.sitePage\createdByUser\mailboxSettings + class MailboxSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser/mailboxSettings{?%24expand,%24select}") + end + ## + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mailbox_settings + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update property mailboxSettings value. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mailbox_settings + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update property mailboxSettings value. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mailbox_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MailboxSettingsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + class MailboxSettingsRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/created_by_user/service_provisioning_errors/count/count.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/created_by_user/service_provisioning_errors/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/created_by_user/service_provisioning_errors/count/count_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/created_by_user/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..ecf760e623 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/created_by_user/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../groups' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../sites' +require_relative '../../../../../../item' +require_relative '../../../../../pages' +require_relative '../../../../item' +require_relative '../../../graph_site_page' +require_relative '../../created_by_user' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module CreatedByUser + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/created_by_user/service_provisioning_errors/service_provisioning_errors.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/created_by_user/service_provisioning_errors/service_provisioning_errors.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..a5eef73f80 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,152 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/service_provisioning_error_collection_response' +require_relative '../../../../../../../../groups' +require_relative '../../../../../../../item' +require_relative '../../../../../../sites' +require_relative '../../../../../item' +require_relative '../../../../pages' +require_relative '../../../item' +require_relative '../../graph_site_page' +require_relative '../created_by_user' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module CreatedByUser + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\pages\{baseSitePage-id}\graph.sitePage\createdByUser\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::CreatedByUser::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/graph_site_page.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/graph_site_page.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/graph_site_page_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/graph_site_page_request_builder.rb new file mode 100644 index 0000000000..32c14d2b5a --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/graph_site_page_request_builder.rb @@ -0,0 +1,134 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../models/site_page' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../sites' +require_relative '../../../item' +require_relative '../../pages' +require_relative '../item' +require_relative './canvas_layout/canvas_layout_request_builder' +require_relative './created_by_user/created_by_user_request_builder' +require_relative './graph_site_page' +require_relative './last_modified_by_user/last_modified_by_user_request_builder' +require_relative './web_parts/web_parts_request_builder' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + ## + # Casts the previous resource to sitePage. + class GraphSitePageRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the canvasLayout property of the microsoft.graph.sitePage entity. + def canvas_layout() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::CanvasLayout::CanvasLayoutRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. + def created_by_user() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::CreatedByUser::CreatedByUserRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. + def last_modified_by_user() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::LastModifiedByUser::LastModifiedByUserRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the webParts property of the microsoft.graph.sitePage entity. + def web_parts() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::WebParts::WebPartsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphSitePageRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage{?%24expand,%24select}") + end + ## + ## Get the item of type microsoft.graph.baseSitePage as microsoft.graph.sitePage + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of site_page + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SitePage.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.baseSitePage as microsoft.graph.sitePage + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_site_page_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphSitePageRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the item of type microsoft.graph.baseSitePage as microsoft.graph.sitePage + class GraphSitePageRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/last_modified_by_user/last_modified_by_user.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/last_modified_by_user/last_modified_by_user.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/last_modified_by_user/last_modified_by_user_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/last_modified_by_user/last_modified_by_user_request_builder.rb new file mode 100644 index 0000000000..f0edfb51ac --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/last_modified_by_user/last_modified_by_user_request_builder.rb @@ -0,0 +1,125 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../models/user' +require_relative '../../../../../../../groups' +require_relative '../../../../../../item' +require_relative '../../../../../sites' +require_relative '../../../../item' +require_relative '../../../pages' +require_relative '../../item' +require_relative '../graph_site_page' +require_relative './last_modified_by_user' +require_relative './mailbox_settings/mailbox_settings_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module LastModifiedByUser + ## + # Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. + class LastModifiedByUserRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # The mailboxSettings property + def mailbox_settings() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::LastModifiedByUser::MailboxSettings::MailboxSettingsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::LastModifiedByUser::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser{?%24expand,%24select}") + end + ## + ## Identity of the user who last modified the item. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of user + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Identity of the user who last modified the item. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_modified_by_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastModifiedByUserRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Identity of the user who last modified the item. Read-only. + class LastModifiedByUserRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/last_modified_by_user/mailbox_settings/mailbox_settings.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/last_modified_by_user/mailbox_settings/mailbox_settings.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb new file mode 100644 index 0000000000..a2e40d1a99 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb @@ -0,0 +1,151 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/mailbox_settings' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../groups' +require_relative '../../../../../../../item' +require_relative '../../../../../../sites' +require_relative '../../../../../item' +require_relative '../../../../pages' +require_relative '../../../item' +require_relative '../../graph_site_page' +require_relative '../last_modified_by_user' +require_relative './mailbox_settings' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module LastModifiedByUser + module MailboxSettings + ## + # Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\pages\{baseSitePage-id}\graph.sitePage\lastModifiedByUser\mailboxSettings + class MailboxSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser/mailboxSettings{?%24expand,%24select}") + end + ## + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mailbox_settings + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update property mailboxSettings value. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mailbox_settings + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update property mailboxSettings value. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mailbox_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MailboxSettingsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + class MailboxSettingsRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/last_modified_by_user/service_provisioning_errors/count/count.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/last_modified_by_user/service_provisioning_errors/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..9862c251c1 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../groups' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../sites' +require_relative '../../../../../../item' +require_relative '../../../../../pages' +require_relative '../../../../item' +require_relative '../../../graph_site_page' +require_relative '../../last_modified_by_user' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module LastModifiedByUser + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/last_modified_by_user/service_provisioning_errors/service_provisioning_errors.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/last_modified_by_user/service_provisioning_errors/service_provisioning_errors.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..e4ddf7b20c --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,152 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/service_provisioning_error_collection_response' +require_relative '../../../../../../../../groups' +require_relative '../../../../../../../item' +require_relative '../../../../../../sites' +require_relative '../../../../../item' +require_relative '../../../../pages' +require_relative '../../../item' +require_relative '../../graph_site_page' +require_relative '../last_modified_by_user' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module LastModifiedByUser + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\pages\{baseSitePage-id}\graph.sitePage\lastModifiedByUser\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::LastModifiedByUser::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/web_parts/count/count.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/web_parts/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/web_parts/count/count_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/web_parts/count/count_request_builder.rb new file mode 100644 index 0000000000..decbd6f8e5 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/web_parts/count/count_request_builder.rb @@ -0,0 +1,115 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../groups' +require_relative '../../../../../../../item' +require_relative '../../../../../../sites' +require_relative '../../../../../item' +require_relative '../../../../pages' +require_relative '../../../item' +require_relative '../../graph_site_page' +require_relative '../web_parts' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module WebParts + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/web_parts/item/get_position_of_web_part/get_position_of_web_part.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/web_parts/item/get_position_of_web_part/get_position_of_web_part.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/web_parts/item/get_position_of_web_part/get_position_of_web_part_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/web_parts/item/get_position_of_web_part/get_position_of_web_part_request_builder.rb new file mode 100644 index 0000000000..17138d5382 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/web_parts/item/get_position_of_web_part/get_position_of_web_part_request_builder.rb @@ -0,0 +1,90 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../../models/web_part_position' +require_relative '../../../../../../../../../groups' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../sites' +require_relative '../../../../../../item' +require_relative '../../../../../pages' +require_relative '../../../../item' +require_relative '../../../graph_site_page' +require_relative '../../web_parts' +require_relative '../item' +require_relative './get_position_of_web_part' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module WebParts + module Item + module GetPositionOfWebPart + ## + # Provides operations to call the getPositionOfWebPart method. + class GetPositionOfWebPartRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new GetPositionOfWebPartRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/{webPart%2Did}/getPositionOfWebPart") + end + ## + ## Invoke action getPositionOfWebPart + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of web_part_position + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WebPartPosition.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action getPositionOfWebPart + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_position_of_web_part_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetPositionOfWebPartRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/web_parts/item/item.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/web_parts/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/web_parts/item/web_part_item_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/web_parts/item/web_part_item_request_builder.rb new file mode 100644 index 0000000000..d710c73c44 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/web_parts/item/web_part_item_request_builder.rb @@ -0,0 +1,187 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../../models/web_part' +require_relative '../../../../../../../../groups' +require_relative '../../../../../../../item' +require_relative '../../../../../../sites' +require_relative '../../../../../item' +require_relative '../../../../pages' +require_relative '../../../item' +require_relative '../../graph_site_page' +require_relative '../web_parts' +require_relative './get_position_of_web_part/get_position_of_web_part_request_builder' +require_relative './item' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module WebParts + module Item + ## + # Provides operations to manage the webParts property of the microsoft.graph.sitePage entity. + class WebPartItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the getPositionOfWebPart method. + def get_position_of_web_part() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::WebParts::Item::GetPositionOfWebPart::GetPositionOfWebPartRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new WebPartItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/{webPart%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property webParts for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Collection of webparts on the SharePoint page. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of web_part + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WebPart.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property webParts in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of web_part + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WebPart.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property webParts for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Collection of webparts on the SharePoint page. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property webParts in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a web_part_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WebPartItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Collection of webparts on the SharePoint page. + class WebPartItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/web_parts/web_parts.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/web_parts/web_parts.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/graph_site_page/web_parts/web_parts_request_builder.rb b/lib/groups/item/sites/item/pages/item/graph_site_page/web_parts/web_parts_request_builder.rb new file mode 100644 index 0000000000..06d566bbf1 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/graph_site_page/web_parts/web_parts_request_builder.rb @@ -0,0 +1,197 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../models/web_part' +require_relative '../../../../../../../../models/web_part_collection_response' +require_relative '../../../../../../../groups' +require_relative '../../../../../../item' +require_relative '../../../../../sites' +require_relative '../../../../item' +require_relative '../../../pages' +require_relative '../../item' +require_relative '../graph_site_page' +require_relative './count/count_request_builder' +require_relative './item/web_part_item_request_builder' +require_relative './web_parts' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module GraphSitePage + module WebParts + ## + # Provides operations to manage the webParts property of the microsoft.graph.sitePage entity. + class WebPartsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::WebParts::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the webParts property of the microsoft.graph.sitePage entity. + ## @param web_part_id The unique identifier of webPart + ## @return a web_part_item_request_builder + ## + def by_web_part_id(web_part_id) + raise StandardError, 'web_part_id cannot be null' if web_part_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["webPart%2Did"] = web_part_id + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::GraphSitePage::WebParts::Item::WebPartItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new WebPartsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Collection of webparts on the SharePoint page. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of web_part_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WebPartCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to webParts for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of web_part + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WebPart.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Collection of webparts on the SharePoint page. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to webParts for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a web_parts_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return WebPartsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Collection of webparts on the SharePoint page. + class WebPartsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/item.rb b/lib/groups/item/sites/item/pages/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/last_modified_by_user/last_modified_by_user.rb b/lib/groups/item/sites/item/pages/item/last_modified_by_user/last_modified_by_user.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/last_modified_by_user/last_modified_by_user_request_builder.rb b/lib/groups/item/sites/item/pages/item/last_modified_by_user/last_modified_by_user_request_builder.rb new file mode 100644 index 0000000000..3b241d2d91 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/last_modified_by_user/last_modified_by_user_request_builder.rb @@ -0,0 +1,122 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../models/user' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../sites' +require_relative '../../../item' +require_relative '../../pages' +require_relative '../item' +require_relative './last_modified_by_user' +require_relative './mailbox_settings/mailbox_settings_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module LastModifiedByUser + ## + # Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. + class LastModifiedByUserRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # The mailboxSettings property + def mailbox_settings() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::LastModifiedByUser::MailboxSettings::MailboxSettingsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::LastModifiedByUser::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser{?%24expand,%24select}") + end + ## + ## Identity of the user who last modified the item. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of user + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Identity of the user who last modified the item. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a last_modified_by_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LastModifiedByUserRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Identity of the user who last modified the item. Read-only. + class LastModifiedByUserRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/last_modified_by_user/mailbox_settings/mailbox_settings.rb b/lib/groups/item/sites/item/pages/item/last_modified_by_user/mailbox_settings/mailbox_settings.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb b/lib/groups/item/sites/item/pages/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb new file mode 100644 index 0000000000..7407462d37 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.rb @@ -0,0 +1,148 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/mailbox_settings' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../groups' +require_relative '../../../../../../item' +require_relative '../../../../../sites' +require_relative '../../../../item' +require_relative '../../../pages' +require_relative '../../item' +require_relative '../last_modified_by_user' +require_relative './mailbox_settings' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module LastModifiedByUser + module MailboxSettings + ## + # Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\pages\{baseSitePage-id}\lastModifiedByUser\mailboxSettings + class MailboxSettingsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}") + end + ## + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mailbox_settings + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update property mailboxSettings value. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of mailbox_settings + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MailboxSettings.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update property mailboxSettings value. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a mailbox_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MailboxSettingsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + class MailboxSettingsRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/last_modified_by_user/service_provisioning_errors/count/count.rb b/lib/groups/item/sites/item/pages/item/last_modified_by_user/service_provisioning_errors/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb b/lib/groups/item/sites/item/pages/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..241d5439e7 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,115 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../groups' +require_relative '../../../../../../../item' +require_relative '../../../../../../sites' +require_relative '../../../../../item' +require_relative '../../../../pages' +require_relative '../../../item' +require_relative '../../last_modified_by_user' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module LastModifiedByUser + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors.rb b/lib/groups/item/sites/item/pages/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/groups/item/sites/item/pages/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..d53dfdaec7 --- /dev/null +++ b/lib/groups/item/sites/item/pages/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,149 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../models/service_provisioning_error_collection_response' +require_relative '../../../../../../../groups' +require_relative '../../../../../../item' +require_relative '../../../../../sites' +require_relative '../../../../item' +require_relative '../../../pages' +require_relative '../../item' +require_relative '../last_modified_by_user' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + module Item + module LastModifiedByUser + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\pages\{baseSitePage-id}\lastModifiedByUser\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::LastModifiedByUser::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/pages/pages.rb b/lib/groups/item/sites/item/pages/pages.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/sites/item/pages/pages_request_builder.rb b/lib/groups/item/sites/item/pages/pages_request_builder.rb new file mode 100644 index 0000000000..3071c8d3f8 --- /dev/null +++ b/lib/groups/item/sites/item/pages/pages_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_site_page' +require_relative '../../../../../models/base_site_page_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../sites' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './graph_site_page/graph_site_page_request_builder' +require_relative './item/base_site_page_item_request_builder' +require_relative './pages' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Pages + ## + # Provides operations to manage the pages property of the microsoft.graph.site entity. + class PagesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to sitePage. + def graph_site_page() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::GraphSitePage::GraphSitePageRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the pages property of the microsoft.graph.site entity. + ## @param base_site_page_id The unique identifier of baseSitePage + ## @return a base_site_page_item_request_builder + ## + def by_base_site_page_id(base_site_page_id) + raise StandardError, 'base_site_page_id cannot be null' if base_site_page_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["baseSitePage%2Did"] = base_site_page_id + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::Item::BaseSitePageItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new PagesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The collection of pages in the baseSitePages list in this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of base_site_page_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BaseSitePageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to pages for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of base_site_page + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BaseSitePage.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The collection of pages in the baseSitePages list in this site. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to pages for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a pages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PagesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The collection of pages in the baseSitePages list in this site. + class PagesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/permissions/count/count_request_builder.rb b/lib/groups/item/sites/item/permissions/count/count_request_builder.rb index f626fe6280..54c4794739 100644 --- a/lib/groups/item/sites/item/permissions/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/permissions/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/permissions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/permissions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/permissions/item/grant/grant.rb b/lib/groups/item/sites/item/permissions/item/grant/grant.rb index d6a3412e2b..5e12ada249 100644 --- a/lib/groups/item/sites/item/permissions/item/grant/grant.rb +++ b/lib/groups/item/sites/item/permissions/item/grant/grant.rb @@ -1,2 +1,2 @@ require_relative 'grant_post_request_body' -require_relative 'grant_response' +require_relative 'grant_post_response' diff --git a/lib/groups/item/sites/item/permissions/item/grant/grant_post_request_body.rb b/lib/groups/item/sites/item/permissions/item/grant/grant_post_request_body.rb index 419ea63271..62e851c1dd 100644 --- a/lib/groups/item/sites/item/permissions/item/grant/grant_post_request_body.rb +++ b/lib/groups/item/sites/item/permissions/item/grant/grant_post_request_body.rb @@ -29,22 +29,22 @@ class GrantPostRequestBody # The roles property @roles ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new grantPostRequestBody and sets the default values. + ## Instantiates a new GrantPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/item/permissions/item/grant/grant_post_response.rb b/lib/groups/item/sites/item/permissions/item/grant/grant_post_response.rb new file mode 100644 index 0000000000..2cfaa6e13c --- /dev/null +++ b/lib/groups/item/sites/item/permissions/item/grant/grant_post_response.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../../models/permission' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../sites' +require_relative '../../../item' +require_relative '../../permissions' +require_relative '../item' +require_relative './grant' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Item + module Permissions + module Item + module Grant + class GrantPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GrantPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a grant_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GrantPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Permission.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a permission + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/item/permissions/item/grant/grant_request_builder.rb b/lib/groups/item/sites/item/permissions/item/grant/grant_request_builder.rb index 497bb9ad57..1bfb4ba662 100644 --- a/lib/groups/item/sites/item/permissions/item/grant/grant_request_builder.rb +++ b/lib/groups/item/sites/item/permissions/item/grant/grant_request_builder.rb @@ -31,10 +31,10 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/permissions/{permission%2Did}/grant") end ## - ## Grant users access to a link represented by a [permission][]. + ## Grant users access to a link represented by a permission. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of grant_response + ## @return a Fiber of grant_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -42,12 +42,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::Permissions::Item::Grant::GrantResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Item::Permissions::Item::Grant::GrantPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Grant users access to a link represented by a [permission][]. + ## Grant users access to a link represented by a permission. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -55,17 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a grant_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GrantRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/item/permissions/item/grant/grant_response.rb b/lib/groups/item/sites/item/permissions/item/grant/grant_response.rb deleted file mode 100644 index c2af01fdb1..0000000000 --- a/lib/groups/item/sites/item/permissions/item/grant/grant_response.rb +++ /dev/null @@ -1,84 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../../../models/permission' -require_relative '../../../../../../groups' -require_relative '../../../../../item' -require_relative '../../../../sites' -require_relative '../../../item' -require_relative '../../permissions' -require_relative '../item' -require_relative './grant' - -module MicrosoftGraph - module Groups - module Item - module Sites - module Item - module Permissions - module Item - module Grant - class GrantResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new grantResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a grant_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GrantResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Permission.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a permission - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/sites/item/permissions/item/permission_item_request_builder.rb b/lib/groups/item/sites/item/permissions/item/permission_item_request_builder.rb index 801eb545d3..843357ad00 100644 --- a/lib/groups/item/sites/item/permissions/item/permission_item_request_builder.rb +++ b/lib/groups/item/sites/item/permissions/item/permission_item_request_builder.rb @@ -33,10 +33,10 @@ def grant() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/permissions/{permission%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/permissions/{permission%2Did}{?%24expand,%24select}") end ## - ## Delete a permission object on a site. + ## Delete navigation property permissions for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -45,12 +45,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a permission object on a site. + ## The permissions associated with the site. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of permission ## @@ -59,12 +58,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Permission.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update an application permission object on a site. + ## Update the navigation property permissions in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of permission @@ -75,46 +73,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Permission.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a permission object on a site. + ## Delete navigation property permissions for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a permission object on a site. + ## The permissions associated with the site. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update an application permission object on a site. + ## Update the navigation property permissions in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -122,20 +120,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a permission_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PermissionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a permission object on a site. + # The permissions associated with the site. Nullable. class PermissionItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/permissions/permissions_request_builder.rb b/lib/groups/item/sites/item/permissions/permissions_request_builder.rb index 072a788421..24713a9a33 100644 --- a/lib/groups/item/sites/item/permissions/permissions_request_builder.rb +++ b/lib/groups/item/sites/item/permissions/permissions_request_builder.rb @@ -44,10 +44,10 @@ def by_permission_id(permission_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/permissions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the permission resources from the permissions navigation property on a site. + ## The permissions associated with the site. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of permission_collection_response ## @@ -56,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PermissionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new permission object on a site. + ## Create new navigation property to permissions for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of permission @@ -72,30 +71,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Permission.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the permission resources from the permissions navigation property on a site. + ## The permissions associated with the site. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new permission object on a site. + ## Create new navigation property to permissions for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a permissions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PermissionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the permission resources from the permissions navigation property on a site. + # The permissions associated with the site. Nullable. class PermissionsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/site_item_request_builder.rb b/lib/groups/item/sites/item/site_item_request_builder.rb index 7f58dd763c..ee443c3274 100644 --- a/lib/groups/item/sites/item/site_item_request_builder.rb +++ b/lib/groups/item/sites/item/site_item_request_builder.rb @@ -22,6 +22,7 @@ require_relative './lists/lists_request_builder' require_relative './onenote/onenote_request_builder' require_relative './operations/operations_request_builder' +require_relative './pages/pages_request_builder' require_relative './permissions/permissions_request_builder' require_relative './sites/sites_request_builder' require_relative './term_store/term_store_request_builder' @@ -102,6 +103,11 @@ def operations() return MicrosoftGraph::Groups::Item::Sites::Item::Operations::OperationsRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to manage the pages property of the microsoft.graph.site entity. + def pages() + return MicrosoftGraph::Groups::Item::Sites::Item::Pages::PagesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to manage the permissions property of the microsoft.graph.site entity. def permissions() return MicrosoftGraph::Groups::Item::Sites::Item::Permissions::PermissionsRequestBuilder.new(@path_parameters, @request_adapter) @@ -128,7 +134,7 @@ def term_stores() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}{?%24expand,%24select}") end ## ## The list of SharePoint sites in this group. Access the default site with /sites/root. @@ -140,8 +146,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Site.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -187,8 +192,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Site.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -198,15 +202,15 @@ def patch(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -218,17 +222,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a site_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SiteItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The list of SharePoint sites in this group. Access the default site with /sites/root. diff --git a/lib/groups/item/sites/item/sites/count/count_request_builder.rb b/lib/groups/item/sites/item/sites/count/count_request_builder.rb index c2d3581f0f..c2e0ebb958 100644 --- a/lib/groups/item/sites/item/sites/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/sites/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/sites/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/sites/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/sites/item/site_item_request_builder.rb b/lib/groups/item/sites/item/sites/item/site_item_request_builder.rb index f07bb39a8d..7358540866 100644 --- a/lib/groups/item/sites/item/sites/item/site_item_request_builder.rb +++ b/lib/groups/item/sites/item/sites/item/site_item_request_builder.rb @@ -27,7 +27,7 @@ class SiteItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/sites/{site%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/sites/{site%2Did1}{?%24expand,%24select}") end ## ## The collection of the sub-sites under this site. @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Site.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a site_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SiteItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of the sub-sites under this site. diff --git a/lib/groups/item/sites/item/sites/sites_request_builder.rb b/lib/groups/item/sites/item/sites/sites_request_builder.rb index 56846f921f..c5ec0e6332 100644 --- a/lib/groups/item/sites/item/sites/sites_request_builder.rb +++ b/lib/groups/item/sites/item/sites/sites_request_builder.rb @@ -43,10 +43,10 @@ def by_site_id1(site_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/sites{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/sites{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get a collection of subsites defined for a [site][]. + ## The collection of the sub-sites under this site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of site_collection_response ## @@ -55,31 +55,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SiteCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get a collection of subsites defined for a [site][]. + ## The collection of the sub-sites under this site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sites_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SitesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a collection of subsites defined for a [site][]. + # The collection of the sub-sites under this site. class SitesRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_store/groups/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/count/count_request_builder.rb index 66930bc91e..2f371d030c 100644 --- a/lib/groups/item/sites/item/term_store/groups/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/groups/groups_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/groups_request_builder.rb index aff3ebc3bf..456ceb62dd 100644 --- a/lib/groups/item/sites/item/term_store/groups/groups_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/groups_request_builder.rb @@ -46,10 +46,10 @@ def by_group_id1(group_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get a list of group objects in a term store. + ## Collection of all groups available in the term store. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_group_collection_response ## @@ -58,12 +58,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreGroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new group object in a term store. + ## Create new navigation property to groups for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_group @@ -74,30 +73,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreGroup.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get a list of group objects in a term store. + ## Collection of all groups available in the term store. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new group object in a term store. + ## Create new navigation property to groups for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GroupsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a list of group objects in a term store. + # Collection of all groups available in the term store. class GroupsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_store/groups/item/group_item_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/group_item_request_builder.rb index 33f0766d96..a7a7385a85 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/group_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/group_item_request_builder.rb @@ -35,10 +35,10 @@ def sets() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}{?%24expand,%24select}") end ## - ## Delete a group object in a term [store]. + ## Delete navigation property groups for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -47,12 +47,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read the properties and relationships of a term store group object. + ## Collection of all groups available in the term store. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_group ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,42 +75,42 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreGroup.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a group object in a term [store]. + ## Delete navigation property groups for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read the properties and relationships of a term store group object. + ## Collection of all groups available in the term store. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,20 +122,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a group_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GroupItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a term store group object. + # Collection of all groups available in the term store. class GroupItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/count/count_request_builder.rb index 4d711d08ad..e7ea97e018 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/children_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/children_request_builder.rb index 34df8e569a..3c2af1ef5b 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/children_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/children_request_builder.rb @@ -54,10 +54,10 @@ def by_term_id(term_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the first level children of a [set] or [term] resource using the children navigation property. + ## Children terms of set in term [store]. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term_collection_response ## @@ -66,12 +66,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new term object. + ## Create new navigation property to children for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term @@ -82,30 +81,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the first level children of a [set] or [term] resource using the children navigation property. + ## Children terms of set in term [store]. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new term object. + ## Create new navigation property to children for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -113,20 +111,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a children_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChildrenRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the first level children of a [set] or [term] resource using the children navigation property. + # Children terms of set in term [store]. class ChildrenRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/count/count_request_builder.rb index 9777f5bdb0..9251714a25 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/count/count_request_builder.rb @@ -36,7 +36,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -59,17 +58,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/children_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/children_request_builder.rb index 02bc43b1f4..64ec6de86d 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/children_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/children_request_builder.rb @@ -58,7 +58,7 @@ def by_term_id1(term_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Children of current term. @@ -70,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,8 +85,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -97,15 +95,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -117,17 +115,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a children_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChildrenRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/count/count_request_builder.rb index cefa4a4fdf..ddf1c7ecd5 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/count/count_request_builder.rb @@ -40,7 +40,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -63,17 +62,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/count/count_request_builder.rb index 3d47f5a230..063c9adf36 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/count/count_request_builder.rb @@ -44,7 +44,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -67,17 +66,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb index 840bd75958..46c6539eba 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb @@ -47,7 +47,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -59,8 +59,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,17 +69,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb index c16bec79f7..947839d1e5 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb @@ -63,7 +63,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -75,8 +75,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -89,8 +88,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -105,8 +103,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -116,13 +113,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,15 +130,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -152,17 +150,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb index ea713c8697..850907dfb5 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb @@ -47,7 +47,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -59,8 +59,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,17 +69,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb index 64b4364b9f..8c129dfda8 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb @@ -47,7 +47,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -59,8 +59,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,17 +69,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/relations_request_builder.rb index d3bec25b15..758ecbb7c8 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/relations/relations_request_builder.rb @@ -62,7 +62,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -74,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,8 +89,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -101,15 +99,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -121,17 +119,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/set/set_request_builder.rb index 50dd0abbde..9189bdd3e4 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/set/set_request_builder.rb @@ -43,7 +43,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/term_item_request_builder.rb index d10016613d..81836245dd 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/term_item_request_builder.rb @@ -53,7 +53,7 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}") end ## ## Delete navigation property children for groups @@ -65,8 +65,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -79,8 +78,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -95,8 +93,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -106,13 +103,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,15 +120,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -142,17 +140,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/count/count_request_builder.rb index 8c311d2cf8..f98aa64a10 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/count/count_request_builder.rb @@ -40,7 +40,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -63,17 +62,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb index b640425b05..b5b24fd3ed 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb @@ -43,7 +43,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/item/relation_item_request_builder.rb index 04cb9b2eb3..26c6fd4596 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/item/relation_item_request_builder.rb @@ -59,7 +59,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -71,8 +71,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -85,8 +84,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -101,8 +99,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -112,13 +109,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,15 +126,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -148,17 +146,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/item/set/set_request_builder.rb index 75cbc4965b..980e625c25 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/item/set/set_request_builder.rb @@ -43,7 +43,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb index 94521632ea..1d253286d2 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb @@ -43,7 +43,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/relations_request_builder.rb index fc6dfb117d..01e6ba394f 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/relations/relations_request_builder.rb @@ -58,7 +58,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -70,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,8 +85,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -97,15 +95,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -117,17 +115,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/set/set_request_builder.rb index 3c81ffbbf6..18195f8aa7 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/set/set_request_builder.rb @@ -39,7 +39,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/term_item_request_builder.rb index 619a1db9ea..8d527e3aa4 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/children/item/term_item_request_builder.rb @@ -55,7 +55,7 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}{?%24expand,%24select}") end ## ## Delete navigation property children for groups @@ -67,8 +67,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -81,8 +80,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -97,8 +95,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -108,13 +105,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,15 +122,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -144,17 +142,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Children terms of set in term [store]. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/parent_group/parent_group_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/parent_group/parent_group_request_builder.rb index d6cc7abcae..4324c77051 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/parent_group/parent_group_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/parent_group/parent_group_request_builder.rb @@ -35,7 +35,7 @@ class ParentGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/parentGroup{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/parentGroup{?%24expand,%24select}") end ## ## Delete navigation property parentGroup for groups @@ -47,8 +47,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,13 +85,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -104,15 +102,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,17 +122,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # The parent [group] that contains the set. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/count/count_request_builder.rb index 3f05244df8..a9368a9e47 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/count/count_request_builder.rb @@ -36,7 +36,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -59,17 +58,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/item/from_term/from_term_request_builder.rb index 60d169891c..dfa1134789 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/item/from_term/from_term_request_builder.rb @@ -39,7 +39,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/item/relation_item_request_builder.rb index 8c30a49194..08095d52ea 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/item/relation_item_request_builder.rb @@ -55,7 +55,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -67,8 +67,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -81,8 +80,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -97,8 +95,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -108,13 +105,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,15 +122,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -144,17 +142,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Indicates which terms have been pinned or reused directly under the set. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/item/set/set_request_builder.rb index c21f17d7a9..fa6f4a5d43 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/item/set/set_request_builder.rb @@ -39,7 +39,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/item/to_term/to_term_request_builder.rb index 2dc9a2862d..0e2c638b11 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/item/to_term/to_term_request_builder.rb @@ -39,7 +39,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/relations_request_builder.rb index 52c6fe127d..817f480f05 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/relations/relations_request_builder.rb @@ -54,10 +54,10 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the different relation of a [term] or [set] from the relations navigation property. + ## Indicates which terms have been pinned or reused directly under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_relation_collection_response ## @@ -66,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,26 +81,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the different relation of a [term] or [set] from the relations navigation property. + ## Indicates which terms have been pinned or reused directly under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -113,20 +111,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the different relation of a [term] or [set] from the relations navigation property. + # Indicates which terms have been pinned or reused directly under the set. class RelationsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/set_item_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/set_item_request_builder.rb index fd8d14ce48..6937f9126c 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/set_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/set_item_request_builder.rb @@ -57,7 +57,7 @@ def terms() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}{?%24expand,%24select}") end ## ## Delete navigation property sets for groups @@ -69,8 +69,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -83,8 +82,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,8 +97,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -110,13 +107,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,15 +124,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -146,17 +144,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetItemRequestBuilder.new(raw_url, @request_adapter) + end ## # All sets under the group in a term [store]. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/count/count_request_builder.rb index 620a484b1c..a6d9114beb 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/count/count_request_builder.rb @@ -36,7 +36,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -59,17 +58,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/children_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/children_request_builder.rb index 14e2f90332..0bde08b422 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/children_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/children_request_builder.rb @@ -58,7 +58,7 @@ def by_term_id1(term_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Children of current term. @@ -70,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,8 +85,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -97,15 +95,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -117,17 +115,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a children_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChildrenRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/count/count_request_builder.rb index 6740858141..8870bb1ab4 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/count/count_request_builder.rb @@ -40,7 +40,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -63,17 +62,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/count/count_request_builder.rb index b8c386b079..bdfcdcd2ea 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/count/count_request_builder.rb @@ -44,7 +44,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -67,17 +66,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb index f26906f360..b9c7093357 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb @@ -47,7 +47,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -59,8 +59,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,17 +69,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb index 5d073c71d6..833432b68e 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb @@ -63,7 +63,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -75,8 +75,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -89,8 +88,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -105,8 +103,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -116,13 +113,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,15 +130,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -152,17 +150,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb index 766807f136..c0bb618e16 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb @@ -47,7 +47,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -59,8 +59,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,17 +69,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb index aa90146aed..dd3c894057 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb @@ -47,7 +47,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -59,8 +59,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,17 +69,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/relations_request_builder.rb index bf606b0585..9f1b7aaa9a 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/relations/relations_request_builder.rb @@ -62,7 +62,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -74,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,8 +89,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -101,15 +99,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -121,17 +119,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/set/set_request_builder.rb index 8a9af96fd3..b395829863 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/set/set_request_builder.rb @@ -43,7 +43,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/term_item_request_builder.rb index a30c985933..592018ee6e 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/children/item/term_item_request_builder.rb @@ -53,7 +53,7 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}") end ## ## Delete navigation property children for groups @@ -65,8 +65,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -79,8 +78,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -95,8 +93,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -106,13 +103,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,15 +120,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -142,17 +140,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/count/count_request_builder.rb index 9139892de5..e3f14c75a6 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/count/count_request_builder.rb @@ -40,7 +40,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -63,17 +62,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb index 7c82fae612..39de634eda 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb @@ -43,7 +43,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/item/relation_item_request_builder.rb index 3c6a658a75..02862d3250 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/item/relation_item_request_builder.rb @@ -59,7 +59,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -71,8 +71,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -85,8 +84,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -101,8 +99,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -112,13 +109,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,15 +126,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -148,17 +146,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/item/set/set_request_builder.rb index 82afad3e33..bd49b69c3d 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/item/set/set_request_builder.rb @@ -43,7 +43,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb index 8d552a1d5e..646e78d028 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb @@ -43,7 +43,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/relations_request_builder.rb index e4a6427e8e..46c2180ce7 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/relations/relations_request_builder.rb @@ -58,7 +58,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -70,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,8 +85,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -97,15 +95,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -117,17 +115,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/set/set_request_builder.rb index 3cf232f203..89e73ca434 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/set/set_request_builder.rb @@ -39,7 +39,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/term_item_request_builder.rb index 18324a5628..bcbda8a7fd 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/item/term_item_request_builder.rb @@ -55,10 +55,10 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}{?%24expand,%24select}") end ## - ## Delete a term object. + ## Delete navigation property terms for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -67,12 +67,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term ## @@ -81,12 +80,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of a term object. + ## Update the navigation property terms in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term @@ -97,46 +95,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a term object. + ## Delete navigation property terms for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of a term object. + ## Update the navigation property terms in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -144,20 +142,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a term object. + # All the terms under the set. class TermItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/terms_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/terms_request_builder.rb index 4734462c6a..fcb128229a 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/terms_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/item/terms/terms_request_builder.rb @@ -54,10 +54,10 @@ def by_term_id(term_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term_collection_response ## @@ -66,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,26 +81,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -113,20 +111,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a terms_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a term object. + # All the terms under the set. class TermsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_store/groups/item/sets/sets_request_builder.rb b/lib/groups/item/sites/item/term_store/groups/item/sets/sets_request_builder.rb index 181c22ae65..6d50464a3e 100644 --- a/lib/groups/item/sites/item/term_store/groups/item/sets/sets_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/groups/item/sets/sets_request_builder.rb @@ -50,10 +50,10 @@ def by_set_id(set_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get a list of the set objects and their properties. + ## All sets under the group in a term [store]. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_set_collection_response ## @@ -62,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSetCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,26 +77,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get a list of the set objects and their properties. + ## All sets under the group in a term [store]. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sets_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a list of the set objects and their properties. + # All sets under the group in a term [store]. class SetsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_store/sets/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/count/count_request_builder.rb index cf290b6ceb..ead0216a25 100644 --- a/lib/groups/item/sites/item/term_store/sets/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/sets/item/children/children_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/children/children_request_builder.rb index 7feabb9afa..ecbd963976 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/children/children_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/children/children_request_builder.rb @@ -50,10 +50,10 @@ def by_term_id(term_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the first level children of a [set] or [term] resource using the children navigation property. + ## Children terms of set in term [store]. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term_collection_response ## @@ -62,12 +62,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new term object. + ## Create new navigation property to children for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term @@ -78,30 +77,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the first level children of a [set] or [term] resource using the children navigation property. + ## Children terms of set in term [store]. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new term object. + ## Create new navigation property to children for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a children_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChildrenRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the first level children of a [set] or [term] resource using the children navigation property. + # Children terms of set in term [store]. class ChildrenRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_store/sets/item/children/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/children/count/count_request_builder.rb index 5ddc76a7d7..790e2ccd50 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/children/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/children/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/sets/item/children/item/children/children_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/children/item/children/children_request_builder.rb index 3ce10a226b..e691fc1933 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/children/item/children/children_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/children/item/children/children_request_builder.rb @@ -54,7 +54,7 @@ def by_term_id1(term_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Children of current term. @@ -66,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,8 +81,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,15 +91,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -113,17 +111,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a children_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChildrenRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_store/sets/item/children/item/children/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/children/item/children/count/count_request_builder.rb index dcb5db88e9..f4b3cfd5a7 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/children/item/children/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/children/item/children/count/count_request_builder.rb @@ -36,7 +36,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -59,17 +58,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/count/count_request_builder.rb index 4adb0f673d..eb14c6af42 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/count/count_request_builder.rb @@ -40,7 +40,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -63,17 +62,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb index 00f4662f7e..e668ac2f99 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb @@ -43,7 +43,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb index 39c3528e36..ebb13b86bd 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb @@ -59,7 +59,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -71,8 +71,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -85,8 +84,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -101,8 +99,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -112,13 +109,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,15 +126,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -148,17 +146,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb index 73278bb0ae..281e2ac7ae 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb @@ -43,7 +43,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb index 16dc1f328f..5ad050a10e 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb @@ -43,7 +43,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/relations_request_builder.rb index 7e1b9ce726..970a3faaa9 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/relations/relations_request_builder.rb @@ -58,7 +58,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -70,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,8 +85,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -97,15 +95,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -117,17 +115,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/set/set_request_builder.rb index 4c2bdaee6e..68ae05a65e 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/set/set_request_builder.rb @@ -39,7 +39,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/term_item_request_builder.rb index c90c071285..6e093b6db6 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/children/item/children/item/term_item_request_builder.rb @@ -49,7 +49,7 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}") end ## ## Delete navigation property children for groups @@ -61,8 +61,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -75,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,13 +99,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,15 +116,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,17 +136,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/count/count_request_builder.rb index 90c49b16cd..3f56926ae9 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/count/count_request_builder.rb @@ -36,7 +36,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -59,17 +58,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb index 7597fcc0ce..b40758d7bd 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb @@ -39,7 +39,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/item/relation_item_request_builder.rb index e8178ca1a3..bb1beb9f91 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/item/relation_item_request_builder.rb @@ -55,7 +55,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -67,8 +67,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -81,8 +80,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -97,8 +95,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -108,13 +105,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,15 +122,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -144,17 +142,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/item/set/set_request_builder.rb index cb78c09f39..3f4bef6786 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/item/set/set_request_builder.rb @@ -39,7 +39,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb index 097cb6c399..b142b92510 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb @@ -39,7 +39,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/relations_request_builder.rb index c23182d68a..d8991794f2 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/children/item/relations/relations_request_builder.rb @@ -54,7 +54,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -66,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,8 +81,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,15 +91,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -113,17 +111,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/sets/item/children/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/children/item/set/set_request_builder.rb index 75b0b60c8a..68327ed04d 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/children/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/children/item/set/set_request_builder.rb @@ -35,7 +35,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_store/sets/item/children/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/children/item/term_item_request_builder.rb index b3bf73e74e..85480dd567 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/children/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/children/item/term_item_request_builder.rb @@ -51,7 +51,7 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}{?%24expand,%24select}") end ## ## Delete navigation property children for groups @@ -63,8 +63,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -77,8 +76,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,8 +91,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -104,13 +101,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,15 +118,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -140,17 +138,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Children terms of set in term [store]. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/parent_group_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/parent_group_request_builder.rb index b7c40a83ab..c84537f632 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/parent_group_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/parent_group_request_builder.rb @@ -37,7 +37,7 @@ def sets() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup{?%24expand,%24select}") end ## ## Delete navigation property parentGroup for groups @@ -49,8 +49,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,8 +77,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,13 +87,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -106,15 +104,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,17 +124,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # The parent [group] that contains the set. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/count/count_request_builder.rb index bfedfe5522..12be061e9d 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/count/count_request_builder.rb @@ -34,7 +34,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -46,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -57,17 +56,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/children_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/children_request_builder.rb index 53b4a5ebd4..8fc5c56780 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/children_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/children_request_builder.rb @@ -56,10 +56,10 @@ def by_term_id(term_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the first level children of a [set] or [term] resource using the children navigation property. + ## Children terms of set in term [store]. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term_collection_response ## @@ -68,12 +68,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new term object. + ## Create new navigation property to children for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term @@ -84,30 +83,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the first level children of a [set] or [term] resource using the children navigation property. + ## Children terms of set in term [store]. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new term object. + ## Create new navigation property to children for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -115,20 +113,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a children_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChildrenRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the first level children of a [set] or [term] resource using the children navigation property. + # Children terms of set in term [store]. class ChildrenRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/count/count_request_builder.rb index 311ba8688f..7dc3a60f05 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/count/count_request_builder.rb @@ -38,7 +38,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -61,17 +60,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/children_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/children_request_builder.rb index 72dc3a3d6d..10fdbc7efd 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/children_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/children_request_builder.rb @@ -60,7 +60,7 @@ def by_term_id1(term_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Children of current term. @@ -72,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,8 +87,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,15 +97,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -119,17 +117,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a children_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChildrenRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/count/count_request_builder.rb index 9a0eb5d75f..41c1d69314 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/count/count_request_builder.rb @@ -42,7 +42,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -65,17 +64,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/count/count_request_builder.rb index e3430615c4..a71d7c0676 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/count/count_request_builder.rb @@ -46,7 +46,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -69,17 +68,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb index ac33ea998c..f4dbe5a23f 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb @@ -49,7 +49,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -61,8 +61,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,17 +71,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb index 05ddc5b886..bcb5689091 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb @@ -65,7 +65,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -77,8 +77,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -91,8 +90,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -107,8 +105,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -118,13 +115,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -134,15 +132,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -154,17 +152,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb index b74ca46dc3..dfd30239f2 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb @@ -49,7 +49,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -61,8 +61,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,17 +71,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb index 42007d0500..78dbbde5cb 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb @@ -49,7 +49,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -61,8 +61,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,17 +71,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/relations_request_builder.rb index f6f0804683..f6a5fe8e93 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/relations/relations_request_builder.rb @@ -64,7 +64,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -76,8 +76,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,8 +91,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -103,15 +101,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -123,17 +121,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/set/set_request_builder.rb index 7996843708..593c00dad1 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/set/set_request_builder.rb @@ -45,7 +45,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/term_item_request_builder.rb index e3dd431dcc..7414d4e231 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/item/term_item_request_builder.rb @@ -55,7 +55,7 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}") end ## ## Delete navigation property children for groups @@ -67,8 +67,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -81,8 +80,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -97,8 +95,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -108,13 +105,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,15 +122,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -144,17 +142,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/count/count_request_builder.rb index 5ea87affe1..619f1d5452 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/count/count_request_builder.rb @@ -42,7 +42,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -65,17 +64,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb index 7ee6c495bd..b05410d879 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb @@ -45,7 +45,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/item/relation_item_request_builder.rb index bf9ef086a9..3741d0a2d4 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/item/relation_item_request_builder.rb @@ -61,7 +61,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -73,8 +73,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -87,8 +86,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -103,8 +101,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -114,13 +111,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -130,15 +128,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -150,17 +148,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/item/set/set_request_builder.rb index 1cba7fbf82..fbac952084 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/item/set/set_request_builder.rb @@ -45,7 +45,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb index 31646bd7ad..b23d2012ab 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb @@ -45,7 +45,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/relations_request_builder.rb index 8ef721a297..2a87e7b8f0 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/relations_request_builder.rb @@ -60,7 +60,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -72,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,8 +87,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,15 +97,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -119,17 +117,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/set/set_request_builder.rb index 4c2f479f40..211a165bff 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/set/set_request_builder.rb @@ -41,7 +41,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/term_item_request_builder.rb index ae0555ef1c..2e7f374820 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/term_item_request_builder.rb @@ -57,7 +57,7 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}{?%24expand,%24select}") end ## ## Delete navigation property children for groups @@ -69,8 +69,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -83,8 +82,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,8 +97,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -110,13 +107,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,15 +124,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -146,17 +144,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Children terms of set in term [store]. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/count/count_request_builder.rb index 1655c7804d..d019845668 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/count/count_request_builder.rb @@ -38,7 +38,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -61,17 +60,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/item/from_term/from_term_request_builder.rb index ede31b31a7..3830fcafbf 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/item/from_term/from_term_request_builder.rb @@ -41,7 +41,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/item/relation_item_request_builder.rb index a2acee2121..7056fb7165 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/item/relation_item_request_builder.rb @@ -57,7 +57,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -69,8 +69,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -83,8 +82,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,8 +97,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -110,13 +107,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,15 +124,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -146,17 +144,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Indicates which terms have been pinned or reused directly under the set. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/item/set/set_request_builder.rb index 20e27f6880..e2762f500c 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/item/set/set_request_builder.rb @@ -41,7 +41,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/item/to_term/to_term_request_builder.rb index a7617585ec..f24d9f2854 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/item/to_term/to_term_request_builder.rb @@ -41,7 +41,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/relations_request_builder.rb index 4fd3700882..9b70f20f8f 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/relations/relations_request_builder.rb @@ -56,10 +56,10 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the different relation of a [term] or [set] from the relations navigation property. + ## Indicates which terms have been pinned or reused directly under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_relation_collection_response ## @@ -68,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,26 +83,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the different relation of a [term] or [set] from the relations navigation property. + ## Indicates which terms have been pinned or reused directly under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -115,20 +113,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the different relation of a [term] or [set] from the relations navigation property. + # Indicates which terms have been pinned or reused directly under the set. class RelationsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/set_item_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/set_item_request_builder.rb index 25580c0372..b6191169c1 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/set_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/set_item_request_builder.rb @@ -53,7 +53,7 @@ def terms() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}{?%24expand,%24select}") end ## ## Delete navigation property sets for groups @@ -65,8 +65,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -79,8 +78,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -95,8 +93,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -106,13 +103,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,15 +120,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -142,17 +140,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetItemRequestBuilder.new(raw_url, @request_adapter) + end ## # All sets under the group in a term [store]. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/count/count_request_builder.rb index 1f02181f26..8fbb19026d 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/count/count_request_builder.rb @@ -38,7 +38,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -61,17 +60,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/children_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/children_request_builder.rb index ea97bbdff6..db0dcef52f 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/children_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/children_request_builder.rb @@ -60,7 +60,7 @@ def by_term_id1(term_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Children of current term. @@ -72,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,8 +87,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,15 +97,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -119,17 +117,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a children_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChildrenRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/count/count_request_builder.rb index e069a8936a..484f00d74b 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/count/count_request_builder.rb @@ -42,7 +42,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -65,17 +64,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/count/count_request_builder.rb index 1fc14f8e50..3f41e37d51 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/count/count_request_builder.rb @@ -46,7 +46,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -69,17 +68,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb index 92abdc9e9d..02ecd23fd1 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb @@ -49,7 +49,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -61,8 +61,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,17 +71,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb index 412ca47847..793ced3fdd 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb @@ -65,7 +65,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -77,8 +77,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -91,8 +90,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -107,8 +105,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -118,13 +115,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -134,15 +132,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -154,17 +152,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb index 6398e33625..467972ec02 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb @@ -49,7 +49,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -61,8 +61,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,17 +71,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb index d67aec754a..306b8bc37f 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb @@ -49,7 +49,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -61,8 +61,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,17 +71,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/relations_request_builder.rb index 03eade63fc..5bf0b981f1 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/relations/relations_request_builder.rb @@ -64,7 +64,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -76,8 +76,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,8 +91,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -103,15 +101,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -123,17 +121,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/set/set_request_builder.rb index 1a477f890a..875c55af94 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/set/set_request_builder.rb @@ -45,7 +45,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/term_item_request_builder.rb index 6738b9623e..5ebd244d82 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/item/term_item_request_builder.rb @@ -55,7 +55,7 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}") end ## ## Delete navigation property children for groups @@ -67,8 +67,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -81,8 +80,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -97,8 +95,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -108,13 +105,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,15 +122,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -144,17 +142,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/count/count_request_builder.rb index 53426e7e4a..9106b92d4c 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/count/count_request_builder.rb @@ -42,7 +42,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -65,17 +64,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb index 194c88e7e6..ecc47b448c 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb @@ -45,7 +45,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/item/relation_item_request_builder.rb index 1d3cf35740..6ebd7e6b03 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/item/relation_item_request_builder.rb @@ -61,7 +61,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -73,8 +73,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -87,8 +86,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -103,8 +101,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -114,13 +111,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -130,15 +128,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -150,17 +148,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/item/set/set_request_builder.rb index f2398f21c9..8b971c27dd 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/item/set/set_request_builder.rb @@ -45,7 +45,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb index 3a52ac3e6b..fe33e87b0d 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb @@ -45,7 +45,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/relations_request_builder.rb index 8e36d2a922..0605f570db 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/relations/relations_request_builder.rb @@ -60,7 +60,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -72,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,8 +87,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,15 +97,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -119,17 +117,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/set/set_request_builder.rb index 6bf14cebe8..118dde6649 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/set/set_request_builder.rb @@ -41,7 +41,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/term_item_request_builder.rb index b1d7304a68..5b1f5c1c63 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/term_item_request_builder.rb @@ -57,10 +57,10 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}{?%24expand,%24select}") end ## - ## Delete a term object. + ## Delete navigation property terms for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -69,12 +69,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term ## @@ -83,12 +82,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of a term object. + ## Update the navigation property terms in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term @@ -99,46 +97,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a term object. + ## Delete navigation property terms for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of a term object. + ## Update the navigation property terms in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -146,20 +144,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a term object. + # All the terms under the set. class TermItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/terms_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/terms_request_builder.rb index 99dd8bc18c..270d725c6f 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/terms_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/terms/terms_request_builder.rb @@ -56,10 +56,10 @@ def by_term_id(term_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term_collection_response ## @@ -68,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,26 +83,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -115,20 +113,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a terms_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a term object. + # All the terms under the set. class TermsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/sets_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/sets_request_builder.rb index 85a2572068..4fbd1b2020 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/sets_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/parent_group/sets/sets_request_builder.rb @@ -52,10 +52,10 @@ def by_set_id1(set_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get a list of the set objects and their properties. + ## All sets under the group in a term [store]. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_set_collection_response ## @@ -64,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSetCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,26 +79,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get a list of the set objects and their properties. + ## All sets under the group in a term [store]. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -111,20 +109,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sets_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a list of the set objects and their properties. + # All sets under the group in a term [store]. class SetsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_store/sets/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/relations/count/count_request_builder.rb index 8a338cc60f..0b15dd0409 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/relations/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/sets/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/relations/item/from_term/from_term_request_builder.rb index 91d7a4d04b..db34feab01 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/relations/item/from_term/from_term_request_builder.rb @@ -35,7 +35,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_store/sets/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/relations/item/relation_item_request_builder.rb index 2bd73b1125..df777561ca 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/relations/item/relation_item_request_builder.rb @@ -51,7 +51,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -63,8 +63,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -77,8 +76,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,8 +91,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -104,13 +101,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,15 +118,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -140,17 +138,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Indicates which terms have been pinned or reused directly under the set. diff --git a/lib/groups/item/sites/item/term_store/sets/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/relations/item/set/set_request_builder.rb index ba01d08892..d3d83350fa 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/relations/item/set/set_request_builder.rb @@ -35,7 +35,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_store/sets/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/relations/item/to_term/to_term_request_builder.rb index 25ba650d6e..a2c8c5c5d6 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/relations/item/to_term/to_term_request_builder.rb @@ -35,7 +35,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_store/sets/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/relations/relations_request_builder.rb index 71572220a7..8bfde627cb 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/relations/relations_request_builder.rb @@ -50,10 +50,10 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the different relation of a [term] or [set] from the relations navigation property. + ## Indicates which terms have been pinned or reused directly under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_relation_collection_response ## @@ -62,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,26 +77,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the different relation of a [term] or [set] from the relations navigation property. + ## Indicates which terms have been pinned or reused directly under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the different relation of a [term] or [set] from the relations navigation property. + # Indicates which terms have been pinned or reused directly under the set. class RelationsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_store/sets/item/set_item_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/set_item_request_builder.rb index b247a97182..b86a2370d2 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/set_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/set_item_request_builder.rb @@ -53,10 +53,10 @@ def terms() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}{?%24expand,%24select}") end ## - ## Delete a set object. + ## Delete navigation property sets for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -65,12 +65,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read the properties and relationships of a set object. + ## Collection of all sets available in the term store. This relationship can only be used to load a specific term set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_set ## @@ -79,12 +78,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of a set object. + ## Update the navigation property sets in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_set @@ -95,46 +93,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a set object. + ## Delete navigation property sets for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read the properties and relationships of a set object. + ## Collection of all sets available in the term store. This relationship can only be used to load a specific term set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of a set object. + ## Update the navigation property sets in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -142,20 +140,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a set object. + # Collection of all sets available in the term store. This relationship can only be used to load a specific term set. class SetItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_store/sets/item/terms/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/terms/count/count_request_builder.rb index 3423a106cd..cdded407c0 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/terms/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/terms/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/children_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/children_request_builder.rb index 3960cf8f50..5cd86b8ff2 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/children_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/children_request_builder.rb @@ -54,7 +54,7 @@ def by_term_id1(term_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Children of current term. @@ -66,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,8 +81,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,15 +91,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -113,17 +111,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a children_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChildrenRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/count/count_request_builder.rb index 0ffe56348d..256251c71c 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/count/count_request_builder.rb @@ -36,7 +36,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -59,17 +58,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/count/count_request_builder.rb index 0666087137..14cde429d1 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/count/count_request_builder.rb @@ -40,7 +40,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -63,17 +62,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb index c3669bf56d..7b81eb0aaa 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb @@ -43,7 +43,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb index e1a62abac0..f3158d2e62 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb @@ -59,7 +59,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -71,8 +71,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -85,8 +84,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -101,8 +99,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -112,13 +109,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,15 +126,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -148,17 +146,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb index 4771a5244b..5cd3fc08f0 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb @@ -43,7 +43,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb index db399b8dc1..7d312c49fd 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb @@ -43,7 +43,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/relations_request_builder.rb index f450c5fe05..991fc6a03b 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/relations/relations_request_builder.rb @@ -58,7 +58,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -70,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,8 +85,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -97,15 +95,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -117,17 +115,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/set/set_request_builder.rb index 2844783f26..f2f4021364 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/set/set_request_builder.rb @@ -39,7 +39,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/term_item_request_builder.rb index 3985677ca7..af5d9bd7e3 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/terms/item/children/item/term_item_request_builder.rb @@ -49,7 +49,7 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}") end ## ## Delete navigation property children for groups @@ -61,8 +61,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -75,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,13 +99,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,15 +116,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,17 +136,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/count/count_request_builder.rb index 01ab2d9a2b..6536620eef 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/count/count_request_builder.rb @@ -36,7 +36,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -59,17 +58,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb index 3f454d7319..099b4f5d19 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb @@ -39,7 +39,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/item/relation_item_request_builder.rb index ccb9bac746..de87d0e048 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/item/relation_item_request_builder.rb @@ -55,7 +55,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -67,8 +67,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -81,8 +80,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -97,8 +95,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -108,13 +105,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,15 +122,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -144,17 +142,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/item/set/set_request_builder.rb index 93965c7818..25f02df199 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/item/set/set_request_builder.rb @@ -39,7 +39,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb index b05129afcf..4319fe2787 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb @@ -39,7 +39,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/relations_request_builder.rb index b09dc5c118..a1b671e20a 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/terms/item/relations/relations_request_builder.rb @@ -54,7 +54,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -66,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,8 +81,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,15 +91,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -113,17 +111,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_store/sets/item/terms/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/terms/item/set/set_request_builder.rb index 5797f761a0..f35fd8e40f 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/terms/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/terms/item/set/set_request_builder.rb @@ -35,7 +35,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_store/sets/item/terms/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/terms/item/term_item_request_builder.rb index ec90faad96..53f7a3b7e1 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/terms/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/terms/item/term_item_request_builder.rb @@ -51,10 +51,10 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}{?%24expand,%24select}") end ## - ## Delete a term object. + ## Delete navigation property terms for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -63,12 +63,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term ## @@ -77,12 +76,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of a term object. + ## Update the navigation property terms in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term @@ -93,46 +91,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a term object. + ## Delete navigation property terms for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of a term object. + ## Update the navigation property terms in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -140,20 +138,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a term object. + # All the terms under the set. class TermItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_store/sets/item/terms/terms_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/item/terms/terms_request_builder.rb index 487f0516ec..817f25a296 100644 --- a/lib/groups/item/sites/item/term_store/sets/item/terms/terms_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/item/terms/terms_request_builder.rb @@ -50,10 +50,10 @@ def by_term_id(term_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term_collection_response ## @@ -62,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,26 +77,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a terms_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a term object. + # All the terms under the set. class TermsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_store/sets/sets_request_builder.rb b/lib/groups/item/sites/item/term_store/sets/sets_request_builder.rb index 7a51936cef..a4a585302d 100644 --- a/lib/groups/item/sites/item/term_store/sets/sets_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/sets/sets_request_builder.rb @@ -46,10 +46,10 @@ def by_set_id(set_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Read the properties and relationships of a set object. + ## Collection of all sets available in the term store. This relationship can only be used to load a specific term set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_set_collection_response ## @@ -58,12 +58,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSetCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new set object. + ## Create new navigation property to sets for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_set @@ -74,30 +73,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Read the properties and relationships of a set object. + ## Collection of all sets available in the term store. This relationship can only be used to load a specific term set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new set object. + ## Create new navigation property to sets for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sets_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a set object. + # Collection of all sets available in the term store. This relationship can only be used to load a specific term set. class SetsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_store/term_store_request_builder.rb b/lib/groups/item/sites/item/term_store/term_store_request_builder.rb index 5d98b7970a..e492c04da8 100644 --- a/lib/groups/item/sites/item/term_store/term_store_request_builder.rb +++ b/lib/groups/item/sites/item/term_store/term_store_request_builder.rb @@ -37,7 +37,7 @@ def sets() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore{?%24expand,%24select}") end ## ## Delete navigation property termStore for groups @@ -49,12 +49,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read the properties and relationships of a store object. + ## The default termStore under this site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_store ## @@ -63,12 +62,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreStore.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of a store object. + ## Update the navigation property termStore in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_store @@ -79,8 +77,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreStore.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,35 +87,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read the properties and relationships of a store object. + ## The default termStore under this site. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of a store object. + ## Update the navigation property termStore in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -126,20 +124,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_store_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermStoreRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a store object. + # The default termStore under this site. class TermStoreRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_stores/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/count/count_request_builder.rb index 7ea3024cb7..79d9ebf2c8 100644 --- a/lib/groups/item/sites/item/term_stores/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/groups/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/count/count_request_builder.rb index 769bc592f5..baa3367d6a 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/groups/groups_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/groups_request_builder.rb index 03d64f6641..680432ec18 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/groups_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/groups_request_builder.rb @@ -48,10 +48,10 @@ def by_group_id1(group_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get a list of group objects in a term store. + ## Collection of all groups available in the term store. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_group_collection_response ## @@ -60,12 +60,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreGroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new group object in a term store. + ## Create new navigation property to groups for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_group @@ -76,30 +75,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreGroup.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get a list of group objects in a term store. + ## Collection of all groups available in the term store. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new group object in a term store. + ## Create new navigation property to groups for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -107,20 +105,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GroupsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a list of group objects in a term store. + # Collection of all groups available in the term store. class GroupsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/group_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/group_item_request_builder.rb index 614f6ccd5d..190b787c5d 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/group_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/group_item_request_builder.rb @@ -37,10 +37,10 @@ def sets() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}{?%24expand,%24select}") end ## - ## Delete a group object in a term [store]. + ## Delete navigation property groups for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -49,12 +49,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read the properties and relationships of a term store group object. + ## Collection of all groups available in the term store. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_group ## @@ -63,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,42 +77,42 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreGroup.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a group object in a term [store]. + ## Delete navigation property groups for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read the properties and relationships of a term store group object. + ## Collection of all groups available in the term store. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,20 +124,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a group_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GroupItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a term store group object. + # Collection of all groups available in the term store. class GroupItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/count/count_request_builder.rb index 2eeadd3dc4..dc9ed1312c 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/count/count_request_builder.rb @@ -34,7 +34,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -46,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -57,17 +56,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/children_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/children_request_builder.rb index d5cac4f894..ef416d0361 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/children_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/children_request_builder.rb @@ -56,10 +56,10 @@ def by_term_id(term_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the first level children of a [set] or [term] resource using the children navigation property. + ## Children terms of set in term [store]. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term_collection_response ## @@ -68,12 +68,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new term object. + ## Create new navigation property to children for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term @@ -84,30 +83,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the first level children of a [set] or [term] resource using the children navigation property. + ## Children terms of set in term [store]. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new term object. + ## Create new navigation property to children for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -115,20 +113,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a children_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChildrenRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the first level children of a [set] or [term] resource using the children navigation property. + # Children terms of set in term [store]. class ChildrenRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/count/count_request_builder.rb index 152a3a3fd2..cc7acab661 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/count/count_request_builder.rb @@ -38,7 +38,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -61,17 +60,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/children_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/children_request_builder.rb index 46bfb1c39c..4952f67d64 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/children_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/children_request_builder.rb @@ -60,7 +60,7 @@ def by_term_id1(term_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Children of current term. @@ -72,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,8 +87,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,15 +97,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -119,17 +117,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a children_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChildrenRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/count/count_request_builder.rb index 5c82a77205..128e8e49d2 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/count/count_request_builder.rb @@ -42,7 +42,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -65,17 +64,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/count/count_request_builder.rb index bbd4e950ee..2da349fcb4 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/count/count_request_builder.rb @@ -46,7 +46,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -69,17 +68,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb index b0b8341a92..3eae6e5450 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb @@ -49,7 +49,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -61,8 +61,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,17 +71,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb index e783378d46..80bd8f8f41 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb @@ -65,7 +65,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -77,8 +77,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -91,8 +90,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -107,8 +105,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -118,13 +115,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -134,15 +132,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -154,17 +152,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb index 1081a9dddb..890d08743c 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb @@ -49,7 +49,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -61,8 +61,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,17 +71,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb index ea1e0db7c0..c9c2eb1120 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb @@ -49,7 +49,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -61,8 +61,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,17 +71,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/relations_request_builder.rb index 94d8f331f0..e3f9eee06a 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/relations_request_builder.rb @@ -64,7 +64,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -76,8 +76,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,8 +91,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -103,15 +101,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -123,17 +121,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/set/set_request_builder.rb index 1dff97bc08..864e0b0d0c 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/set/set_request_builder.rb @@ -45,7 +45,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/term_item_request_builder.rb index 67d0b48989..2c3b990f49 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/term_item_request_builder.rb @@ -55,7 +55,7 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}") end ## ## Delete navigation property children for groups @@ -67,8 +67,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -81,8 +80,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -97,8 +95,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -108,13 +105,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,15 +122,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -144,17 +142,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/count/count_request_builder.rb index d6a92043f2..796a6c2161 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/count/count_request_builder.rb @@ -42,7 +42,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -65,17 +64,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb index 46afbb171e..de33911903 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb @@ -45,7 +45,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/item/relation_item_request_builder.rb index cb1f82b362..73160dec19 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/item/relation_item_request_builder.rb @@ -61,7 +61,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -73,8 +73,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -87,8 +86,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -103,8 +101,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -114,13 +111,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -130,15 +128,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -150,17 +148,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/item/set/set_request_builder.rb index ac0a05e91f..78d8c86f48 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/item/set/set_request_builder.rb @@ -45,7 +45,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb index 0497f6b172..386dd57c5e 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb @@ -45,7 +45,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/relations_request_builder.rb index e49463d7dc..e9074a3ec2 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/relations/relations_request_builder.rb @@ -60,7 +60,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -72,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,8 +87,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,15 +97,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -119,17 +117,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/set/set_request_builder.rb index 37d6563141..a6b6f62b46 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/set/set_request_builder.rb @@ -41,7 +41,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/term_item_request_builder.rb index 0be9f3febb..bb671f5d78 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/children/item/term_item_request_builder.rb @@ -57,7 +57,7 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}{?%24expand,%24select}") end ## ## Delete navigation property children for groups @@ -69,8 +69,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -83,8 +82,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,8 +97,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -110,13 +107,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,15 +124,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -146,17 +144,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Children terms of set in term [store]. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/parent_group/parent_group_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/parent_group/parent_group_request_builder.rb index efcfe14e5f..14a91afe58 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/parent_group/parent_group_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/parent_group/parent_group_request_builder.rb @@ -37,7 +37,7 @@ class ParentGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/parentGroup{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/parentGroup{?%24expand,%24select}") end ## ## Delete navigation property parentGroup for groups @@ -49,8 +49,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,8 +77,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,13 +87,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -106,15 +104,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,17 +124,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # The parent [group] that contains the set. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/count/count_request_builder.rb index 9230333ede..196034ede3 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/count/count_request_builder.rb @@ -38,7 +38,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -61,17 +60,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/item/from_term/from_term_request_builder.rb index 1025fed167..526b61e426 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/item/from_term/from_term_request_builder.rb @@ -41,7 +41,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/item/relation_item_request_builder.rb index 75c2a673b8..8527d608e5 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/item/relation_item_request_builder.rb @@ -57,7 +57,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -69,8 +69,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -83,8 +82,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,8 +97,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -110,13 +107,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,15 +124,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -146,17 +144,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Indicates which terms have been pinned or reused directly under the set. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/item/set/set_request_builder.rb index 40fc3bc213..5520a526c9 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/item/set/set_request_builder.rb @@ -41,7 +41,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/item/to_term/to_term_request_builder.rb index bd7f1467ce..8896f16134 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/item/to_term/to_term_request_builder.rb @@ -41,7 +41,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/relations_request_builder.rb index 8af0c9b35f..f428e67e2e 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/relations/relations_request_builder.rb @@ -56,10 +56,10 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the different relation of a [term] or [set] from the relations navigation property. + ## Indicates which terms have been pinned or reused directly under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_relation_collection_response ## @@ -68,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,26 +83,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the different relation of a [term] or [set] from the relations navigation property. + ## Indicates which terms have been pinned or reused directly under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -115,20 +113,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the different relation of a [term] or [set] from the relations navigation property. + # Indicates which terms have been pinned or reused directly under the set. class RelationsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/set_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/set_item_request_builder.rb index 2523c3fbcc..042385b9b3 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/set_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/set_item_request_builder.rb @@ -59,7 +59,7 @@ def terms() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}{?%24expand,%24select}") end ## ## Delete navigation property sets for groups @@ -71,8 +71,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -85,8 +84,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -101,8 +99,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -112,13 +109,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,15 +126,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -148,17 +146,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetItemRequestBuilder.new(raw_url, @request_adapter) + end ## # All sets under the group in a term [store]. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/count/count_request_builder.rb index df9896aee2..9fb92b7957 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/count/count_request_builder.rb @@ -38,7 +38,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -61,17 +60,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/children_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/children_request_builder.rb index da5748344a..f0c19a0b71 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/children_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/children_request_builder.rb @@ -60,7 +60,7 @@ def by_term_id1(term_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Children of current term. @@ -72,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,8 +87,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,15 +97,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -119,17 +117,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a children_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChildrenRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/count/count_request_builder.rb index 187e5f2284..21812bdfa4 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/count/count_request_builder.rb @@ -42,7 +42,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -65,17 +64,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/count/count_request_builder.rb index 95f1578947..f393f942f5 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/count/count_request_builder.rb @@ -46,7 +46,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -69,17 +68,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb index 25dce107c2..8043cc76eb 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb @@ -49,7 +49,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -61,8 +61,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,17 +71,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb index 0d1ae598f1..6a18ac4fa7 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb @@ -65,7 +65,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -77,8 +77,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -91,8 +90,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -107,8 +105,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -118,13 +115,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -134,15 +132,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -154,17 +152,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb index 04013eab9d..8adf6ff688 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb @@ -49,7 +49,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -61,8 +61,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,17 +71,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb index a0dddc56ab..25698daab8 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb @@ -49,7 +49,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -61,8 +61,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,17 +71,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/relations_request_builder.rb index 926b7012f9..2b385de8c8 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/relations/relations_request_builder.rb @@ -64,7 +64,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -76,8 +76,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,8 +91,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -103,15 +101,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -123,17 +121,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/set/set_request_builder.rb index 303338b870..e99ebdcb40 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/set/set_request_builder.rb @@ -45,7 +45,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/term_item_request_builder.rb index f8d5c53a91..ace32650a0 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/children/item/term_item_request_builder.rb @@ -55,7 +55,7 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}") end ## ## Delete navigation property children for groups @@ -67,8 +67,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -81,8 +80,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -97,8 +95,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -108,13 +105,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,15 +122,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -144,17 +142,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/count/count_request_builder.rb index b8b637bee4..a438b79b44 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/count/count_request_builder.rb @@ -42,7 +42,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -65,17 +64,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb index b393c391bb..b1cd4d0e46 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb @@ -45,7 +45,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/item/relation_item_request_builder.rb index 07bd26f152..871193e004 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/item/relation_item_request_builder.rb @@ -61,7 +61,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -73,8 +73,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -87,8 +86,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -103,8 +101,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -114,13 +111,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -130,15 +128,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -150,17 +148,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/item/set/set_request_builder.rb index 42308dceb9..03d5c77288 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/item/set/set_request_builder.rb @@ -45,7 +45,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb index f3c5c9256f..3793b6c3a5 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb @@ -45,7 +45,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/relations_request_builder.rb index 8c5a0fa95f..ea3d8a4e6c 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/relations/relations_request_builder.rb @@ -60,7 +60,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -72,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,8 +87,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,15 +97,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -119,17 +117,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/set/set_request_builder.rb index 982f3a2d3c..a676fed8bf 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/set/set_request_builder.rb @@ -41,7 +41,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/term_item_request_builder.rb index 68e9a47e67..687f3b46d4 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/item/term_item_request_builder.rb @@ -57,10 +57,10 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}{?%24expand,%24select}") end ## - ## Delete a term object. + ## Delete navigation property terms for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -69,12 +69,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term ## @@ -83,12 +82,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of a term object. + ## Update the navigation property terms in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term @@ -99,46 +97,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a term object. + ## Delete navigation property terms for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of a term object. + ## Update the navigation property terms in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -146,20 +144,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a term object. + # All the terms under the set. class TermItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/terms_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/terms_request_builder.rb index 6d326a4006..585e888d15 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/terms_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/item/terms/terms_request_builder.rb @@ -56,10 +56,10 @@ def by_term_id(term_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term_collection_response ## @@ -68,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,26 +83,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -115,20 +113,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a terms_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a term object. + # All the terms under the set. class TermsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/sets_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/sets_request_builder.rb index 007f3ed611..d7cd950ca3 100644 --- a/lib/groups/item/sites/item/term_stores/item/groups/item/sets/sets_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/groups/item/sets/sets_request_builder.rb @@ -52,10 +52,10 @@ def by_set_id(set_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get a list of the set objects and their properties. + ## All sets under the group in a term [store]. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_set_collection_response ## @@ -64,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSetCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,26 +79,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get a list of the set objects and their properties. + ## All sets under the group in a term [store]. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -111,20 +109,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sets_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a list of the set objects and their properties. + # All sets under the group in a term [store]. class SetsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_stores/item/sets/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/count/count_request_builder.rb index aca8dd34ed..2441d717df 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/children/children_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/children/children_request_builder.rb index 051b6b6088..3da89433d1 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/children/children_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/children/children_request_builder.rb @@ -52,10 +52,10 @@ def by_term_id(term_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the first level children of a [set] or [term] resource using the children navigation property. + ## Children terms of set in term [store]. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term_collection_response ## @@ -64,12 +64,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new term object. + ## Create new navigation property to children for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term @@ -80,30 +79,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the first level children of a [set] or [term] resource using the children navigation property. + ## Children terms of set in term [store]. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new term object. + ## Create new navigation property to children for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -111,20 +109,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a children_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChildrenRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the first level children of a [set] or [term] resource using the children navigation property. + # Children terms of set in term [store]. class ChildrenRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/children/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/children/count/count_request_builder.rb index 7280e7bc72..e31339b21f 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/children/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/children/count/count_request_builder.rb @@ -34,7 +34,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -46,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -57,17 +56,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/children_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/children_request_builder.rb index 2db4448483..d3b9f18a12 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/children_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/children_request_builder.rb @@ -56,7 +56,7 @@ def by_term_id1(term_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Children of current term. @@ -68,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,8 +83,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -95,15 +93,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -115,17 +113,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a children_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChildrenRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/count/count_request_builder.rb index e804038b6b..3e53c671b0 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/count/count_request_builder.rb @@ -38,7 +38,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -61,17 +60,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/count/count_request_builder.rb index 22b82c78fa..3203d9489d 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/count/count_request_builder.rb @@ -42,7 +42,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -65,17 +64,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb index 193d4a455b..8b39c4906f 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb @@ -45,7 +45,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb index 4ccb061fd8..4ce3826a22 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb @@ -61,7 +61,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -73,8 +73,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -87,8 +86,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -103,8 +101,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -114,13 +111,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -130,15 +128,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -150,17 +148,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb index fe3d6d79d3..a2bb1f2d38 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb @@ -45,7 +45,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb index a4f752d92b..d9bdad46e5 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb @@ -45,7 +45,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/relations_request_builder.rb index 72fdf37598..82cf71fb00 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/relations/relations_request_builder.rb @@ -60,7 +60,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -72,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,8 +87,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,15 +97,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -119,17 +117,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/set/set_request_builder.rb index ff47cb2fa9..6fd197b95b 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/set/set_request_builder.rb @@ -41,7 +41,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/term_item_request_builder.rb index 418370b4e6..afd1140fa3 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/children/item/term_item_request_builder.rb @@ -51,7 +51,7 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}") end ## ## Delete navigation property children for groups @@ -63,8 +63,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -77,8 +76,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,8 +91,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -104,13 +101,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,15 +118,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -140,17 +138,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/count/count_request_builder.rb index 24b689565b..be35d23667 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/count/count_request_builder.rb @@ -38,7 +38,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -61,17 +60,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb index 7a7ecc583a..443f599437 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb @@ -41,7 +41,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/item/relation_item_request_builder.rb index 45ce72d0bc..aaac219d52 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/item/relation_item_request_builder.rb @@ -57,7 +57,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -69,8 +69,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -83,8 +82,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,8 +97,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -110,13 +107,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,15 +124,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -146,17 +144,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/item/set/set_request_builder.rb index 5b848bc9bf..62912587c4 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/item/set/set_request_builder.rb @@ -41,7 +41,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb index b2daa6b6fa..61853650da 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb @@ -41,7 +41,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/relations_request_builder.rb index 37ec339041..bfad8b573e 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/relations/relations_request_builder.rb @@ -56,7 +56,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -68,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,8 +83,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -95,15 +93,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -115,17 +113,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/set/set_request_builder.rb index c28e72fe6e..b8aedd68e9 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/set/set_request_builder.rb @@ -37,7 +37,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -49,8 +49,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -60,17 +59,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/term_item_request_builder.rb index 10e9c5f59a..4798279e6c 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/children/item/term_item_request_builder.rb @@ -53,7 +53,7 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}{?%24expand,%24select}") end ## ## Delete navigation property children for groups @@ -65,8 +65,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -79,8 +78,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -95,8 +93,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -106,13 +103,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,15 +120,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -142,17 +140,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Children terms of set in term [store]. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/parent_group_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/parent_group_request_builder.rb index ece167f71a..eed3e71c21 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/parent_group_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/parent_group_request_builder.rb @@ -39,7 +39,7 @@ def sets() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup{?%24expand,%24select}") end ## ## Delete navigation property parentGroup for groups @@ -51,8 +51,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreGroup.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,13 +89,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,15 +106,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,17 +126,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a parent_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ParentGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # The parent [group] that contains the set. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/count/count_request_builder.rb index 24ee7a8ddd..2e947bdd25 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/count/count_request_builder.rb @@ -36,7 +36,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -59,17 +58,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/children_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/children_request_builder.rb index fe2b1618a2..1db4923872 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/children_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/children_request_builder.rb @@ -58,10 +58,10 @@ def by_term_id(term_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the first level children of a [set] or [term] resource using the children navigation property. + ## Children terms of set in term [store]. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term_collection_response ## @@ -70,12 +70,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new term object. + ## Create new navigation property to children for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term @@ -86,30 +85,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the first level children of a [set] or [term] resource using the children navigation property. + ## Children terms of set in term [store]. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new term object. + ## Create new navigation property to children for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -117,20 +115,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a children_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChildrenRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the first level children of a [set] or [term] resource using the children navigation property. + # Children terms of set in term [store]. class ChildrenRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/count/count_request_builder.rb index 7e9ea60768..785e4f9c8a 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/count/count_request_builder.rb @@ -40,7 +40,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -63,17 +62,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/children_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/children_request_builder.rb index 3447278f81..05ed26610f 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/children_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/children_request_builder.rb @@ -62,7 +62,7 @@ def by_term_id1(term_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Children of current term. @@ -74,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,8 +89,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -101,15 +99,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -121,17 +119,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a children_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChildrenRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/count/count_request_builder.rb index 21c0e1219c..b17f60ab0e 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/count/count_request_builder.rb @@ -44,7 +44,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -67,17 +66,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/count/count_request_builder.rb index c3a2e1c45f..223305999e 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/count/count_request_builder.rb @@ -48,7 +48,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -60,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -71,17 +70,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb index a1d60fb69b..e78ef39660 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/item/from_term/from_term_request_builder.rb @@ -51,7 +51,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -63,8 +63,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,17 +73,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb index 94519e50a6..c1296586de 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/item/relation_item_request_builder.rb @@ -67,7 +67,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -79,8 +79,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -93,8 +92,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -109,8 +107,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -120,13 +117,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,15 +134,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -156,17 +154,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb index a8d21c80ea..9ed755cd5b 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/item/set/set_request_builder.rb @@ -51,7 +51,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -63,8 +63,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,17 +73,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb index 22b733fc3f..feb3de42e1 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/item/to_term/to_term_request_builder.rb @@ -51,7 +51,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -63,8 +63,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,17 +73,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/relations_request_builder.rb index 9ad713c333..f00e3a126a 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/relations/relations_request_builder.rb @@ -66,7 +66,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -78,8 +78,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -94,8 +93,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -105,15 +103,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -125,17 +123,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/set/set_request_builder.rb index e78ee43b50..27db6d901a 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/set/set_request_builder.rb @@ -47,7 +47,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -59,8 +59,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,17 +69,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/term_item_request_builder.rb index 4c3e501136..a6c8ca3d93 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/children/item/term_item_request_builder.rb @@ -57,7 +57,7 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}") end ## ## Delete navigation property children for groups @@ -69,8 +69,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -83,8 +82,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,8 +97,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -110,13 +107,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,15 +124,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -146,17 +144,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/count/count_request_builder.rb index bf3e4fb73a..aa07b5aa12 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/count/count_request_builder.rb @@ -44,7 +44,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -67,17 +66,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb index dd45b1bdfe..8400017aae 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/item/from_term/from_term_request_builder.rb @@ -47,7 +47,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -59,8 +59,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,17 +69,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/item/relation_item_request_builder.rb index 9d8c467468..9afec87c0c 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/item/relation_item_request_builder.rb @@ -63,7 +63,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -75,8 +75,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -89,8 +88,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -105,8 +103,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -116,13 +113,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,15 +130,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -152,17 +150,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/item/set/set_request_builder.rb index cd77365795..fc90ee2d23 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/item/set/set_request_builder.rb @@ -47,7 +47,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -59,8 +59,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,17 +69,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb index 5622d13e20..d6cae2ed9a 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/item/to_term/to_term_request_builder.rb @@ -47,7 +47,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -59,8 +59,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,17 +69,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/relations_request_builder.rb index 848919322e..17149af65f 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/relations_request_builder.rb @@ -62,7 +62,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -74,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,8 +89,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -101,15 +99,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -121,17 +119,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/set/set_request_builder.rb index e06eecf033..526cdaf1e3 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/set/set_request_builder.rb @@ -43,7 +43,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/term_item_request_builder.rb index bd554af4c4..4be8f37be8 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/term_item_request_builder.rb @@ -59,7 +59,7 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}{?%24expand,%24select}") end ## ## Delete navigation property children for groups @@ -71,8 +71,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -85,8 +84,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -101,8 +99,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -112,13 +109,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,15 +126,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -148,17 +146,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Children terms of set in term [store]. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/count/count_request_builder.rb index 00da87b6b1..78b098ed31 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/count/count_request_builder.rb @@ -40,7 +40,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -63,17 +62,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/item/from_term/from_term_request_builder.rb index b96aa3ddfb..f6365eda30 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/item/from_term/from_term_request_builder.rb @@ -43,7 +43,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/item/relation_item_request_builder.rb index a86b44260f..9f501ed395 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/item/relation_item_request_builder.rb @@ -59,7 +59,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -71,8 +71,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -85,8 +84,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -101,8 +99,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -112,13 +109,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,15 +126,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -148,17 +146,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Indicates which terms have been pinned or reused directly under the set. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/item/set/set_request_builder.rb index 89e795292f..1baf347ce2 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/item/set/set_request_builder.rb @@ -43,7 +43,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/item/to_term/to_term_request_builder.rb index 08603e6e73..c5dc4e8b0d 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/item/to_term/to_term_request_builder.rb @@ -43,7 +43,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/relations_request_builder.rb index a128e1d627..f855e526b8 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/relations/relations_request_builder.rb @@ -58,10 +58,10 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the different relation of a [term] or [set] from the relations navigation property. + ## Indicates which terms have been pinned or reused directly under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_relation_collection_response ## @@ -70,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,26 +85,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the different relation of a [term] or [set] from the relations navigation property. + ## Indicates which terms have been pinned or reused directly under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -117,20 +115,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the different relation of a [term] or [set] from the relations navigation property. + # Indicates which terms have been pinned or reused directly under the set. class RelationsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/set_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/set_item_request_builder.rb index fe4e20358a..7b205e73ea 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/set_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/set_item_request_builder.rb @@ -55,7 +55,7 @@ def terms() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}{?%24expand,%24select}") end ## ## Delete navigation property sets for groups @@ -67,8 +67,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -81,8 +80,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -97,8 +95,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -108,13 +105,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,15 +122,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -144,17 +142,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetItemRequestBuilder.new(raw_url, @request_adapter) + end ## # All sets under the group in a term [store]. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/count/count_request_builder.rb index 32e754b299..c1773f479d 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/count/count_request_builder.rb @@ -40,7 +40,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -63,17 +62,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/children_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/children_request_builder.rb index f68176a3e3..96f3f3a47a 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/children_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/children_request_builder.rb @@ -62,7 +62,7 @@ def by_term_id1(term_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Children of current term. @@ -74,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,8 +89,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -101,15 +99,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -121,17 +119,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a children_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChildrenRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/count/count_request_builder.rb index 3bee0571f6..ed3ee9ab4a 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/count/count_request_builder.rb @@ -44,7 +44,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -67,17 +66,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/count/count_request_builder.rb index 96bbb57e79..7a60ef3cf8 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/count/count_request_builder.rb @@ -48,7 +48,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -60,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -71,17 +70,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb index 25c3c46747..a7fda2b4c3 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb @@ -51,7 +51,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -63,8 +63,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,17 +73,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb index b09f69e089..5430f63353 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb @@ -67,7 +67,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -79,8 +79,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -93,8 +92,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -109,8 +107,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -120,13 +117,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,15 +134,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -156,17 +154,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb index a8f480336a..69731a57ba 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb @@ -51,7 +51,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -63,8 +63,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,17 +73,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb index e7a02e0651..4d206bda9f 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb @@ -51,7 +51,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -63,8 +63,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,17 +73,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/relations_request_builder.rb index 0254c6515b..7fdf9320b1 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/relations/relations_request_builder.rb @@ -66,7 +66,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -78,8 +78,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -94,8 +93,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -105,15 +103,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -125,17 +123,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/set/set_request_builder.rb index ee5cad0fdb..c1f887702b 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/set/set_request_builder.rb @@ -47,7 +47,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -59,8 +59,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,17 +69,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/term_item_request_builder.rb index c42594e19e..39fea29dd7 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/children/item/term_item_request_builder.rb @@ -57,7 +57,7 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}") end ## ## Delete navigation property children for groups @@ -69,8 +69,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -83,8 +82,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,8 +97,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -110,13 +107,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,15 +124,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -146,17 +144,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/count/count_request_builder.rb index e2473dd4ca..b72e1c6a62 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/count/count_request_builder.rb @@ -44,7 +44,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -67,17 +66,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb index 178e99b2ae..42928db2c1 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb @@ -47,7 +47,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -59,8 +59,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,17 +69,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/item/relation_item_request_builder.rb index c57e51ad5f..5307d8dcdf 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/item/relation_item_request_builder.rb @@ -63,7 +63,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -75,8 +75,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -89,8 +88,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -105,8 +103,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -116,13 +113,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,15 +130,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -152,17 +150,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/item/set/set_request_builder.rb index b95ff052ed..7a6d1c5546 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/item/set/set_request_builder.rb @@ -47,7 +47,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -59,8 +59,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,17 +69,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb index dffe0bbf80..a09c26a31a 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb @@ -47,7 +47,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -59,8 +59,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,17 +69,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/relations_request_builder.rb index eb49e95f10..f86eee8c79 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/relations/relations_request_builder.rb @@ -62,7 +62,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -74,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,8 +89,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -101,15 +99,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -121,17 +119,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/set/set_request_builder.rb index ff1f48024d..35b550fb83 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/set/set_request_builder.rb @@ -43,7 +43,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/term_item_request_builder.rb index 91ecca20c0..666757d600 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/item/term_item_request_builder.rb @@ -59,10 +59,10 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}{?%24expand,%24select}") end ## - ## Delete a term object. + ## Delete navigation property terms for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -71,12 +71,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term ## @@ -85,12 +84,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of a term object. + ## Update the navigation property terms in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term @@ -101,46 +99,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a term object. + ## Delete navigation property terms for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of a term object. + ## Update the navigation property terms in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -148,20 +146,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a term object. + # All the terms under the set. class TermItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/terms_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/terms_request_builder.rb index dd2512a1e4..992c78a856 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/terms_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/terms/terms_request_builder.rb @@ -58,10 +58,10 @@ def by_term_id(term_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term_collection_response ## @@ -70,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,26 +85,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -117,20 +115,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a terms_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a term object. + # All the terms under the set. class TermsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/sets_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/sets_request_builder.rb index d75037e280..455bd777aa 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/sets_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/sets_request_builder.rb @@ -54,10 +54,10 @@ def by_set_id1(set_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get a list of the set objects and their properties. + ## All sets under the group in a term [store]. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_set_collection_response ## @@ -66,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSetCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,26 +81,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get a list of the set objects and their properties. + ## All sets under the group in a term [store]. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -113,20 +111,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sets_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a list of the set objects and their properties. + # All sets under the group in a term [store]. class SetsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/relations/count/count_request_builder.rb index 612b15957d..3d8ae472d7 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/relations/count/count_request_builder.rb @@ -34,7 +34,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -46,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -57,17 +56,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/relations/item/from_term/from_term_request_builder.rb index 5b6da4f5a6..45959d5a7b 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/relations/item/from_term/from_term_request_builder.rb @@ -37,7 +37,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -49,8 +49,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -60,17 +59,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/relations/item/relation_item_request_builder.rb index 8819217948..ad5cb0cad9 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/relations/item/relation_item_request_builder.rb @@ -53,7 +53,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -65,8 +65,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -79,8 +78,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -95,8 +93,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -106,13 +103,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,15 +120,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -142,17 +140,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Indicates which terms have been pinned or reused directly under the set. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/relations/item/set/set_request_builder.rb index 4ae4e1c3a4..65d3b9aa7f 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/relations/item/set/set_request_builder.rb @@ -37,7 +37,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -49,8 +49,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -60,17 +59,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/relations/item/to_term/to_term_request_builder.rb index ed18296a6b..a2d72ea9d0 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/relations/item/to_term/to_term_request_builder.rb @@ -37,7 +37,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -49,8 +49,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -60,17 +59,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/relations/relations_request_builder.rb index 840840ce4d..16f83ad185 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/relations/relations_request_builder.rb @@ -52,10 +52,10 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the different relation of a [term] or [set] from the relations navigation property. + ## Indicates which terms have been pinned or reused directly under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_relation_collection_response ## @@ -64,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,26 +79,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the different relation of a [term] or [set] from the relations navigation property. + ## Indicates which terms have been pinned or reused directly under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -111,20 +109,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the different relation of a [term] or [set] from the relations navigation property. + # Indicates which terms have been pinned or reused directly under the set. class RelationsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/set_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/set_item_request_builder.rb index f9d707107c..5d0286165f 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/set_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/set_item_request_builder.rb @@ -55,10 +55,10 @@ def terms() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}{?%24expand,%24select}") end ## - ## Delete a set object. + ## Delete navigation property sets for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -67,12 +67,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read the properties and relationships of a set object. + ## Collection of all sets available in the term store. This relationship can only be used to load a specific term set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_set ## @@ -81,12 +80,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of a set object. + ## Update the navigation property sets in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_set @@ -97,46 +95,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a set object. + ## Delete navigation property sets for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read the properties and relationships of a set object. + ## Collection of all sets available in the term store. This relationship can only be used to load a specific term set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of a set object. + ## Update the navigation property sets in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -144,20 +142,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a set object. + # Collection of all sets available in the term store. This relationship can only be used to load a specific term set. class SetItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/count/count_request_builder.rb index 4beab516d0..e3bc4c4a58 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/count/count_request_builder.rb @@ -34,7 +34,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -46,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -57,17 +56,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/children_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/children_request_builder.rb index 061ccdd1b6..6a01630374 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/children_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/children_request_builder.rb @@ -56,7 +56,7 @@ def by_term_id1(term_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Children of current term. @@ -68,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,8 +83,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -95,15 +93,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -115,17 +113,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a children_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChildrenRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/count/count_request_builder.rb index 41f98b311f..ff2d7908df 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/count/count_request_builder.rb @@ -38,7 +38,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -61,17 +60,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/count/count_request_builder.rb index abaf20548e..6747cd1d74 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/count/count_request_builder.rb @@ -42,7 +42,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -65,17 +64,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb index fe7639a8cc..a166003010 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/item/from_term/from_term_request_builder.rb @@ -45,7 +45,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb index dd53778e00..f16dfffbb0 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/item/relation_item_request_builder.rb @@ -61,7 +61,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -73,8 +73,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -87,8 +86,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -103,8 +101,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -114,13 +111,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -130,15 +128,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -150,17 +148,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb index 0a5e45ce17..bae6fb58f2 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/item/set/set_request_builder.rb @@ -45,7 +45,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb index a3be602c6d..769b117f22 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/item/to_term/to_term_request_builder.rb @@ -45,7 +45,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -57,8 +57,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,17 +67,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/relations_request_builder.rb index 2ee379f457..7f994b891f 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/relations_request_builder.rb @@ -60,7 +60,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -72,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,8 +87,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,15 +97,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -119,17 +117,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/set/set_request_builder.rb index 0080218f5b..a5ee55f225 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/set/set_request_builder.rb @@ -41,7 +41,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/term_item_request_builder.rb index 7bb6108efd..9719dcd6ce 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/term_item_request_builder.rb @@ -51,7 +51,7 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}") end ## ## Delete navigation property children for groups @@ -63,8 +63,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -77,8 +76,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,8 +91,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -104,13 +101,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,15 +118,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -140,17 +138,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Children of current term. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/count/count_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/count/count_request_builder.rb index 7f1831f19c..6f7f634f13 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/count/count_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/count/count_request_builder.rb @@ -38,7 +38,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -61,17 +60,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb index 9987a8f70a..c8285d64e7 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/item/from_term/from_term_request_builder.rb @@ -41,7 +41,7 @@ class FromTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}") end ## ## The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a from_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FromTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/item/relation_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/item/relation_item_request_builder.rb index e995482fa5..0694f0f3d0 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/item/relation_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/item/relation_item_request_builder.rb @@ -57,7 +57,7 @@ def to_term() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property relations for groups @@ -69,8 +69,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -83,8 +82,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -99,8 +97,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -110,13 +107,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,15 +124,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -146,17 +144,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/item/set/set_request_builder.rb index 045bbe9874..97b77548ae 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/item/set/set_request_builder.rb @@ -41,7 +41,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the relation is relevant. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the relation is relevant. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb index d9e6b5ada6..55094fd56a 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/item/to_term/to_term_request_builder.rb @@ -41,7 +41,7 @@ class ToTermRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}") end ## ## The to [term] of the relation. The term to which the relationship is defined. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a to_term_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ToTermRequestBuilder.new(raw_url, @request_adapter) + end ## # The to [term] of the relation. The term to which the relationship is defined. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/relations_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/relations_request_builder.rb index 4111990542..f489f19953 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/relations_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/relations/relations_request_builder.rb @@ -56,7 +56,7 @@ def by_relation_id(relation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## To indicate which terms are related to the current term as either pinned or reused. @@ -68,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,8 +83,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreRelation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -95,15 +93,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -115,17 +113,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a relations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RelationsRequestBuilder.new(raw_url, @request_adapter) + end ## # To indicate which terms are related to the current term as either pinned or reused. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/set/set_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/set/set_request_builder.rb index caefa8fc72..00ee4b3832 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/set/set_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/set/set_request_builder.rb @@ -37,7 +37,7 @@ class SetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/set{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/set{?%24expand,%24select}") end ## ## The [set] in which the term is created. @@ -49,8 +49,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -60,17 +59,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetRequestBuilder.new(raw_url, @request_adapter) + end ## # The [set] in which the term is created. diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/term_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/term_item_request_builder.rb index 514b6c06b1..e244263b8e 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/term_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/item/term_item_request_builder.rb @@ -53,10 +53,10 @@ def set() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}{?%24expand,%24select}") end ## - ## Delete a term object. + ## Delete navigation property terms for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -65,12 +65,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term ## @@ -79,12 +78,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of a term object. + ## Update the navigation property terms in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term @@ -95,46 +93,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a term object. + ## Delete navigation property terms for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of a term object. + ## Update the navigation property terms in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -142,20 +140,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a term object. + # All the terms under the set. class TermItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/terms_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/terms_request_builder.rb index 2afb2aa1c8..b5ffae2dc6 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/item/terms/terms_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/item/terms/terms_request_builder.rb @@ -52,10 +52,10 @@ def by_term_id(term_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_term_collection_response ## @@ -64,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTermCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,26 +79,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Read the properties and relationships of a term object. + ## All the terms under the set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -111,20 +109,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a terms_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a term object. + # All the terms under the set. class TermsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_stores/item/sets/sets_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/sets/sets_request_builder.rb index 5d2b0f5066..78b992da2c 100644 --- a/lib/groups/item/sites/item/term_stores/item/sets/sets_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/sets/sets_request_builder.rb @@ -48,10 +48,10 @@ def by_set_id(set_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Read the properties and relationships of a set object. + ## Collection of all sets available in the term store. This relationship can only be used to load a specific term set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_set_collection_response ## @@ -60,12 +60,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSetCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new set object. + ## Create new navigation property to sets for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of term_store_set @@ -76,30 +75,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Read the properties and relationships of a set object. + ## Collection of all sets available in the term store. This relationship can only be used to load a specific term set. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new set object. + ## Create new navigation property to sets for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -107,20 +105,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sets_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a set object. + # Collection of all sets available in the term store. This relationship can only be used to load a specific term set. class SetsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/sites/item/term_stores/item/store_item_request_builder.rb b/lib/groups/item/sites/item/term_stores/item/store_item_request_builder.rb index ba81a8bac8..b23059582c 100644 --- a/lib/groups/item/sites/item/term_stores/item/store_item_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/item/store_item_request_builder.rb @@ -39,7 +39,7 @@ def sets() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}{?%24expand,%24select}") end ## ## Delete navigation property termStores for groups @@ -51,8 +51,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreStore.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreStore.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,13 +89,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,15 +106,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,17 +126,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a store_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return StoreItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of termStores under this site. diff --git a/lib/groups/item/sites/item/term_stores/term_stores_request_builder.rb b/lib/groups/item/sites/item/term_stores/term_stores_request_builder.rb index c5eda4f44d..02caa3a2f6 100644 --- a/lib/groups/item/sites/item/term_stores/term_stores_request_builder.rb +++ b/lib/groups/item/sites/item/term_stores/term_stores_request_builder.rb @@ -44,7 +44,7 @@ def by_store_id(store_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The collection of termStores under this site. @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreStoreCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,8 +71,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TermStoreStore.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,15 +81,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,17 +101,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a term_stores_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TermStoresRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of termStores under this site. diff --git a/lib/groups/item/sites/remove/remove.rb b/lib/groups/item/sites/remove/remove.rb index 435ef31b78..95c14f7d89 100644 --- a/lib/groups/item/sites/remove/remove.rb +++ b/lib/groups/item/sites/remove/remove.rb @@ -1,2 +1,2 @@ require_relative 'remove_post_request_body' -require_relative 'remove_response' +require_relative 'remove_post_response' diff --git a/lib/groups/item/sites/remove/remove_post_request_body.rb b/lib/groups/item/sites/remove/remove_post_request_body.rb index dc9267da1f..514db8c011 100644 --- a/lib/groups/item/sites/remove/remove_post_request_body.rb +++ b/lib/groups/item/sites/remove/remove_post_request_body.rb @@ -20,22 +20,22 @@ class RemovePostRequestBody # The value property @value ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new removePostRequestBody and sets the default values. + ## Instantiates a new RemovePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/sites/remove/remove_post_response.rb b/lib/groups/item/sites/remove/remove_post_response.rb new file mode 100644 index 0000000000..5501c56e7a --- /dev/null +++ b/lib/groups/item/sites/remove/remove_post_response.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/base_collection_pagination_count_response' +require_relative '../../../../models/site' +require_relative '../../../groups' +require_relative '../../item' +require_relative '../sites' +require_relative './remove' + +module MicrosoftGraph + module Groups + module Item + module Sites + module Remove + class RemovePostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new RemovePostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a remove_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return RemovePostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Site.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a site + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/groups/item/sites/remove/remove_request_builder.rb b/lib/groups/item/sites/remove/remove_request_builder.rb index ae1e3468a6..4b78aec344 100644 --- a/lib/groups/item/sites/remove/remove_request_builder.rb +++ b/lib/groups/item/sites/remove/remove_request_builder.rb @@ -28,7 +28,7 @@ def initialize(path_parameters, request_adapter) ## Unfollow a user's site or multiple sites. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of remove_response + ## @return a Fiber of remove_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -36,9 +36,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Remove::RemoveResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Sites::Remove::RemovePostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Unfollow a user's site or multiple sites. @@ -49,17 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a remove_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RemoveRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/sites/remove/remove_response.rb b/lib/groups/item/sites/remove/remove_response.rb deleted file mode 100644 index 2bb4cebd13..0000000000 --- a/lib/groups/item/sites/remove/remove_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../../models/site' -require_relative '../../../groups' -require_relative '../../item' -require_relative '../sites' -require_relative './remove' - -module MicrosoftGraph - module Groups - module Item - module Sites - module Remove - class RemoveResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new removeResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a remove_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return RemoveResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Site.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a site - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/groups/item/sites/sites_request_builder.rb b/lib/groups/item/sites/sites_request_builder.rb index 142b3a4e6e..79a7012353 100644 --- a/lib/groups/item/sites/sites_request_builder.rb +++ b/lib/groups/item/sites/sites_request_builder.rb @@ -6,6 +6,7 @@ require_relative '../item' require_relative './add/add_request_builder' require_relative './count/count_request_builder' +require_relative './delta/delta_request_builder' require_relative './get_all_sites/get_all_sites_request_builder' require_relative './item/site_item_request_builder' require_relative './remove/remove_request_builder' @@ -30,6 +31,11 @@ def count() return MicrosoftGraph::Groups::Item::Sites::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the delta method. + def delta() + return MicrosoftGraph::Groups::Item::Sites::Delta::DeltaRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to call the getAllSites method. def get_all_sites() return MicrosoftGraph::Groups::Item::Sites::GetAllSites::GetAllSitesRequestBuilder.new(@path_parameters, @request_adapter) @@ -57,7 +63,7 @@ def by_site_id(site_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/sites{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The list of SharePoint sites in this group. Access the default site with /sites/root. @@ -69,8 +75,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SiteCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,17 +85,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a sites_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SitesRequestBuilder.new(raw_url, @request_adapter) + end ## # The list of SharePoint sites in this group. Access the default site with /sites/root. diff --git a/lib/groups/item/subscribe_by_mail/subscribe_by_mail_request_builder.rb b/lib/groups/item/subscribe_by_mail/subscribe_by_mail_request_builder.rb index 6825f58306..0f0f0f0894 100644 --- a/lib/groups/item/subscribe_by_mail/subscribe_by_mail_request_builder.rb +++ b/lib/groups/item/subscribe_by_mail/subscribe_by_mail_request_builder.rb @@ -32,8 +32,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -43,15 +42,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a subscribe_by_mail_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SubscribeByMailRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/all_channels/all_channels_request_builder.rb b/lib/groups/item/team/all_channels/all_channels_request_builder.rb index 5cd55d1a49..61aa82352e 100644 --- a/lib/groups/item/team/all_channels/all_channels_request_builder.rb +++ b/lib/groups/item/team/all_channels/all_channels_request_builder.rb @@ -41,10 +41,10 @@ def by_channel_id(channel_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/allChannels{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/allChannels{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the list of channels either in this team or shared with this team (incoming channels). + ## List of channels either hosted in or shared with the team (incoming channels). ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of channel_collection_response ## @@ -53,31 +53,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChannelCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the list of channels either in this team or shared with this team (incoming channels). + ## List of channels either hosted in or shared with the team (incoming channels). ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a all_channels_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AllChannelsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the list of channels either in this team or shared with this team (incoming channels). + # List of channels either hosted in or shared with the team (incoming channels). class AllChannelsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/all_channels/count/count_request_builder.rb b/lib/groups/item/team/all_channels/count/count_request_builder.rb index 58f32dcdfa..965dae0d84 100644 --- a/lib/groups/item/team/all_channels/count/count_request_builder.rb +++ b/lib/groups/item/team/all_channels/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/allChannels/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/allChannels/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/all_channels/item/channel_item_request_builder.rb b/lib/groups/item/team/all_channels/item/channel_item_request_builder.rb index 3ccaea822e..90fb14110b 100644 --- a/lib/groups/item/team/all_channels/item/channel_item_request_builder.rb +++ b/lib/groups/item/team/all_channels/item/channel_item_request_builder.rb @@ -25,7 +25,7 @@ class ChannelItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/allChannels/{channel%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/allChannels/{channel%2Did}{?%24expand,%24select}") end ## ## List of channels either hosted in or shared with the team (incoming channels). @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Channel.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a channel_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChannelItemRequestBuilder.new(raw_url, @request_adapter) + end ## # List of channels either hosted in or shared with the team (incoming channels). diff --git a/lib/groups/item/team/archive/archive_post_request_body.rb b/lib/groups/item/team/archive/archive_post_request_body.rb index 4d93ccbc9f..8e8f38ac41 100644 --- a/lib/groups/item/team/archive/archive_post_request_body.rb +++ b/lib/groups/item/team/archive/archive_post_request_body.rb @@ -19,22 +19,22 @@ class ArchivePostRequestBody # The shouldSetSpoSiteReadOnlyForMembers property @should_set_spo_site_read_only_for_members ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new archivePostRequestBody and sets the default values. + ## Instantiates a new ArchivePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/team/archive/archive_request_builder.rb b/lib/groups/item/team/archive/archive_request_builder.rb index ba8746f739..c54029b6de 100644 --- a/lib/groups/item/team/archive/archive_request_builder.rb +++ b/lib/groups/item/team/archive/archive_request_builder.rb @@ -25,7 +25,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/archive") end ## - ## Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + ## Archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team are still allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which might occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -36,12 +36,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + ## Archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team are still allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which might occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a archive_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ArchiveRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/channels/channels_request_builder.rb b/lib/groups/item/team/channels/channels_request_builder.rb index 0da7450c52..04c2fdbb38 100644 --- a/lib/groups/item/team/channels/channels_request_builder.rb +++ b/lib/groups/item/team/channels/channels_request_builder.rb @@ -9,6 +9,7 @@ require_relative './channels' require_relative './count/count_request_builder' require_relative './get_all_messages/get_all_messages_request_builder' +require_relative './get_all_retained_messages/get_all_retained_messages_request_builder' require_relative './item/channel_item_request_builder' module MicrosoftGraph @@ -31,6 +32,11 @@ def get_all_messages() return MicrosoftGraph::Groups::Item::Team::Channels::GetAllMessages::GetAllMessagesRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the getAllRetainedMessages method. + def get_all_retained_messages() + return MicrosoftGraph::Groups::Item::Team::Channels::GetAllRetainedMessages::GetAllRetainedMessagesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Provides operations to manage the channels property of the microsoft.graph.team entity. ## @param channel_id The unique identifier of channel ## @return a channel_item_request_builder @@ -48,10 +54,10 @@ def by_channel_id(channel_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve the list of channels in this team. + ## The collection of channels and messages associated with the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of channel_collection_response ## @@ -60,12 +66,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChannelCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. If you're creating a private channel, you can add a maximum of 200 members. + ## Create new navigation property to channels for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of channel @@ -76,30 +81,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Channel.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve the list of channels in this team. + ## The collection of channels and messages associated with the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. If you're creating a private channel, you can add a maximum of 200 members. + ## Create new navigation property to channels for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -107,20 +111,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a channels_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChannelsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the list of channels in this team. + # The collection of channels and messages associated with the team. class ChannelsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/channels/count/count_request_builder.rb b/lib/groups/item/team/channels/count/count_request_builder.rb index f00d05ace6..43cb84a635 100644 --- a/lib/groups/item/team/channels/count/count_request_builder.rb +++ b/lib/groups/item/team/channels/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/channels/get_all_messages/get_all_messages.rb b/lib/groups/item/team/channels/get_all_messages/get_all_messages.rb index 4ce2619319..0502664242 100644 --- a/lib/groups/item/team/channels/get_all_messages/get_all_messages.rb +++ b/lib/groups/item/team/channels/get_all_messages/get_all_messages.rb @@ -1 +1 @@ -require_relative 'get_all_messages_response' +require_relative 'get_all_messages_get_response' diff --git a/lib/groups/item/team/channels/get_all_messages/get_all_messages_get_response.rb b/lib/groups/item/team/channels/get_all_messages/get_all_messages_get_response.rb new file mode 100644 index 0000000000..4688903f18 --- /dev/null +++ b/lib/groups/item/team/channels/get_all_messages/get_all_messages_get_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../models/chat_message' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../team' +require_relative '../channels' +require_relative './get_all_messages' + +module MicrosoftGraph + module Groups + module Item + module Team + module Channels + module GetAllMessages + class GetAllMessagesGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetAllMessagesGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_all_messages_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetAllMessagesGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a chat_message + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/channels/get_all_messages/get_all_messages_request_builder.rb b/lib/groups/item/team/channels/get_all_messages/get_all_messages_request_builder.rb index 69388b7e53..be806dd88c 100644 --- a/lib/groups/item/team/channels/get_all_messages/get_all_messages_request_builder.rb +++ b/lib/groups/item/team/channels/get_all_messages/get_all_messages_request_builder.rb @@ -24,49 +24,60 @@ class GetAllMessagesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/getAllMessages(){?model*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/getAllMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top,model*}") end ## - ## Invoke function getAllMessages + ## Retrieve messages across all channels in a team, including text, audio, and video conversations. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_all_messages_response + ## @return a Fiber of get_all_messages_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::Channels::GetAllMessages::GetAllMessagesResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::Channels::GetAllMessages::GetAllMessagesGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function getAllMessages + ## Retrieve messages across all channels in a team, including text, audio, and video conversations. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_all_messages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetAllMessagesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function getAllMessages + # Retrieve messages across all channels in a team, including text, audio, and video conversations. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. class GetAllMessagesRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -97,10 +108,10 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" - when "model" - return "model" when "orderby" return "%24orderby" when "search" diff --git a/lib/groups/item/team/channels/get_all_messages/get_all_messages_response.rb b/lib/groups/item/team/channels/get_all_messages/get_all_messages_response.rb deleted file mode 100644 index bde2c9cec4..0000000000 --- a/lib/groups/item/team/channels/get_all_messages/get_all_messages_response.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../models/chat_message' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../team' -require_relative '../channels' -require_relative './get_all_messages' - -module MicrosoftGraph - module Groups - module Item - module Team - module Channels - module GetAllMessages - class GetAllMessagesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getAllMessagesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_all_messages_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAllMessagesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a chat_message - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/channels/get_all_retained_messages/get_all_retained_messages.rb b/lib/groups/item/team/channels/get_all_retained_messages/get_all_retained_messages.rb new file mode 100644 index 0000000000..a3d467b262 --- /dev/null +++ b/lib/groups/item/team/channels/get_all_retained_messages/get_all_retained_messages.rb @@ -0,0 +1 @@ +require_relative 'get_all_retained_messages_get_response' diff --git a/lib/groups/item/team/channels/get_all_retained_messages/get_all_retained_messages_get_response.rb b/lib/groups/item/team/channels/get_all_retained_messages/get_all_retained_messages_get_response.rb new file mode 100644 index 0000000000..d58b6d5ee4 --- /dev/null +++ b/lib/groups/item/team/channels/get_all_retained_messages/get_all_retained_messages_get_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../models/chat_message' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../team' +require_relative '../channels' +require_relative './get_all_retained_messages' + +module MicrosoftGraph + module Groups + module Item + module Team + module Channels + module GetAllRetainedMessages + class GetAllRetainedMessagesGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetAllRetainedMessagesGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_all_retained_messages_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetAllRetainedMessagesGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a chat_message + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/channels/get_all_retained_messages/get_all_retained_messages_request_builder.rb b/lib/groups/item/team/channels/get_all_retained_messages/get_all_retained_messages_request_builder.rb new file mode 100644 index 0000000000..2e4468521f --- /dev/null +++ b/lib/groups/item/team/channels/get_all_retained_messages/get_all_retained_messages_request_builder.rb @@ -0,0 +1,133 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../team' +require_relative '../channels' +require_relative './get_all_retained_messages' + +module MicrosoftGraph + module Groups + module Item + module Team + module Channels + module GetAllRetainedMessages + ## + # Provides operations to call the getAllRetainedMessages method. + class GetAllRetainedMessagesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new GetAllRetainedMessagesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get all retained messages across all channels in a team. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of get_all_retained_messages_get_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::Channels::GetAllRetainedMessages::GetAllRetainedMessagesGetResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get all retained messages across all channels in a team. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_all_retained_messages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetAllRetainedMessagesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get all retained messages across all channels in a team. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + class GetAllRetainedMessagesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/channels/item/all_members/add/add.rb b/lib/groups/item/team/channels/item/all_members/add/add.rb new file mode 100644 index 0000000000..4f4fe401db --- /dev/null +++ b/lib/groups/item/team/channels/item/all_members/add/add.rb @@ -0,0 +1,2 @@ +require_relative 'add_post_request_body' +require_relative 'add_post_response' diff --git a/lib/groups/item/team/channels/item/all_members/add/add_post_request_body.rb b/lib/groups/item/team/channels/item/all_members/add/add_post_request_body.rb new file mode 100644 index 0000000000..d1fc981862 --- /dev/null +++ b/lib/groups/item/team/channels/item/all_members/add/add_post_request_body.rb @@ -0,0 +1,101 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/conversation_member' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../team' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../all_members' +require_relative './add' + +module MicrosoftGraph + module Groups + module Item + module Team + module Channels + module Item + module AllMembers + module Add + class AddPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The values property + @values + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new AddPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a add_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AddPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "values" => lambda {|n| @values = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_collection_of_object_values("values", @values) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the values property value. The values property + ## @return a conversation_member + ## + def values + return @values + end + ## + ## Sets the values property value. The values property + ## @param value Value to set for the values property. + ## @return a void + ## + def values=(value) + @values = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/channels/item/all_members/add/add_post_response.rb b/lib/groups/item/team/channels/item/all_members/add/add_post_response.rb new file mode 100644 index 0000000000..7e9d3460e1 --- /dev/null +++ b/lib/groups/item/team/channels/item/all_members/add/add_post_response.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/action_result_part' +require_relative '../../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../team' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../all_members' +require_relative './add' + +module MicrosoftGraph + module Groups + module Item + module Team + module Channels + module Item + module AllMembers + module Add + class AddPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new AddPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a add_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AddPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ActionResultPart.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a action_result_part + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/channels/item/all_members/add/add_request_builder.rb b/lib/groups/item/team/channels/item/all_members/add/add_request_builder.rb new file mode 100644 index 0000000000..2afef2fb77 --- /dev/null +++ b/lib/groups/item/team/channels/item/all_members/add/add_request_builder.rb @@ -0,0 +1,85 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../team' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../all_members' +require_relative './add' + +module MicrosoftGraph + module Groups + module Item + module Team + module Channels + module Item + module AllMembers + module Add + ## + # Provides operations to call the add method. + class AddRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new AddRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/allMembers/add") + end + ## + ## Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of add_post_response + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::Channels::Item::AllMembers::Add::AddPostResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/channels/item/all_members/all_members.rb b/lib/groups/item/team/channels/item/all_members/all_members.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/team/channels/item/all_members/all_members_request_builder.rb b/lib/groups/item/team/channels/item/all_members/all_members_request_builder.rb new file mode 100644 index 0000000000..7850fad0b4 --- /dev/null +++ b/lib/groups/item/team/channels/item/all_members/all_members_request_builder.rb @@ -0,0 +1,203 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/conversation_member' +require_relative '../../../../../../models/conversation_member_collection_response' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../channels' +require_relative '../item' +require_relative './add/add_request_builder' +require_relative './all_members' +require_relative './count/count_request_builder' +require_relative './item/conversation_member_item_request_builder' +require_relative './remove/remove_request_builder' + +module MicrosoftGraph + module Groups + module Item + module Team + module Channels + module Item + module AllMembers + ## + # Provides operations to manage the allMembers property of the microsoft.graph.channel entity. + class AllMembersRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the add method. + def add() + return MicrosoftGraph::Groups::Item::Team::Channels::Item::AllMembers::Add::AddRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::Team::Channels::Item::AllMembers::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the remove method. + def remove() + return MicrosoftGraph::Groups::Item::Team::Channels::Item::AllMembers::Remove::RemoveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the allMembers property of the microsoft.graph.channel entity. + ## @param conversation_member_id The unique identifier of conversationMember + ## @return a conversation_member_item_request_builder + ## + def by_conversation_member_id(conversation_member_id) + raise StandardError, 'conversation_member_id cannot be null' if conversation_member_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["conversationMember%2Did"] = conversation_member_id + return MicrosoftGraph::Groups::Item::Team::Channels::Item::AllMembers::Item::ConversationMemberItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AllMembersRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/allMembers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of conversation_member_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMemberCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to allMembers for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of conversation_member + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to allMembers for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a all_members_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AllMembersRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + class AllMembersRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/channels/item/all_members/count/count.rb b/lib/groups/item/team/channels/item/all_members/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/team/channels/item/all_members/count/count_request_builder.rb b/lib/groups/item/team/channels/item/all_members/count/count_request_builder.rb new file mode 100644 index 0000000000..6c4ed8c102 --- /dev/null +++ b/lib/groups/item/team/channels/item/all_members/count/count_request_builder.rb @@ -0,0 +1,109 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../team' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../all_members' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module Team + module Channels + module Item + module AllMembers + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/allMembers/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/channels/item/all_members/item/conversation_member_item_request_builder.rb b/lib/groups/item/team/channels/item/all_members/item/conversation_member_item_request_builder.rb new file mode 100644 index 0000000000..1bf7d37a51 --- /dev/null +++ b/lib/groups/item/team/channels/item/all_members/item/conversation_member_item_request_builder.rb @@ -0,0 +1,175 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/conversation_member' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../team' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../all_members' +require_relative './item' + +module MicrosoftGraph + module Groups + module Item + module Team + module Channels + module Item + module AllMembers + module Item + ## + # Provides operations to manage the allMembers property of the microsoft.graph.channel entity. + class ConversationMemberItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ConversationMemberItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/allMembers/{conversationMember%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property allMembers for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of conversation_member + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property allMembers in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of conversation_member + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property allMembers for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property allMembers in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a conversation_member_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConversationMemberItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + class ConversationMemberItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/channels/item/all_members/item/item.rb b/lib/groups/item/team/channels/item/all_members/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/team/channels/item/all_members/remove/remove.rb b/lib/groups/item/team/channels/item/all_members/remove/remove.rb new file mode 100644 index 0000000000..95c14f7d89 --- /dev/null +++ b/lib/groups/item/team/channels/item/all_members/remove/remove.rb @@ -0,0 +1,2 @@ +require_relative 'remove_post_request_body' +require_relative 'remove_post_response' diff --git a/lib/groups/item/team/channels/item/all_members/remove/remove_post_request_body.rb b/lib/groups/item/team/channels/item/all_members/remove/remove_post_request_body.rb new file mode 100644 index 0000000000..2ddebb8722 --- /dev/null +++ b/lib/groups/item/team/channels/item/all_members/remove/remove_post_request_body.rb @@ -0,0 +1,101 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/conversation_member' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../team' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../all_members' +require_relative './remove' + +module MicrosoftGraph + module Groups + module Item + module Team + module Channels + module Item + module AllMembers + module Remove + class RemovePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The values property + @values + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new RemovePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a remove_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return RemovePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "values" => lambda {|n| @values = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_collection_of_object_values("values", @values) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the values property value. The values property + ## @return a conversation_member + ## + def values + return @values + end + ## + ## Sets the values property value. The values property + ## @param value Value to set for the values property. + ## @return a void + ## + def values=(value) + @values = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/channels/item/all_members/remove/remove_post_response.rb b/lib/groups/item/team/channels/item/all_members/remove/remove_post_response.rb new file mode 100644 index 0000000000..767ec95176 --- /dev/null +++ b/lib/groups/item/team/channels/item/all_members/remove/remove_post_response.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/action_result_part' +require_relative '../../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../team' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../all_members' +require_relative './remove' + +module MicrosoftGraph + module Groups + module Item + module Team + module Channels + module Item + module AllMembers + module Remove + class RemovePostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new RemovePostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a remove_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return RemovePostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ActionResultPart.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a action_result_part + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/channels/item/all_members/remove/remove_request_builder.rb b/lib/groups/item/team/channels/item/all_members/remove/remove_request_builder.rb new file mode 100644 index 0000000000..a5fb300427 --- /dev/null +++ b/lib/groups/item/team/channels/item/all_members/remove/remove_request_builder.rb @@ -0,0 +1,85 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../team' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../all_members' +require_relative './remove' + +module MicrosoftGraph + module Groups + module Item + module Team + module Channels + module Item + module AllMembers + module Remove + ## + # Provides operations to call the remove method. + class RemoveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RemoveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/allMembers/remove") + end + ## + ## Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of remove_post_response + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::Channels::Item::AllMembers::Remove::RemovePostResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a remove_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RemoveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end +end diff --git a/lib/me/joined_teams/item/archive/archive.rb b/lib/groups/item/team/channels/item/archive/archive.rb similarity index 100% rename from lib/me/joined_teams/item/archive/archive.rb rename to lib/groups/item/team/channels/item/archive/archive.rb diff --git a/lib/groups/item/team/channels/item/archive/archive_post_request_body.rb b/lib/groups/item/team/channels/item/archive/archive_post_request_body.rb new file mode 100644 index 0000000000..92302f1d4d --- /dev/null +++ b/lib/groups/item/team/channels/item/archive/archive_post_request_body.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../channels' +require_relative '../item' +require_relative './archive' + +module MicrosoftGraph + module Groups + module Item + module Team + module Channels + module Item + module Archive + class ArchivePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shouldSetSpoSiteReadOnlyForMembers property + @should_set_spo_site_read_only_for_members + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new ArchivePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a archive_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ArchivePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shouldSetSpoSiteReadOnlyForMembers" => lambda {|n| @should_set_spo_site_read_only_for_members = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("shouldSetSpoSiteReadOnlyForMembers", @should_set_spo_site_read_only_for_members) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + ## @return a boolean + ## + def should_set_spo_site_read_only_for_members + return @should_set_spo_site_read_only_for_members + end + ## + ## Sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + ## @param value Value to set for the shouldSetSpoSiteReadOnlyForMembers property. + ## @return a void + ## + def should_set_spo_site_read_only_for_members=(value) + @should_set_spo_site_read_only_for_members = value + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/channels/item/archive/archive_request_builder.rb b/lib/groups/item/team/channels/item/archive/archive_request_builder.rb new file mode 100644 index 0000000000..40572d9304 --- /dev/null +++ b/lib/groups/item/team/channels/item/archive/archive_request_builder.rb @@ -0,0 +1,82 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../channels' +require_relative '../item' +require_relative './archive' + +module MicrosoftGraph + module Groups + module Item + module Team + module Channels + module Item + module Archive + ## + # Provides operations to call the archive method. + class ArchiveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ArchiveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/archive") + end + ## + ## Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a archive_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ArchiveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/channels/item/channel_item_request_builder.rb b/lib/groups/item/team/channels/item/channel_item_request_builder.rb index 4f6d90f3a5..84c58bd378 100644 --- a/lib/groups/item/team/channels/item/channel_item_request_builder.rb +++ b/lib/groups/item/team/channels/item/channel_item_request_builder.rb @@ -6,6 +6,8 @@ require_relative '../../../item' require_relative '../../team' require_relative '../channels' +require_relative './all_members/all_members_request_builder' +require_relative './archive/archive_request_builder' require_relative './complete_migration/complete_migration_request_builder' require_relative './does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/732db1068832007d49ec9b451d8ca1cfd0136d0663ec94246815c75150bfdfa9' require_relative './files_folder/files_folder_request_builder' @@ -16,6 +18,7 @@ require_relative './remove_email/remove_email_request_builder' require_relative './shared_with_teams/shared_with_teams_request_builder' require_relative './tabs/tabs_request_builder' +require_relative './unarchive/unarchive_request_builder' module MicrosoftGraph module Groups @@ -27,6 +30,16 @@ module Item # Provides operations to manage the channels property of the microsoft.graph.team entity. class ChannelItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to manage the allMembers property of the microsoft.graph.channel entity. + def all_members() + return MicrosoftGraph::Groups::Item::Team::Channels::Item::AllMembers::AllMembersRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the archive method. + def archive() + return MicrosoftGraph::Groups::Item::Team::Channels::Item::Archive::ArchiveRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Provides operations to call the completeMigration method. def complete_migration() @@ -73,16 +86,21 @@ def tabs() return MicrosoftGraph::Groups::Item::Team::Channels::Item::Tabs::TabsRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the unarchive method. + def unarchive() + return MicrosoftGraph::Groups::Item::Team::Channels::Item::Unarchive::UnarchiveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Instantiates a new ChannelItemRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}{?%24expand,%24select}") end ## - ## Delete the channel. + ## Delete navigation property channels for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -91,12 +109,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. + ## The collection of channels and messages associated with the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of channel ## @@ -105,12 +122,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Channel.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of the specified channel. + ## Update the navigation property channels in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of channel @@ -121,46 +137,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Channel.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete the channel. + ## Delete navigation property channels for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. + ## The collection of channels and messages associated with the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of the specified channel. + ## Update the navigation property channels in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -168,20 +184,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a channel_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChannelItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. + # The collection of channels and messages associated with the team. class ChannelItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/channels/item/complete_migration/complete_migration_request_builder.rb b/lib/groups/item/team/channels/item/complete_migration/complete_migration_request_builder.rb index 192a103a68..e746a269e5 100644 --- a/lib/groups/item/team/channels/item/complete_migration/complete_migration_request_builder.rb +++ b/lib/groups/item/team/channels/item/complete_migration/complete_migration_request_builder.rb @@ -29,7 +29,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/completeMigration") end ## - ## Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + ## Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -38,26 +38,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + ## Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a complete_migration_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CompleteMigrationRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/channels/item/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/05c96069a5812796d8509d2a373d51b45576f890a75791804c30dac27dbb20ee.rb b/lib/groups/item/team/channels/item/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/05c96069a5812796d8509d2a373d51b45576f890a75791804c30dac27dbb20ee.rb index 47cf3e707f..4cdc628a5f 100644 --- a/lib/groups/item/team/channels/item/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/05c96069a5812796d8509d2a373d51b45576f890a75791804c30dac27dbb20ee.rb +++ b/lib/groups/item/team/channels/item/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/05c96069a5812796d8509d2a373d51b45576f890a75791804c30dac27dbb20ee.rb @@ -1 +1 @@ -require_relative 'c41596d4fbffe103bb724f3952f09f0aa3c5ec4e2176790cca62f27819ff9897' +require_relative 'b6b8a966c95935c48ba2a17de8bf30ceaf33edf6838823bb42a08f2563440049' diff --git a/lib/groups/item/team/channels/item/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/732db1068832007d49ec9b451d8ca1cfd0136d0663ec94246815c75150bfdfa9.rb b/lib/groups/item/team/channels/item/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/732db1068832007d49ec9b451d8ca1cfd0136d0663ec94246815c75150bfdfa9.rb index ca19dba5d4..ffff135580 100644 --- a/lib/groups/item/team/channels/item/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/732db1068832007d49ec9b451d8ca1cfd0136d0663ec94246815c75150bfdfa9.rb +++ b/lib/groups/item/team/channels/item/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/732db1068832007d49ec9b451d8ca1cfd0136d0663ec94246815c75150bfdfa9.rb @@ -26,43 +26,51 @@ class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincip ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/doesUserHaveAccess(userId='@userId',tenantId='@tenantId',userPrincipalName='@userPrincipalName'){?userId*,tenantId*,userPrincipalName*}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/doesUserHaveAccess(userId='@userId',tenantId='@tenantId',userPrincipalName='@userPrincipalName'){?tenantId*,userId*,userPrincipalName*}") end ## - ## Invoke function doesUserHaveAccess + ## Determine whether a user has access to a shared channel. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_response + ## @return a Fiber of does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::Channels::Item::DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName::DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::Channels::Item::DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName::DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function doesUserHaveAccess + ## Determine whether a user has access to a shared channel. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function doesUserHaveAccess + # Determine whether a user has access to a shared channel. class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/channels/item/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/b6b8a966c95935c48ba2a17de8bf30ceaf33edf6838823bb42a08f2563440049.rb b/lib/groups/item/team/channels/item/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/b6b8a966c95935c48ba2a17de8bf30ceaf33edf6838823bb42a08f2563440049.rb new file mode 100644 index 0000000000..403f7a2507 --- /dev/null +++ b/lib/groups/item/team/channels/item/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/b6b8a966c95935c48ba2a17de8bf30ceaf33edf6838823bb42a08f2563440049.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../channels' +require_relative '../item' +require_relative './05c96069a5812796d8509d2a373d51b45576f890a75791804c30dac27dbb20ee' + +module MicrosoftGraph + module Groups + module Item + module Team + module Channels + module Item + module DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName + class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a boolean + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/channels/item/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/c41596d4fbffe103bb724f3952f09f0aa3c5ec4e2176790cca62f27819ff9897.rb b/lib/groups/item/team/channels/item/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/c41596d4fbffe103bb724f3952f09f0aa3c5ec4e2176790cca62f27819ff9897.rb deleted file mode 100644 index 22950c1ae3..0000000000 --- a/lib/groups/item/team/channels/item/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/c41596d4fbffe103bb724f3952f09f0aa3c5ec4e2176790cca62f27819ff9897.rb +++ /dev/null @@ -1,97 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../groups' -require_relative '../../../../item' -require_relative '../../../team' -require_relative '../../channels' -require_relative '../item' -require_relative './05c96069a5812796d8509d2a373d51b45576f890a75791804c30dac27dbb20ee' - -module MicrosoftGraph - module Groups - module Item - module Team - module Channels - module Item - module DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName - class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_boolean_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a boolean - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/channels/item/files_folder/content/content_request_builder.rb b/lib/groups/item/team/channels/item/files_folder/content/content_request_builder.rb index abd25bbaa6..bc161f0eff 100644 --- a/lib/groups/item/team/channels/item/files_folder/content/content_request_builder.rb +++ b/lib/groups/item/team/channels/item/files_folder/content/content_request_builder.rb @@ -29,7 +29,20 @@ class ContentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/filesFolder/content") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/filesFolder/content{?%24format*}") + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) end ## ## The content stream, if the item represents a file. @@ -41,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -57,8 +69,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,15 +77,34 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -86,17 +116,49 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The content stream, if the item represents a file. + class ContentRequestBuilderGetQueryParameters + + ## + # Format of the content + attr_accessor :format + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "format" + return "%24format" + else + return original_name + end + end + end end end end diff --git a/lib/groups/item/team/channels/item/files_folder/files_folder_request_builder.rb b/lib/groups/item/team/channels/item/files_folder/files_folder_request_builder.rb index 4c3a2cdac7..78c0026cd7 100644 --- a/lib/groups/item/team/channels/item/files_folder/files_folder_request_builder.rb +++ b/lib/groups/item/team/channels/item/files_folder/files_folder_request_builder.rb @@ -33,10 +33,10 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/filesFolder{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/filesFolder{?%24expand,%24select}") end ## - ## Get the metadata for the location where the files of a channel are stored. + ## Metadata for the location where the channel's files are stored. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of drive_item ## @@ -45,31 +45,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the metadata for the location where the files of a channel are stored. + ## Metadata for the location where the channel's files are stored. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a files_folder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilesFolderRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the metadata for the location where the files of a channel are stored. + # Metadata for the location where the channel's files are stored. class FilesFolderRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/channels/item/members/add/add.rb b/lib/groups/item/team/channels/item/members/add/add.rb index 629ad98abe..4f4fe401db 100644 --- a/lib/groups/item/team/channels/item/members/add/add.rb +++ b/lib/groups/item/team/channels/item/members/add/add.rb @@ -1,2 +1,2 @@ require_relative 'add_post_request_body' -require_relative 'add_response' +require_relative 'add_post_response' diff --git a/lib/groups/item/team/channels/item/members/add/add_post_request_body.rb b/lib/groups/item/team/channels/item/members/add/add_post_request_body.rb index cd9d3d5785..96a31af90a 100644 --- a/lib/groups/item/team/channels/item/members/add/add_post_request_body.rb +++ b/lib/groups/item/team/channels/item/members/add/add_post_request_body.rb @@ -26,22 +26,22 @@ class AddPostRequestBody # The values property @values ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new addPostRequestBody and sets the default values. + ## Instantiates a new AddPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/team/channels/item/members/add/add_post_response.rb b/lib/groups/item/team/channels/item/members/add/add_post_response.rb new file mode 100644 index 0000000000..d79a07a672 --- /dev/null +++ b/lib/groups/item/team/channels/item/members/add/add_post_response.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/action_result_part' +require_relative '../../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../team' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../members' +require_relative './add' + +module MicrosoftGraph + module Groups + module Item + module Team + module Channels + module Item + module Members + module Add + class AddPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new AddPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a add_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AddPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ActionResultPart.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a action_result_part + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/channels/item/members/add/add_request_builder.rb b/lib/groups/item/team/channels/item/members/add/add_request_builder.rb index 2aa2d551f1..864236802a 100644 --- a/lib/groups/item/team/channels/item/members/add/add_request_builder.rb +++ b/lib/groups/item/team/channels/item/members/add/add_request_builder.rb @@ -34,7 +34,7 @@ def initialize(path_parameters, request_adapter) ## Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of add_response + ## @return a Fiber of add_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -42,9 +42,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::Channels::Item::Members::Add::AddResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::Channels::Item::Members::Add::AddPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. @@ -55,17 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/channels/item/members/add/add_response.rb b/lib/groups/item/team/channels/item/members/add/add_response.rb deleted file mode 100644 index 7a2986068a..0000000000 --- a/lib/groups/item/team/channels/item/members/add/add_response.rb +++ /dev/null @@ -1,84 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/action_result_part' -require_relative '../../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../../groups' -require_relative '../../../../../item' -require_relative '../../../../team' -require_relative '../../../channels' -require_relative '../../item' -require_relative '../members' -require_relative './add' - -module MicrosoftGraph - module Groups - module Item - module Team - module Channels - module Item - module Members - module Add - class AddResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new addResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a add_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return AddResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ActionResultPart.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a action_result_part - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/channels/item/members/count/count_request_builder.rb b/lib/groups/item/team/channels/item/members/count/count_request_builder.rb index cf90bbdcb9..f4eac6c7f8 100644 --- a/lib/groups/item/team/channels/item/members/count/count_request_builder.rb +++ b/lib/groups/item/team/channels/item/members/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/channels/item/members/item/conversation_member_item_request_builder.rb b/lib/groups/item/team/channels/item/members/item/conversation_member_item_request_builder.rb index 9d154f5211..4417cbf44b 100644 --- a/lib/groups/item/team/channels/item/members/item/conversation_member_item_request_builder.rb +++ b/lib/groups/item/team/channels/item/members/item/conversation_member_item_request_builder.rb @@ -29,10 +29,10 @@ class ConversationMemberItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReq ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members/{conversationMember%2Did}{?%24expand,%24select}") end ## - ## Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + ## Delete navigation property members for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -41,12 +41,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get a conversationMember from a channel. + ## A collection of membership records associated with the channel. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of conversation_member ## @@ -55,12 +54,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the role of a conversationMember in a team or channel. + ## Update the navigation property members in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of conversation_member @@ -71,46 +69,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + ## Delete navigation property members for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get a conversationMember from a channel. + ## A collection of membership records associated with the channel. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the role of a conversationMember in a team or channel. + ## Update the navigation property members in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -118,20 +116,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a conversation_member_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConversationMemberItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a conversationMember from a channel. + # A collection of membership records associated with the channel. class ConversationMemberItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/channels/item/members/members_request_builder.rb b/lib/groups/item/team/channels/item/members/members_request_builder.rb index 5e7dde7b61..f0a0780833 100644 --- a/lib/groups/item/team/channels/item/members/members_request_builder.rb +++ b/lib/groups/item/team/channels/item/members/members_request_builder.rb @@ -12,6 +12,7 @@ require_relative './count/count_request_builder' require_relative './item/conversation_member_item_request_builder' require_relative './members' +require_relative './remove/remove_request_builder' module MicrosoftGraph module Groups @@ -35,6 +36,11 @@ def count() return MicrosoftGraph::Groups::Item::Team::Channels::Item::Members::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the remove method. + def remove() + return MicrosoftGraph::Groups::Item::Team::Channels::Item::Members::Remove::RemoveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Provides operations to manage the members property of the microsoft.graph.channel entity. ## @param conversation_member_id The unique identifier of conversationMember ## @return a conversation_member_item_request_builder @@ -52,10 +58,10 @@ def by_conversation_member_id(conversation_member_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + ## A collection of membership records associated with the channel. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of conversation_member_collection_response ## @@ -64,12 +70,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMemberCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + ## Create new navigation property to members for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of conversation_member @@ -80,30 +85,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + ## A collection of membership records associated with the channel. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + ## Create new navigation property to members for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -111,20 +115,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a members_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MembersRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + # A collection of membership records associated with the channel. class MembersRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/channels/item/members/remove/remove.rb b/lib/groups/item/team/channels/item/members/remove/remove.rb new file mode 100644 index 0000000000..95c14f7d89 --- /dev/null +++ b/lib/groups/item/team/channels/item/members/remove/remove.rb @@ -0,0 +1,2 @@ +require_relative 'remove_post_request_body' +require_relative 'remove_post_response' diff --git a/lib/groups/item/team/channels/item/members/remove/remove_post_request_body.rb b/lib/groups/item/team/channels/item/members/remove/remove_post_request_body.rb new file mode 100644 index 0000000000..284564df75 --- /dev/null +++ b/lib/groups/item/team/channels/item/members/remove/remove_post_request_body.rb @@ -0,0 +1,101 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/conversation_member' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../team' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../members' +require_relative './remove' + +module MicrosoftGraph + module Groups + module Item + module Team + module Channels + module Item + module Members + module Remove + class RemovePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The values property + @values + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new RemovePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a remove_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return RemovePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "values" => lambda {|n| @values = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_collection_of_object_values("values", @values) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the values property value. The values property + ## @return a conversation_member + ## + def values + return @values + end + ## + ## Sets the values property value. The values property + ## @param value Value to set for the values property. + ## @return a void + ## + def values=(value) + @values = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/channels/item/members/remove/remove_post_response.rb b/lib/groups/item/team/channels/item/members/remove/remove_post_response.rb new file mode 100644 index 0000000000..76c83149e5 --- /dev/null +++ b/lib/groups/item/team/channels/item/members/remove/remove_post_response.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/action_result_part' +require_relative '../../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../team' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../members' +require_relative './remove' + +module MicrosoftGraph + module Groups + module Item + module Team + module Channels + module Item + module Members + module Remove + class RemovePostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new RemovePostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a remove_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return RemovePostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ActionResultPart.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a action_result_part + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/channels/item/members/remove/remove_request_builder.rb b/lib/groups/item/team/channels/item/members/remove/remove_request_builder.rb new file mode 100644 index 0000000000..6144670b2d --- /dev/null +++ b/lib/groups/item/team/channels/item/members/remove/remove_request_builder.rb @@ -0,0 +1,85 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../team' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../members' +require_relative './remove' + +module MicrosoftGraph + module Groups + module Item + module Team + module Channels + module Item + module Members + module Remove + ## + # Provides operations to call the remove method. + class RemoveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RemoveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members/remove") + end + ## + ## Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of remove_post_response + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::Channels::Item::Members::Remove::RemovePostResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a remove_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RemoveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/channels/item/messages/count/count_request_builder.rb b/lib/groups/item/team/channels/item/messages/count/count_request_builder.rb index f8bd8bb5be..1a3a0422ff 100644 --- a/lib/groups/item/team/channels/item/messages/count/count_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/channels/item/messages/delta/delta.rb b/lib/groups/item/team/channels/item/messages/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/groups/item/team/channels/item/messages/delta/delta.rb +++ b/lib/groups/item/team/channels/item/messages/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/groups/item/team/channels/item/messages/delta/delta_get_response.rb b/lib/groups/item/team/channels/item/messages/delta/delta_get_response.rb new file mode 100644 index 0000000000..bab017b6c8 --- /dev/null +++ b/lib/groups/item/team/channels/item/messages/delta/delta_get_response.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/base_delta_function_response' +require_relative '../../../../../../../models/chat_message' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../team' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../messages' +require_relative './delta' + +module MicrosoftGraph + module Groups + module Item + module Team + module Channels + module Item + module Messages + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a chat_message + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/channels/item/messages/delta/delta_request_builder.rb b/lib/groups/item/team/channels/item/messages/delta/delta_request_builder.rb index 4eae1ef5e3..4781421ead 100644 --- a/lib/groups/item/team/channels/item/messages/delta/delta_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/delta/delta_request_builder.rb @@ -28,49 +28,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::Channels::Item::Messages::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::Channels::Item::Messages::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. class DeltaRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -98,6 +109,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/team/channels/item/messages/delta/delta_response.rb b/lib/groups/item/team/channels/item/messages/delta/delta_response.rb deleted file mode 100644 index 1c5f3c8b9a..0000000000 --- a/lib/groups/item/team/channels/item/messages/delta/delta_response.rb +++ /dev/null @@ -1,84 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../microsoft_graph' -require_relative '../../../../../../../models/base_delta_function_response' -require_relative '../../../../../../../models/chat_message' -require_relative '../../../../../../groups' -require_relative '../../../../../item' -require_relative '../../../../team' -require_relative '../../../channels' -require_relative '../../item' -require_relative '../messages' -require_relative './delta' - -module MicrosoftGraph - module Groups - module Item - module Team - module Channels - module Item - module Messages - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a chat_message - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/channels/item/messages/item/chat_message_item_request_builder.rb b/lib/groups/item/team/channels/item/messages/item/chat_message_item_request_builder.rb index ff6664c858..a7b0ae76bc 100644 --- a/lib/groups/item/team/channels/item/messages/item/chat_message_item_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/item/chat_message_item_request_builder.rb @@ -65,7 +65,7 @@ def unset_reaction() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}{?%24expand,%24select}") end ## ## Delete navigation property messages for groups @@ -77,12 +77,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve a single message or a message reply in a channel or a chat. + ## A collection of all the messages in the channel. A navigation property. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message ## @@ -91,12 +90,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + ## Update the navigation property messages in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -107,8 +105,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -118,35 +115,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve a single message or a message reply in a channel or a chat. + ## A collection of all the messages in the channel. A navigation property. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + ## Update the navigation property messages in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -154,20 +152,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a chat_message_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChatMessageItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a single message or a message reply in a channel or a chat. + # A collection of all the messages in the channel. A navigation property. Nullable. class ChatMessageItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/channels/item/messages/item/hosted_contents/count/count_request_builder.rb b/lib/groups/item/team/channels/item/messages/item/hosted_contents/count/count_request_builder.rb index 5cb33bcf05..fcebff67f2 100644 --- a/lib/groups/item/team/channels/item/messages/item/hosted_contents/count/count_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/item/hosted_contents/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/channels/item/messages/item/hosted_contents/hosted_contents_request_builder.rb b/lib/groups/item/team/channels/item/messages/item/hosted_contents/hosted_contents_request_builder.rb index 22814b509f..cdc1d39755 100644 --- a/lib/groups/item/team/channels/item/messages/item/hosted_contents/hosted_contents_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/item/hosted_contents/hosted_contents_request_builder.rb @@ -50,10 +50,10 @@ def by_chat_message_hosted_content_id(chat_message_hosted_content_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message_hosted_content_collection_response ## @@ -62,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,26 +77,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a hosted_contents_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HostedContentsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + # Content in a message hosted by Microsoft Teams - for example, images or code snippets. class HostedContentsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/channels/item/messages/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb b/lib/groups/item/team/channels/item/messages/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb index 0248b03ca0..9539fb66af 100644 --- a/lib/groups/item/team/channels/item/messages/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb @@ -39,7 +39,7 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}{?%24expand,%24select}") end ## ## Delete navigation property hostedContents for groups @@ -51,12 +51,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of chatMessageHostedContent object. + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message_hosted_content ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,31 +89,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of chatMessageHostedContent object. + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,20 +126,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a chat_message_hosted_content_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChatMessageHostedContentItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of chatMessageHostedContent object. + # Content in a message hosted by Microsoft Teams - for example, images or code snippets. class ChatMessageHostedContentItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/channels/item/messages/item/hosted_contents/item/value/content_request_builder.rb b/lib/groups/item/team/channels/item/messages/item/hosted_contents/item/value/content_request_builder.rb index 572e8e4895..f61dee790e 100644 --- a/lib/groups/item/team/channels/item/messages/item/hosted_contents/item/value/content_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/item/hosted_contents/item/value/content_request_builder.rb @@ -37,7 +37,20 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value") end ## - ## Get media content for the navigation property hostedContents from groups + ## The unique identifier for an entity. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The unique identifier for an entity. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## @@ -46,12 +59,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Update media content for the navigation property hostedContents in groups + ## The unique identifier for an entity. Read-only. ## @param body Binary request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary @@ -62,28 +74,45 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Get media content for the navigation property hostedContents from groups + ## The unique identifier for an entity. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The unique identifier for an entity. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## - ## Update media content for the navigation property hostedContents in groups + ## The unique identifier for an entity. Read-only. ## @param body Binary request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -91,16 +120,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/channels/item/messages/item/replies/count/count_request_builder.rb b/lib/groups/item/team/channels/item/messages/item/replies/count/count_request_builder.rb index 5865db8035..458cb49c08 100644 --- a/lib/groups/item/team/channels/item/messages/item/replies/count/count_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/item/replies/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/channels/item/messages/item/replies/delta/delta.rb b/lib/groups/item/team/channels/item/messages/item/replies/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/groups/item/team/channels/item/messages/item/replies/delta/delta.rb +++ b/lib/groups/item/team/channels/item/messages/item/replies/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/groups/item/team/channels/item/messages/item/replies/delta/delta_get_response.rb b/lib/groups/item/team/channels/item/messages/item/replies/delta/delta_get_response.rb new file mode 100644 index 0000000000..a32d3f9200 --- /dev/null +++ b/lib/groups/item/team/channels/item/messages/item/replies/delta/delta_get_response.rb @@ -0,0 +1,90 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/base_delta_function_response' +require_relative '../../../../../../../../../models/chat_message' +require_relative '../../../../../../../../groups' +require_relative '../../../../../../../item' +require_relative '../../../../../../team' +require_relative '../../../../../channels' +require_relative '../../../../item' +require_relative '../../../messages' +require_relative '../../item' +require_relative '../replies' +require_relative './delta' + +module MicrosoftGraph + module Groups + module Item + module Team + module Channels + module Item + module Messages + module Item + module Replies + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a chat_message + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/channels/item/messages/item/replies/delta/delta_request_builder.rb b/lib/groups/item/team/channels/item/messages/item/replies/delta/delta_request_builder.rb index c034830b6e..5f0facc949 100644 --- a/lib/groups/item/team/channels/item/messages/item/replies/delta/delta_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/item/replies/delta/delta_request_builder.rb @@ -32,49 +32,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::Channels::Item::Messages::Item::Replies::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::Channels::Item::Messages::Item::Replies::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. class DeltaRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -102,6 +113,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/team/channels/item/messages/item/replies/delta/delta_response.rb b/lib/groups/item/team/channels/item/messages/item/replies/delta/delta_response.rb deleted file mode 100644 index 8e41b71970..0000000000 --- a/lib/groups/item/team/channels/item/messages/item/replies/delta/delta_response.rb +++ /dev/null @@ -1,90 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../../models/base_delta_function_response' -require_relative '../../../../../../../../../models/chat_message' -require_relative '../../../../../../../../groups' -require_relative '../../../../../../../item' -require_relative '../../../../../../team' -require_relative '../../../../../channels' -require_relative '../../../../item' -require_relative '../../../messages' -require_relative '../../item' -require_relative '../replies' -require_relative './delta' - -module MicrosoftGraph - module Groups - module Item - module Team - module Channels - module Item - module Messages - module Item - module Replies - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a chat_message - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/channels/item/messages/item/replies/item/chat_message_item_request_builder.rb b/lib/groups/item/team/channels/item/messages/item/replies/item/chat_message_item_request_builder.rb index 90d0b24bbd..5def201c29 100644 --- a/lib/groups/item/team/channels/item/messages/item/replies/item/chat_message_item_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/item/replies/item/chat_message_item_request_builder.rb @@ -63,7 +63,7 @@ def unset_reaction() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}{?%24expand,%24select}") end ## ## Delete navigation property replies for groups @@ -75,12 +75,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve a single message or a message reply in a channel or a chat. + ## Replies for a specified message. Supports $expand for channel messages. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message ## @@ -89,8 +88,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -105,8 +103,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -116,31 +113,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve a single message or a message reply in a channel or a chat. + ## Replies for a specified message. Supports $expand for channel messages. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -152,20 +150,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a chat_message_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChatMessageItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a single message or a message reply in a channel or a chat. + # Replies for a specified message. Supports $expand for channel messages. class ChatMessageItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/channels/item/messages/item/replies/item/hosted_contents/count/count_request_builder.rb b/lib/groups/item/team/channels/item/messages/item/replies/item/hosted_contents/count/count_request_builder.rb index 289299f5ac..d625e37663 100644 --- a/lib/groups/item/team/channels/item/messages/item/replies/item/hosted_contents/count/count_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/item/replies/item/hosted_contents/count/count_request_builder.rb @@ -36,7 +36,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -59,17 +58,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/channels/item/messages/item/replies/item/hosted_contents/hosted_contents_request_builder.rb b/lib/groups/item/team/channels/item/messages/item/replies/item/hosted_contents/hosted_contents_request_builder.rb index 26c6ab463a..a2eb2a63a8 100644 --- a/lib/groups/item/team/channels/item/messages/item/replies/item/hosted_contents/hosted_contents_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/item/replies/item/hosted_contents/hosted_contents_request_builder.rb @@ -54,10 +54,10 @@ def by_chat_message_hosted_content_id(chat_message_hosted_content_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message_hosted_content_collection_response ## @@ -66,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,26 +81,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -113,20 +111,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a hosted_contents_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HostedContentsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + # Content in a message hosted by Microsoft Teams - for example, images or code snippets. class HostedContentsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/channels/item/messages/item/replies/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb b/lib/groups/item/team/channels/item/messages/item/replies/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb index ee30dcc7cd..4c1528886c 100644 --- a/lib/groups/item/team/channels/item/messages/item/replies/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/item/replies/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb @@ -43,7 +43,7 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}{?%24expand,%24select}") end ## ## Delete navigation property hostedContents for groups @@ -55,12 +55,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of chatMessageHostedContent object. + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message_hosted_content ## @@ -69,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,8 +83,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -96,31 +93,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of chatMessageHostedContent object. + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,20 +130,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a chat_message_hosted_content_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChatMessageHostedContentItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of chatMessageHostedContent object. + # Content in a message hosted by Microsoft Teams - for example, images or code snippets. class ChatMessageHostedContentItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/channels/item/messages/item/replies/item/hosted_contents/item/value/content_request_builder.rb b/lib/groups/item/team/channels/item/messages/item/replies/item/hosted_contents/item/value/content_request_builder.rb index 7f7cd5c3a6..c59189fe20 100644 --- a/lib/groups/item/team/channels/item/messages/item/replies/item/hosted_contents/item/value/content_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/item/replies/item/hosted_contents/item/value/content_request_builder.rb @@ -41,7 +41,20 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value") end ## - ## Get media content for the navigation property hostedContents from groups + ## The unique identifier for an entity. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The unique identifier for an entity. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## @@ -50,12 +63,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Update media content for the navigation property hostedContents in groups + ## The unique identifier for an entity. Read-only. ## @param body Binary request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary @@ -66,28 +78,45 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Get media content for the navigation property hostedContents from groups + ## The unique identifier for an entity. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The unique identifier for an entity. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## - ## Update media content for the navigation property hostedContents in groups + ## The unique identifier for an entity. Read-only. ## @param body Binary request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -95,16 +124,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/channels/item/messages/item/replies/item/set_reaction/set_reaction_post_request_body.rb b/lib/groups/item/team/channels/item/messages/item/replies/item/set_reaction/set_reaction_post_request_body.rb index bbe1082abf..87fad0b583 100644 --- a/lib/groups/item/team/channels/item/messages/item/replies/item/set_reaction/set_reaction_post_request_body.rb +++ b/lib/groups/item/team/channels/item/messages/item/replies/item/set_reaction/set_reaction_post_request_body.rb @@ -31,22 +31,22 @@ class SetReactionPostRequestBody # The reactionType property @reaction_type ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new setReactionPostRequestBody and sets the default values. + ## Instantiates a new SetReactionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/team/channels/item/messages/item/replies/item/set_reaction/set_reaction_request_builder.rb b/lib/groups/item/team/channels/item/messages/item/replies/item/set_reaction/set_reaction_request_builder.rb index d6aedfcce1..891fff847d 100644 --- a/lib/groups/item/team/channels/item/messages/item/replies/item/set_reaction/set_reaction_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/item/replies/item/set_reaction/set_reaction_request_builder.rb @@ -48,8 +48,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,16 +60,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_reaction_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetReactionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/channels/item/messages/item/replies/item/soft_delete/soft_delete_request_builder.rb b/lib/groups/item/team/channels/item/messages/item/replies/item/soft_delete/soft_delete_request_builder.rb index 9f92fd4c98..cca79e6bfa 100644 --- a/lib/groups/item/team/channels/item/messages/item/replies/item/soft_delete/soft_delete_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/item/replies/item/soft_delete/soft_delete_request_builder.rb @@ -46,8 +46,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,15 +56,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a soft_delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SoftDeleteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/channels/item/messages/item/replies/item/undo_soft_delete/undo_soft_delete_request_builder.rb b/lib/groups/item/team/channels/item/messages/item/replies/item/undo_soft_delete/undo_soft_delete_request_builder.rb index 322112c236..92250c18e8 100644 --- a/lib/groups/item/team/channels/item/messages/item/replies/item/undo_soft_delete/undo_soft_delete_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/item/replies/item/undo_soft_delete/undo_soft_delete_request_builder.rb @@ -46,8 +46,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,15 +56,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a undo_soft_delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UndoSoftDeleteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/channels/item/messages/item/replies/item/unset_reaction/unset_reaction_post_request_body.rb b/lib/groups/item/team/channels/item/messages/item/replies/item/unset_reaction/unset_reaction_post_request_body.rb index bd7b16c22e..224e4179b0 100644 --- a/lib/groups/item/team/channels/item/messages/item/replies/item/unset_reaction/unset_reaction_post_request_body.rb +++ b/lib/groups/item/team/channels/item/messages/item/replies/item/unset_reaction/unset_reaction_post_request_body.rb @@ -31,22 +31,22 @@ class UnsetReactionPostRequestBody # The reactionType property @reaction_type ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new unsetReactionPostRequestBody and sets the default values. + ## Instantiates a new UnsetReactionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/team/channels/item/messages/item/replies/item/unset_reaction/unset_reaction_request_builder.rb b/lib/groups/item/team/channels/item/messages/item/replies/item/unset_reaction/unset_reaction_request_builder.rb index 208ad40e6a..55e383620f 100644 --- a/lib/groups/item/team/channels/item/messages/item/replies/item/unset_reaction/unset_reaction_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/item/replies/item/unset_reaction/unset_reaction_request_builder.rb @@ -48,8 +48,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,16 +60,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unset_reaction_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnsetReactionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/channels/item/messages/item/replies/replies_request_builder.rb b/lib/groups/item/team/channels/item/messages/item/replies/replies_request_builder.rb index e86b68ef53..3c1deb594b 100644 --- a/lib/groups/item/team/channels/item/messages/item/replies/replies_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/item/replies/replies_request_builder.rb @@ -56,10 +56,10 @@ def by_chat_message_id1(chat_message_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + ## Replies for a specified message. Supports $expand for channel messages. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message_collection_response ## @@ -68,12 +68,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Create new navigation property to replies for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -84,30 +83,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + ## Replies for a specified message. Supports $expand for channel messages. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Create new navigation property to replies for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -115,20 +113,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a replies_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RepliesRequestBuilder.new(raw_url, @request_adapter) + end ## - # List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + # Replies for a specified message. Supports $expand for channel messages. class RepliesRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/channels/item/messages/item/set_reaction/set_reaction_post_request_body.rb b/lib/groups/item/team/channels/item/messages/item/set_reaction/set_reaction_post_request_body.rb index d422aa2f8d..46ab23771f 100644 --- a/lib/groups/item/team/channels/item/messages/item/set_reaction/set_reaction_post_request_body.rb +++ b/lib/groups/item/team/channels/item/messages/item/set_reaction/set_reaction_post_request_body.rb @@ -27,22 +27,22 @@ class SetReactionPostRequestBody # The reactionType property @reaction_type ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new setReactionPostRequestBody and sets the default values. + ## Instantiates a new SetReactionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/team/channels/item/messages/item/set_reaction/set_reaction_request_builder.rb b/lib/groups/item/team/channels/item/messages/item/set_reaction/set_reaction_request_builder.rb index 040a0bfed9..9acd495823 100644 --- a/lib/groups/item/team/channels/item/messages/item/set_reaction/set_reaction_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/item/set_reaction/set_reaction_request_builder.rb @@ -44,8 +44,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,16 +56,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_reaction_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetReactionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/channels/item/messages/item/soft_delete/soft_delete_request_builder.rb b/lib/groups/item/team/channels/item/messages/item/soft_delete/soft_delete_request_builder.rb index 868724177e..966ace6c3c 100644 --- a/lib/groups/item/team/channels/item/messages/item/soft_delete/soft_delete_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/item/soft_delete/soft_delete_request_builder.rb @@ -42,8 +42,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,15 +52,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a soft_delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SoftDeleteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/channels/item/messages/item/undo_soft_delete/undo_soft_delete_request_builder.rb b/lib/groups/item/team/channels/item/messages/item/undo_soft_delete/undo_soft_delete_request_builder.rb index 40e57fac31..c254674412 100644 --- a/lib/groups/item/team/channels/item/messages/item/undo_soft_delete/undo_soft_delete_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/item/undo_soft_delete/undo_soft_delete_request_builder.rb @@ -42,8 +42,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,15 +52,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a undo_soft_delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UndoSoftDeleteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/channels/item/messages/item/unset_reaction/unset_reaction_post_request_body.rb b/lib/groups/item/team/channels/item/messages/item/unset_reaction/unset_reaction_post_request_body.rb index 84f3a192aa..141e1db802 100644 --- a/lib/groups/item/team/channels/item/messages/item/unset_reaction/unset_reaction_post_request_body.rb +++ b/lib/groups/item/team/channels/item/messages/item/unset_reaction/unset_reaction_post_request_body.rb @@ -27,22 +27,22 @@ class UnsetReactionPostRequestBody # The reactionType property @reaction_type ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new unsetReactionPostRequestBody and sets the default values. + ## Instantiates a new UnsetReactionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/team/channels/item/messages/item/unset_reaction/unset_reaction_request_builder.rb b/lib/groups/item/team/channels/item/messages/item/unset_reaction/unset_reaction_request_builder.rb index b007fe487c..70b5c1c9af 100644 --- a/lib/groups/item/team/channels/item/messages/item/unset_reaction/unset_reaction_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/item/unset_reaction/unset_reaction_request_builder.rb @@ -44,8 +44,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,16 +56,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unset_reaction_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnsetReactionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/channels/item/messages/messages_request_builder.rb b/lib/groups/item/team/channels/item/messages/messages_request_builder.rb index fdd4db89d9..ec11654f07 100644 --- a/lib/groups/item/team/channels/item/messages/messages_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/messages_request_builder.rb @@ -52,10 +52,10 @@ def by_chat_message_id(chat_message_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + ## A collection of all the messages in the channel. A navigation property. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message_collection_response ## @@ -64,12 +64,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new chatMessage in the specified channel. + ## Create new navigation property to messages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -80,30 +79,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + ## A collection of all the messages in the channel. A navigation property. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Send a new chatMessage in the specified channel. + ## Create new navigation property to messages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -111,20 +109,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a messages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MessagesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + # A collection of all the messages in the channel. A navigation property. Nullable. class MessagesRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/channels/item/provision_email/provision_email_request_builder.rb b/lib/groups/item/team/channels/item/provision_email/provision_email_request_builder.rb index 4d1445c020..d8b7dcc2bf 100644 --- a/lib/groups/item/team/channels/item/provision_email/provision_email_request_builder.rb +++ b/lib/groups/item/team/channels/item/provision_email/provision_email_request_builder.rb @@ -39,8 +39,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ProvisionChannelEmailResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,16 +49,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a provision_email_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ProvisionEmailRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/channels/item/remove_email/remove_email_request_builder.rb b/lib/groups/item/team/channels/item/remove_email/remove_email_request_builder.rb index fe988cefe1..59c100da7f 100644 --- a/lib/groups/item/team/channels/item/remove_email/remove_email_request_builder.rb +++ b/lib/groups/item/team/channels/item/remove_email/remove_email_request_builder.rb @@ -38,8 +38,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,15 +48,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a remove_email_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RemoveEmailRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/channels/item/shared_with_teams/count/count_request_builder.rb b/lib/groups/item/team/channels/item/shared_with_teams/count/count_request_builder.rb index 30f2d249bf..976cecd2c1 100644 --- a/lib/groups/item/team/channels/item/shared_with_teams/count/count_request_builder.rb +++ b/lib/groups/item/team/channels/item/shared_with_teams/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/channels/item/shared_with_teams/item/allowed_members/allowed_members_request_builder.rb b/lib/groups/item/team/channels/item/shared_with_teams/item/allowed_members/allowed_members_request_builder.rb index d4cd532daa..5fd57550f6 100644 --- a/lib/groups/item/team/channels/item/shared_with_teams/item/allowed_members/allowed_members_request_builder.rb +++ b/lib/groups/item/team/channels/item/shared_with_teams/item/allowed_members/allowed_members_request_builder.rb @@ -49,10 +49,10 @@ def by_conversation_member_id(conversation_member_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + ## A collection of team members who have access to the shared channel. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of conversation_member_collection_response ## @@ -61,31 +61,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMemberCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + ## A collection of team members who have access to the shared channel. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a allowed_members_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AllowedMembersRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + # A collection of team members who have access to the shared channel. class AllowedMembersRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/channels/item/shared_with_teams/item/allowed_members/count/count_request_builder.rb b/lib/groups/item/team/channels/item/shared_with_teams/item/allowed_members/count/count_request_builder.rb index c1a92ae492..cdaab05a25 100644 --- a/lib/groups/item/team/channels/item/shared_with_teams/item/allowed_members/count/count_request_builder.rb +++ b/lib/groups/item/team/channels/item/shared_with_teams/item/allowed_members/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/channels/item/shared_with_teams/item/allowed_members/item/conversation_member_item_request_builder.rb b/lib/groups/item/team/channels/item/shared_with_teams/item/allowed_members/item/conversation_member_item_request_builder.rb index 6fe7ae258c..164e61a302 100644 --- a/lib/groups/item/team/channels/item/shared_with_teams/item/allowed_members/item/conversation_member_item_request_builder.rb +++ b/lib/groups/item/team/channels/item/shared_with_teams/item/allowed_members/item/conversation_member_item_request_builder.rb @@ -33,7 +33,7 @@ class ConversationMemberItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReq ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers/{conversationMember%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers/{conversationMember%2Did}{?%24expand,%24select}") end ## ## A collection of team members who have access to the shared channel. @@ -45,8 +45,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a conversation_member_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConversationMemberItemRequestBuilder.new(raw_url, @request_adapter) + end ## # A collection of team members who have access to the shared channel. diff --git a/lib/groups/item/team/channels/item/shared_with_teams/item/shared_with_channel_team_info_item_request_builder.rb b/lib/groups/item/team/channels/item/shared_with_teams/item/shared_with_channel_team_info_item_request_builder.rb index d40edfbedf..7ae84a9c99 100644 --- a/lib/groups/item/team/channels/item/shared_with_teams/item/shared_with_channel_team_info_item_request_builder.rb +++ b/lib/groups/item/team/channels/item/shared_with_teams/item/shared_with_channel_team_info_item_request_builder.rb @@ -41,10 +41,10 @@ def team() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}{?%24expand,%24select}") end ## - ## Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + ## Delete navigation property sharedWithTeams for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -53,12 +53,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + ## A collection of teams with which a channel is shared. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of shared_with_channel_team_info ## @@ -67,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SharedWithChannelTeamInfo.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,42 +81,42 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SharedWithChannelTeamInfo.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + ## Delete navigation property sharedWithTeams for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + ## A collection of teams with which a channel is shared. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -130,20 +128,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a shared_with_channel_team_info_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SharedWithChannelTeamInfoItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + # A collection of teams with which a channel is shared. class SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/channels/item/shared_with_teams/item/team/team_request_builder.rb b/lib/groups/item/team/channels/item/shared_with_teams/item/team/team_request_builder.rb index 894986d76c..3fff292aca 100644 --- a/lib/groups/item/team/channels/item/shared_with_teams/item/team/team_request_builder.rb +++ b/lib/groups/item/team/channels/item/shared_with_teams/item/team/team_request_builder.rb @@ -31,7 +31,7 @@ class TeamRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/team{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/team{?%24expand,%24select}") end ## ## Get team from groups @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Team.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a team_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TeamRequestBuilder.new(raw_url, @request_adapter) + end ## # Get team from groups diff --git a/lib/groups/item/team/channels/item/shared_with_teams/shared_with_teams_request_builder.rb b/lib/groups/item/team/channels/item/shared_with_teams/shared_with_teams_request_builder.rb index 4bb659ceb7..07958f5f0c 100644 --- a/lib/groups/item/team/channels/item/shared_with_teams/shared_with_teams_request_builder.rb +++ b/lib/groups/item/team/channels/item/shared_with_teams/shared_with_teams_request_builder.rb @@ -46,10 +46,10 @@ def by_shared_with_channel_team_info_id(shared_with_channel_team_info_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + ## A collection of teams with which a channel is shared. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of shared_with_channel_team_info_collection_response ## @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SharedWithChannelTeamInfoCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,26 +73,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SharedWithChannelTeamInfo.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + ## A collection of teams with which a channel is shared. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a shared_with_teams_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SharedWithTeamsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + # A collection of teams with which a channel is shared. class SharedWithTeamsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/channels/item/tabs/count/count_request_builder.rb b/lib/groups/item/team/channels/item/tabs/count/count_request_builder.rb index 59dad4b8b7..b7fba2cfe7 100644 --- a/lib/groups/item/team/channels/item/tabs/count/count_request_builder.rb +++ b/lib/groups/item/team/channels/item/tabs/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/tabs/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/tabs/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/channels/item/tabs/item/teams_app/teams_app_request_builder.rb b/lib/groups/item/team/channels/item/tabs/item/teams_app/teams_app_request_builder.rb index 6327f8a79f..a080ca6669 100644 --- a/lib/groups/item/team/channels/item/tabs/item/teams_app/teams_app_request_builder.rb +++ b/lib/groups/item/team/channels/item/tabs/item/teams_app/teams_app_request_builder.rb @@ -31,10 +31,10 @@ class TeamsAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/tabs/{teamsTab%2Did}/teamsApp{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/tabs/{teamsTab%2Did}/teamsApp{?%24expand,%24select}") end ## - ## The application that is linked to the tab. This cannot be changed after tab creation. + ## The application that is linked to the tab. This can't be changed after tab creation. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teams_app ## @@ -43,31 +43,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsApp.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The application that is linked to the tab. This cannot be changed after tab creation. + ## The application that is linked to the tab. This can't be changed after tab creation. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a teams_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TeamsAppRequestBuilder.new(raw_url, @request_adapter) + end ## - # The application that is linked to the tab. This cannot be changed after tab creation. + # The application that is linked to the tab. This can't be changed after tab creation. class TeamsAppRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/channels/item/tabs/item/teams_tab_item_request_builder.rb b/lib/groups/item/team/channels/item/tabs/item/teams_tab_item_request_builder.rb index 3e0ed4c210..9e49f34d0a 100644 --- a/lib/groups/item/team/channels/item/tabs/item/teams_tab_item_request_builder.rb +++ b/lib/groups/item/team/channels/item/tabs/item/teams_tab_item_request_builder.rb @@ -35,10 +35,10 @@ def teams_app() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/tabs/{teamsTab%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/tabs/{teamsTab%2Did}{?%24expand,%24select}") end ## - ## Removes (unpins) a tab from the specified channel within a team. + ## Delete navigation property tabs for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -47,12 +47,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of the specified tab in a channel within a team. + ## A collection of all the tabs in the channel. A navigation property. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teams_tab ## @@ -61,12 +60,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsTab.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of the specified tab.This can be used to configure the content of the tab. + ## Update the navigation property tabs in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teams_tab @@ -77,46 +75,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsTab.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Removes (unpins) a tab from the specified channel within a team. + ## Delete navigation property tabs for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of the specified tab in a channel within a team. + ## A collection of all the tabs in the channel. A navigation property. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of the specified tab.This can be used to configure the content of the tab. + ## Update the navigation property tabs in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -124,20 +122,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a teams_tab_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TeamsTabItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of the specified tab in a channel within a team. + # A collection of all the tabs in the channel. A navigation property. class TeamsTabItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/channels/item/tabs/tabs_request_builder.rb b/lib/groups/item/team/channels/item/tabs/tabs_request_builder.rb index cc76f1cb40..e93da5bdc2 100644 --- a/lib/groups/item/team/channels/item/tabs/tabs_request_builder.rb +++ b/lib/groups/item/team/channels/item/tabs/tabs_request_builder.rb @@ -46,10 +46,10 @@ def by_teams_tab_id(teams_tab_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/tabs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/tabs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve the list of tabs in the specified channel within a team. + ## A collection of all the tabs in the channel. A navigation property. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teams_tab_collection_response ## @@ -58,12 +58,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsTabCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + ## Create new navigation property to tabs for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teams_tab @@ -74,30 +73,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsTab.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve the list of tabs in the specified channel within a team. + ## A collection of all the tabs in the channel. A navigation property. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + ## Create new navigation property to tabs for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a tabs_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TabsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the list of tabs in the specified channel within a team. + # A collection of all the tabs in the channel. A navigation property. class TabsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/channels/item/unarchive/unarchive.rb b/lib/groups/item/team/channels/item/unarchive/unarchive.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/team/channels/item/unarchive/unarchive_request_builder.rb b/lib/groups/item/team/channels/item/unarchive/unarchive_request_builder.rb new file mode 100644 index 0000000000..3b141e8996 --- /dev/null +++ b/lib/groups/item/team/channels/item/unarchive/unarchive_request_builder.rb @@ -0,0 +1,77 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../channels' +require_relative '../item' +require_relative './unarchive' + +module MicrosoftGraph + module Groups + module Item + module Team + module Channels + module Item + module Unarchive + ## + # Provides operations to call the unarchive method. + class UnarchiveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnarchiveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/unarchive") + end + ## + ## Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unarchive_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnarchiveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/clone/clone_post_request_body.rb b/lib/groups/item/team/clone/clone_post_request_body.rb index 23b45ae7fa..9235829574 100644 --- a/lib/groups/item/team/clone/clone_post_request_body.rb +++ b/lib/groups/item/team/clone/clone_post_request_body.rb @@ -36,15 +36,15 @@ class ClonePostRequestBody # The visibility property @visibility ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -66,7 +66,7 @@ def classification=(value) @classification = value end ## - ## Instantiates a new clonePostRequestBody and sets the default values. + ## Instantiates a new ClonePostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -121,7 +121,7 @@ def get_field_deserializers() "description" => lambda {|n| @description = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "mailNickname" => lambda {|n| @mail_nickname = n.get_string_value() }, - "partsToClone" => lambda {|n| @parts_to_clone = n.get_enum_value(MicrosoftGraph::Models::ClonableTeamParts) }, + "partsToClone" => lambda {|n| @parts_to_clone = n.get_enum_values(MicrosoftGraph::Models::ClonableTeamParts) }, "visibility" => lambda {|n| @visibility = n.get_enum_value(MicrosoftGraph::Models::TeamVisibilityType) }, } end diff --git a/lib/groups/item/team/clone/clone_request_builder.rb b/lib/groups/item/team/clone/clone_request_builder.rb index fb64fd42b7..e759ab36c1 100644 --- a/lib/groups/item/team/clone/clone_request_builder.rb +++ b/lib/groups/item/team/clone/clone_request_builder.rb @@ -25,7 +25,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/clone") end ## - ## Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they are put into an unconfigured state -- they are displayed on the tab bar in Microsoft Teams, and the first time you open them, you'll go through the configuration screen. (If the person opening the tab does not have permission to configure apps, they will see a message explaining that the tab hasn't been configured.) Cloning is a long-running operation.After the POST clone returns, you need to GET the operation to see if it's 'running' or 'succeeded' or 'failed'. You should continue to GET until the status is not 'running'. The recommended delay between GETs is 5 seconds. + ## Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -36,12 +36,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they are put into an unconfigured state -- they are displayed on the tab bar in Microsoft Teams, and the first time you open them, you'll go through the configuration screen. (If the person opening the tab does not have permission to configure apps, they will see a message explaining that the tab hasn't been configured.) Cloning is a long-running operation.After the POST clone returns, you need to GET the operation to see if it's 'running' or 'succeeded' or 'failed'. You should continue to GET until the status is not 'running'. The recommended delay between GETs is 5 seconds. + ## Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clone_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CloneRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/complete_migration/complete_migration_request_builder.rb b/lib/groups/item/team/complete_migration/complete_migration_request_builder.rb index e695a3cb15..ba58c67813 100644 --- a/lib/groups/item/team/complete_migration/complete_migration_request_builder.rb +++ b/lib/groups/item/team/complete_migration/complete_migration_request_builder.rb @@ -25,7 +25,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/completeMigration") end ## - ## Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + ## Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -34,26 +34,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + ## Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a complete_migration_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CompleteMigrationRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/group/group_request_builder.rb b/lib/groups/item/team/group/group_request_builder.rb index 8e9b310143..d6a0f4ebf3 100644 --- a/lib/groups/item/team/group/group_request_builder.rb +++ b/lib/groups/item/team/group/group_request_builder.rb @@ -6,6 +6,7 @@ require_relative '../../item' require_relative '../team' require_relative './group' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' module MicrosoftGraph module Groups @@ -16,6 +17,11 @@ module Group # Provides operations to manage the group property of the microsoft.graph.team entity. class GroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::Groups::Item::Team::Group::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end ## ## Instantiates a new GroupRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -23,7 +29,7 @@ class GroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/group{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/group{?%24expand,%24select}") end ## ## Get group from groups @@ -35,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GroupRequestBuilder.new(raw_url, @request_adapter) + end ## # Get group from groups diff --git a/lib/groups/item/team/group/service_provisioning_errors/count/count.rb b/lib/groups/item/team/group/service_provisioning_errors/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/team/group/service_provisioning_errors/count/count_request_builder.rb b/lib/groups/item/team/group/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..cdcc09a396 --- /dev/null +++ b/lib/groups/item/team/group/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../group' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module Team + module Group + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/group/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/group/service_provisioning_errors/service_provisioning_errors.rb b/lib/groups/item/team/group/service_provisioning_errors/service_provisioning_errors.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/team/group/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/groups/item/team/group/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..5e0fe7a406 --- /dev/null +++ b/lib/groups/item/team/group/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,140 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../models/service_provisioning_error_collection_response' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../team' +require_relative '../group' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module Groups + module Item + module Team + module Group + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \groups\{group-id}\team\group\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::Team::Group::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/group/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/incoming_channels/count/count_request_builder.rb b/lib/groups/item/team/incoming_channels/count/count_request_builder.rb index bf5c08effb..f2ded61a2c 100644 --- a/lib/groups/item/team/incoming_channels/count/count_request_builder.rb +++ b/lib/groups/item/team/incoming_channels/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/incomingChannels/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/incomingChannels/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/incoming_channels/incoming_channels_request_builder.rb b/lib/groups/item/team/incoming_channels/incoming_channels_request_builder.rb index a3d752a0f5..99957507a7 100644 --- a/lib/groups/item/team/incoming_channels/incoming_channels_request_builder.rb +++ b/lib/groups/item/team/incoming_channels/incoming_channels_request_builder.rb @@ -41,10 +41,10 @@ def by_channel_id(channel_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/incomingChannels{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/incomingChannels{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the list of incoming channels (channels shared with a team). + ## List of channels shared with the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of channel_collection_response ## @@ -53,31 +53,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChannelCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the list of incoming channels (channels shared with a team). + ## List of channels shared with the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a incoming_channels_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IncomingChannelsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the list of incoming channels (channels shared with a team). + # List of channels shared with the team. class IncomingChannelsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/incoming_channels/item/channel_item_request_builder.rb b/lib/groups/item/team/incoming_channels/item/channel_item_request_builder.rb index a6eb095b87..8147058dc9 100644 --- a/lib/groups/item/team/incoming_channels/item/channel_item_request_builder.rb +++ b/lib/groups/item/team/incoming_channels/item/channel_item_request_builder.rb @@ -25,21 +25,7 @@ class ChannelItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/incomingChannels/{channel%2Did}{?%24select,%24expand}") - end - ## - ## Remove an incoming channel (a channel shared with a team) from a team. - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of void - ## - def delete(request_configuration=nil) - request_info = self.to_delete_request_information( - request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, nil, error_mapping) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/incomingChannels/{channel%2Did}{?%24expand,%24select}") end ## ## List of channels shared with the team. @@ -51,44 +37,36 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Channel.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Remove an incoming channel (a channel shared with a team) from a team. - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_delete_request_information(request_configuration=nil) - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - return request_info - end - ## ## List of channels shared with the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a channel_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChannelItemRequestBuilder.new(raw_url, @request_adapter) + end ## # List of channels shared with the team. diff --git a/lib/groups/item/team/installed_apps/count/count_request_builder.rb b/lib/groups/item/team/installed_apps/count/count_request_builder.rb index e521fea26c..4af4064ece 100644 --- a/lib/groups/item/team/installed_apps/count/count_request_builder.rb +++ b/lib/groups/item/team/installed_apps/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/installedApps/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/installedApps/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/installed_apps/installed_apps_request_builder.rb b/lib/groups/item/team/installed_apps/installed_apps_request_builder.rb index 284a601a13..f463a35ba9 100644 --- a/lib/groups/item/team/installed_apps/installed_apps_request_builder.rb +++ b/lib/groups/item/team/installed_apps/installed_apps_request_builder.rb @@ -42,10 +42,10 @@ def by_teams_app_installation_id(teams_app_installation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/installedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/installedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of apps installed in the specified team. + ## The apps installed in this team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teams_app_installation_collection_response ## @@ -54,12 +54,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsAppInstallationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Install an app to the specified team. + ## Create new navigation property to installedApps for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teams_app_installation @@ -70,30 +69,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsAppInstallation.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of apps installed in the specified team. + ## The apps installed in this team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Install an app to the specified team. + ## Create new navigation property to installedApps for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -101,20 +99,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a installed_apps_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InstalledAppsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of apps installed in the specified team. + # The apps installed in this team. class InstalledAppsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/installed_apps/item/teams_app/teams_app_request_builder.rb b/lib/groups/item/team/installed_apps/item/teams_app/teams_app_request_builder.rb index 3b457f82c4..80ad003561 100644 --- a/lib/groups/item/team/installed_apps/item/teams_app/teams_app_request_builder.rb +++ b/lib/groups/item/team/installed_apps/item/teams_app/teams_app_request_builder.rb @@ -27,7 +27,7 @@ class TeamsAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/installedApps/{teamsAppInstallation%2Did}/teamsApp{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/installedApps/{teamsAppInstallation%2Did}/teamsApp{?%24expand,%24select}") end ## ## The app that is installed. @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsApp.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a teams_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TeamsAppRequestBuilder.new(raw_url, @request_adapter) + end ## # The app that is installed. diff --git a/lib/groups/item/team/installed_apps/item/teams_app_definition/teams_app_definition_request_builder.rb b/lib/groups/item/team/installed_apps/item/teams_app_definition/teams_app_definition_request_builder.rb index 3370067cf3..5acc157325 100644 --- a/lib/groups/item/team/installed_apps/item/teams_app_definition/teams_app_definition_request_builder.rb +++ b/lib/groups/item/team/installed_apps/item/teams_app_definition/teams_app_definition_request_builder.rb @@ -27,7 +27,7 @@ class TeamsAppDefinitionRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/installedApps/{teamsAppInstallation%2Did}/teamsAppDefinition{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/installedApps/{teamsAppInstallation%2Did}/teamsAppDefinition{?%24expand,%24select}") end ## ## The details of this version of the app. @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsAppDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a teams_app_definition_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TeamsAppDefinitionRequestBuilder.new(raw_url, @request_adapter) + end ## # The details of this version of the app. diff --git a/lib/groups/item/team/installed_apps/item/teams_app_installation_item_request_builder.rb b/lib/groups/item/team/installed_apps/item/teams_app_installation_item_request_builder.rb index bb5e878283..a342af9da5 100644 --- a/lib/groups/item/team/installed_apps/item/teams_app_installation_item_request_builder.rb +++ b/lib/groups/item/team/installed_apps/item/teams_app_installation_item_request_builder.rb @@ -43,10 +43,10 @@ def upgrade() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/installedApps/{teamsAppInstallation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/installedApps/{teamsAppInstallation%2Did}{?%24expand,%24select}") end ## - ## Uninstalls an app from the specified team. + ## Delete navigation property installedApps for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -55,12 +55,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the app installed in the specified team. + ## The apps installed in this team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teams_app_installation ## @@ -69,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsAppInstallation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,42 +83,42 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsAppInstallation.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Uninstalls an app from the specified team. + ## Delete navigation property installedApps for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the app installed in the specified team. + ## The apps installed in this team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,20 +130,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a teams_app_installation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TeamsAppInstallationItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the app installed in the specified team. + # The apps installed in this team. class TeamsAppInstallationItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/installed_apps/item/upgrade/upgrade_post_request_body.rb b/lib/groups/item/team/installed_apps/item/upgrade/upgrade_post_request_body.rb index 52c686493c..c4cdde04d0 100644 --- a/lib/groups/item/team/installed_apps/item/upgrade/upgrade_post_request_body.rb +++ b/lib/groups/item/team/installed_apps/item/upgrade/upgrade_post_request_body.rb @@ -24,15 +24,15 @@ class UpgradePostRequestBody # The consentedPermissionSet property @consented_permission_set ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -54,7 +54,7 @@ def consented_permission_set=(value) @consented_permission_set = value end ## - ## Instantiates a new upgradePostRequestBody and sets the default values. + ## Instantiates a new UpgradePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/team/installed_apps/item/upgrade/upgrade_request_builder.rb b/lib/groups/item/team/installed_apps/item/upgrade/upgrade_request_builder.rb index 2b39f39144..5856a90656 100644 --- a/lib/groups/item/team/installed_apps/item/upgrade/upgrade_request_builder.rb +++ b/lib/groups/item/team/installed_apps/item/upgrade/upgrade_request_builder.rb @@ -40,8 +40,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,16 +52,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a upgrade_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UpgradeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/members/add/add.rb b/lib/groups/item/team/members/add/add.rb index 629ad98abe..4f4fe401db 100644 --- a/lib/groups/item/team/members/add/add.rb +++ b/lib/groups/item/team/members/add/add.rb @@ -1,2 +1,2 @@ require_relative 'add_post_request_body' -require_relative 'add_response' +require_relative 'add_post_response' diff --git a/lib/groups/item/team/members/add/add_post_request_body.rb b/lib/groups/item/team/members/add/add_post_request_body.rb index bc8238d419..d3a0f14060 100644 --- a/lib/groups/item/team/members/add/add_post_request_body.rb +++ b/lib/groups/item/team/members/add/add_post_request_body.rb @@ -22,22 +22,22 @@ class AddPostRequestBody # The values property @values ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new addPostRequestBody and sets the default values. + ## Instantiates a new AddPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/team/members/add/add_post_response.rb b/lib/groups/item/team/members/add/add_post_response.rb new file mode 100644 index 0000000000..e7e05a12f2 --- /dev/null +++ b/lib/groups/item/team/members/add/add_post_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/action_result_part' +require_relative '../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../team' +require_relative '../members' +require_relative './add' + +module MicrosoftGraph + module Groups + module Item + module Team + module Members + module Add + class AddPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new AddPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a add_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AddPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ActionResultPart.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a action_result_part + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/members/add/add_request_builder.rb b/lib/groups/item/team/members/add/add_request_builder.rb index 41670e9c91..7024496e57 100644 --- a/lib/groups/item/team/members/add/add_request_builder.rb +++ b/lib/groups/item/team/members/add/add_request_builder.rb @@ -30,7 +30,7 @@ def initialize(path_parameters, request_adapter) ## Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of add_response + ## @return a Fiber of add_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -38,9 +38,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::Members::Add::AddResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::Members::Add::AddPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. @@ -51,17 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/members/add/add_response.rb b/lib/groups/item/team/members/add/add_response.rb deleted file mode 100644 index 6ecd8e7808..0000000000 --- a/lib/groups/item/team/members/add/add_response.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/action_result_part' -require_relative '../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../team' -require_relative '../members' -require_relative './add' - -module MicrosoftGraph - module Groups - module Item - module Team - module Members - module Add - class AddResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new addResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a add_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return AddResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ActionResultPart.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a action_result_part - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/members/count/count_request_builder.rb b/lib/groups/item/team/members/count/count_request_builder.rb index e8d1d01c2f..149b6af80a 100644 --- a/lib/groups/item/team/members/count/count_request_builder.rb +++ b/lib/groups/item/team/members/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/members/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/members/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/members/item/conversation_member_item_request_builder.rb b/lib/groups/item/team/members/item/conversation_member_item_request_builder.rb index fbbc6b3516..be7481d41f 100644 --- a/lib/groups/item/team/members/item/conversation_member_item_request_builder.rb +++ b/lib/groups/item/team/members/item/conversation_member_item_request_builder.rb @@ -25,10 +25,10 @@ class ConversationMemberItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReq ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/members/{conversationMember%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/members/{conversationMember%2Did}{?%24expand,%24select}") end ## - ## Remove a conversationMember from a team. + ## Delete navigation property members for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -37,12 +37,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get a conversationMember from a team. + ## Members and owners of the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of conversation_member ## @@ -51,12 +50,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the role of a conversationMember in a team. + ## Update the navigation property members in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of conversation_member @@ -67,46 +65,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Remove a conversationMember from a team. + ## Delete navigation property members for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get a conversationMember from a team. + ## Members and owners of the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the role of a conversationMember in a team. + ## Update the navigation property members in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -114,20 +112,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a conversation_member_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConversationMemberItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a conversationMember from a team. + # Members and owners of the team. class ConversationMemberItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/members/members_request_builder.rb b/lib/groups/item/team/members/members_request_builder.rb index 5b5f6a9324..162bdaea92 100644 --- a/lib/groups/item/team/members/members_request_builder.rb +++ b/lib/groups/item/team/members/members_request_builder.rb @@ -10,6 +10,7 @@ require_relative './count/count_request_builder' require_relative './item/conversation_member_item_request_builder' require_relative './members' +require_relative './remove/remove_request_builder' module MicrosoftGraph module Groups @@ -31,6 +32,11 @@ def count() return MicrosoftGraph::Groups::Item::Team::Members::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the remove method. + def remove() + return MicrosoftGraph::Groups::Item::Team::Members::Remove::RemoveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Provides operations to manage the members property of the microsoft.graph.team entity. ## @param conversation_member_id The unique identifier of conversationMember ## @return a conversation_member_item_request_builder @@ -48,10 +54,10 @@ def by_conversation_member_id(conversation_member_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/members{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the conversationMember collection of a team. + ## Members and owners of the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of conversation_member_collection_response ## @@ -60,12 +66,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMemberCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Add a new conversationMember to a team. + ## Create new navigation property to members for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of conversation_member @@ -76,30 +81,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the conversationMember collection of a team. + ## Members and owners of the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Add a new conversationMember to a team. + ## Create new navigation property to members for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -107,20 +111,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a members_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MembersRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the conversationMember collection of a team. + # Members and owners of the team. class MembersRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/members/remove/remove.rb b/lib/groups/item/team/members/remove/remove.rb new file mode 100644 index 0000000000..95c14f7d89 --- /dev/null +++ b/lib/groups/item/team/members/remove/remove.rb @@ -0,0 +1,2 @@ +require_relative 'remove_post_request_body' +require_relative 'remove_post_response' diff --git a/lib/groups/item/team/members/remove/remove_post_request_body.rb b/lib/groups/item/team/members/remove/remove_post_request_body.rb new file mode 100644 index 0000000000..1148ef35b2 --- /dev/null +++ b/lib/groups/item/team/members/remove/remove_post_request_body.rb @@ -0,0 +1,95 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/conversation_member' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../team' +require_relative '../members' +require_relative './remove' + +module MicrosoftGraph + module Groups + module Item + module Team + module Members + module Remove + class RemovePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The values property + @values + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new RemovePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a remove_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return RemovePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "values" => lambda {|n| @values = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_collection_of_object_values("values", @values) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the values property value. The values property + ## @return a conversation_member + ## + def values + return @values + end + ## + ## Sets the values property value. The values property + ## @param value Value to set for the values property. + ## @return a void + ## + def values=(value) + @values = value + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/members/remove/remove_post_response.rb b/lib/groups/item/team/members/remove/remove_post_response.rb new file mode 100644 index 0000000000..d56d8531e1 --- /dev/null +++ b/lib/groups/item/team/members/remove/remove_post_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/action_result_part' +require_relative '../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../team' +require_relative '../members' +require_relative './remove' + +module MicrosoftGraph + module Groups + module Item + module Team + module Members + module Remove + class RemovePostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new RemovePostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a remove_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return RemovePostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ActionResultPart.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a action_result_part + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/members/remove/remove_request_builder.rb b/lib/groups/item/team/members/remove/remove_request_builder.rb new file mode 100644 index 0000000000..ac1ae3631e --- /dev/null +++ b/lib/groups/item/team/members/remove/remove_request_builder.rb @@ -0,0 +1,79 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../team' +require_relative '../members' +require_relative './remove' + +module MicrosoftGraph + module Groups + module Item + module Team + module Members + module Remove + ## + # Provides operations to call the remove method. + class RemoveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RemoveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/members/remove") + end + ## + ## Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of remove_post_response + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::Members::Remove::RemovePostResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a remove_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RemoveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/operations/count/count_request_builder.rb b/lib/groups/item/team/operations/count/count_request_builder.rb index 92c505422c..e075cd85b5 100644 --- a/lib/groups/item/team/operations/count/count_request_builder.rb +++ b/lib/groups/item/team/operations/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/operations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/operations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/operations/item/teams_async_operation_item_request_builder.rb b/lib/groups/item/team/operations/item/teams_async_operation_item_request_builder.rb index 949c5dcec4..0d74b44254 100644 --- a/lib/groups/item/team/operations/item/teams_async_operation_item_request_builder.rb +++ b/lib/groups/item/team/operations/item/teams_async_operation_item_request_builder.rb @@ -25,7 +25,7 @@ class TeamsAsyncOperationItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/operations/{teamsAsyncOperation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/operations/{teamsAsyncOperation%2Did}{?%24expand,%24select}") end ## ## Delete navigation property operations for groups @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsAsyncOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsAsyncOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a teams_async_operation_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TeamsAsyncOperationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The async operations that ran or are running on this team. diff --git a/lib/groups/item/team/operations/operations_request_builder.rb b/lib/groups/item/team/operations/operations_request_builder.rb index 5a1f7893d3..d8f875f038 100644 --- a/lib/groups/item/team/operations/operations_request_builder.rb +++ b/lib/groups/item/team/operations/operations_request_builder.rb @@ -42,7 +42,7 @@ def by_teams_async_operation_id(teams_async_operation_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The async operations that ran or are running on this team. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsAsyncOperationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsAsyncOperation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a operations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OperationsRequestBuilder.new(raw_url, @request_adapter) + end ## # The async operations that ran or are running on this team. diff --git a/lib/groups/item/team/permission_grants/count/count_request_builder.rb b/lib/groups/item/team/permission_grants/count/count_request_builder.rb index 3813bef837..d8a7e6b96a 100644 --- a/lib/groups/item/team/permission_grants/count/count_request_builder.rb +++ b/lib/groups/item/team/permission_grants/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/permission_grants/delta/delta.rb b/lib/groups/item/team/permission_grants/delta/delta.rb deleted file mode 100644 index 0c348d20cb..0000000000 --- a/lib/groups/item/team/permission_grants/delta/delta.rb +++ /dev/null @@ -1 +0,0 @@ -require_relative 'delta_response' diff --git a/lib/groups/item/team/permission_grants/delta/delta_request_builder.rb b/lib/groups/item/team/permission_grants/delta/delta_request_builder.rb deleted file mode 100644 index ff90b42564..0000000000 --- a/lib/groups/item/team/permission_grants/delta/delta_request_builder.rb +++ /dev/null @@ -1,120 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../team' -require_relative '../permission_grants' -require_relative './delta' - -module MicrosoftGraph - module Groups - module Item - module Team - module PermissionGrants - module Delta - ## - # Provides operations to call the delta method. - class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new DeltaRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") - end - ## - ## Invoke function delta - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response - ## - def get(request_configuration=nil) - request_info = self.to_get_request_information( - request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::PermissionGrants::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Invoke function delta - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_get_request_information(request_configuration=nil) - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) - request_info.add_request_options(request_configuration.options) - end - return request_info - end - - ## - # Invoke function delta - class DeltaRequestBuilderGetQueryParameters - - ## - # Include count of items - attr_accessor :count - ## - # Filter items by property values - attr_accessor :filter - ## - # Order items by property values - attr_accessor :orderby - ## - # Search items by search phrases - attr_accessor :search - ## - # Select properties to be returned - attr_accessor :select - ## - # Skip the first n items - attr_accessor :skip - ## - # Show only the first n items - attr_accessor :top - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "count" - return "%24count" - when "filter" - return "%24filter" - when "orderby" - return "%24orderby" - when "search" - return "%24search" - when "select" - return "%24select" - when "skip" - return "%24skip" - when "top" - return "%24top" - else - return original_name - end - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/permission_grants/delta/delta_response.rb b/lib/groups/item/team/permission_grants/delta/delta_response.rb deleted file mode 100644 index 3fa7266c0c..0000000000 --- a/lib/groups/item/team/permission_grants/delta/delta_response.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_delta_function_response' -require_relative '../../../../../models/directory_object' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../team' -require_relative '../permission_grants' -require_relative './delta' - -module MicrosoftGraph - module Groups - module Item - module Team - module PermissionGrants - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/permission_grants/get_available_extension_properties/get_available_extension_properties.rb b/lib/groups/item/team/permission_grants/get_available_extension_properties/get_available_extension_properties.rb deleted file mode 100644 index b6fee576bf..0000000000 --- a/lib/groups/item/team/permission_grants/get_available_extension_properties/get_available_extension_properties.rb +++ /dev/null @@ -1,2 +0,0 @@ -require_relative 'get_available_extension_properties_post_request_body' -require_relative 'get_available_extension_properties_response' diff --git a/lib/groups/item/team/permission_grants/get_available_extension_properties/get_available_extension_properties_post_request_body.rb b/lib/groups/item/team/permission_grants/get_available_extension_properties/get_available_extension_properties_post_request_body.rb deleted file mode 100644 index ec2181447f..0000000000 --- a/lib/groups/item/team/permission_grants/get_available_extension_properties/get_available_extension_properties_post_request_body.rb +++ /dev/null @@ -1,94 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../team' -require_relative '../permission_grants' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module Groups - module Item - module Team - module PermissionGrants - module GetAvailableExtensionProperties - class GetAvailableExtensionPropertiesPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The isSyncedFromOnPremises property - @is_synced_from_on_premises - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new getAvailableExtensionPropertiesPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_available_extension_properties_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAvailableExtensionPropertiesPostRequestBody.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "isSyncedFromOnPremises" => lambda {|n| @is_synced_from_on_premises = n.get_boolean_value() }, - } - end - ## - ## Gets the isSyncedFromOnPremises property value. The isSyncedFromOnPremises property - ## @return a boolean - ## - def is_synced_from_on_premises - return @is_synced_from_on_premises - end - ## - ## Sets the isSyncedFromOnPremises property value. The isSyncedFromOnPremises property - ## @param value Value to set for the isSyncedFromOnPremises property. - ## @return a void - ## - def is_synced_from_on_premises=(value) - @is_synced_from_on_premises = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("isSyncedFromOnPremises", @is_synced_from_on_premises) - writer.write_additional_data(@additional_data) - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/permission_grants/get_available_extension_properties/get_available_extension_properties_request_builder.rb b/lib/groups/item/team/permission_grants/get_available_extension_properties/get_available_extension_properties_request_builder.rb deleted file mode 100644 index c8958c15a3..0000000000 --- a/lib/groups/item/team/permission_grants/get_available_extension_properties/get_available_extension_properties_request_builder.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../team' -require_relative '../permission_grants' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module Groups - module Item - module Team - module PermissionGrants - module GetAvailableExtensionProperties - ## - # Provides operations to call the getAvailableExtensionProperties method. - class GetAvailableExtensionPropertiesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new GetAvailableExtensionPropertiesRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants/getAvailableExtensionProperties") - end - ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_available_extension_properties_response - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::PermissionGrants::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/permission_grants/get_available_extension_properties/get_available_extension_properties_response.rb b/lib/groups/item/team/permission_grants/get_available_extension_properties/get_available_extension_properties_response.rb deleted file mode 100644 index 596eb31251..0000000000 --- a/lib/groups/item/team/permission_grants/get_available_extension_properties/get_available_extension_properties_response.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../models/extension_property' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../team' -require_relative '../permission_grants' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module Groups - module Item - module Team - module PermissionGrants - module GetAvailableExtensionProperties - class GetAvailableExtensionPropertiesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_available_extension_properties_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAvailableExtensionPropertiesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a extension_property - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/permission_grants/get_by_ids/get_by_ids.rb b/lib/groups/item/team/permission_grants/get_by_ids/get_by_ids.rb deleted file mode 100644 index e4b0824834..0000000000 --- a/lib/groups/item/team/permission_grants/get_by_ids/get_by_ids.rb +++ /dev/null @@ -1,2 +0,0 @@ -require_relative 'get_by_ids_post_request_body' -require_relative 'get_by_ids_response' diff --git a/lib/groups/item/team/permission_grants/get_by_ids/get_by_ids_post_request_body.rb b/lib/groups/item/team/permission_grants/get_by_ids/get_by_ids_post_request_body.rb deleted file mode 100644 index a5cf42127e..0000000000 --- a/lib/groups/item/team/permission_grants/get_by_ids/get_by_ids_post_request_body.rb +++ /dev/null @@ -1,114 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../team' -require_relative '../permission_grants' -require_relative './get_by_ids' - -module MicrosoftGraph - module Groups - module Item - module Team - module PermissionGrants - module GetByIds - class GetByIdsPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The ids property - @ids - ## - # The types property - @types - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new getByIdsPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_by_ids_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetByIdsPostRequestBody.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "ids" => lambda {|n| @ids = n.get_collection_of_primitive_values(String) }, - "types" => lambda {|n| @types = n.get_collection_of_primitive_values(String) }, - } - end - ## - ## Gets the ids property value. The ids property - ## @return a string - ## - def ids - return @ids - end - ## - ## Sets the ids property value. The ids property - ## @param value Value to set for the ids property. - ## @return a void - ## - def ids=(value) - @ids = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_collection_of_primitive_values("ids", @ids) - writer.write_collection_of_primitive_values("types", @types) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the types property value. The types property - ## @return a string - ## - def types - return @types - end - ## - ## Sets the types property value. The types property - ## @param value Value to set for the types property. - ## @return a void - ## - def types=(value) - @types = value - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/permission_grants/get_by_ids/get_by_ids_request_builder.rb b/lib/groups/item/team/permission_grants/get_by_ids/get_by_ids_request_builder.rb deleted file mode 100644 index 927f357dad..0000000000 --- a/lib/groups/item/team/permission_grants/get_by_ids/get_by_ids_request_builder.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../team' -require_relative '../permission_grants' -require_relative './get_by_ids' - -module MicrosoftGraph - module Groups - module Item - module Team - module PermissionGrants - module GetByIds - ## - # Provides operations to call the getByIds method. - class GetByIdsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new GetByIdsRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants/getByIds") - end - ## - ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_by_ids_response - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::PermissionGrants::GetByIds::GetByIdsResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/permission_grants/get_by_ids/get_by_ids_response.rb b/lib/groups/item/team/permission_grants/get_by_ids/get_by_ids_response.rb deleted file mode 100644 index c8b210b2c5..0000000000 --- a/lib/groups/item/team/permission_grants/get_by_ids/get_by_ids_response.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../models/directory_object' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../team' -require_relative '../permission_grants' -require_relative './get_by_ids' - -module MicrosoftGraph - module Groups - module Item - module Team - module PermissionGrants - module GetByIds - class GetByIdsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getByIdsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_by_ids_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetByIdsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/permission_grants/item/check_member_groups/check_member_groups.rb b/lib/groups/item/team/permission_grants/item/check_member_groups/check_member_groups.rb deleted file mode 100644 index 938b908522..0000000000 --- a/lib/groups/item/team/permission_grants/item/check_member_groups/check_member_groups.rb +++ /dev/null @@ -1,2 +0,0 @@ -require_relative 'check_member_groups_post_request_body' -require_relative 'check_member_groups_response' diff --git a/lib/groups/item/team/permission_grants/item/check_member_groups/check_member_groups_post_request_body.rb b/lib/groups/item/team/permission_grants/item/check_member_groups/check_member_groups_post_request_body.rb deleted file mode 100644 index a2703d0281..0000000000 --- a/lib/groups/item/team/permission_grants/item/check_member_groups/check_member_groups_post_request_body.rb +++ /dev/null @@ -1,97 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../groups' -require_relative '../../../../item' -require_relative '../../../team' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './check_member_groups' - -module MicrosoftGraph - module Groups - module Item - module Team - module PermissionGrants - module Item - module CheckMemberGroups - class CheckMemberGroupsPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The groupIds property - @group_ids - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new checkMemberGroupsPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_groups_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberGroupsPostRequestBody.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "groupIds" => lambda {|n| @group_ids = n.get_collection_of_primitive_values(String) }, - } - end - ## - ## Gets the groupIds property value. The groupIds property - ## @return a string - ## - def group_ids - return @group_ids - end - ## - ## Sets the groupIds property value. The groupIds property - ## @param value Value to set for the groupIds property. - ## @return a void - ## - def group_ids=(value) - @group_ids = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_collection_of_primitive_values("groupIds", @group_ids) - writer.write_additional_data(@additional_data) - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/permission_grants/item/check_member_groups/check_member_groups_request_builder.rb b/lib/groups/item/team/permission_grants/item/check_member_groups/check_member_groups_request_builder.rb deleted file mode 100644 index c4469cde20..0000000000 --- a/lib/groups/item/team/permission_grants/item/check_member_groups/check_member_groups_request_builder.rb +++ /dev/null @@ -1,74 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../../groups' -require_relative '../../../../item' -require_relative '../../../team' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './check_member_groups' - -module MicrosoftGraph - module Groups - module Item - module Team - module PermissionGrants - module Item - module CheckMemberGroups - ## - # Provides operations to call the checkMemberGroups method. - class CheckMemberGroupsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new CheckMemberGroupsRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants/{resourceSpecificPermissionGrant%2Did}/checkMemberGroups") - end - ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_groups_response - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::PermissionGrants::Item::CheckMemberGroups::CheckMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/permission_grants/item/check_member_groups/check_member_groups_response.rb b/lib/groups/item/team/permission_grants/item/check_member_groups/check_member_groups_response.rb deleted file mode 100644 index d2f060f24b..0000000000 --- a/lib/groups/item/team/permission_grants/item/check_member_groups/check_member_groups_response.rb +++ /dev/null @@ -1,80 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../groups' -require_relative '../../../../item' -require_relative '../../../team' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './check_member_groups' - -module MicrosoftGraph - module Groups - module Item - module Team - module PermissionGrants - module Item - module CheckMemberGroups - class CheckMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/permission_grants/item/check_member_objects/check_member_objects.rb b/lib/groups/item/team/permission_grants/item/check_member_objects/check_member_objects.rb deleted file mode 100644 index 67fbf971e7..0000000000 --- a/lib/groups/item/team/permission_grants/item/check_member_objects/check_member_objects.rb +++ /dev/null @@ -1,2 +0,0 @@ -require_relative 'check_member_objects_post_request_body' -require_relative 'check_member_objects_response' diff --git a/lib/groups/item/team/permission_grants/item/check_member_objects/check_member_objects_post_request_body.rb b/lib/groups/item/team/permission_grants/item/check_member_objects/check_member_objects_post_request_body.rb deleted file mode 100644 index 8c940ba662..0000000000 --- a/lib/groups/item/team/permission_grants/item/check_member_objects/check_member_objects_post_request_body.rb +++ /dev/null @@ -1,97 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../groups' -require_relative '../../../../item' -require_relative '../../../team' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './check_member_objects' - -module MicrosoftGraph - module Groups - module Item - module Team - module PermissionGrants - module Item - module CheckMemberObjects - class CheckMemberObjectsPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The ids property - @ids - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new checkMemberObjectsPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_objects_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberObjectsPostRequestBody.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "ids" => lambda {|n| @ids = n.get_collection_of_primitive_values(String) }, - } - end - ## - ## Gets the ids property value. The ids property - ## @return a string - ## - def ids - return @ids - end - ## - ## Sets the ids property value. The ids property - ## @param value Value to set for the ids property. - ## @return a void - ## - def ids=(value) - @ids = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_collection_of_primitive_values("ids", @ids) - writer.write_additional_data(@additional_data) - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/permission_grants/item/check_member_objects/check_member_objects_request_builder.rb b/lib/groups/item/team/permission_grants/item/check_member_objects/check_member_objects_request_builder.rb deleted file mode 100644 index 2fd5a4adf7..0000000000 --- a/lib/groups/item/team/permission_grants/item/check_member_objects/check_member_objects_request_builder.rb +++ /dev/null @@ -1,74 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../../groups' -require_relative '../../../../item' -require_relative '../../../team' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './check_member_objects' - -module MicrosoftGraph - module Groups - module Item - module Team - module PermissionGrants - module Item - module CheckMemberObjects - ## - # Provides operations to call the checkMemberObjects method. - class CheckMemberObjectsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new CheckMemberObjectsRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants/{resourceSpecificPermissionGrant%2Did}/checkMemberObjects") - end - ## - ## Invoke action checkMemberObjects - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of check_member_objects_response - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::PermissionGrants::Item::CheckMemberObjects::CheckMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Invoke action checkMemberObjects - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/permission_grants/item/check_member_objects/check_member_objects_response.rb b/lib/groups/item/team/permission_grants/item/check_member_objects/check_member_objects_response.rb deleted file mode 100644 index af14b6f374..0000000000 --- a/lib/groups/item/team/permission_grants/item/check_member_objects/check_member_objects_response.rb +++ /dev/null @@ -1,80 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../groups' -require_relative '../../../../item' -require_relative '../../../team' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './check_member_objects' - -module MicrosoftGraph - module Groups - module Item - module Team - module PermissionGrants - module Item - module CheckMemberObjects - class CheckMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new checkMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a check_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return CheckMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/permission_grants/item/get_member_groups/get_member_groups.rb b/lib/groups/item/team/permission_grants/item/get_member_groups/get_member_groups.rb deleted file mode 100644 index 0a25b012ea..0000000000 --- a/lib/groups/item/team/permission_grants/item/get_member_groups/get_member_groups.rb +++ /dev/null @@ -1,2 +0,0 @@ -require_relative 'get_member_groups_post_request_body' -require_relative 'get_member_groups_response' diff --git a/lib/groups/item/team/permission_grants/item/get_member_groups/get_member_groups_post_request_body.rb b/lib/groups/item/team/permission_grants/item/get_member_groups/get_member_groups_post_request_body.rb deleted file mode 100644 index 196e388389..0000000000 --- a/lib/groups/item/team/permission_grants/item/get_member_groups/get_member_groups_post_request_body.rb +++ /dev/null @@ -1,97 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../groups' -require_relative '../../../../item' -require_relative '../../../team' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './get_member_groups' - -module MicrosoftGraph - module Groups - module Item - module Team - module PermissionGrants - module Item - module GetMemberGroups - class GetMemberGroupsPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The securityEnabledOnly property - @security_enabled_only - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new getMemberGroupsPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_groups_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberGroupsPostRequestBody.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "securityEnabledOnly" => lambda {|n| @security_enabled_only = n.get_boolean_value() }, - } - end - ## - ## Gets the securityEnabledOnly property value. The securityEnabledOnly property - ## @return a boolean - ## - def security_enabled_only - return @security_enabled_only - end - ## - ## Sets the securityEnabledOnly property value. The securityEnabledOnly property - ## @param value Value to set for the securityEnabledOnly property. - ## @return a void - ## - def security_enabled_only=(value) - @security_enabled_only = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("securityEnabledOnly", @security_enabled_only) - writer.write_additional_data(@additional_data) - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/permission_grants/item/get_member_groups/get_member_groups_request_builder.rb b/lib/groups/item/team/permission_grants/item/get_member_groups/get_member_groups_request_builder.rb deleted file mode 100644 index 6fb8de7cf1..0000000000 --- a/lib/groups/item/team/permission_grants/item/get_member_groups/get_member_groups_request_builder.rb +++ /dev/null @@ -1,74 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../../groups' -require_relative '../../../../item' -require_relative '../../../team' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './get_member_groups' - -module MicrosoftGraph - module Groups - module Item - module Team - module PermissionGrants - module Item - module GetMemberGroups - ## - # Provides operations to call the getMemberGroups method. - class GetMemberGroupsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new GetMemberGroupsRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberGroups") - end - ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_groups_response - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::PermissionGrants::Item::GetMemberGroups::GetMemberGroupsResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/permission_grants/item/get_member_groups/get_member_groups_response.rb b/lib/groups/item/team/permission_grants/item/get_member_groups/get_member_groups_response.rb deleted file mode 100644 index b90a1f4097..0000000000 --- a/lib/groups/item/team/permission_grants/item/get_member_groups/get_member_groups_response.rb +++ /dev/null @@ -1,80 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../groups' -require_relative '../../../../item' -require_relative '../../../team' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './get_member_groups' - -module MicrosoftGraph - module Groups - module Item - module Team - module PermissionGrants - module Item - module GetMemberGroups - class GetMemberGroupsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberGroupsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_groups_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberGroupsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/permission_grants/item/get_member_objects/get_member_objects.rb b/lib/groups/item/team/permission_grants/item/get_member_objects/get_member_objects.rb deleted file mode 100644 index 40edad6b9e..0000000000 --- a/lib/groups/item/team/permission_grants/item/get_member_objects/get_member_objects.rb +++ /dev/null @@ -1,2 +0,0 @@ -require_relative 'get_member_objects_post_request_body' -require_relative 'get_member_objects_response' diff --git a/lib/groups/item/team/permission_grants/item/get_member_objects/get_member_objects_post_request_body.rb b/lib/groups/item/team/permission_grants/item/get_member_objects/get_member_objects_post_request_body.rb deleted file mode 100644 index 07ebbc329d..0000000000 --- a/lib/groups/item/team/permission_grants/item/get_member_objects/get_member_objects_post_request_body.rb +++ /dev/null @@ -1,97 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../groups' -require_relative '../../../../item' -require_relative '../../../team' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './get_member_objects' - -module MicrosoftGraph - module Groups - module Item - module Team - module PermissionGrants - module Item - module GetMemberObjects - class GetMemberObjectsPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The securityEnabledOnly property - @security_enabled_only - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new getMemberObjectsPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_objects_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberObjectsPostRequestBody.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "securityEnabledOnly" => lambda {|n| @security_enabled_only = n.get_boolean_value() }, - } - end - ## - ## Gets the securityEnabledOnly property value. The securityEnabledOnly property - ## @return a boolean - ## - def security_enabled_only - return @security_enabled_only - end - ## - ## Sets the securityEnabledOnly property value. The securityEnabledOnly property - ## @param value Value to set for the securityEnabledOnly property. - ## @return a void - ## - def security_enabled_only=(value) - @security_enabled_only = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("securityEnabledOnly", @security_enabled_only) - writer.write_additional_data(@additional_data) - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/permission_grants/item/get_member_objects/get_member_objects_request_builder.rb b/lib/groups/item/team/permission_grants/item/get_member_objects/get_member_objects_request_builder.rb deleted file mode 100644 index dcad0d4482..0000000000 --- a/lib/groups/item/team/permission_grants/item/get_member_objects/get_member_objects_request_builder.rb +++ /dev/null @@ -1,74 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../../groups' -require_relative '../../../../item' -require_relative '../../../team' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './get_member_objects' - -module MicrosoftGraph - module Groups - module Item - module Team - module PermissionGrants - module Item - module GetMemberObjects - ## - # Provides operations to call the getMemberObjects method. - class GetMemberObjectsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new GetMemberObjectsRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberObjects") - end - ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_member_objects_response - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::PermissionGrants::Item::GetMemberObjects::GetMemberObjectsResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/permission_grants/item/get_member_objects/get_member_objects_response.rb b/lib/groups/item/team/permission_grants/item/get_member_objects/get_member_objects_response.rb deleted file mode 100644 index a7137dfe5f..0000000000 --- a/lib/groups/item/team/permission_grants/item/get_member_objects/get_member_objects_response.rb +++ /dev/null @@ -1,80 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../groups' -require_relative '../../../../item' -require_relative '../../../team' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './get_member_objects' - -module MicrosoftGraph - module Groups - module Item - module Team - module PermissionGrants - module Item - module GetMemberObjects - class GetMemberObjectsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getMemberObjectsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_member_objects_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetMemberObjectsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/permission_grants/item/resource_specific_permission_grant_item_request_builder.rb b/lib/groups/item/team/permission_grants/item/resource_specific_permission_grant_item_request_builder.rb index 702b559f80..7090b046ad 100644 --- a/lib/groups/item/team/permission_grants/item/resource_specific_permission_grant_item_request_builder.rb +++ b/lib/groups/item/team/permission_grants/item/resource_specific_permission_grant_item_request_builder.rb @@ -6,12 +6,7 @@ require_relative '../../../item' require_relative '../../team' require_relative '../permission_grants' -require_relative './check_member_groups/check_member_groups_request_builder' -require_relative './check_member_objects/check_member_objects_request_builder' -require_relative './get_member_groups/get_member_groups_request_builder' -require_relative './get_member_objects/get_member_objects_request_builder' require_relative './item' -require_relative './restore/restore_request_builder' module MicrosoftGraph module Groups @@ -23,31 +18,6 @@ module Item # Provides operations to manage the permissionGrants property of the microsoft.graph.team entity. class ResourceSpecificPermissionGrantItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - ## - # Provides operations to call the checkMemberGroups method. - def check_member_groups() - return MicrosoftGraph::Groups::Item::Team::PermissionGrants::Item::CheckMemberGroups::CheckMemberGroupsRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the checkMemberObjects method. - def check_member_objects() - return MicrosoftGraph::Groups::Item::Team::PermissionGrants::Item::CheckMemberObjects::CheckMemberObjectsRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the getMemberGroups method. - def get_member_groups() - return MicrosoftGraph::Groups::Item::Team::PermissionGrants::Item::GetMemberGroups::GetMemberGroupsRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the getMemberObjects method. - def get_member_objects() - return MicrosoftGraph::Groups::Item::Team::PermissionGrants::Item::GetMemberObjects::GetMemberObjectsRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the restore method. - def restore() - return MicrosoftGraph::Groups::Item::Team::PermissionGrants::Item::Restore::RestoreRequestBuilder.new(@path_parameters, @request_adapter) - end ## ## Instantiates a new ResourceSpecificPermissionGrantItemRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request @@ -55,7 +25,7 @@ def restore() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants/{resourceSpecificPermissionGrant%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants/{resourceSpecificPermissionGrant%2Did}{?%24expand,%24select}") end ## ## Delete navigation property permissionGrants for groups @@ -67,12 +37,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get permissionGrants from groups + ## A collection of permissions granted to apps to access the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of resource_specific_permission_grant ## @@ -81,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ResourceSpecificPermissionGrant.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -97,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ResourceSpecificPermissionGrant.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -108,31 +75,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get permissionGrants from groups + ## A collection of permissions granted to apps to access the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -144,20 +112,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resource_specific_permission_grant_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourceSpecificPermissionGrantItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get permissionGrants from groups + # A collection of permissions granted to apps to access the team. class ResourceSpecificPermissionGrantItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/permission_grants/item/restore/restore_request_builder.rb b/lib/groups/item/team/permission_grants/item/restore/restore_request_builder.rb deleted file mode 100644 index c284769909..0000000000 --- a/lib/groups/item/team/permission_grants/item/restore/restore_request_builder.rb +++ /dev/null @@ -1,70 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/directory_object' -require_relative '../../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../../groups' -require_relative '../../../../item' -require_relative '../../../team' -require_relative '../../permission_grants' -require_relative '../item' -require_relative './restore' - -module MicrosoftGraph - module Groups - module Item - module Team - module PermissionGrants - module Item - module Restore - ## - # Provides operations to call the restore method. - class RestoreRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new RestoreRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants/{resourceSpecificPermissionGrant%2Did}/restore") - end - ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of directory_object - ## - def post(request_configuration=nil) - request_info = self.to_post_request_information( - request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(request_configuration=nil) - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - return request_info - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/permission_grants/permission_grants_request_builder.rb b/lib/groups/item/team/permission_grants/permission_grants_request_builder.rb index 9fa6ef247d..36b21ba452 100644 --- a/lib/groups/item/team/permission_grants/permission_grants_request_builder.rb +++ b/lib/groups/item/team/permission_grants/permission_grants_request_builder.rb @@ -7,12 +7,8 @@ require_relative '../../item' require_relative '../team' require_relative './count/count_request_builder' -require_relative './delta/delta_request_builder' -require_relative './get_available_extension_properties/get_available_extension_properties_request_builder' -require_relative './get_by_ids/get_by_ids_request_builder' require_relative './item/resource_specific_permission_grant_item_request_builder' require_relative './permission_grants' -require_relative './validate_properties/validate_properties_request_builder' module MicrosoftGraph module Groups @@ -29,26 +25,6 @@ def count() return MicrosoftGraph::Groups::Item::Team::PermissionGrants::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## - # Provides operations to call the delta method. - def delta() - return MicrosoftGraph::Groups::Item::Team::PermissionGrants::Delta::DeltaRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the getAvailableExtensionProperties method. - def get_available_extension_properties() - return MicrosoftGraph::Groups::Item::Team::PermissionGrants::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the getByIds method. - def get_by_ids() - return MicrosoftGraph::Groups::Item::Team::PermissionGrants::GetByIds::GetByIdsRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the validateProperties method. - def validate_properties() - return MicrosoftGraph::Groups::Item::Team::PermissionGrants::ValidateProperties::ValidatePropertiesRequestBuilder.new(@path_parameters, @request_adapter) - end - ## ## Provides operations to manage the permissionGrants property of the microsoft.graph.team entity. ## @param resource_specific_permission_grant_id The unique identifier of resourceSpecificPermissionGrant ## @return a resource_specific_permission_grant_item_request_builder @@ -66,10 +42,10 @@ def by_resource_specific_permission_grant_id(resource_specific_permission_grant_ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get permissionGrants from groups + ## A collection of permissions granted to apps to access the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of resource_specific_permission_grant_collection_response ## @@ -78,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ResourceSpecificPermissionGrantCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -94,26 +69,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ResourceSpecificPermissionGrant.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get permissionGrants from groups + ## A collection of permissions granted to apps to access the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -125,20 +99,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a permission_grants_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PermissionGrantsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get permissionGrants from groups + # A collection of permissions granted to apps to access the team. class PermissionGrantsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/permission_grants/validate_properties/validate_properties.rb b/lib/groups/item/team/permission_grants/validate_properties/validate_properties.rb deleted file mode 100644 index 6b178d139b..0000000000 --- a/lib/groups/item/team/permission_grants/validate_properties/validate_properties.rb +++ /dev/null @@ -1 +0,0 @@ -require_relative 'validate_properties_post_request_body' diff --git a/lib/groups/item/team/permission_grants/validate_properties/validate_properties_post_request_body.rb b/lib/groups/item/team/permission_grants/validate_properties/validate_properties_post_request_body.rb deleted file mode 100644 index ead3e1c5af..0000000000 --- a/lib/groups/item/team/permission_grants/validate_properties/validate_properties_post_request_body.rb +++ /dev/null @@ -1,154 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../team' -require_relative '../permission_grants' -require_relative './validate_properties' - -module MicrosoftGraph - module Groups - module Item - module Team - module PermissionGrants - module ValidateProperties - class ValidatePropertiesPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The displayName property - @display_name - ## - # The entityType property - @entity_type - ## - # The mailNickname property - @mail_nickname - ## - # The onBehalfOfUserId property - @on_behalf_of_user_id - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new validatePropertiesPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a validate_properties_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return ValidatePropertiesPostRequestBody.new - end - ## - ## Gets the displayName property value. The displayName property - ## @return a string - ## - def display_name - return @display_name - end - ## - ## Sets the displayName property value. The displayName property - ## @param value Value to set for the displayName property. - ## @return a void - ## - def display_name=(value) - @display_name = value - end - ## - ## Gets the entityType property value. The entityType property - ## @return a string - ## - def entity_type - return @entity_type - end - ## - ## Sets the entityType property value. The entityType property - ## @param value Value to set for the entityType property. - ## @return a void - ## - def entity_type=(value) - @entity_type = value - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "displayName" => lambda {|n| @display_name = n.get_string_value() }, - "entityType" => lambda {|n| @entity_type = n.get_string_value() }, - "mailNickname" => lambda {|n| @mail_nickname = n.get_string_value() }, - "onBehalfOfUserId" => lambda {|n| @on_behalf_of_user_id = n.get_guid_value() }, - } - end - ## - ## Gets the mailNickname property value. The mailNickname property - ## @return a string - ## - def mail_nickname - return @mail_nickname - end - ## - ## Sets the mailNickname property value. The mailNickname property - ## @param value Value to set for the mailNickname property. - ## @return a void - ## - def mail_nickname=(value) - @mail_nickname = value - end - ## - ## Gets the onBehalfOfUserId property value. The onBehalfOfUserId property - ## @return a guid - ## - def on_behalf_of_user_id - return @on_behalf_of_user_id - end - ## - ## Sets the onBehalfOfUserId property value. The onBehalfOfUserId property - ## @param value Value to set for the onBehalfOfUserId property. - ## @return a void - ## - def on_behalf_of_user_id=(value) - @on_behalf_of_user_id = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_string_value("displayName", @display_name) - writer.write_string_value("entityType", @entity_type) - writer.write_string_value("mailNickname", @mail_nickname) - writer.write_guid_value("onBehalfOfUserId", @on_behalf_of_user_id) - writer.write_additional_data(@additional_data) - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/permission_grants/validate_properties/validate_properties_request_builder.rb b/lib/groups/item/team/permission_grants/validate_properties/validate_properties_request_builder.rb deleted file mode 100644 index 3d359d996a..0000000000 --- a/lib/groups/item/team/permission_grants/validate_properties/validate_properties_request_builder.rb +++ /dev/null @@ -1,70 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../team' -require_relative '../permission_grants' -require_relative './validate_properties' - -module MicrosoftGraph - module Groups - module Item - module Team - module PermissionGrants - module ValidateProperties - ## - # Provides operations to call the validateProperties method. - class ValidatePropertiesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new ValidatePropertiesRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants/validateProperties") - end - ## - ## Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of void - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, nil, error_mapping) - end - ## - ## Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/photo/photo_request_builder.rb b/lib/groups/item/team/photo/photo_request_builder.rb index ca0d0d6c32..e9534709a2 100644 --- a/lib/groups/item/team/photo/photo_request_builder.rb +++ b/lib/groups/item/team/photo/photo_request_builder.rb @@ -29,10 +29,10 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/photo{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/photo{?%24expand,%24select}") end ## - ## Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + ## The profile photo for the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of profile_photo ## @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ProfilePhoto.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -57,26 +56,25 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ProfilePhoto.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + ## The profile photo for the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -88,20 +86,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a photo_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PhotoRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + # The profile photo for the team. class PhotoRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/photo/value/content_request_builder.rb b/lib/groups/item/team/photo/value/content_request_builder.rb index 62e5b0b69b..004b4a8e27 100644 --- a/lib/groups/item/team/photo/value/content_request_builder.rb +++ b/lib/groups/item/team/photo/value/content_request_builder.rb @@ -27,7 +27,20 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/photo/$value") end ## - ## Get media content for the navigation property photo from groups + ## The profile photo for the team. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The profile photo for the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## @@ -36,12 +49,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Update media content for the navigation property photo in groups + ## The profile photo for the team. ## @param body Binary request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary @@ -52,28 +64,45 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Get media content for the navigation property photo from groups + ## The profile photo for the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The profile photo for the team. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## - ## Update media content for the navigation property photo in groups + ## The profile photo for the team. ## @param body Binary request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -81,16 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/primary_channel/all_members/add/add.rb b/lib/groups/item/team/primary_channel/all_members/add/add.rb new file mode 100644 index 0000000000..4f4fe401db --- /dev/null +++ b/lib/groups/item/team/primary_channel/all_members/add/add.rb @@ -0,0 +1,2 @@ +require_relative 'add_post_request_body' +require_relative 'add_post_response' diff --git a/lib/groups/item/team/primary_channel/all_members/add/add_post_request_body.rb b/lib/groups/item/team/primary_channel/all_members/add/add_post_request_body.rb new file mode 100644 index 0000000000..c56a1bf83c --- /dev/null +++ b/lib/groups/item/team/primary_channel/all_members/add/add_post_request_body.rb @@ -0,0 +1,98 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/conversation_member' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../primary_channel' +require_relative '../all_members' +require_relative './add' + +module MicrosoftGraph + module Groups + module Item + module Team + module PrimaryChannel + module AllMembers + module Add + class AddPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The values property + @values + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new AddPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a add_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AddPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "values" => lambda {|n| @values = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_collection_of_object_values("values", @values) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the values property value. The values property + ## @return a conversation_member + ## + def values + return @values + end + ## + ## Sets the values property value. The values property + ## @param value Value to set for the values property. + ## @return a void + ## + def values=(value) + @values = value + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/primary_channel/all_members/add/add_post_response.rb b/lib/groups/item/team/primary_channel/all_members/add/add_post_response.rb new file mode 100644 index 0000000000..470c16abbc --- /dev/null +++ b/lib/groups/item/team/primary_channel/all_members/add/add_post_response.rb @@ -0,0 +1,81 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/action_result_part' +require_relative '../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../primary_channel' +require_relative '../all_members' +require_relative './add' + +module MicrosoftGraph + module Groups + module Item + module Team + module PrimaryChannel + module AllMembers + module Add + class AddPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new AddPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a add_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AddPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ActionResultPart.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a action_result_part + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/primary_channel/all_members/add/add_request_builder.rb b/lib/groups/item/team/primary_channel/all_members/add/add_request_builder.rb new file mode 100644 index 0000000000..5b28c2df7c --- /dev/null +++ b/lib/groups/item/team/primary_channel/all_members/add/add_request_builder.rb @@ -0,0 +1,82 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../primary_channel' +require_relative '../all_members' +require_relative './add' + +module MicrosoftGraph + module Groups + module Item + module Team + module PrimaryChannel + module AllMembers + module Add + ## + # Provides operations to call the add method. + class AddRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new AddRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/allMembers/add") + end + ## + ## Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of add_post_response + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::PrimaryChannel::AllMembers::Add::AddPostResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/primary_channel/all_members/all_members.rb b/lib/groups/item/team/primary_channel/all_members/all_members.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/team/primary_channel/all_members/all_members_request_builder.rb b/lib/groups/item/team/primary_channel/all_members/all_members_request_builder.rb new file mode 100644 index 0000000000..ea2bac8183 --- /dev/null +++ b/lib/groups/item/team/primary_channel/all_members/all_members_request_builder.rb @@ -0,0 +1,200 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/conversation_member' +require_relative '../../../../../models/conversation_member_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../team' +require_relative '../primary_channel' +require_relative './add/add_request_builder' +require_relative './all_members' +require_relative './count/count_request_builder' +require_relative './item/conversation_member_item_request_builder' +require_relative './remove/remove_request_builder' + +module MicrosoftGraph + module Groups + module Item + module Team + module PrimaryChannel + module AllMembers + ## + # Provides operations to manage the allMembers property of the microsoft.graph.channel entity. + class AllMembersRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the add method. + def add() + return MicrosoftGraph::Groups::Item::Team::PrimaryChannel::AllMembers::Add::AddRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::Team::PrimaryChannel::AllMembers::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the remove method. + def remove() + return MicrosoftGraph::Groups::Item::Team::PrimaryChannel::AllMembers::Remove::RemoveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the allMembers property of the microsoft.graph.channel entity. + ## @param conversation_member_id The unique identifier of conversationMember + ## @return a conversation_member_item_request_builder + ## + def by_conversation_member_id(conversation_member_id) + raise StandardError, 'conversation_member_id cannot be null' if conversation_member_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["conversationMember%2Did"] = conversation_member_id + return MicrosoftGraph::Groups::Item::Team::PrimaryChannel::AllMembers::Item::ConversationMemberItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AllMembersRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/allMembers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of conversation_member_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMemberCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to allMembers for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of conversation_member + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to allMembers for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a all_members_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AllMembersRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + class AllMembersRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/primary_channel/all_members/count/count.rb b/lib/groups/item/team/primary_channel/all_members/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/team/primary_channel/all_members/count/count_request_builder.rb b/lib/groups/item/team/primary_channel/all_members/count/count_request_builder.rb new file mode 100644 index 0000000000..147b1a26e0 --- /dev/null +++ b/lib/groups/item/team/primary_channel/all_members/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../primary_channel' +require_relative '../all_members' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module Team + module PrimaryChannel + module AllMembers + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/allMembers/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/primary_channel/all_members/item/conversation_member_item_request_builder.rb b/lib/groups/item/team/primary_channel/all_members/item/conversation_member_item_request_builder.rb new file mode 100644 index 0000000000..e19956b226 --- /dev/null +++ b/lib/groups/item/team/primary_channel/all_members/item/conversation_member_item_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/conversation_member' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../primary_channel' +require_relative '../all_members' +require_relative './item' + +module MicrosoftGraph + module Groups + module Item + module Team + module PrimaryChannel + module AllMembers + module Item + ## + # Provides operations to manage the allMembers property of the microsoft.graph.channel entity. + class ConversationMemberItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ConversationMemberItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/allMembers/{conversationMember%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property allMembers for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of conversation_member + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property allMembers in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of conversation_member + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property allMembers for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property allMembers in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a conversation_member_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConversationMemberItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + class ConversationMemberItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/primary_channel/all_members/item/item.rb b/lib/groups/item/team/primary_channel/all_members/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/team/primary_channel/all_members/remove/remove.rb b/lib/groups/item/team/primary_channel/all_members/remove/remove.rb new file mode 100644 index 0000000000..95c14f7d89 --- /dev/null +++ b/lib/groups/item/team/primary_channel/all_members/remove/remove.rb @@ -0,0 +1,2 @@ +require_relative 'remove_post_request_body' +require_relative 'remove_post_response' diff --git a/lib/groups/item/team/primary_channel/all_members/remove/remove_post_request_body.rb b/lib/groups/item/team/primary_channel/all_members/remove/remove_post_request_body.rb new file mode 100644 index 0000000000..64755a3258 --- /dev/null +++ b/lib/groups/item/team/primary_channel/all_members/remove/remove_post_request_body.rb @@ -0,0 +1,98 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/conversation_member' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../primary_channel' +require_relative '../all_members' +require_relative './remove' + +module MicrosoftGraph + module Groups + module Item + module Team + module PrimaryChannel + module AllMembers + module Remove + class RemovePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The values property + @values + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new RemovePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a remove_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return RemovePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "values" => lambda {|n| @values = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_collection_of_object_values("values", @values) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the values property value. The values property + ## @return a conversation_member + ## + def values + return @values + end + ## + ## Sets the values property value. The values property + ## @param value Value to set for the values property. + ## @return a void + ## + def values=(value) + @values = value + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/primary_channel/all_members/remove/remove_post_response.rb b/lib/groups/item/team/primary_channel/all_members/remove/remove_post_response.rb new file mode 100644 index 0000000000..d9ff385443 --- /dev/null +++ b/lib/groups/item/team/primary_channel/all_members/remove/remove_post_response.rb @@ -0,0 +1,81 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/action_result_part' +require_relative '../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../primary_channel' +require_relative '../all_members' +require_relative './remove' + +module MicrosoftGraph + module Groups + module Item + module Team + module PrimaryChannel + module AllMembers + module Remove + class RemovePostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new RemovePostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a remove_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return RemovePostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ActionResultPart.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a action_result_part + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/primary_channel/all_members/remove/remove_request_builder.rb b/lib/groups/item/team/primary_channel/all_members/remove/remove_request_builder.rb new file mode 100644 index 0000000000..e1455cc8fb --- /dev/null +++ b/lib/groups/item/team/primary_channel/all_members/remove/remove_request_builder.rb @@ -0,0 +1,82 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../primary_channel' +require_relative '../all_members' +require_relative './remove' + +module MicrosoftGraph + module Groups + module Item + module Team + module PrimaryChannel + module AllMembers + module Remove + ## + # Provides operations to call the remove method. + class RemoveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RemoveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/allMembers/remove") + end + ## + ## Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of remove_post_response + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::PrimaryChannel::AllMembers::Remove::RemovePostResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a remove_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RemoveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/primary_channel/archive/archive.rb b/lib/groups/item/team/primary_channel/archive/archive.rb new file mode 100644 index 0000000000..8746e0f932 --- /dev/null +++ b/lib/groups/item/team/primary_channel/archive/archive.rb @@ -0,0 +1 @@ +require_relative 'archive_post_request_body' diff --git a/lib/groups/item/team/primary_channel/archive/archive_post_request_body.rb b/lib/groups/item/team/primary_channel/archive/archive_post_request_body.rb new file mode 100644 index 0000000000..7ec15c56a2 --- /dev/null +++ b/lib/groups/item/team/primary_channel/archive/archive_post_request_body.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../team' +require_relative '../primary_channel' +require_relative './archive' + +module MicrosoftGraph + module Groups + module Item + module Team + module PrimaryChannel + module Archive + class ArchivePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The shouldSetSpoSiteReadOnlyForMembers property + @should_set_spo_site_read_only_for_members + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new ArchivePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a archive_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ArchivePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "shouldSetSpoSiteReadOnlyForMembers" => lambda {|n| @should_set_spo_site_read_only_for_members = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("shouldSetSpoSiteReadOnlyForMembers", @should_set_spo_site_read_only_for_members) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + ## @return a boolean + ## + def should_set_spo_site_read_only_for_members + return @should_set_spo_site_read_only_for_members + end + ## + ## Sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + ## @param value Value to set for the shouldSetSpoSiteReadOnlyForMembers property. + ## @return a void + ## + def should_set_spo_site_read_only_for_members=(value) + @should_set_spo_site_read_only_for_members = value + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/primary_channel/archive/archive_request_builder.rb b/lib/groups/item/team/primary_channel/archive/archive_request_builder.rb new file mode 100644 index 0000000000..eb06461a2b --- /dev/null +++ b/lib/groups/item/team/primary_channel/archive/archive_request_builder.rb @@ -0,0 +1,79 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../team' +require_relative '../primary_channel' +require_relative './archive' + +module MicrosoftGraph + module Groups + module Item + module Team + module PrimaryChannel + module Archive + ## + # Provides operations to call the archive method. + class ArchiveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ArchiveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/archive") + end + ## + ## Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a archive_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ArchiveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/primary_channel/complete_migration/complete_migration_request_builder.rb b/lib/groups/item/team/primary_channel/complete_migration/complete_migration_request_builder.rb index 098ea27ce2..f0f9d68c8e 100644 --- a/lib/groups/item/team/primary_channel/complete_migration/complete_migration_request_builder.rb +++ b/lib/groups/item/team/primary_channel/complete_migration/complete_migration_request_builder.rb @@ -27,7 +27,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/completeMigration") end ## - ## Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + ## Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -36,26 +36,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + ## Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a complete_migration_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CompleteMigrationRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/primary_channel/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/05c96069a5812796d8509d2a373d51b45576f890a75791804c30dac27dbb20ee.rb b/lib/groups/item/team/primary_channel/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/05c96069a5812796d8509d2a373d51b45576f890a75791804c30dac27dbb20ee.rb index 47cf3e707f..4cdc628a5f 100644 --- a/lib/groups/item/team/primary_channel/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/05c96069a5812796d8509d2a373d51b45576f890a75791804c30dac27dbb20ee.rb +++ b/lib/groups/item/team/primary_channel/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/05c96069a5812796d8509d2a373d51b45576f890a75791804c30dac27dbb20ee.rb @@ -1 +1 @@ -require_relative 'c41596d4fbffe103bb724f3952f09f0aa3c5ec4e2176790cca62f27819ff9897' +require_relative 'b6b8a966c95935c48ba2a17de8bf30ceaf33edf6838823bb42a08f2563440049' diff --git a/lib/groups/item/team/primary_channel/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/732db1068832007d49ec9b451d8ca1cfd0136d0663ec94246815c75150bfdfa9.rb b/lib/groups/item/team/primary_channel/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/732db1068832007d49ec9b451d8ca1cfd0136d0663ec94246815c75150bfdfa9.rb index b14ad757f6..9dfde17a7b 100644 --- a/lib/groups/item/team/primary_channel/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/732db1068832007d49ec9b451d8ca1cfd0136d0663ec94246815c75150bfdfa9.rb +++ b/lib/groups/item/team/primary_channel/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/732db1068832007d49ec9b451d8ca1cfd0136d0663ec94246815c75150bfdfa9.rb @@ -24,43 +24,51 @@ class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincip ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/doesUserHaveAccess(userId='@userId',tenantId='@tenantId',userPrincipalName='@userPrincipalName'){?userId*,tenantId*,userPrincipalName*}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/doesUserHaveAccess(userId='@userId',tenantId='@tenantId',userPrincipalName='@userPrincipalName'){?tenantId*,userId*,userPrincipalName*}") end ## - ## Invoke function doesUserHaveAccess + ## Determine whether a user has access to a shared channel. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_response + ## @return a Fiber of does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::PrimaryChannel::DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName::DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::PrimaryChannel::DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName::DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function doesUserHaveAccess + ## Determine whether a user has access to a shared channel. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function doesUserHaveAccess + # Determine whether a user has access to a shared channel. class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/primary_channel/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/b6b8a966c95935c48ba2a17de8bf30ceaf33edf6838823bb42a08f2563440049.rb b/lib/groups/item/team/primary_channel/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/b6b8a966c95935c48ba2a17de8bf30ceaf33edf6838823bb42a08f2563440049.rb new file mode 100644 index 0000000000..c4a0cc786b --- /dev/null +++ b/lib/groups/item/team/primary_channel/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/b6b8a966c95935c48ba2a17de8bf30ceaf33edf6838823bb42a08f2563440049.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../team' +require_relative '../primary_channel' +require_relative './05c96069a5812796d8509d2a373d51b45576f890a75791804c30dac27dbb20ee' + +module MicrosoftGraph + module Groups + module Item + module Team + module PrimaryChannel + module DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName + class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a boolean + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/primary_channel/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/c41596d4fbffe103bb724f3952f09f0aa3c5ec4e2176790cca62f27819ff9897.rb b/lib/groups/item/team/primary_channel/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/c41596d4fbffe103bb724f3952f09f0aa3c5ec4e2176790cca62f27819ff9897.rb deleted file mode 100644 index 6d2b48a29d..0000000000 --- a/lib/groups/item/team/primary_channel/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/c41596d4fbffe103bb724f3952f09f0aa3c5ec4e2176790cca62f27819ff9897.rb +++ /dev/null @@ -1,94 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../groups' -require_relative '../../../item' -require_relative '../../team' -require_relative '../primary_channel' -require_relative './05c96069a5812796d8509d2a373d51b45576f890a75791804c30dac27dbb20ee' - -module MicrosoftGraph - module Groups - module Item - module Team - module PrimaryChannel - module DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName - class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The value property - @value - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "value" => lambda {|n| @value = n.get_boolean_value() }, - } - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("value", @value) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the value property value. The value property - ## @return a boolean - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/primary_channel/files_folder/content/content_request_builder.rb b/lib/groups/item/team/primary_channel/files_folder/content/content_request_builder.rb index 2b747e56f9..e9044383a4 100644 --- a/lib/groups/item/team/primary_channel/files_folder/content/content_request_builder.rb +++ b/lib/groups/item/team/primary_channel/files_folder/content/content_request_builder.rb @@ -27,7 +27,20 @@ class ContentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/filesFolder/content") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/filesFolder/content{?%24format*}") + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) end ## ## The content stream, if the item represents a file. @@ -39,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## @@ -55,8 +67,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,15 +75,34 @@ def put(body, request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The content stream, if the item represents a file. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## @@ -84,17 +114,49 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The content stream, if the item represents a file. + class ContentRequestBuilderGetQueryParameters + + ## + # Format of the content + attr_accessor :format + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "format" + return "%24format" + else + return original_name + end + end + end end end end diff --git a/lib/groups/item/team/primary_channel/files_folder/files_folder_request_builder.rb b/lib/groups/item/team/primary_channel/files_folder/files_folder_request_builder.rb index 1b0f9399b5..02d90d50da 100644 --- a/lib/groups/item/team/primary_channel/files_folder/files_folder_request_builder.rb +++ b/lib/groups/item/team/primary_channel/files_folder/files_folder_request_builder.rb @@ -31,10 +31,10 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/filesFolder{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/filesFolder{?%24expand,%24select}") end ## - ## Get the metadata for the location where the files of a channel are stored. + ## Metadata for the location where the channel's files are stored. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of drive_item ## @@ -43,31 +43,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the metadata for the location where the files of a channel are stored. + ## Metadata for the location where the channel's files are stored. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a files_folder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilesFolderRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the metadata for the location where the files of a channel are stored. + # Metadata for the location where the channel's files are stored. class FilesFolderRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/primary_channel/members/add/add.rb b/lib/groups/item/team/primary_channel/members/add/add.rb index 629ad98abe..4f4fe401db 100644 --- a/lib/groups/item/team/primary_channel/members/add/add.rb +++ b/lib/groups/item/team/primary_channel/members/add/add.rb @@ -1,2 +1,2 @@ require_relative 'add_post_request_body' -require_relative 'add_response' +require_relative 'add_post_response' diff --git a/lib/groups/item/team/primary_channel/members/add/add_post_request_body.rb b/lib/groups/item/team/primary_channel/members/add/add_post_request_body.rb index f2c934adaf..c03fda7338 100644 --- a/lib/groups/item/team/primary_channel/members/add/add_post_request_body.rb +++ b/lib/groups/item/team/primary_channel/members/add/add_post_request_body.rb @@ -24,22 +24,22 @@ class AddPostRequestBody # The values property @values ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new addPostRequestBody and sets the default values. + ## Instantiates a new AddPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/team/primary_channel/members/add/add_post_response.rb b/lib/groups/item/team/primary_channel/members/add/add_post_response.rb new file mode 100644 index 0000000000..3b965b666c --- /dev/null +++ b/lib/groups/item/team/primary_channel/members/add/add_post_response.rb @@ -0,0 +1,81 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/action_result_part' +require_relative '../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../primary_channel' +require_relative '../members' +require_relative './add' + +module MicrosoftGraph + module Groups + module Item + module Team + module PrimaryChannel + module Members + module Add + class AddPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new AddPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a add_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AddPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ActionResultPart.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a action_result_part + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/primary_channel/members/add/add_request_builder.rb b/lib/groups/item/team/primary_channel/members/add/add_request_builder.rb index eed1280e13..1fc6006600 100644 --- a/lib/groups/item/team/primary_channel/members/add/add_request_builder.rb +++ b/lib/groups/item/team/primary_channel/members/add/add_request_builder.rb @@ -32,7 +32,7 @@ def initialize(path_parameters, request_adapter) ## Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of add_response + ## @return a Fiber of add_post_response ## def post(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? @@ -40,9 +40,8 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::PrimaryChannel::Members::Add::AddResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::PrimaryChannel::Members::Add::AddPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. @@ -53,17 +52,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a add_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AddRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/primary_channel/members/add/add_response.rb b/lib/groups/item/team/primary_channel/members/add/add_response.rb deleted file mode 100644 index 4a7de0d2ab..0000000000 --- a/lib/groups/item/team/primary_channel/members/add/add_response.rb +++ /dev/null @@ -1,81 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/action_result_part' -require_relative '../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../groups' -require_relative '../../../../item' -require_relative '../../../team' -require_relative '../../primary_channel' -require_relative '../members' -require_relative './add' - -module MicrosoftGraph - module Groups - module Item - module Team - module PrimaryChannel - module Members - module Add - class AddResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new addResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a add_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return AddResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ActionResultPart.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a action_result_part - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/primary_channel/members/count/count_request_builder.rb b/lib/groups/item/team/primary_channel/members/count/count_request_builder.rb index dfdb35e803..67e71bfbe7 100644 --- a/lib/groups/item/team/primary_channel/members/count/count_request_builder.rb +++ b/lib/groups/item/team/primary_channel/members/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/members/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/members/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/primary_channel/members/item/conversation_member_item_request_builder.rb b/lib/groups/item/team/primary_channel/members/item/conversation_member_item_request_builder.rb index a6ca4fc4a8..7327c39bd1 100644 --- a/lib/groups/item/team/primary_channel/members/item/conversation_member_item_request_builder.rb +++ b/lib/groups/item/team/primary_channel/members/item/conversation_member_item_request_builder.rb @@ -27,10 +27,10 @@ class ConversationMemberItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReq ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/members/{conversationMember%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/members/{conversationMember%2Did}{?%24expand,%24select}") end ## - ## Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + ## Delete navigation property members for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -39,12 +39,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get a conversationMember from a channel. + ## A collection of membership records associated with the channel. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of conversation_member ## @@ -53,12 +52,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the role of a conversationMember in a team or channel. + ## Update the navigation property members in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of conversation_member @@ -69,46 +67,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + ## Delete navigation property members for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get a conversationMember from a channel. + ## A collection of membership records associated with the channel. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the role of a conversationMember in a team or channel. + ## Update the navigation property members in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -116,20 +114,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a conversation_member_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConversationMemberItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a conversationMember from a channel. + # A collection of membership records associated with the channel. class ConversationMemberItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/primary_channel/members/members_request_builder.rb b/lib/groups/item/team/primary_channel/members/members_request_builder.rb index 6a9f48e86a..2d96659d06 100644 --- a/lib/groups/item/team/primary_channel/members/members_request_builder.rb +++ b/lib/groups/item/team/primary_channel/members/members_request_builder.rb @@ -11,6 +11,7 @@ require_relative './count/count_request_builder' require_relative './item/conversation_member_item_request_builder' require_relative './members' +require_relative './remove/remove_request_builder' module MicrosoftGraph module Groups @@ -33,6 +34,11 @@ def count() return MicrosoftGraph::Groups::Item::Team::PrimaryChannel::Members::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the remove method. + def remove() + return MicrosoftGraph::Groups::Item::Team::PrimaryChannel::Members::Remove::RemoveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Provides operations to manage the members property of the microsoft.graph.channel entity. ## @param conversation_member_id The unique identifier of conversationMember ## @return a conversation_member_item_request_builder @@ -50,10 +56,10 @@ def by_conversation_member_id(conversation_member_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/members{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + ## A collection of membership records associated with the channel. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of conversation_member_collection_response ## @@ -62,12 +68,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMemberCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + ## Create new navigation property to members for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of conversation_member @@ -78,30 +83,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + ## A collection of membership records associated with the channel. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + ## Create new navigation property to members for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -109,20 +113,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a members_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MembersRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + # A collection of membership records associated with the channel. class MembersRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/primary_channel/members/remove/remove.rb b/lib/groups/item/team/primary_channel/members/remove/remove.rb new file mode 100644 index 0000000000..95c14f7d89 --- /dev/null +++ b/lib/groups/item/team/primary_channel/members/remove/remove.rb @@ -0,0 +1,2 @@ +require_relative 'remove_post_request_body' +require_relative 'remove_post_response' diff --git a/lib/groups/item/team/primary_channel/members/remove/remove_post_request_body.rb b/lib/groups/item/team/primary_channel/members/remove/remove_post_request_body.rb new file mode 100644 index 0000000000..b2e62f7d7a --- /dev/null +++ b/lib/groups/item/team/primary_channel/members/remove/remove_post_request_body.rb @@ -0,0 +1,98 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/conversation_member' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../primary_channel' +require_relative '../members' +require_relative './remove' + +module MicrosoftGraph + module Groups + module Item + module Team + module PrimaryChannel + module Members + module Remove + class RemovePostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The values property + @values + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new RemovePostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a remove_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return RemovePostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "values" => lambda {|n| @values = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_collection_of_object_values("values", @values) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the values property value. The values property + ## @return a conversation_member + ## + def values + return @values + end + ## + ## Sets the values property value. The values property + ## @param value Value to set for the values property. + ## @return a void + ## + def values=(value) + @values = value + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/primary_channel/members/remove/remove_post_response.rb b/lib/groups/item/team/primary_channel/members/remove/remove_post_response.rb new file mode 100644 index 0000000000..418e97e51b --- /dev/null +++ b/lib/groups/item/team/primary_channel/members/remove/remove_post_response.rb @@ -0,0 +1,81 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/action_result_part' +require_relative '../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../primary_channel' +require_relative '../members' +require_relative './remove' + +module MicrosoftGraph + module Groups + module Item + module Team + module PrimaryChannel + module Members + module Remove + class RemovePostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new RemovePostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a remove_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return RemovePostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ActionResultPart.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a action_result_part + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/primary_channel/members/remove/remove_request_builder.rb b/lib/groups/item/team/primary_channel/members/remove/remove_request_builder.rb new file mode 100644 index 0000000000..e5d1e42df7 --- /dev/null +++ b/lib/groups/item/team/primary_channel/members/remove/remove_request_builder.rb @@ -0,0 +1,82 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../primary_channel' +require_relative '../members' +require_relative './remove' + +module MicrosoftGraph + module Groups + module Item + module Team + module PrimaryChannel + module Members + module Remove + ## + # Provides operations to call the remove method. + class RemoveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RemoveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/members/remove") + end + ## + ## Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of remove_post_response + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::PrimaryChannel::Members::Remove::RemovePostResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a remove_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RemoveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/primary_channel/messages/count/count_request_builder.rb b/lib/groups/item/team/primary_channel/messages/count/count_request_builder.rb index 55030c88a0..409bff21f9 100644 --- a/lib/groups/item/team/primary_channel/messages/count/count_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/primary_channel/messages/delta/delta.rb b/lib/groups/item/team/primary_channel/messages/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/groups/item/team/primary_channel/messages/delta/delta.rb +++ b/lib/groups/item/team/primary_channel/messages/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/groups/item/team/primary_channel/messages/delta/delta_get_response.rb b/lib/groups/item/team/primary_channel/messages/delta/delta_get_response.rb new file mode 100644 index 0000000000..191c54b3ad --- /dev/null +++ b/lib/groups/item/team/primary_channel/messages/delta/delta_get_response.rb @@ -0,0 +1,81 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/base_delta_function_response' +require_relative '../../../../../../models/chat_message' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../primary_channel' +require_relative '../messages' +require_relative './delta' + +module MicrosoftGraph + module Groups + module Item + module Team + module PrimaryChannel + module Messages + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a chat_message + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/primary_channel/messages/delta/delta_request_builder.rb b/lib/groups/item/team/primary_channel/messages/delta/delta_request_builder.rb index 807dd86be8..9feaadb1cd 100644 --- a/lib/groups/item/team/primary_channel/messages/delta/delta_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/delta/delta_request_builder.rb @@ -26,49 +26,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::PrimaryChannel::Messages::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::PrimaryChannel::Messages::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. class DeltaRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -96,6 +107,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/team/primary_channel/messages/delta/delta_response.rb b/lib/groups/item/team/primary_channel/messages/delta/delta_response.rb deleted file mode 100644 index 13f0cdcb0c..0000000000 --- a/lib/groups/item/team/primary_channel/messages/delta/delta_response.rb +++ /dev/null @@ -1,81 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/base_delta_function_response' -require_relative '../../../../../../models/chat_message' -require_relative '../../../../../groups' -require_relative '../../../../item' -require_relative '../../../team' -require_relative '../../primary_channel' -require_relative '../messages' -require_relative './delta' - -module MicrosoftGraph - module Groups - module Item - module Team - module PrimaryChannel - module Messages - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a chat_message - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/primary_channel/messages/item/chat_message_item_request_builder.rb b/lib/groups/item/team/primary_channel/messages/item/chat_message_item_request_builder.rb index 008e543ce4..c21bd56ffc 100644 --- a/lib/groups/item/team/primary_channel/messages/item/chat_message_item_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/item/chat_message_item_request_builder.rb @@ -63,7 +63,7 @@ def unset_reaction() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}{?%24expand,%24select}") end ## ## Delete navigation property messages for groups @@ -75,12 +75,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve a single message or a message reply in a channel or a chat. + ## A collection of all the messages in the channel. A navigation property. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message ## @@ -89,12 +88,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + ## Update the navigation property messages in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -105,8 +103,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -116,35 +113,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve a single message or a message reply in a channel or a chat. + ## A collection of all the messages in the channel. A navigation property. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + ## Update the navigation property messages in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -152,20 +150,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a chat_message_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChatMessageItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a single message or a message reply in a channel or a chat. + # A collection of all the messages in the channel. A navigation property. Nullable. class ChatMessageItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/primary_channel/messages/item/hosted_contents/count/count_request_builder.rb b/lib/groups/item/team/primary_channel/messages/item/hosted_contents/count/count_request_builder.rb index 65c9702f77..d8ac8cf21c 100644 --- a/lib/groups/item/team/primary_channel/messages/item/hosted_contents/count/count_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/item/hosted_contents/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/hostedContents/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/hostedContents/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/primary_channel/messages/item/hosted_contents/hosted_contents_request_builder.rb b/lib/groups/item/team/primary_channel/messages/item/hosted_contents/hosted_contents_request_builder.rb index e03d41ae69..cc33ba6f8d 100644 --- a/lib/groups/item/team/primary_channel/messages/item/hosted_contents/hosted_contents_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/item/hosted_contents/hosted_contents_request_builder.rb @@ -48,10 +48,10 @@ def by_chat_message_hosted_content_id(chat_message_hosted_content_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/hostedContents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message_hosted_content_collection_response ## @@ -60,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,26 +75,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -107,20 +105,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a hosted_contents_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HostedContentsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + # Content in a message hosted by Microsoft Teams - for example, images or code snippets. class HostedContentsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/primary_channel/messages/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb b/lib/groups/item/team/primary_channel/messages/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb index 3e186097f9..ef7de13743 100644 --- a/lib/groups/item/team/primary_channel/messages/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb @@ -37,7 +37,7 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}{?%24expand,%24select}") end ## ## Delete navigation property hostedContents for groups @@ -49,12 +49,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of chatMessageHostedContent object. + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message_hosted_content ## @@ -63,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,8 +77,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,31 +87,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of chatMessageHostedContent object. + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,20 +124,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a chat_message_hosted_content_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChatMessageHostedContentItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of chatMessageHostedContent object. + # Content in a message hosted by Microsoft Teams - for example, images or code snippets. class ChatMessageHostedContentItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/primary_channel/messages/item/hosted_contents/item/value/content_request_builder.rb b/lib/groups/item/team/primary_channel/messages/item/hosted_contents/item/value/content_request_builder.rb index b9dfe460db..cb694fb922 100644 --- a/lib/groups/item/team/primary_channel/messages/item/hosted_contents/item/value/content_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/item/hosted_contents/item/value/content_request_builder.rb @@ -35,7 +35,20 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value") end ## - ## Get media content for the navigation property hostedContents from groups + ## The unique identifier for an entity. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The unique identifier for an entity. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## @@ -44,12 +57,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Update media content for the navigation property hostedContents in groups + ## The unique identifier for an entity. Read-only. ## @param body Binary request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary @@ -60,28 +72,45 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Get media content for the navigation property hostedContents from groups + ## The unique identifier for an entity. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The unique identifier for an entity. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## - ## Update media content for the navigation property hostedContents in groups + ## The unique identifier for an entity. Read-only. ## @param body Binary request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -89,16 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/primary_channel/messages/item/replies/count/count_request_builder.rb b/lib/groups/item/team/primary_channel/messages/item/replies/count/count_request_builder.rb index d7be2f22f0..8d9a927930 100644 --- a/lib/groups/item/team/primary_channel/messages/item/replies/count/count_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/item/replies/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/primary_channel/messages/item/replies/delta/delta.rb b/lib/groups/item/team/primary_channel/messages/item/replies/delta/delta.rb index 0c348d20cb..8a3dc08b72 100644 --- a/lib/groups/item/team/primary_channel/messages/item/replies/delta/delta.rb +++ b/lib/groups/item/team/primary_channel/messages/item/replies/delta/delta.rb @@ -1 +1 @@ -require_relative 'delta_response' +require_relative 'delta_get_response' diff --git a/lib/groups/item/team/primary_channel/messages/item/replies/delta/delta_get_response.rb b/lib/groups/item/team/primary_channel/messages/item/replies/delta/delta_get_response.rb new file mode 100644 index 0000000000..64884d7bd0 --- /dev/null +++ b/lib/groups/item/team/primary_channel/messages/item/replies/delta/delta_get_response.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/base_delta_function_response' +require_relative '../../../../../../../../models/chat_message' +require_relative '../../../../../../../groups' +require_relative '../../../../../../item' +require_relative '../../../../../team' +require_relative '../../../../primary_channel' +require_relative '../../../messages' +require_relative '../../item' +require_relative '../replies' +require_relative './delta' + +module MicrosoftGraph + module Groups + module Item + module Team + module PrimaryChannel + module Messages + module Item + module Replies + module Delta + class DeltaGetResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeltaGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a delta_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a chat_message + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/primary_channel/messages/item/replies/delta/delta_request_builder.rb b/lib/groups/item/team/primary_channel/messages/item/replies/delta/delta_request_builder.rb index 7660541252..1820c540e5 100644 --- a/lib/groups/item/team/primary_channel/messages/item/replies/delta/delta_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/item/replies/delta/delta_request_builder.rb @@ -30,49 +30,60 @@ class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function delta + ## Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response + ## @return a Fiber of delta_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::PrimaryChannel::Messages::Item::Replies::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Groups::Item::Team::PrimaryChannel::Messages::Item::Replies::Delta::DeltaGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function delta + ## Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a delta_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DeltaRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function delta + # Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. class DeltaRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -100,6 +111,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/team/primary_channel/messages/item/replies/delta/delta_response.rb b/lib/groups/item/team/primary_channel/messages/item/replies/delta/delta_response.rb deleted file mode 100644 index 2462648c03..0000000000 --- a/lib/groups/item/team/primary_channel/messages/item/replies/delta/delta_response.rb +++ /dev/null @@ -1,87 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../models/base_delta_function_response' -require_relative '../../../../../../../../models/chat_message' -require_relative '../../../../../../../groups' -require_relative '../../../../../../item' -require_relative '../../../../../team' -require_relative '../../../../primary_channel' -require_relative '../../../messages' -require_relative '../../item' -require_relative '../replies' -require_relative './delta' - -module MicrosoftGraph - module Groups - module Item - module Team - module PrimaryChannel - module Messages - module Item - module Replies - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a chat_message - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end - end -end diff --git a/lib/groups/item/team/primary_channel/messages/item/replies/item/chat_message_item_request_builder.rb b/lib/groups/item/team/primary_channel/messages/item/replies/item/chat_message_item_request_builder.rb index b3704e7ef7..1e74db3fa5 100644 --- a/lib/groups/item/team/primary_channel/messages/item/replies/item/chat_message_item_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/item/replies/item/chat_message_item_request_builder.rb @@ -61,7 +61,7 @@ def unset_reaction() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}{?%24expand,%24select}") end ## ## Delete navigation property replies for groups @@ -73,12 +73,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve a single message or a message reply in a channel or a chat. + ## Replies for a specified message. Supports $expand for channel messages. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message ## @@ -87,8 +86,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -103,8 +101,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -114,31 +111,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve a single message or a message reply in a channel or a chat. + ## Replies for a specified message. Supports $expand for channel messages. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -150,20 +148,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a chat_message_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChatMessageItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a single message or a message reply in a channel or a chat. + # Replies for a specified message. Supports $expand for channel messages. class ChatMessageItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/primary_channel/messages/item/replies/item/hosted_contents/count/count_request_builder.rb b/lib/groups/item/team/primary_channel/messages/item/replies/item/hosted_contents/count/count_request_builder.rb index ad15bc9fd6..0883d26d66 100644 --- a/lib/groups/item/team/primary_channel/messages/item/replies/item/hosted_contents/count/count_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/item/replies/item/hosted_contents/count/count_request_builder.rb @@ -34,7 +34,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -46,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -57,17 +56,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/primary_channel/messages/item/replies/item/hosted_contents/hosted_contents_request_builder.rb b/lib/groups/item/team/primary_channel/messages/item/replies/item/hosted_contents/hosted_contents_request_builder.rb index 046f3bffaa..55e6f98978 100644 --- a/lib/groups/item/team/primary_channel/messages/item/replies/item/hosted_contents/hosted_contents_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/item/replies/item/hosted_contents/hosted_contents_request_builder.rb @@ -52,10 +52,10 @@ def by_chat_message_hosted_content_id(chat_message_hosted_content_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message_hosted_content_collection_response ## @@ -64,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,26 +79,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -111,20 +109,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a hosted_contents_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HostedContentsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + # Content in a message hosted by Microsoft Teams - for example, images or code snippets. class HostedContentsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/primary_channel/messages/item/replies/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb b/lib/groups/item/team/primary_channel/messages/item/replies/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb index f111fe2eef..77571a751d 100644 --- a/lib/groups/item/team/primary_channel/messages/item/replies/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/item/replies/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb @@ -41,7 +41,7 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}{?%24expand,%24select}") end ## ## Delete navigation property hostedContents for groups @@ -53,12 +53,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of chatMessageHostedContent object. + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message_hosted_content ## @@ -67,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,8 +81,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -94,31 +91,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of chatMessageHostedContent object. + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -130,20 +128,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a chat_message_hosted_content_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ChatMessageHostedContentItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of chatMessageHostedContent object. + # Content in a message hosted by Microsoft Teams - for example, images or code snippets. class ChatMessageHostedContentItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/primary_channel/messages/item/replies/item/hosted_contents/item/value/content_request_builder.rb b/lib/groups/item/team/primary_channel/messages/item/replies/item/hosted_contents/item/value/content_request_builder.rb index ea325b4c18..ea9d503822 100644 --- a/lib/groups/item/team/primary_channel/messages/item/replies/item/hosted_contents/item/value/content_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/item/replies/item/hosted_contents/item/value/content_request_builder.rb @@ -39,7 +39,20 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value") end ## - ## Get media content for the navigation property hostedContents from groups + ## The unique identifier for an entity. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The unique identifier for an entity. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## @@ -48,12 +61,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Update media content for the navigation property hostedContents in groups + ## The unique identifier for an entity. Read-only. ## @param body Binary request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary @@ -64,28 +76,45 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Get media content for the navigation property hostedContents from groups + ## The unique identifier for an entity. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The unique identifier for an entity. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## - ## Update media content for the navigation property hostedContents in groups + ## The unique identifier for an entity. Read-only. ## @param body Binary request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -93,16 +122,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/primary_channel/messages/item/replies/item/set_reaction/set_reaction_post_request_body.rb b/lib/groups/item/team/primary_channel/messages/item/replies/item/set_reaction/set_reaction_post_request_body.rb index 612b370f9e..5684e8dd79 100644 --- a/lib/groups/item/team/primary_channel/messages/item/replies/item/set_reaction/set_reaction_post_request_body.rb +++ b/lib/groups/item/team/primary_channel/messages/item/replies/item/set_reaction/set_reaction_post_request_body.rb @@ -29,22 +29,22 @@ class SetReactionPostRequestBody # The reactionType property @reaction_type ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new setReactionPostRequestBody and sets the default values. + ## Instantiates a new SetReactionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/team/primary_channel/messages/item/replies/item/set_reaction/set_reaction_request_builder.rb b/lib/groups/item/team/primary_channel/messages/item/replies/item/set_reaction/set_reaction_request_builder.rb index 60109959d4..409f1cbcc7 100644 --- a/lib/groups/item/team/primary_channel/messages/item/replies/item/set_reaction/set_reaction_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/item/replies/item/set_reaction/set_reaction_request_builder.rb @@ -46,8 +46,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,16 +58,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_reaction_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetReactionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/primary_channel/messages/item/replies/item/soft_delete/soft_delete_request_builder.rb b/lib/groups/item/team/primary_channel/messages/item/replies/item/soft_delete/soft_delete_request_builder.rb index 61f7b7b7f7..1357271d2e 100644 --- a/lib/groups/item/team/primary_channel/messages/item/replies/item/soft_delete/soft_delete_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/item/replies/item/soft_delete/soft_delete_request_builder.rb @@ -44,8 +44,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,15 +54,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a soft_delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SoftDeleteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/primary_channel/messages/item/replies/item/undo_soft_delete/undo_soft_delete_request_builder.rb b/lib/groups/item/team/primary_channel/messages/item/replies/item/undo_soft_delete/undo_soft_delete_request_builder.rb index 2126bd7768..5a2e9a2b7e 100644 --- a/lib/groups/item/team/primary_channel/messages/item/replies/item/undo_soft_delete/undo_soft_delete_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/item/replies/item/undo_soft_delete/undo_soft_delete_request_builder.rb @@ -44,8 +44,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,15 +54,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a undo_soft_delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UndoSoftDeleteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/primary_channel/messages/item/replies/item/unset_reaction/unset_reaction_post_request_body.rb b/lib/groups/item/team/primary_channel/messages/item/replies/item/unset_reaction/unset_reaction_post_request_body.rb index 84385cf203..4ba533d6de 100644 --- a/lib/groups/item/team/primary_channel/messages/item/replies/item/unset_reaction/unset_reaction_post_request_body.rb +++ b/lib/groups/item/team/primary_channel/messages/item/replies/item/unset_reaction/unset_reaction_post_request_body.rb @@ -29,22 +29,22 @@ class UnsetReactionPostRequestBody # The reactionType property @reaction_type ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new unsetReactionPostRequestBody and sets the default values. + ## Instantiates a new UnsetReactionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/team/primary_channel/messages/item/replies/item/unset_reaction/unset_reaction_request_builder.rb b/lib/groups/item/team/primary_channel/messages/item/replies/item/unset_reaction/unset_reaction_request_builder.rb index 43f4195d50..cb4bb89ce5 100644 --- a/lib/groups/item/team/primary_channel/messages/item/replies/item/unset_reaction/unset_reaction_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/item/replies/item/unset_reaction/unset_reaction_request_builder.rb @@ -46,8 +46,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,16 +58,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unset_reaction_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnsetReactionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/primary_channel/messages/item/replies/replies_request_builder.rb b/lib/groups/item/team/primary_channel/messages/item/replies/replies_request_builder.rb index 7f70dce654..3008a607aa 100644 --- a/lib/groups/item/team/primary_channel/messages/item/replies/replies_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/item/replies/replies_request_builder.rb @@ -54,10 +54,10 @@ def by_chat_message_id1(chat_message_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + ## Replies for a specified message. Supports $expand for channel messages. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message_collection_response ## @@ -66,12 +66,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Create new navigation property to replies for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -82,30 +81,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + ## Replies for a specified message. Supports $expand for channel messages. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Create new navigation property to replies for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -113,20 +111,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a replies_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RepliesRequestBuilder.new(raw_url, @request_adapter) + end ## - # List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + # Replies for a specified message. Supports $expand for channel messages. class RepliesRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/primary_channel/messages/item/set_reaction/set_reaction_post_request_body.rb b/lib/groups/item/team/primary_channel/messages/item/set_reaction/set_reaction_post_request_body.rb index f4113a1bc5..c886551b2b 100644 --- a/lib/groups/item/team/primary_channel/messages/item/set_reaction/set_reaction_post_request_body.rb +++ b/lib/groups/item/team/primary_channel/messages/item/set_reaction/set_reaction_post_request_body.rb @@ -25,22 +25,22 @@ class SetReactionPostRequestBody # The reactionType property @reaction_type ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new setReactionPostRequestBody and sets the default values. + ## Instantiates a new SetReactionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/team/primary_channel/messages/item/set_reaction/set_reaction_request_builder.rb b/lib/groups/item/team/primary_channel/messages/item/set_reaction/set_reaction_request_builder.rb index 69152ae9fa..fabe6026ba 100644 --- a/lib/groups/item/team/primary_channel/messages/item/set_reaction/set_reaction_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/item/set_reaction/set_reaction_request_builder.rb @@ -42,8 +42,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,16 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_reaction_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetReactionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/primary_channel/messages/item/soft_delete/soft_delete_request_builder.rb b/lib/groups/item/team/primary_channel/messages/item/soft_delete/soft_delete_request_builder.rb index c86d89a335..669424baa9 100644 --- a/lib/groups/item/team/primary_channel/messages/item/soft_delete/soft_delete_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/item/soft_delete/soft_delete_request_builder.rb @@ -40,8 +40,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,15 +50,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a soft_delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SoftDeleteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/primary_channel/messages/item/undo_soft_delete/undo_soft_delete_request_builder.rb b/lib/groups/item/team/primary_channel/messages/item/undo_soft_delete/undo_soft_delete_request_builder.rb index f4ef002034..8dfbffbff6 100644 --- a/lib/groups/item/team/primary_channel/messages/item/undo_soft_delete/undo_soft_delete_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/item/undo_soft_delete/undo_soft_delete_request_builder.rb @@ -40,8 +40,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,15 +50,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a undo_soft_delete_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UndoSoftDeleteRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/primary_channel/messages/item/unset_reaction/unset_reaction_post_request_body.rb b/lib/groups/item/team/primary_channel/messages/item/unset_reaction/unset_reaction_post_request_body.rb index a6fba2a270..8f8a3417e1 100644 --- a/lib/groups/item/team/primary_channel/messages/item/unset_reaction/unset_reaction_post_request_body.rb +++ b/lib/groups/item/team/primary_channel/messages/item/unset_reaction/unset_reaction_post_request_body.rb @@ -25,22 +25,22 @@ class UnsetReactionPostRequestBody # The reactionType property @reaction_type ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new unsetReactionPostRequestBody and sets the default values. + ## Instantiates a new UnsetReactionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/team/primary_channel/messages/item/unset_reaction/unset_reaction_request_builder.rb b/lib/groups/item/team/primary_channel/messages/item/unset_reaction/unset_reaction_request_builder.rb index 57c24488e5..6277887f59 100644 --- a/lib/groups/item/team/primary_channel/messages/item/unset_reaction/unset_reaction_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/item/unset_reaction/unset_reaction_request_builder.rb @@ -42,8 +42,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,16 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unset_reaction_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnsetReactionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/primary_channel/messages/messages_request_builder.rb b/lib/groups/item/team/primary_channel/messages/messages_request_builder.rb index dfb3740bdd..823acc069a 100644 --- a/lib/groups/item/team/primary_channel/messages/messages_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/messages_request_builder.rb @@ -50,10 +50,10 @@ def by_chat_message_id(chat_message_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + ## A collection of all the messages in the channel. A navigation property. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message_collection_response ## @@ -62,12 +62,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new chatMessage in the specified channel. + ## Create new navigation property to messages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -78,30 +77,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + ## A collection of all the messages in the channel. A navigation property. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Send a new chatMessage in the specified channel. + ## Create new navigation property to messages for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a messages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MessagesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + # A collection of all the messages in the channel. A navigation property. Nullable. class MessagesRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/primary_channel/primary_channel_request_builder.rb b/lib/groups/item/team/primary_channel/primary_channel_request_builder.rb index 56a9e703fb..20f6e2dc3f 100644 --- a/lib/groups/item/team/primary_channel/primary_channel_request_builder.rb +++ b/lib/groups/item/team/primary_channel/primary_channel_request_builder.rb @@ -5,6 +5,8 @@ require_relative '../../../groups' require_relative '../../item' require_relative '../team' +require_relative './all_members/all_members_request_builder' +require_relative './archive/archive_request_builder' require_relative './complete_migration/complete_migration_request_builder' require_relative './does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/732db1068832007d49ec9b451d8ca1cfd0136d0663ec94246815c75150bfdfa9' require_relative './files_folder/files_folder_request_builder' @@ -15,6 +17,7 @@ require_relative './remove_email/remove_email_request_builder' require_relative './shared_with_teams/shared_with_teams_request_builder' require_relative './tabs/tabs_request_builder' +require_relative './unarchive/unarchive_request_builder' module MicrosoftGraph module Groups @@ -25,6 +28,16 @@ module PrimaryChannel # Provides operations to manage the primaryChannel property of the microsoft.graph.team entity. class PrimaryChannelRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to manage the allMembers property of the microsoft.graph.channel entity. + def all_members() + return MicrosoftGraph::Groups::Item::Team::PrimaryChannel::AllMembers::AllMembersRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the archive method. + def archive() + return MicrosoftGraph::Groups::Item::Team::PrimaryChannel::Archive::ArchiveRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Provides operations to call the completeMigration method. def complete_migration() @@ -71,13 +84,18 @@ def tabs() return MicrosoftGraph::Groups::Item::Team::PrimaryChannel::Tabs::TabsRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to call the unarchive method. + def unarchive() + return MicrosoftGraph::Groups::Item::Team::PrimaryChannel::Unarchive::UnarchiveRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Instantiates a new PrimaryChannelRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel{?%24expand,%24select}") end ## ## Delete navigation property primaryChannel for groups @@ -89,12 +107,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get the default channel, General, of a team. + ## The general channel for the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of channel ## @@ -103,8 +120,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Channel.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -119,8 +135,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Channel.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -130,31 +145,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get the default channel, General, of a team. + ## The general channel for the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -166,20 +182,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a primary_channel_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PrimaryChannelRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the default channel, General, of a team. + # The general channel for the team. class PrimaryChannelRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/primary_channel/provision_email/provision_email_request_builder.rb b/lib/groups/item/team/primary_channel/provision_email/provision_email_request_builder.rb index 4e1db9ad0a..93c2bc4eae 100644 --- a/lib/groups/item/team/primary_channel/provision_email/provision_email_request_builder.rb +++ b/lib/groups/item/team/primary_channel/provision_email/provision_email_request_builder.rb @@ -37,8 +37,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ProvisionChannelEmailResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,16 +47,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a provision_email_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ProvisionEmailRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/primary_channel/remove_email/remove_email_request_builder.rb b/lib/groups/item/team/primary_channel/remove_email/remove_email_request_builder.rb index f759413c14..b857aae890 100644 --- a/lib/groups/item/team/primary_channel/remove_email/remove_email_request_builder.rb +++ b/lib/groups/item/team/primary_channel/remove_email/remove_email_request_builder.rb @@ -36,8 +36,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,15 +46,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a remove_email_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RemoveEmailRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/primary_channel/shared_with_teams/count/count_request_builder.rb b/lib/groups/item/team/primary_channel/shared_with_teams/count/count_request_builder.rb index 01f8da118f..b310cd0cf3 100644 --- a/lib/groups/item/team/primary_channel/shared_with_teams/count/count_request_builder.rb +++ b/lib/groups/item/team/primary_channel/shared_with_teams/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/primary_channel/shared_with_teams/item/allowed_members/allowed_members_request_builder.rb b/lib/groups/item/team/primary_channel/shared_with_teams/item/allowed_members/allowed_members_request_builder.rb index 44eee3da6d..e7630f637e 100644 --- a/lib/groups/item/team/primary_channel/shared_with_teams/item/allowed_members/allowed_members_request_builder.rb +++ b/lib/groups/item/team/primary_channel/shared_with_teams/item/allowed_members/allowed_members_request_builder.rb @@ -47,10 +47,10 @@ def by_conversation_member_id(conversation_member_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + ## A collection of team members who have access to the shared channel. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of conversation_member_collection_response ## @@ -59,31 +59,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMemberCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + ## A collection of team members who have access to the shared channel. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a allowed_members_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AllowedMembersRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + # A collection of team members who have access to the shared channel. class AllowedMembersRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/primary_channel/shared_with_teams/item/allowed_members/count/count_request_builder.rb b/lib/groups/item/team/primary_channel/shared_with_teams/item/allowed_members/count/count_request_builder.rb index e85db066d8..d36d27f443 100644 --- a/lib/groups/item/team/primary_channel/shared_with_teams/item/allowed_members/count/count_request_builder.rb +++ b/lib/groups/item/team/primary_channel/shared_with_teams/item/allowed_members/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/primary_channel/shared_with_teams/item/allowed_members/item/conversation_member_item_request_builder.rb b/lib/groups/item/team/primary_channel/shared_with_teams/item/allowed_members/item/conversation_member_item_request_builder.rb index 894bea3fe1..1703bc5601 100644 --- a/lib/groups/item/team/primary_channel/shared_with_teams/item/allowed_members/item/conversation_member_item_request_builder.rb +++ b/lib/groups/item/team/primary_channel/shared_with_teams/item/allowed_members/item/conversation_member_item_request_builder.rb @@ -31,7 +31,7 @@ class ConversationMemberItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReq ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers/{conversationMember%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers/{conversationMember%2Did}{?%24expand,%24select}") end ## ## A collection of team members who have access to the shared channel. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a conversation_member_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConversationMemberItemRequestBuilder.new(raw_url, @request_adapter) + end ## # A collection of team members who have access to the shared channel. diff --git a/lib/groups/item/team/primary_channel/shared_with_teams/item/shared_with_channel_team_info_item_request_builder.rb b/lib/groups/item/team/primary_channel/shared_with_teams/item/shared_with_channel_team_info_item_request_builder.rb index 23c101d58a..b95c084b19 100644 --- a/lib/groups/item/team/primary_channel/shared_with_teams/item/shared_with_channel_team_info_item_request_builder.rb +++ b/lib/groups/item/team/primary_channel/shared_with_teams/item/shared_with_channel_team_info_item_request_builder.rb @@ -39,10 +39,10 @@ def team() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}{?%24expand,%24select}") end ## - ## Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + ## Delete navigation property sharedWithTeams for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -51,12 +51,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + ## A collection of teams with which a channel is shared. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of shared_with_channel_team_info ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SharedWithChannelTeamInfo.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,42 +79,42 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SharedWithChannelTeamInfo.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + ## Delete navigation property sharedWithTeams for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + ## A collection of teams with which a channel is shared. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,20 +126,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a shared_with_channel_team_info_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SharedWithChannelTeamInfoItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + # A collection of teams with which a channel is shared. class SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/primary_channel/shared_with_teams/item/team/team_request_builder.rb b/lib/groups/item/team/primary_channel/shared_with_teams/item/team/team_request_builder.rb index 38f447cf9c..29ad57ed26 100644 --- a/lib/groups/item/team/primary_channel/shared_with_teams/item/team/team_request_builder.rb +++ b/lib/groups/item/team/primary_channel/shared_with_teams/item/team/team_request_builder.rb @@ -29,7 +29,7 @@ class TeamRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/team{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/team{?%24expand,%24select}") end ## ## Get team from groups @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Team.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a team_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TeamRequestBuilder.new(raw_url, @request_adapter) + end ## # Get team from groups diff --git a/lib/groups/item/team/primary_channel/shared_with_teams/shared_with_teams_request_builder.rb b/lib/groups/item/team/primary_channel/shared_with_teams/shared_with_teams_request_builder.rb index 44d0dfd44d..b645fc8202 100644 --- a/lib/groups/item/team/primary_channel/shared_with_teams/shared_with_teams_request_builder.rb +++ b/lib/groups/item/team/primary_channel/shared_with_teams/shared_with_teams_request_builder.rb @@ -44,10 +44,10 @@ def by_shared_with_channel_team_info_id(shared_with_channel_team_info_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + ## A collection of teams with which a channel is shared. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of shared_with_channel_team_info_collection_response ## @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SharedWithChannelTeamInfoCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,26 +71,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SharedWithChannelTeamInfo.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + ## A collection of teams with which a channel is shared. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a shared_with_teams_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SharedWithTeamsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + # A collection of teams with which a channel is shared. class SharedWithTeamsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/primary_channel/tabs/count/count_request_builder.rb b/lib/groups/item/team/primary_channel/tabs/count/count_request_builder.rb index 9d39acfff5..6f16da472b 100644 --- a/lib/groups/item/team/primary_channel/tabs/count/count_request_builder.rb +++ b/lib/groups/item/team/primary_channel/tabs/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/tabs/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/tabs/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/primary_channel/tabs/item/teams_app/teams_app_request_builder.rb b/lib/groups/item/team/primary_channel/tabs/item/teams_app/teams_app_request_builder.rb index faaacdf37c..8f228c2cc6 100644 --- a/lib/groups/item/team/primary_channel/tabs/item/teams_app/teams_app_request_builder.rb +++ b/lib/groups/item/team/primary_channel/tabs/item/teams_app/teams_app_request_builder.rb @@ -29,10 +29,10 @@ class TeamsAppRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/tabs/{teamsTab%2Did}/teamsApp{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/tabs/{teamsTab%2Did}/teamsApp{?%24expand,%24select}") end ## - ## The application that is linked to the tab. This cannot be changed after tab creation. + ## The application that is linked to the tab. This can't be changed after tab creation. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teams_app ## @@ -41,31 +41,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsApp.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The application that is linked to the tab. This cannot be changed after tab creation. + ## The application that is linked to the tab. This can't be changed after tab creation. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a teams_app_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TeamsAppRequestBuilder.new(raw_url, @request_adapter) + end ## - # The application that is linked to the tab. This cannot be changed after tab creation. + # The application that is linked to the tab. This can't be changed after tab creation. class TeamsAppRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/primary_channel/tabs/item/teams_tab_item_request_builder.rb b/lib/groups/item/team/primary_channel/tabs/item/teams_tab_item_request_builder.rb index 6889c1cf35..a9f0593347 100644 --- a/lib/groups/item/team/primary_channel/tabs/item/teams_tab_item_request_builder.rb +++ b/lib/groups/item/team/primary_channel/tabs/item/teams_tab_item_request_builder.rb @@ -33,10 +33,10 @@ def teams_app() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/tabs/{teamsTab%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/tabs/{teamsTab%2Did}{?%24expand,%24select}") end ## - ## Removes (unpins) a tab from the specified channel within a team. + ## Delete navigation property tabs for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -45,12 +45,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of the specified tab in a channel within a team. + ## A collection of all the tabs in the channel. A navigation property. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teams_tab ## @@ -59,12 +58,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsTab.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of the specified tab.This can be used to configure the content of the tab. + ## Update the navigation property tabs in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teams_tab @@ -75,46 +73,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsTab.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Removes (unpins) a tab from the specified channel within a team. + ## Delete navigation property tabs for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of the specified tab in a channel within a team. + ## A collection of all the tabs in the channel. A navigation property. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of the specified tab.This can be used to configure the content of the tab. + ## Update the navigation property tabs in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -122,20 +120,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a teams_tab_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TeamsTabItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of the specified tab in a channel within a team. + # A collection of all the tabs in the channel. A navigation property. class TeamsTabItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/primary_channel/tabs/tabs_request_builder.rb b/lib/groups/item/team/primary_channel/tabs/tabs_request_builder.rb index 949e1ac359..06e249ef92 100644 --- a/lib/groups/item/team/primary_channel/tabs/tabs_request_builder.rb +++ b/lib/groups/item/team/primary_channel/tabs/tabs_request_builder.rb @@ -44,10 +44,10 @@ def by_teams_tab_id(teams_tab_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/tabs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/tabs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve the list of tabs in the specified channel within a team. + ## A collection of all the tabs in the channel. A navigation property. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teams_tab_collection_response ## @@ -56,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsTabCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + ## Create new navigation property to tabs for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teams_tab @@ -72,30 +71,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsTab.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve the list of tabs in the specified channel within a team. + ## A collection of all the tabs in the channel. A navigation property. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + ## Create new navigation property to tabs for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a tabs_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TabsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the list of tabs in the specified channel within a team. + # A collection of all the tabs in the channel. A navigation property. class TabsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/primary_channel/unarchive/unarchive.rb b/lib/groups/item/team/primary_channel/unarchive/unarchive.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/team/primary_channel/unarchive/unarchive_request_builder.rb b/lib/groups/item/team/primary_channel/unarchive/unarchive_request_builder.rb new file mode 100644 index 0000000000..222d8fa8df --- /dev/null +++ b/lib/groups/item/team/primary_channel/unarchive/unarchive_request_builder.rb @@ -0,0 +1,74 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../team' +require_relative '../primary_channel' +require_relative './unarchive' + +module MicrosoftGraph + module Groups + module Item + module Team + module PrimaryChannel + module Unarchive + ## + # Provides operations to call the unarchive method. + class UnarchiveRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new UnarchiveRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/unarchive") + end + ## + ## Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unarchive_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnarchiveRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/schedule/day_notes/count/count.rb b/lib/groups/item/team/schedule/day_notes/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/team/schedule/day_notes/count/count_request_builder.rb b/lib/groups/item/team/schedule/day_notes/count/count_request_builder.rb new file mode 100644 index 0000000000..f5325b464a --- /dev/null +++ b/lib/groups/item/team/schedule/day_notes/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../schedule' +require_relative '../day_notes' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module Team + module Schedule + module DayNotes + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/dayNotes/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/schedule/day_notes/day_notes.rb b/lib/groups/item/team/schedule/day_notes/day_notes.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/team/schedule/day_notes/day_notes_request_builder.rb b/lib/groups/item/team/schedule/day_notes/day_notes_request_builder.rb new file mode 100644 index 0000000000..26aba663e0 --- /dev/null +++ b/lib/groups/item/team/schedule/day_notes/day_notes_request_builder.rb @@ -0,0 +1,188 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/day_note' +require_relative '../../../../../models/day_note_collection_response' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../team' +require_relative '../schedule' +require_relative './count/count_request_builder' +require_relative './day_notes' +require_relative './item/day_note_item_request_builder' + +module MicrosoftGraph + module Groups + module Item + module Team + module Schedule + module DayNotes + ## + # Provides operations to manage the dayNotes property of the microsoft.graph.schedule entity. + class DayNotesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::Team::Schedule::DayNotes::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the dayNotes property of the microsoft.graph.schedule entity. + ## @param day_note_id The unique identifier of dayNote + ## @return a day_note_item_request_builder + ## + def by_day_note_id(day_note_id) + raise StandardError, 'day_note_id cannot be null' if day_note_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["dayNote%2Did"] = day_note_id + return MicrosoftGraph::Groups::Item::Team::Schedule::DayNotes::Item::DayNoteItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new DayNotesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/dayNotes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The day notes in the schedule. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of day_note_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DayNoteCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to dayNotes for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of day_note + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DayNote.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The day notes in the schedule. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to dayNotes for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a day_notes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DayNotesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The day notes in the schedule. + class DayNotesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/schedule/day_notes/item/day_note_item_request_builder.rb b/lib/groups/item/team/schedule/day_notes/item/day_note_item_request_builder.rb new file mode 100644 index 0000000000..1bd39431ae --- /dev/null +++ b/lib/groups/item/team/schedule/day_notes/item/day_note_item_request_builder.rb @@ -0,0 +1,172 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/day_note' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../schedule' +require_relative '../day_notes' +require_relative './item' + +module MicrosoftGraph + module Groups + module Item + module Team + module Schedule + module DayNotes + module Item + ## + # Provides operations to manage the dayNotes property of the microsoft.graph.schedule entity. + class DayNoteItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new DayNoteItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/dayNotes/{dayNote%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property dayNotes for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The day notes in the schedule. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of day_note + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DayNote.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property dayNotes in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of day_note + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DayNote.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property dayNotes for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The day notes in the schedule. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property dayNotes in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a day_note_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DayNoteItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The day notes in the schedule. + class DayNoteItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/schedule/day_notes/item/item.rb b/lib/groups/item/team/schedule/day_notes/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/team/schedule/offer_shift_requests/count/count_request_builder.rb b/lib/groups/item/team/schedule/offer_shift_requests/count/count_request_builder.rb index c33f120e11..574cd8bbed 100644 --- a/lib/groups/item/team/schedule/offer_shift_requests/count/count_request_builder.rb +++ b/lib/groups/item/team/schedule/offer_shift_requests/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/offerShiftRequests/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/offerShiftRequests/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/schedule/offer_shift_requests/item/offer_shift_request_item_request_builder.rb b/lib/groups/item/team/schedule/offer_shift_requests/item/offer_shift_request_item_request_builder.rb index 4d381bff06..084a7d9e64 100644 --- a/lib/groups/item/team/schedule/offer_shift_requests/item/offer_shift_request_item_request_builder.rb +++ b/lib/groups/item/team/schedule/offer_shift_requests/item/offer_shift_request_item_request_builder.rb @@ -27,7 +27,7 @@ class OfferShiftRequestItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/offerShiftRequests/{offerShiftRequest%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/offerShiftRequests/{offerShiftRequest%2Did}{?%24expand,%24select}") end ## ## Delete navigation property offerShiftRequests for groups @@ -39,12 +39,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of an offerShiftRequest object. + ## The offer requests for shifts in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of offer_shift_request ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OfferShiftRequest.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OfferShiftRequest.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,31 +77,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of an offerShiftRequest object. + ## The offer requests for shifts in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,20 +114,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offer_shift_request_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OfferShiftRequestItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of an offerShiftRequest object. + # The offer requests for shifts in the schedule. class OfferShiftRequestItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/schedule/offer_shift_requests/offer_shift_requests_request_builder.rb b/lib/groups/item/team/schedule/offer_shift_requests/offer_shift_requests_request_builder.rb index 23d9fc18b4..a5c116eed3 100644 --- a/lib/groups/item/team/schedule/offer_shift_requests/offer_shift_requests_request_builder.rb +++ b/lib/groups/item/team/schedule/offer_shift_requests/offer_shift_requests_request_builder.rb @@ -44,10 +44,10 @@ def by_offer_shift_request_id(offer_shift_request_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/offerShiftRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/offerShiftRequests{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve the properties and relationships of all offerShiftRequest objects in a team. + ## The offer requests for shifts in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of offer_shift_request_collection_response ## @@ -56,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OfferShiftRequestCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an instance of an offerShiftRequest. + ## Create new navigation property to offerShiftRequests for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of offer_shift_request @@ -72,30 +71,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OfferShiftRequest.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve the properties and relationships of all offerShiftRequest objects in a team. + ## The offer requests for shifts in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create an instance of an offerShiftRequest. + ## Create new navigation property to offerShiftRequests for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a offer_shift_requests_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OfferShiftRequestsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of all offerShiftRequest objects in a team. + # The offer requests for shifts in the schedule. class OfferShiftRequestsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/schedule/open_shift_change_requests/count/count_request_builder.rb b/lib/groups/item/team/schedule/open_shift_change_requests/count/count_request_builder.rb index 810fd2dd62..2e902256de 100644 --- a/lib/groups/item/team/schedule/open_shift_change_requests/count/count_request_builder.rb +++ b/lib/groups/item/team/schedule/open_shift_change_requests/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/openShiftChangeRequests/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/openShiftChangeRequests/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/schedule/open_shift_change_requests/item/open_shift_change_request_item_request_builder.rb b/lib/groups/item/team/schedule/open_shift_change_requests/item/open_shift_change_request_item_request_builder.rb index 3deabd3360..a77ce9bf95 100644 --- a/lib/groups/item/team/schedule/open_shift_change_requests/item/open_shift_change_request_item_request_builder.rb +++ b/lib/groups/item/team/schedule/open_shift_change_requests/item/open_shift_change_request_item_request_builder.rb @@ -27,7 +27,7 @@ class OpenShiftChangeRequestItemRequestBuilder < MicrosoftKiotaAbstractions::Bas ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/openShiftChangeRequests/{openShiftChangeRequest%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/openShiftChangeRequests/{openShiftChangeRequest%2Did}{?%24expand,%24select}") end ## ## Delete navigation property openShiftChangeRequests for groups @@ -39,12 +39,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of an openShiftChangeRequest object. + ## The open shift requests in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of open_shift_change_request ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OpenShiftChangeRequest.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OpenShiftChangeRequest.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,31 +77,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of an openShiftChangeRequest object. + ## The open shift requests in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,20 +114,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a open_shift_change_request_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OpenShiftChangeRequestItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of an openShiftChangeRequest object. + # The open shift requests in the schedule. class OpenShiftChangeRequestItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/schedule/open_shift_change_requests/open_shift_change_requests_request_builder.rb b/lib/groups/item/team/schedule/open_shift_change_requests/open_shift_change_requests_request_builder.rb index a6ff3ad7f9..7a0af60471 100644 --- a/lib/groups/item/team/schedule/open_shift_change_requests/open_shift_change_requests_request_builder.rb +++ b/lib/groups/item/team/schedule/open_shift_change_requests/open_shift_change_requests_request_builder.rb @@ -44,10 +44,10 @@ def by_open_shift_change_request_id(open_shift_change_request_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/openShiftChangeRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/openShiftChangeRequests{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of openShiftChangeRequest objects in a team. + ## The open shift requests in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of open_shift_change_request_collection_response ## @@ -56,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OpenShiftChangeRequestCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create instance of an openShiftChangeRequest object. + ## Create new navigation property to openShiftChangeRequests for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of open_shift_change_request @@ -72,30 +71,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OpenShiftChangeRequest.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of openShiftChangeRequest objects in a team. + ## The open shift requests in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create instance of an openShiftChangeRequest object. + ## Create new navigation property to openShiftChangeRequests for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a open_shift_change_requests_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OpenShiftChangeRequestsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of openShiftChangeRequest objects in a team. + # The open shift requests in the schedule. class OpenShiftChangeRequestsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/schedule/open_shifts/count/count_request_builder.rb b/lib/groups/item/team/schedule/open_shifts/count/count_request_builder.rb index 51317667fa..0cca361a54 100644 --- a/lib/groups/item/team/schedule/open_shifts/count/count_request_builder.rb +++ b/lib/groups/item/team/schedule/open_shifts/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/openShifts/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/openShifts/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/schedule/open_shifts/item/open_shift_item_request_builder.rb b/lib/groups/item/team/schedule/open_shifts/item/open_shift_item_request_builder.rb index 3125d7cef9..1fd4544b2e 100644 --- a/lib/groups/item/team/schedule/open_shifts/item/open_shift_item_request_builder.rb +++ b/lib/groups/item/team/schedule/open_shifts/item/open_shift_item_request_builder.rb @@ -27,10 +27,10 @@ class OpenShiftItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/openShifts/{openShift%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/openShifts/{openShift%2Did}{?%24expand,%24select}") end ## - ## Delete an openShift object. + ## Delete navigation property openShifts for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -39,12 +39,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of an openshift object. + ## The set of open shifts in a scheduling group in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of open_shift ## @@ -53,12 +52,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OpenShift.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of an openShift object. + ## Update the navigation property openShifts in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of open_shift @@ -69,46 +67,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OpenShift.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete an openShift object. + ## Delete navigation property openShifts for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of an openshift object. + ## The set of open shifts in a scheduling group in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of an openShift object. + ## Update the navigation property openShifts in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -116,20 +114,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a open_shift_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OpenShiftItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of an openshift object. + # The set of open shifts in a scheduling group in the schedule. class OpenShiftItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/schedule/open_shifts/open_shifts_request_builder.rb b/lib/groups/item/team/schedule/open_shifts/open_shifts_request_builder.rb index 92dada4c9c..70fbc67247 100644 --- a/lib/groups/item/team/schedule/open_shifts/open_shifts_request_builder.rb +++ b/lib/groups/item/team/schedule/open_shifts/open_shifts_request_builder.rb @@ -44,10 +44,10 @@ def by_open_shift_id(open_shift_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/openShifts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/openShifts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## List openShift objects in a team. + ## The set of open shifts in a scheduling group in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of open_shift_collection_response ## @@ -56,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OpenShiftCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an instance of an openShift object. + ## Create new navigation property to openShifts for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of open_shift @@ -72,30 +71,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OpenShift.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List openShift objects in a team. + ## The set of open shifts in a scheduling group in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create an instance of an openShift object. + ## Create new navigation property to openShifts for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a open_shifts_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OpenShiftsRequestBuilder.new(raw_url, @request_adapter) + end ## - # List openShift objects in a team. + # The set of open shifts in a scheduling group in the schedule. class OpenShiftsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/schedule/schedule_request_builder.rb b/lib/groups/item/team/schedule/schedule_request_builder.rb index dd65706edf..3349547936 100644 --- a/lib/groups/item/team/schedule/schedule_request_builder.rb +++ b/lib/groups/item/team/schedule/schedule_request_builder.rb @@ -5,6 +5,7 @@ require_relative '../../../groups' require_relative '../../item' require_relative '../team' +require_relative './day_notes/day_notes_request_builder' require_relative './offer_shift_requests/offer_shift_requests_request_builder' require_relative './open_shift_change_requests/open_shift_change_requests_request_builder' require_relative './open_shifts/open_shifts_request_builder' @@ -13,6 +14,7 @@ require_relative './share/share_request_builder' require_relative './shifts/shifts_request_builder' require_relative './swap_shifts_change_requests/swap_shifts_change_requests_request_builder' +require_relative './time_cards/time_cards_request_builder' require_relative './time_off_reasons/time_off_reasons_request_builder' require_relative './time_off_requests/time_off_requests_request_builder' require_relative './times_off/times_off_request_builder' @@ -26,6 +28,11 @@ module Schedule # Provides operations to manage the schedule property of the microsoft.graph.team entity. class ScheduleRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + ## + # Provides operations to manage the dayNotes property of the microsoft.graph.schedule entity. + def day_notes() + return MicrosoftGraph::Groups::Item::Team::Schedule::DayNotes::DayNotesRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Provides operations to manage the offerShiftRequests property of the microsoft.graph.schedule entity. def offer_shift_requests() @@ -62,6 +69,11 @@ def swap_shifts_change_requests() return MicrosoftGraph::Groups::Item::Team::Schedule::SwapShiftsChangeRequests::SwapShiftsChangeRequestsRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to manage the timeCards property of the microsoft.graph.schedule entity. + def time_cards() + return MicrosoftGraph::Groups::Item::Team::Schedule::TimeCards::TimeCardsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to manage the timeOffReasons property of the microsoft.graph.schedule entity. def time_off_reasons() return MicrosoftGraph::Groups::Item::Team::Schedule::TimeOffReasons::TimeOffReasonsRequestBuilder.new(@path_parameters, @request_adapter) @@ -83,7 +95,7 @@ def times_off() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule{?%24expand,%24select}") end ## ## Delete navigation property schedule for groups @@ -95,12 +107,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. + ## The schedule of shifts for this team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of schedule ## @@ -109,8 +120,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Schedule.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -125,8 +135,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Schedule.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -136,31 +145,32 @@ def put(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. + ## The schedule of shifts for this team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -172,20 +182,29 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a schedule_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ScheduleRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. + # The schedule of shifts for this team. class ScheduleRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/schedule/scheduling_groups/count/count_request_builder.rb b/lib/groups/item/team/schedule/scheduling_groups/count/count_request_builder.rb index 862549928e..194365f13f 100644 --- a/lib/groups/item/team/schedule/scheduling_groups/count/count_request_builder.rb +++ b/lib/groups/item/team/schedule/scheduling_groups/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/schedulingGroups/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/schedulingGroups/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/schedule/scheduling_groups/item/scheduling_group_item_request_builder.rb b/lib/groups/item/team/schedule/scheduling_groups/item/scheduling_group_item_request_builder.rb index 694c104613..5605fa91ef 100644 --- a/lib/groups/item/team/schedule/scheduling_groups/item/scheduling_group_item_request_builder.rb +++ b/lib/groups/item/team/schedule/scheduling_groups/item/scheduling_group_item_request_builder.rb @@ -27,10 +27,10 @@ class SchedulingGroupItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReques ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/schedulingGroups/{schedulingGroup%2Did}{?%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/schedulingGroups/{schedulingGroup%2Did}{?%24expand,%24select}") end ## - ## Mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. + ## Delete navigation property schedulingGroups for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -39,12 +39,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a schedulingGroup by ID. + ## The logical grouping of users in the schedule (usually by role). ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of scheduling_group ## @@ -53,12 +52,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SchedulingGroup.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Replace an existing schedulingGroup. If the specified schedulingGroup doesn't exist, this method returns 404 Not found. + ## Update the navigation property schedulingGroups in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of scheduling_group @@ -69,46 +67,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SchedulingGroup.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. + ## Delete navigation property schedulingGroups for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a schedulingGroup by ID. + ## The logical grouping of users in the schedule (usually by role). ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Replace an existing schedulingGroup. If the specified schedulingGroup doesn't exist, this method returns 404 Not found. + ## Update the navigation property schedulingGroups in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -116,22 +114,34 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a scheduling_group_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SchedulingGroupItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a schedulingGroup by ID. + # The logical grouping of users in the schedule (usually by role). class SchedulingGroupItemRequestBuilderGetQueryParameters + ## + # Expand related entities + attr_accessor :expand ## # Select properties to be returned attr_accessor :select @@ -143,6 +153,8 @@ class SchedulingGroupItemRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "expand" + return "%24expand" when "select" return "%24select" else diff --git a/lib/groups/item/team/schedule/scheduling_groups/scheduling_groups_request_builder.rb b/lib/groups/item/team/schedule/scheduling_groups/scheduling_groups_request_builder.rb index be7ab55ad0..e5008d8415 100644 --- a/lib/groups/item/team/schedule/scheduling_groups/scheduling_groups_request_builder.rb +++ b/lib/groups/item/team/schedule/scheduling_groups/scheduling_groups_request_builder.rb @@ -44,10 +44,10 @@ def by_scheduling_group_id(scheduling_group_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/schedulingGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/schedulingGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the list of schedulingGroups in this schedule. + ## The logical grouping of users in the schedule (usually by role). ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of scheduling_group_collection_response ## @@ -56,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SchedulingGroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new schedulingGroup. + ## Create new navigation property to schedulingGroups for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of scheduling_group @@ -72,30 +71,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SchedulingGroup.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the list of schedulingGroups in this schedule. + ## The logical grouping of users in the schedule (usually by role). ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new schedulingGroup. + ## Create new navigation property to schedulingGroups for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -103,26 +101,38 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a scheduling_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SchedulingGroupsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the list of schedulingGroups in this schedule. + # The logical grouping of users in the schedule (usually by role). class SchedulingGroupsRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -150,6 +160,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/team/schedule/share/share_post_request_body.rb b/lib/groups/item/team/schedule/share/share_post_request_body.rb index 202016caac..90fcc6d115 100644 --- a/lib/groups/item/team/schedule/share/share_post_request_body.rb +++ b/lib/groups/item/team/schedule/share/share_post_request_body.rb @@ -28,22 +28,22 @@ class SharePostRequestBody # The startDateTime property @start_date_time ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new sharePostRequestBody and sets the default values. + ## Instantiates a new SharePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/team/schedule/share/share_request_builder.rb b/lib/groups/item/team/schedule/share/share_request_builder.rb index 1adeeff239..64b1e68c0d 100644 --- a/lib/groups/item/team/schedule/share/share_request_builder.rb +++ b/lib/groups/item/team/schedule/share/share_request_builder.rb @@ -27,7 +27,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/share") end ## - ## Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. + ## Share a schedule time range with schedule members. This action makes the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers. Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -38,12 +38,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. + ## Share a schedule time range with schedule members. This action makes the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers. Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -51,16 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a share_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ShareRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/schedule/shifts/count/count_request_builder.rb b/lib/groups/item/team/schedule/shifts/count/count_request_builder.rb index 7c488241c4..57e391993b 100644 --- a/lib/groups/item/team/schedule/shifts/count/count_request_builder.rb +++ b/lib/groups/item/team/schedule/shifts/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/shifts/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/shifts/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/schedule/shifts/item/shift_item_request_builder.rb b/lib/groups/item/team/schedule/shifts/item/shift_item_request_builder.rb index 8c8d924f09..1f5d1e4a88 100644 --- a/lib/groups/item/team/schedule/shifts/item/shift_item_request_builder.rb +++ b/lib/groups/item/team/schedule/shifts/item/shift_item_request_builder.rb @@ -27,10 +27,10 @@ class ShiftItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/shifts/{shift%2Did}{?%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/shifts/{shift%2Did}{?%24expand,%24select}") end ## - ## Delete a shift from the schedule. + ## Delete navigation property shifts for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -39,12 +39,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a shift object by ID. + ## The shifts in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of shift ## @@ -53,12 +52,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Shift.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Replace an existing shift. If the specified shift doesn't exist, this method returns 404 Not found. The duration of a shift cannot be less than 1 minute or longer than 24 hours. + ## Update the navigation property shifts in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of shift @@ -69,46 +67,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Shift.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a shift from the schedule. + ## Delete navigation property shifts for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a shift object by ID. + ## The shifts in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Replace an existing shift. If the specified shift doesn't exist, this method returns 404 Not found. The duration of a shift cannot be less than 1 minute or longer than 24 hours. + ## Update the navigation property shifts in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -116,22 +114,34 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a shift_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ShiftItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a shift object by ID. + # The shifts in the schedule. class ShiftItemRequestBuilderGetQueryParameters + ## + # Expand related entities + attr_accessor :expand ## # Select properties to be returned attr_accessor :select @@ -143,6 +153,8 @@ class ShiftItemRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "expand" + return "%24expand" when "select" return "%24select" else diff --git a/lib/groups/item/team/schedule/shifts/shifts_request_builder.rb b/lib/groups/item/team/schedule/shifts/shifts_request_builder.rb index f02ae962cc..df3da08bc3 100644 --- a/lib/groups/item/team/schedule/shifts/shifts_request_builder.rb +++ b/lib/groups/item/team/schedule/shifts/shifts_request_builder.rb @@ -44,10 +44,10 @@ def by_shift_id(shift_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/shifts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/shifts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the list of shift instances in a schedule. + ## The shifts in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of shift_collection_response ## @@ -56,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ShiftCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new shift instance in a schedule. The duration of a shift cannot be less than 1 minute or longer than 24 hours. + ## Create new navigation property to shifts for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of shift @@ -72,30 +71,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Shift.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the list of shift instances in a schedule. + ## The shifts in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new shift instance in a schedule. The duration of a shift cannot be less than 1 minute or longer than 24 hours. + ## Create new navigation property to shifts for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -103,26 +101,38 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a shifts_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ShiftsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the list of shift instances in a schedule. + # The shifts in the schedule. class ShiftsRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -150,6 +160,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/team/schedule/swap_shifts_change_requests/count/count_request_builder.rb b/lib/groups/item/team/schedule/swap_shifts_change_requests/count/count_request_builder.rb index 3d9e364b5b..5376c99a92 100644 --- a/lib/groups/item/team/schedule/swap_shifts_change_requests/count/count_request_builder.rb +++ b/lib/groups/item/team/schedule/swap_shifts_change_requests/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/swapShiftsChangeRequests/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/swapShiftsChangeRequests/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/schedule/swap_shifts_change_requests/item/swap_shifts_change_request_item_request_builder.rb b/lib/groups/item/team/schedule/swap_shifts_change_requests/item/swap_shifts_change_request_item_request_builder.rb index 057925b015..707e4fe00d 100644 --- a/lib/groups/item/team/schedule/swap_shifts_change_requests/item/swap_shifts_change_request_item_request_builder.rb +++ b/lib/groups/item/team/schedule/swap_shifts_change_requests/item/swap_shifts_change_request_item_request_builder.rb @@ -27,7 +27,7 @@ class SwapShiftsChangeRequestItemRequestBuilder < MicrosoftKiotaAbstractions::Ba ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/swapShiftsChangeRequests/{swapShiftsChangeRequest%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/swapShiftsChangeRequests/{swapShiftsChangeRequest%2Did}{?%24expand,%24select}") end ## ## Delete navigation property swapShiftsChangeRequests for groups @@ -39,12 +39,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a swapShiftsChangeRequest object. + ## The swap requests for shifts in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of swap_shifts_change_request ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SwapShiftsChangeRequest.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SwapShiftsChangeRequest.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,31 +77,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a swapShiftsChangeRequest object. + ## The swap requests for shifts in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,20 +114,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a swap_shifts_change_request_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SwapShiftsChangeRequestItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a swapShiftsChangeRequest object. + # The swap requests for shifts in the schedule. class SwapShiftsChangeRequestItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/schedule/swap_shifts_change_requests/swap_shifts_change_requests_request_builder.rb b/lib/groups/item/team/schedule/swap_shifts_change_requests/swap_shifts_change_requests_request_builder.rb index e63f7a08c3..cf8de4aa56 100644 --- a/lib/groups/item/team/schedule/swap_shifts_change_requests/swap_shifts_change_requests_request_builder.rb +++ b/lib/groups/item/team/schedule/swap_shifts_change_requests/swap_shifts_change_requests_request_builder.rb @@ -44,10 +44,10 @@ def by_swap_shifts_change_request_id(swap_shifts_change_request_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/swapShiftsChangeRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/swapShiftsChangeRequests{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of swapShiftsChangeRequest objects in the team. + ## The swap requests for shifts in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of swap_shifts_change_request_collection_response ## @@ -56,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SwapShiftsChangeRequestCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an instance of a swapShiftsChangeRequest object. + ## Create new navigation property to swapShiftsChangeRequests for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of swap_shifts_change_request @@ -72,30 +71,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SwapShiftsChangeRequest.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of swapShiftsChangeRequest objects in the team. + ## The swap requests for shifts in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create an instance of a swapShiftsChangeRequest object. + ## Create new navigation property to swapShiftsChangeRequests for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a swap_shifts_change_requests_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SwapShiftsChangeRequestsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of swapShiftsChangeRequest objects in the team. + # The swap requests for shifts in the schedule. class SwapShiftsChangeRequestsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/schedule/time_cards/clock_in/clock_in.rb b/lib/groups/item/team/schedule/time_cards/clock_in/clock_in.rb new file mode 100644 index 0000000000..1bfadcd950 --- /dev/null +++ b/lib/groups/item/team/schedule/time_cards/clock_in/clock_in.rb @@ -0,0 +1 @@ +require_relative 'clock_in_post_request_body' diff --git a/lib/groups/item/team/schedule/time_cards/clock_in/clock_in_post_request_body.rb b/lib/groups/item/team/schedule/time_cards/clock_in/clock_in_post_request_body.rb new file mode 100644 index 0000000000..0a3c8a30aa --- /dev/null +++ b/lib/groups/item/team/schedule/time_cards/clock_in/clock_in_post_request_body.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/item_body' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../schedule' +require_relative '../time_cards' +require_relative './clock_in' + +module MicrosoftGraph + module Groups + module Item + module Team + module Schedule + module TimeCards + module ClockIn + class ClockInPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The isAtApprovedLocation property + @is_at_approved_location + ## + # The notes property + @notes + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new ClockInPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clock_in_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClockInPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "isAtApprovedLocation" => lambda {|n| @is_at_approved_location = n.get_boolean_value() }, + "notes" => lambda {|n| @notes = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ItemBody.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Gets the isAtApprovedLocation property value. The isAtApprovedLocation property + ## @return a boolean + ## + def is_at_approved_location + return @is_at_approved_location + end + ## + ## Sets the isAtApprovedLocation property value. The isAtApprovedLocation property + ## @param value Value to set for the isAtApprovedLocation property. + ## @return a void + ## + def is_at_approved_location=(value) + @is_at_approved_location = value + end + ## + ## Gets the notes property value. The notes property + ## @return a item_body + ## + def notes + return @notes + end + ## + ## Sets the notes property value. The notes property + ## @param value Value to set for the notes property. + ## @return a void + ## + def notes=(value) + @notes = value + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("isAtApprovedLocation", @is_at_approved_location) + writer.write_object_value("notes", @notes) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/schedule/time_cards/clock_in/clock_in_request_builder.rb b/lib/groups/item/team/schedule/time_cards/clock_in/clock_in_request_builder.rb new file mode 100644 index 0000000000..0a4de7c2d4 --- /dev/null +++ b/lib/groups/item/team/schedule/time_cards/clock_in/clock_in_request_builder.rb @@ -0,0 +1,83 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../models/time_card' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../schedule' +require_relative '../time_cards' +require_relative './clock_in' + +module MicrosoftGraph + module Groups + module Item + module Team + module Schedule + module TimeCards + module ClockIn + ## + # Provides operations to call the clockIn method. + class ClockInRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClockInRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/clockIn") + end + ## + ## Clock in to start a timeCard. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of time_card + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TimeCard.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Clock in to start a timeCard. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clock_in_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClockInRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/schedule/time_cards/count/count.rb b/lib/groups/item/team/schedule/time_cards/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/team/schedule/time_cards/count/count_request_builder.rb b/lib/groups/item/team/schedule/time_cards/count/count_request_builder.rb new file mode 100644 index 0000000000..575f35bb2b --- /dev/null +++ b/lib/groups/item/team/schedule/time_cards/count/count_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../schedule' +require_relative '../time_cards' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module Team + module Schedule + module TimeCards + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/schedule/time_cards/item/clock_out/clock_out.rb b/lib/groups/item/team/schedule/time_cards/item/clock_out/clock_out.rb new file mode 100644 index 0000000000..0846fbf6a0 --- /dev/null +++ b/lib/groups/item/team/schedule/time_cards/item/clock_out/clock_out.rb @@ -0,0 +1 @@ +require_relative 'clock_out_post_request_body' diff --git a/lib/groups/item/team/schedule/time_cards/item/clock_out/clock_out_post_request_body.rb b/lib/groups/item/team/schedule/time_cards/item/clock_out/clock_out_post_request_body.rb new file mode 100644 index 0000000000..f71df75307 --- /dev/null +++ b/lib/groups/item/team/schedule/time_cards/item/clock_out/clock_out_post_request_body.rb @@ -0,0 +1,121 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/item_body' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../team' +require_relative '../../../schedule' +require_relative '../../time_cards' +require_relative '../item' +require_relative './clock_out' + +module MicrosoftGraph + module Groups + module Item + module Team + module Schedule + module TimeCards + module Item + module ClockOut + class ClockOutPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The isAtApprovedLocation property + @is_at_approved_location + ## + # The notes property + @notes + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new ClockOutPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a clock_out_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ClockOutPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "isAtApprovedLocation" => lambda {|n| @is_at_approved_location = n.get_boolean_value() }, + "notes" => lambda {|n| @notes = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ItemBody.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Gets the isAtApprovedLocation property value. The isAtApprovedLocation property + ## @return a boolean + ## + def is_at_approved_location + return @is_at_approved_location + end + ## + ## Sets the isAtApprovedLocation property value. The isAtApprovedLocation property + ## @param value Value to set for the isAtApprovedLocation property. + ## @return a void + ## + def is_at_approved_location=(value) + @is_at_approved_location = value + end + ## + ## Gets the notes property value. The notes property + ## @return a item_body + ## + def notes + return @notes + end + ## + ## Sets the notes property value. The notes property + ## @param value Value to set for the notes property. + ## @return a void + ## + def notes=(value) + @notes = value + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("isAtApprovedLocation", @is_at_approved_location) + writer.write_object_value("notes", @notes) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/schedule/time_cards/item/clock_out/clock_out_request_builder.rb b/lib/groups/item/team/schedule/time_cards/item/clock_out/clock_out_request_builder.rb new file mode 100644 index 0000000000..30dafe5b6b --- /dev/null +++ b/lib/groups/item/team/schedule/time_cards/item/clock_out/clock_out_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../models/time_card' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../team' +require_relative '../../../schedule' +require_relative '../../time_cards' +require_relative '../item' +require_relative './clock_out' + +module MicrosoftGraph + module Groups + module Item + module Team + module Schedule + module TimeCards + module Item + module ClockOut + ## + # Provides operations to call the clockOut method. + class ClockOutRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ClockOutRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}/clockOut") + end + ## + ## Invoke action clockOut + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of time_card + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TimeCard.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action clockOut + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a clock_out_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ClockOutRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/schedule/time_cards/item/confirm/confirm.rb b/lib/groups/item/team/schedule/time_cards/item/confirm/confirm.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/team/schedule/time_cards/item/confirm/confirm_request_builder.rb b/lib/groups/item/team/schedule/time_cards/item/confirm/confirm_request_builder.rb new file mode 100644 index 0000000000..b3b585d622 --- /dev/null +++ b/lib/groups/item/team/schedule/time_cards/item/confirm/confirm_request_builder.rb @@ -0,0 +1,81 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../models/time_card' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../team' +require_relative '../../../schedule' +require_relative '../../time_cards' +require_relative '../item' +require_relative './confirm' + +module MicrosoftGraph + module Groups + module Item + module Team + module Schedule + module TimeCards + module Item + module Confirm + ## + # Provides operations to call the confirm method. + class ConfirmRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ConfirmRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}/confirm") + end + ## + ## Confirm a timeCard. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of time_card + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TimeCard.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Confirm a timeCard. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a confirm_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConfirmRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/schedule/time_cards/item/end_break/end_break.rb b/lib/groups/item/team/schedule/time_cards/item/end_break/end_break.rb new file mode 100644 index 0000000000..6dc5bb90ba --- /dev/null +++ b/lib/groups/item/team/schedule/time_cards/item/end_break/end_break.rb @@ -0,0 +1 @@ +require_relative 'end_break_post_request_body' diff --git a/lib/groups/item/team/schedule/time_cards/item/end_break/end_break_post_request_body.rb b/lib/groups/item/team/schedule/time_cards/item/end_break/end_break_post_request_body.rb new file mode 100644 index 0000000000..a01daca183 --- /dev/null +++ b/lib/groups/item/team/schedule/time_cards/item/end_break/end_break_post_request_body.rb @@ -0,0 +1,121 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/item_body' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../team' +require_relative '../../../schedule' +require_relative '../../time_cards' +require_relative '../item' +require_relative './end_break' + +module MicrosoftGraph + module Groups + module Item + module Team + module Schedule + module TimeCards + module Item + module EndBreak + class EndBreakPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The isAtApprovedLocation property + @is_at_approved_location + ## + # The notes property + @notes + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new EndBreakPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a end_break_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return EndBreakPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "isAtApprovedLocation" => lambda {|n| @is_at_approved_location = n.get_boolean_value() }, + "notes" => lambda {|n| @notes = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ItemBody.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Gets the isAtApprovedLocation property value. The isAtApprovedLocation property + ## @return a boolean + ## + def is_at_approved_location + return @is_at_approved_location + end + ## + ## Sets the isAtApprovedLocation property value. The isAtApprovedLocation property + ## @param value Value to set for the isAtApprovedLocation property. + ## @return a void + ## + def is_at_approved_location=(value) + @is_at_approved_location = value + end + ## + ## Gets the notes property value. The notes property + ## @return a item_body + ## + def notes + return @notes + end + ## + ## Sets the notes property value. The notes property + ## @param value Value to set for the notes property. + ## @return a void + ## + def notes=(value) + @notes = value + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("isAtApprovedLocation", @is_at_approved_location) + writer.write_object_value("notes", @notes) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/schedule/time_cards/item/end_break/end_break_request_builder.rb b/lib/groups/item/team/schedule/time_cards/item/end_break/end_break_request_builder.rb new file mode 100644 index 0000000000..34f78e1ce2 --- /dev/null +++ b/lib/groups/item/team/schedule/time_cards/item/end_break/end_break_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../models/time_card' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../team' +require_relative '../../../schedule' +require_relative '../../time_cards' +require_relative '../item' +require_relative './end_break' + +module MicrosoftGraph + module Groups + module Item + module Team + module Schedule + module TimeCards + module Item + module EndBreak + ## + # Provides operations to call the endBreak method. + class EndBreakRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new EndBreakRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}/endBreak") + end + ## + ## Invoke action endBreak + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of time_card + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TimeCard.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action endBreak + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a end_break_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EndBreakRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/schedule/time_cards/item/item.rb b/lib/groups/item/team/schedule/time_cards/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/team/schedule/time_cards/item/start_break/start_break.rb b/lib/groups/item/team/schedule/time_cards/item/start_break/start_break.rb new file mode 100644 index 0000000000..318fc31b94 --- /dev/null +++ b/lib/groups/item/team/schedule/time_cards/item/start_break/start_break.rb @@ -0,0 +1 @@ +require_relative 'start_break_post_request_body' diff --git a/lib/groups/item/team/schedule/time_cards/item/start_break/start_break_post_request_body.rb b/lib/groups/item/team/schedule/time_cards/item/start_break/start_break_post_request_body.rb new file mode 100644 index 0000000000..781f95baaa --- /dev/null +++ b/lib/groups/item/team/schedule/time_cards/item/start_break/start_break_post_request_body.rb @@ -0,0 +1,121 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/item_body' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../team' +require_relative '../../../schedule' +require_relative '../../time_cards' +require_relative '../item' +require_relative './start_break' + +module MicrosoftGraph + module Groups + module Item + module Team + module Schedule + module TimeCards + module Item + module StartBreak + class StartBreakPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The isAtApprovedLocation property + @is_at_approved_location + ## + # The notes property + @notes + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new StartBreakPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a start_break_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return StartBreakPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "isAtApprovedLocation" => lambda {|n| @is_at_approved_location = n.get_boolean_value() }, + "notes" => lambda {|n| @notes = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ItemBody.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Gets the isAtApprovedLocation property value. The isAtApprovedLocation property + ## @return a boolean + ## + def is_at_approved_location + return @is_at_approved_location + end + ## + ## Sets the isAtApprovedLocation property value. The isAtApprovedLocation property + ## @param value Value to set for the isAtApprovedLocation property. + ## @return a void + ## + def is_at_approved_location=(value) + @is_at_approved_location = value + end + ## + ## Gets the notes property value. The notes property + ## @return a item_body + ## + def notes + return @notes + end + ## + ## Sets the notes property value. The notes property + ## @param value Value to set for the notes property. + ## @return a void + ## + def notes=(value) + @notes = value + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("isAtApprovedLocation", @is_at_approved_location) + writer.write_object_value("notes", @notes) + writer.write_additional_data(@additional_data) + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/schedule/time_cards/item/start_break/start_break_request_builder.rb b/lib/groups/item/team/schedule/time_cards/item/start_break/start_break_request_builder.rb new file mode 100644 index 0000000000..97a4e2d568 --- /dev/null +++ b/lib/groups/item/team/schedule/time_cards/item/start_break/start_break_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../models/time_card' +require_relative '../../../../../../groups' +require_relative '../../../../../item' +require_relative '../../../../team' +require_relative '../../../schedule' +require_relative '../../time_cards' +require_relative '../item' +require_relative './start_break' + +module MicrosoftGraph + module Groups + module Item + module Team + module Schedule + module TimeCards + module Item + module StartBreak + ## + # Provides operations to call the startBreak method. + class StartBreakRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new StartBreakRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}/startBreak") + end + ## + ## Invoke action startBreak + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of time_card + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TimeCard.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action startBreak + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a start_break_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return StartBreakRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/schedule/time_cards/item/time_card_item_request_builder.rb b/lib/groups/item/team/schedule/time_cards/item/time_card_item_request_builder.rb new file mode 100644 index 0000000000..45d4a4751a --- /dev/null +++ b/lib/groups/item/team/schedule/time_cards/item/time_card_item_request_builder.rb @@ -0,0 +1,196 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../models/time_card' +require_relative '../../../../../groups' +require_relative '../../../../item' +require_relative '../../../team' +require_relative '../../schedule' +require_relative '../time_cards' +require_relative './clock_out/clock_out_request_builder' +require_relative './confirm/confirm_request_builder' +require_relative './end_break/end_break_request_builder' +require_relative './item' +require_relative './start_break/start_break_request_builder' + +module MicrosoftGraph + module Groups + module Item + module Team + module Schedule + module TimeCards + module Item + ## + # Provides operations to manage the timeCards property of the microsoft.graph.schedule entity. + class TimeCardItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the clockOut method. + def clock_out() + return MicrosoftGraph::Groups::Item::Team::Schedule::TimeCards::Item::ClockOut::ClockOutRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the confirm method. + def confirm() + return MicrosoftGraph::Groups::Item::Team::Schedule::TimeCards::Item::Confirm::ConfirmRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the endBreak method. + def end_break() + return MicrosoftGraph::Groups::Item::Team::Schedule::TimeCards::Item::EndBreak::EndBreakRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the startBreak method. + def start_break() + return MicrosoftGraph::Groups::Item::Team::Schedule::TimeCards::Item::StartBreak::StartBreakRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new TimeCardItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}{?%24expand,%24select}") + end + ## + ## Delete navigation property timeCards for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The time cards in the schedule. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of time_card + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TimeCard.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property timeCards in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of time_card + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TimeCard.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property timeCards for groups + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## The time cards in the schedule. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property timeCards in groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a time_card_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TimeCardItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The time cards in the schedule. + class TimeCardItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/schedule/time_cards/time_cards.rb b/lib/groups/item/team/schedule/time_cards/time_cards.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/team/schedule/time_cards/time_cards_request_builder.rb b/lib/groups/item/team/schedule/time_cards/time_cards_request_builder.rb new file mode 100644 index 0000000000..f41f6dd0a9 --- /dev/null +++ b/lib/groups/item/team/schedule/time_cards/time_cards_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../models/time_card' +require_relative '../../../../../models/time_card_collection_response' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../team' +require_relative '../schedule' +require_relative './clock_in/clock_in_request_builder' +require_relative './count/count_request_builder' +require_relative './item/time_card_item_request_builder' +require_relative './time_cards' + +module MicrosoftGraph + module Groups + module Item + module Team + module Schedule + module TimeCards + ## + # Provides operations to manage the timeCards property of the microsoft.graph.schedule entity. + class TimeCardsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the clockIn method. + def clock_in() + return MicrosoftGraph::Groups::Item::Team::Schedule::TimeCards::ClockIn::ClockInRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::Team::Schedule::TimeCards::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the timeCards property of the microsoft.graph.schedule entity. + ## @param time_card_id The unique identifier of timeCard + ## @return a time_card_item_request_builder + ## + def by_time_card_id(time_card_id) + raise StandardError, 'time_card_id cannot be null' if time_card_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["timeCard%2Did"] = time_card_id + return MicrosoftGraph::Groups::Item::Team::Schedule::TimeCards::Item::TimeCardItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new TimeCardsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## The time cards in the schedule. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of time_card_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TimeCardCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to timeCards for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of time_card + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TimeCard.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The time cards in the schedule. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to timeCards for groups + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a time_cards_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TimeCardsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The time cards in the schedule. + class TimeCardsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/team/schedule/time_off_reasons/count/count_request_builder.rb b/lib/groups/item/team/schedule/time_off_reasons/count/count_request_builder.rb index eb5b89c533..1afb0822d1 100644 --- a/lib/groups/item/team/schedule/time_off_reasons/count/count_request_builder.rb +++ b/lib/groups/item/team/schedule/time_off_reasons/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeOffReasons/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeOffReasons/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/schedule/time_off_reasons/item/time_off_reason_item_request_builder.rb b/lib/groups/item/team/schedule/time_off_reasons/item/time_off_reason_item_request_builder.rb index 13ce0af796..b2128d088e 100644 --- a/lib/groups/item/team/schedule/time_off_reasons/item/time_off_reason_item_request_builder.rb +++ b/lib/groups/item/team/schedule/time_off_reasons/item/time_off_reason_item_request_builder.rb @@ -27,10 +27,10 @@ class TimeOffReasonItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestB ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeOffReasons/{timeOffReason%2Did}{?%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeOffReasons/{timeOffReason%2Did}{?%24expand,%24select}") end ## - ## Mark a timeOffReason as inactive by setting the isActive property. Every team must include at least one timeoff reason. This method does not remove the specified timeOffReason instance. timeOffItem instances that have been assigned this reason remain assigned to this reason. + ## Delete navigation property timeOffReasons for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -39,12 +39,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a timeOffReason object by ID. + ## The set of reasons for a time off in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of time_off_reason ## @@ -53,12 +52,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TimeOffReason.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Replace an existing timeOffReason. If the specified timeOffReason doesn't exist, this method returns 404 Not found. + ## Update the navigation property timeOffReasons in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of time_off_reason @@ -69,46 +67,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TimeOffReason.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Mark a timeOffReason as inactive by setting the isActive property. Every team must include at least one timeoff reason. This method does not remove the specified timeOffReason instance. timeOffItem instances that have been assigned this reason remain assigned to this reason. + ## Delete navigation property timeOffReasons for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a timeOffReason object by ID. + ## The set of reasons for a time off in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Replace an existing timeOffReason. If the specified timeOffReason doesn't exist, this method returns 404 Not found. + ## Update the navigation property timeOffReasons in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -116,22 +114,34 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a time_off_reason_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TimeOffReasonItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a timeOffReason object by ID. + # The set of reasons for a time off in the schedule. class TimeOffReasonItemRequestBuilderGetQueryParameters + ## + # Expand related entities + attr_accessor :expand ## # Select properties to be returned attr_accessor :select @@ -143,6 +153,8 @@ class TimeOffReasonItemRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "expand" + return "%24expand" when "select" return "%24select" else diff --git a/lib/groups/item/team/schedule/time_off_reasons/time_off_reasons_request_builder.rb b/lib/groups/item/team/schedule/time_off_reasons/time_off_reasons_request_builder.rb index 29092fa472..a84096ded5 100644 --- a/lib/groups/item/team/schedule/time_off_reasons/time_off_reasons_request_builder.rb +++ b/lib/groups/item/team/schedule/time_off_reasons/time_off_reasons_request_builder.rb @@ -44,10 +44,10 @@ def by_time_off_reason_id(time_off_reason_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeOffReasons{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeOffReasons{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the list of timeOffReasons in a schedule. + ## The set of reasons for a time off in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of time_off_reason_collection_response ## @@ -56,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TimeOffReasonCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new timeOffReason. + ## Create new navigation property to timeOffReasons for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of time_off_reason @@ -72,30 +71,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TimeOffReason.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the list of timeOffReasons in a schedule. + ## The set of reasons for a time off in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new timeOffReason. + ## Create new navigation property to timeOffReasons for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -103,26 +101,38 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a time_off_reasons_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TimeOffReasonsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the list of timeOffReasons in a schedule. + # The set of reasons for a time off in the schedule. class TimeOffReasonsRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -150,6 +160,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/team/schedule/time_off_requests/count/count_request_builder.rb b/lib/groups/item/team/schedule/time_off_requests/count/count_request_builder.rb index 9fcd7da568..5a6484ae91 100644 --- a/lib/groups/item/team/schedule/time_off_requests/count/count_request_builder.rb +++ b/lib/groups/item/team/schedule/time_off_requests/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeOffRequests/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeOffRequests/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/schedule/time_off_requests/item/time_off_request_item_request_builder.rb b/lib/groups/item/team/schedule/time_off_requests/item/time_off_request_item_request_builder.rb index ec888e1adb..0772548905 100644 --- a/lib/groups/item/team/schedule/time_off_requests/item/time_off_request_item_request_builder.rb +++ b/lib/groups/item/team/schedule/time_off_requests/item/time_off_request_item_request_builder.rb @@ -27,10 +27,10 @@ class TimeOffRequestItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequest ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeOffRequests/{timeOffRequest%2Did}{?%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeOffRequests/{timeOffRequest%2Did}{?%24expand,%24select}") end ## - ## Delete a timeOffRequest object. + ## Delete navigation property timeOffRequests for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -39,12 +39,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a timeoffrequest object. + ## The time off requests in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of time_off_request ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TimeOffRequest.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,42 +67,42 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TimeOffRequest.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a timeOffRequest object. + ## Delete navigation property timeOffRequests for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a timeoffrequest object. + ## The time off requests in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,22 +114,34 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a time_off_request_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TimeOffRequestItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a timeoffrequest object. + # The time off requests in the schedule. class TimeOffRequestItemRequestBuilderGetQueryParameters + ## + # Expand related entities + attr_accessor :expand ## # Select properties to be returned attr_accessor :select @@ -143,6 +153,8 @@ class TimeOffRequestItemRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "expand" + return "%24expand" when "select" return "%24select" else diff --git a/lib/groups/item/team/schedule/time_off_requests/time_off_requests_request_builder.rb b/lib/groups/item/team/schedule/time_off_requests/time_off_requests_request_builder.rb index 83dee3241d..c298e549e4 100644 --- a/lib/groups/item/team/schedule/time_off_requests/time_off_requests_request_builder.rb +++ b/lib/groups/item/team/schedule/time_off_requests/time_off_requests_request_builder.rb @@ -44,10 +44,10 @@ def by_time_off_request_id(time_off_request_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeOffRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeOffRequests{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of timeOffRequest objects in the team. + ## The time off requests in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of time_off_request_collection_response ## @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TimeOffRequestCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,26 +71,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TimeOffRequest.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of timeOffRequest objects in the team. + ## The time off requests in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,26 +101,38 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a time_off_requests_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TimeOffRequestsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of timeOffRequest objects in the team. + # The time off requests in the schedule. class TimeOffRequestsRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -150,6 +160,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/team/schedule/times_off/count/count_request_builder.rb b/lib/groups/item/team/schedule/times_off/count/count_request_builder.rb index 1e7a37fa1e..cc832e0dbf 100644 --- a/lib/groups/item/team/schedule/times_off/count/count_request_builder.rb +++ b/lib/groups/item/team/schedule/times_off/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timesOff/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timesOff/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/schedule/times_off/item/time_off_item_request_builder.rb b/lib/groups/item/team/schedule/times_off/item/time_off_item_request_builder.rb index 86c0b939e8..3f91c4ab23 100644 --- a/lib/groups/item/team/schedule/times_off/item/time_off_item_request_builder.rb +++ b/lib/groups/item/team/schedule/times_off/item/time_off_item_request_builder.rb @@ -27,10 +27,10 @@ class TimeOffItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timesOff/{timeOff%2Did}{?%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timesOff/{timeOff%2Did}{?%24expand,%24select}") end ## - ## Delete a timeOff instance from a schedule. + ## Delete navigation property timesOff for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -39,12 +39,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve the properties and relationships of a timeOff object by ID. + ## The instances of times off in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of time_off ## @@ -53,12 +52,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TimeOff.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Replace an existing timeOff object. If the specified timeOff object doesn't exist, this method returns 404 Not found. + ## Update the navigation property timesOff in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of time_off @@ -69,46 +67,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TimeOff.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a timeOff instance from a schedule. + ## Delete navigation property timesOff for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve the properties and relationships of a timeOff object by ID. + ## The instances of times off in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Replace an existing timeOff object. If the specified timeOff object doesn't exist, this method returns 404 Not found. + ## Update the navigation property timesOff in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -116,22 +114,34 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a time_off_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TimeOffItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve the properties and relationships of a timeOff object by ID. + # The instances of times off in the schedule. class TimeOffItemRequestBuilderGetQueryParameters + ## + # Expand related entities + attr_accessor :expand ## # Select properties to be returned attr_accessor :select @@ -143,6 +153,8 @@ class TimeOffItemRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "expand" + return "%24expand" when "select" return "%24select" else diff --git a/lib/groups/item/team/schedule/times_off/times_off_request_builder.rb b/lib/groups/item/team/schedule/times_off/times_off_request_builder.rb index 7d05eaa82d..453ea443e2 100644 --- a/lib/groups/item/team/schedule/times_off/times_off_request_builder.rb +++ b/lib/groups/item/team/schedule/times_off/times_off_request_builder.rb @@ -44,10 +44,10 @@ def by_time_off_id(time_off_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timesOff{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timesOff{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the list of timeOff instances in a schedule. + ## The instances of times off in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of time_off_collection_response ## @@ -56,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TimeOffCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new timeOff instance in a schedule. + ## Create new navigation property to timesOff for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of time_off @@ -72,30 +71,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TimeOff.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the list of timeOff instances in a schedule. + ## The instances of times off in the schedule. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new timeOff instance in a schedule. + ## Create new navigation property to timesOff for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -103,26 +101,38 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a times_off_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TimesOffRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the list of timeOff instances in a schedule. + # The instances of times off in the schedule. class TimesOffRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -150,6 +160,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/groups/item/team/send_activity_notification/send_activity_notification_post_request_body.rb b/lib/groups/item/team/send_activity_notification/send_activity_notification_post_request_body.rb index 9265e72311..8fa3fe8419 100644 --- a/lib/groups/item/team/send_activity_notification/send_activity_notification_post_request_body.rb +++ b/lib/groups/item/team/send_activity_notification/send_activity_notification_post_request_body.rb @@ -32,6 +32,9 @@ class SendActivityNotificationPostRequestBody # The recipient property @recipient ## + # The teamsAppId property + @teams_app_id + ## # The templateParameters property @template_parameters ## @@ -53,15 +56,15 @@ def activity_type=(value) @activity_type = value end ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -83,7 +86,7 @@ def chain_id=(value) @chain_id = value end ## - ## Instantiates a new sendActivityNotificationPostRequestBody and sets the default values. + ## Instantiates a new SendActivityNotificationPostRequestBody and sets the default values. ## @return a void ## def initialize() @@ -108,6 +111,7 @@ def get_field_deserializers() "chainId" => lambda {|n| @chain_id = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) }, "previewText" => lambda {|n| @preview_text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ItemBody.create_from_discriminator_value(pn) }) }, "recipient" => lambda {|n| @recipient = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::TeamworkNotificationRecipient.create_from_discriminator_value(pn) }) }, + "teamsAppId" => lambda {|n| @teams_app_id = n.get_string_value() }, "templateParameters" => lambda {|n| @template_parameters = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::KeyValuePair.create_from_discriminator_value(pn) }) }, "topic" => lambda {|n| @topic = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::TeamworkActivityTopic.create_from_discriminator_value(pn) }) }, } @@ -153,11 +157,27 @@ def serialize(writer) writer.write_object_value("chainId", @chain_id) writer.write_object_value("previewText", @preview_text) writer.write_object_value("recipient", @recipient) + writer.write_string_value("teamsAppId", @teams_app_id) writer.write_collection_of_object_values("templateParameters", @template_parameters) writer.write_object_value("topic", @topic) writer.write_additional_data(@additional_data) end ## + ## Gets the teamsAppId property value. The teamsAppId property + ## @return a string + ## + def teams_app_id + return @teams_app_id + end + ## + ## Sets the teamsAppId property value. The teamsAppId property + ## @param value Value to set for the teamsAppId property. + ## @return a void + ## + def teams_app_id=(value) + @teams_app_id = value + end + ## ## Gets the templateParameters property value. The templateParameters property ## @return a key_value_pair ## diff --git a/lib/groups/item/team/send_activity_notification/send_activity_notification_request_builder.rb b/lib/groups/item/team/send_activity_notification/send_activity_notification_request_builder.rb index 31b5d372fe..462995bd6f 100644 --- a/lib/groups/item/team/send_activity_notification/send_activity_notification_request_builder.rb +++ b/lib/groups/item/team/send_activity_notification/send_activity_notification_request_builder.rb @@ -25,7 +25,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/sendActivityNotification") end ## - ## Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. + ## Send an activity feed notification in the scope of a team. For more information about sending notifications and the requirements for doing so, seesending Teams activity notifications. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -36,12 +36,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. + ## Send an activity feed notification in the scope of a team. For more information about sending notifications and the requirements for doing so, seesending Teams activity notifications. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -49,16 +48,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a send_activity_notification_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SendActivityNotificationRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/team/tags/count/count_request_builder.rb b/lib/groups/item/team/tags/count/count_request_builder.rb index a00a647c52..c0569093a1 100644 --- a/lib/groups/item/team/tags/count/count_request_builder.rb +++ b/lib/groups/item/team/tags/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/tags/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/tags/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/tags/item/members/count/count_request_builder.rb b/lib/groups/item/team/tags/item/members/count/count_request_builder.rb index c63b099f4a..5cc15b3e3f 100644 --- a/lib/groups/item/team/tags/item/members/count/count_request_builder.rb +++ b/lib/groups/item/team/tags/item/members/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/tags/{teamworkTag%2Did}/members/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/tags/{teamworkTag%2Did}/members/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/team/tags/item/members/item/teamwork_tag_member_item_request_builder.rb b/lib/groups/item/team/tags/item/members/item/teamwork_tag_member_item_request_builder.rb index 7cbc77bdde..c18f9500a3 100644 --- a/lib/groups/item/team/tags/item/members/item/teamwork_tag_member_item_request_builder.rb +++ b/lib/groups/item/team/tags/item/members/item/teamwork_tag_member_item_request_builder.rb @@ -29,10 +29,10 @@ class TeamworkTagMemberItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/tags/{teamworkTag%2Did}/members/{teamworkTagMember%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/tags/{teamworkTag%2Did}/members/{teamworkTagMember%2Did}{?%24expand,%24select}") end ## - ## Delete a member from a standard tag in a team. + ## Delete navigation property members for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -41,12 +41,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get the properties and relationships of a member of a standard tag in a team. + ## Users assigned to the tag. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teamwork_tag_member ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamworkTagMember.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,42 +69,42 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamworkTagMember.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a member from a standard tag in a team. + ## Delete navigation property members for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get the properties and relationships of a member of a standard tag in a team. + ## Users assigned to the tag. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,20 +116,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a teamwork_tag_member_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TeamworkTagMemberItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the properties and relationships of a member of a standard tag in a team. + # Users assigned to the tag. class TeamworkTagMemberItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/tags/item/members/members_request_builder.rb b/lib/groups/item/team/tags/item/members/members_request_builder.rb index 87973f82c9..dc48430614 100644 --- a/lib/groups/item/team/tags/item/members/members_request_builder.rb +++ b/lib/groups/item/team/tags/item/members/members_request_builder.rb @@ -46,10 +46,10 @@ def by_teamwork_tag_member_id(teamwork_tag_member_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/tags/{teamworkTag%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/tags/{teamworkTag%2Did}/members{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get a list of the members of a standard tag in a team and their properties. + ## Users assigned to the tag. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teamwork_tag_member_collection_response ## @@ -58,12 +58,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamworkTagMemberCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new teamworkTagMember object in a team. + ## Create new navigation property to members for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teamwork_tag_member @@ -74,30 +73,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamworkTagMember.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get a list of the members of a standard tag in a team and their properties. + ## Users assigned to the tag. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new teamworkTagMember object in a team. + ## Create new navigation property to members for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a members_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return MembersRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a list of the members of a standard tag in a team and their properties. + # Users assigned to the tag. class MembersRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/tags/item/teamwork_tag_item_request_builder.rb b/lib/groups/item/team/tags/item/teamwork_tag_item_request_builder.rb index c14d8353e5..a1ea40e856 100644 --- a/lib/groups/item/team/tags/item/teamwork_tag_item_request_builder.rb +++ b/lib/groups/item/team/tags/item/teamwork_tag_item_request_builder.rb @@ -31,10 +31,10 @@ def members() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/tags/{teamworkTag%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/tags/{teamworkTag%2Did}{?%24expand,%24select}") end ## - ## Delete a tag object permanently. + ## Delete navigation property tags for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -43,12 +43,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read the properties and relationships of a tag object. + ## The tags associated with the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teamwork_tag ## @@ -57,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamworkTag.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of a tag object. + ## Update the navigation property tags in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teamwork_tag @@ -73,46 +71,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamworkTag.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a tag object permanently. + ## Delete navigation property tags for groups ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read the properties and relationships of a tag object. + ## The tags associated with the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of a tag object. + ## Update the navigation property tags in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -120,20 +118,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a teamwork_tag_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TeamworkTagItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a tag object. + # The tags associated with the team. class TeamworkTagItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/tags/tags_request_builder.rb b/lib/groups/item/team/tags/tags_request_builder.rb index b960fb210c..418a24a31a 100644 --- a/lib/groups/item/team/tags/tags_request_builder.rb +++ b/lib/groups/item/team/tags/tags_request_builder.rb @@ -42,10 +42,10 @@ def by_teamwork_tag_id(teamwork_tag_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/tags{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/tags{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get a list of the tag objects and their properties. + ## The tags associated with the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teamwork_tag_collection_response ## @@ -54,12 +54,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamworkTagCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a standard tag for members in a team. + ## Create new navigation property to tags for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teamwork_tag @@ -70,30 +69,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamworkTag.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get a list of the tag objects and their properties. + ## The tags associated with the team. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a standard tag for members in a team. + ## Create new navigation property to tags for groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -101,20 +99,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a tags_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TagsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a list of the tag objects and their properties. + # The tags associated with the team. class TagsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/team/team_request_builder.rb b/lib/groups/item/team/team_request_builder.rb index 364d45e727..a35d202c0a 100644 --- a/lib/groups/item/team/team_request_builder.rb +++ b/lib/groups/item/team/team_request_builder.rb @@ -129,7 +129,7 @@ def unarchive() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team{?%24expand,%24select}") end ## ## Delete navigation property team for groups @@ -141,8 +141,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -155,12 +154,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Team.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the navigation property team in groups + ## Create a new team under a group. In order to create a team, the group must have a least one owner. If the creation of the team call is delayed, you can retry the call up to three times before you have to wait for 15 minutes due to a propagation delay. If the group was created less than 15 minutes ago, the call might fail with a 404 error code due to replication delays. If the group was created less than 15 minutes ago, it's possible for a call to create a team to fail with a 404 error code, due to ongoing replication delays.The recommended pattern is to retry the Create team call three times, with a 10 second delay between calls. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of team @@ -171,8 +169,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Team.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -182,13 +179,14 @@ def put(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -198,19 +196,19 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the navigation property team in groups + ## Create a new team under a group. In order to create a team, the group must have a least one owner. If the creation of the team call is delayed, you can retry the call up to three times before you have to wait for 15 minutes due to a propagation delay. If the group was created less than 15 minutes ago, the call might fail with a 404 error code due to replication delays. If the group was created less than 15 minutes ago, it's possible for a call to create a team to fail with a 404 error code, due to ongoing replication delays.The recommended pattern is to retry the Create team call three times, with a 10 second delay between calls. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -218,17 +216,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a team_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TeamRequestBuilder.new(raw_url, @request_adapter) + end ## # The team associated with this group. diff --git a/lib/groups/item/team/template/template_request_builder.rb b/lib/groups/item/team/template/template_request_builder.rb index 5cc7a41a92..9522d5b937 100644 --- a/lib/groups/item/team/template/template_request_builder.rb +++ b/lib/groups/item/team/template/template_request_builder.rb @@ -23,7 +23,7 @@ class TemplateRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/template{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/template{?%24expand,%24select}") end ## ## The template this team was created from. See available templates. @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsTemplate.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,17 +45,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a template_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TemplateRequestBuilder.new(raw_url, @request_adapter) + end ## # The template this team was created from. See available templates. diff --git a/lib/groups/item/team/unarchive/unarchive_request_builder.rb b/lib/groups/item/team/unarchive/unarchive_request_builder.rb index d2d471162b..94c399612d 100644 --- a/lib/groups/item/team/unarchive/unarchive_request_builder.rb +++ b/lib/groups/item/team/unarchive/unarchive_request_builder.rb @@ -25,7 +25,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/team/unarchive") end ## - ## Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. Teams are archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + ## Restore an archived team. This API restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -34,26 +34,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. Teams are archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + ## Restore an archived team. This API restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unarchive_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnarchiveRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/threads/count/count_request_builder.rb b/lib/groups/item/threads/count/count_request_builder.rb index 67188febfd..da3c0db329 100644 --- a/lib/groups/item/threads/count/count_request_builder.rb +++ b/lib/groups/item/threads/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -65,6 +73,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -74,6 +85,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/threads/item/conversation_thread_item_request_builder.rb b/lib/groups/item/threads/item/conversation_thread_item_request_builder.rb index 9424dfbb2b..3672420ca1 100644 --- a/lib/groups/item/threads/item/conversation_thread_item_request_builder.rb +++ b/lib/groups/item/threads/item/conversation_thread_item_request_builder.rb @@ -35,7 +35,7 @@ def reply() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}{?%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}{?%24expand,%24select}") end ## ## Delete conversationThread. @@ -47,12 +47,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + ## Get a thread object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of conversation_thread ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationThread.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationThread.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,31 +85,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + ## Get a thread object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,22 +122,34 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a conversation_thread_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConversationThreadItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + # Get a thread object. class ConversationThreadItemRequestBuilderGetQueryParameters + ## + # Expand related entities + attr_accessor :expand ## # Select properties to be returned attr_accessor :select @@ -151,6 +161,8 @@ class ConversationThreadItemRequestBuilderGetQueryParameters def get_query_parameter(original_name) raise StandardError, 'original_name cannot be null' if original_name.nil? case original_name + when "expand" + return "%24expand" when "select" return "%24select" else diff --git a/lib/groups/item/threads/item/posts/count/count_request_builder.rb b/lib/groups/item/threads/item/posts/count/count_request_builder.rb index b65df38f3d..ab619c7bac 100644 --- a/lib/groups/item/threads/item/posts/count/count_request_builder.rb +++ b/lib/groups/item/threads/item/posts/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -69,6 +77,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -78,6 +89,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/threads/item/posts/item/attachments/attachments_request_builder.rb b/lib/groups/item/threads/item/posts/item/attachments/attachments_request_builder.rb index 48b91600df..476e4328e5 100644 --- a/lib/groups/item/threads/item/posts/item/attachments/attachments_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/attachments/attachments_request_builder.rb @@ -54,7 +54,7 @@ def by_attachment_id(attachment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of attachment objects attached to a post. @@ -66,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,8 +81,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,15 +91,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -113,17 +111,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of attachment objects attached to a post. @@ -142,6 +149,9 @@ class AttachmentsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -166,6 +176,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/threads/item/posts/item/attachments/count/count_request_builder.rb b/lib/groups/item/threads/item/posts/item/attachments/count/count_request_builder.rb index 801ca8fbf3..262289db50 100644 --- a/lib/groups/item/threads/item/posts/item/attachments/count/count_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/attachments/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -73,6 +81,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -82,6 +93,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/threads/item/posts/item/attachments/create_upload_session/create_upload_session_post_request_body.rb b/lib/groups/item/threads/item/posts/item/attachments/create_upload_session/create_upload_session_post_request_body.rb index 4217feaacd..8680fdc919 100644 --- a/lib/groups/item/threads/item/posts/item/attachments/create_upload_session/create_upload_session_post_request_body.rb +++ b/lib/groups/item/threads/item/posts/item/attachments/create_upload_session/create_upload_session_post_request_body.rb @@ -28,15 +28,15 @@ class CreateUploadSessionPostRequestBody # The AttachmentItem property @attachment_item ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -58,7 +58,7 @@ def attachment_item=(value) @attachment_item = value end ## - ## Instantiates a new createUploadSessionPostRequestBody and sets the default values. + ## Instantiates a new CreateUploadSessionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/threads/item/posts/item/attachments/create_upload_session/create_upload_session_request_builder.rb b/lib/groups/item/threads/item/posts/item/attachments/create_upload_session/create_upload_session_request_builder.rb index 1b49f0e88e..d38652fa9d 100644 --- a/lib/groups/item/threads/item/posts/item/attachments/create_upload_session/create_upload_session_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/attachments/create_upload_session/create_upload_session_request_builder.rb @@ -34,7 +34,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/createUploadSession") end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of upload_session @@ -45,12 +45,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UploadSession.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -58,17 +57,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a create_upload_session_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreateUploadSessionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/threads/item/posts/item/attachments/item/attachment_item_request_builder.rb b/lib/groups/item/threads/item/posts/item/attachments/item/attachment_item_request_builder.rb index b46937006d..5200989e3b 100644 --- a/lib/groups/item/threads/item/posts/item/attachments/item/attachment_item_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/attachments/item/attachment_item_request_builder.rb @@ -31,7 +31,7 @@ class AttachmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/{attachment%2Did}{?%24expand,%24select}") end ## ## Delete navigation property attachments for groups @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,13 +66,14 @@ def get(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -84,17 +83,26 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/groups/item/threads/item/posts/item/extensions/count/count_request_builder.rb b/lib/groups/item/threads/item/posts/item/extensions/count/count_request_builder.rb index 1bc7581dd8..0402067a64 100644 --- a/lib/groups/item/threads/item/posts/item/extensions/count/count_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/extensions/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -73,6 +81,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -82,6 +93,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/threads/item/posts/item/extensions/extensions_request_builder.rb b/lib/groups/item/threads/item/posts/item/extensions/extensions_request_builder.rb index 8ee2ec778f..8464a12d4b 100644 --- a/lib/groups/item/threads/item/posts/item/extensions/extensions_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/extensions/extensions_request_builder.rb @@ -48,7 +48,7 @@ def by_extension_id(extension_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. @@ -60,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExtensionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,8 +75,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,15 +85,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -107,17 +105,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extensions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. @@ -136,6 +143,9 @@ class ExtensionsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -160,6 +170,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/threads/item/posts/item/extensions/item/extension_item_request_builder.rb b/lib/groups/item/threads/item/posts/item/extensions/item/extension_item_request_builder.rb index fdfdcf8073..989aaa8d84 100644 --- a/lib/groups/item/threads/item/posts/item/extensions/item/extension_item_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/extensions/item/extension_item_request_builder.rb @@ -31,7 +31,7 @@ class ExtensionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions/{extension%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions/{extension%2Did}{?%24expand,%24select}") end ## ## Delete navigation property extensions for groups @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + ## Update an open extension (openTypeExtension object) on a supported resource type.- If a property in the request body matches the name of an existing property in the extension, the data in the extension is updated.- Otherwise, that property and its data are added to the extension. The data in an extension can be primitive types or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,19 +98,19 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + ## Update an open extension (openTypeExtension object) on a supported resource type.- If a property in the request body matches the name of an existing property in the extension, the data in the extension is updated.- Otherwise, that property and its data are added to the extension. The data in an extension can be primitive types or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extension_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. diff --git a/lib/groups/item/threads/item/posts/item/forward/forward_post_request_body.rb b/lib/groups/item/threads/item/posts/item/forward/forward_post_request_body.rb index 20627a8f6a..84b9b5b4bf 100644 --- a/lib/groups/item/threads/item/posts/item/forward/forward_post_request_body.rb +++ b/lib/groups/item/threads/item/posts/item/forward/forward_post_request_body.rb @@ -29,15 +29,15 @@ class ForwardPostRequestBody # The ToRecipients property @to_recipients ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -59,7 +59,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new forwardPostRequestBody and sets the default values. + ## Instantiates a new ForwardPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/threads/item/posts/item/forward/forward_request_builder.rb b/lib/groups/item/threads/item/posts/item/forward/forward_request_builder.rb index 8ddbba43c8..fda907625f 100644 --- a/lib/groups/item/threads/item/posts/item/forward/forward_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/forward/forward_request_builder.rb @@ -42,8 +42,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,16 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a forward_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ForwardRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/threads/item/posts/item/in_reply_to/attachments/attachments_request_builder.rb b/lib/groups/item/threads/item/posts/item/in_reply_to/attachments/attachments_request_builder.rb index ad32ee90e0..bf5538ce0f 100644 --- a/lib/groups/item/threads/item/posts/item/in_reply_to/attachments/attachments_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/in_reply_to/attachments/attachments_request_builder.rb @@ -56,10 +56,10 @@ def by_attachment_id(attachment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of attachment objects attached to a post. + ## Read-only. Nullable. Supports $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment_collection_response ## @@ -68,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,26 +83,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of attachment objects attached to a post. + ## Read-only. Nullable. Supports $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -115,20 +113,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of attachment objects attached to a post. + # Read-only. Nullable. Supports $expand. class AttachmentsRequestBuilderGetQueryParameters ## @@ -144,6 +151,9 @@ class AttachmentsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -168,6 +178,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/threads/item/posts/item/in_reply_to/attachments/count/count_request_builder.rb b/lib/groups/item/threads/item/posts/item/in_reply_to/attachments/count/count_request_builder.rb index 779ada8548..7a7d1c229d 100644 --- a/lib/groups/item/threads/item/posts/item/in_reply_to/attachments/count/count_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/in_reply_to/attachments/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -75,6 +83,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -84,6 +95,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/threads/item/posts/item/in_reply_to/attachments/create_upload_session/create_upload_session_post_request_body.rb b/lib/groups/item/threads/item/posts/item/in_reply_to/attachments/create_upload_session/create_upload_session_post_request_body.rb index df8c392ff0..155513aa2f 100644 --- a/lib/groups/item/threads/item/posts/item/in_reply_to/attachments/create_upload_session/create_upload_session_post_request_body.rb +++ b/lib/groups/item/threads/item/posts/item/in_reply_to/attachments/create_upload_session/create_upload_session_post_request_body.rb @@ -30,15 +30,15 @@ class CreateUploadSessionPostRequestBody # The AttachmentItem property @attachment_item ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -60,7 +60,7 @@ def attachment_item=(value) @attachment_item = value end ## - ## Instantiates a new createUploadSessionPostRequestBody and sets the default values. + ## Instantiates a new CreateUploadSessionPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/threads/item/posts/item/in_reply_to/attachments/create_upload_session/create_upload_session_request_builder.rb b/lib/groups/item/threads/item/posts/item/in_reply_to/attachments/create_upload_session/create_upload_session_request_builder.rb index cfdfedb0e0..d261dc182b 100644 --- a/lib/groups/item/threads/item/posts/item/in_reply_to/attachments/create_upload_session/create_upload_session_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/in_reply_to/attachments/create_upload_session/create_upload_session_request_builder.rb @@ -36,7 +36,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/createUploadSession") end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of upload_session @@ -47,12 +47,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UploadSession.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + ## Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -60,17 +59,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a create_upload_session_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CreateUploadSessionRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/threads/item/posts/item/in_reply_to/attachments/item/attachment_item_request_builder.rb b/lib/groups/item/threads/item/posts/item/in_reply_to/attachments/item/attachment_item_request_builder.rb index 98e031a076..e783bfa38f 100644 --- a/lib/groups/item/threads/item/posts/item/in_reply_to/attachments/item/attachment_item_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/in_reply_to/attachments/item/attachment_item_request_builder.rb @@ -33,7 +33,7 @@ class AttachmentItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuil ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/{attachment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/{attachment%2Did}{?%24expand,%24select}") end ## ## Delete navigation property attachments for groups @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,13 +68,14 @@ def get(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -86,17 +85,26 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attachment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttachmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/groups/item/threads/item/posts/item/in_reply_to/extensions/count/count_request_builder.rb b/lib/groups/item/threads/item/posts/item/in_reply_to/extensions/count/count_request_builder.rb index 8aa44d2906..6326dff8a8 100644 --- a/lib/groups/item/threads/item/posts/item/in_reply_to/extensions/count/count_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/in_reply_to/extensions/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions/$count{?%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource @@ -75,6 +83,9 @@ class CountRequestBuilderGetQueryParameters # Filter items by property values attr_accessor :filter ## + # Search items by search phrases + attr_accessor :search + ## ## Maps the query parameters names to their encoded names for the URI template parsing. ## @param original_name The original query parameter name in the class. ## @return a string @@ -84,6 +95,8 @@ def get_query_parameter(original_name) case original_name when "filter" return "%24filter" + when "search" + return "%24search" else return original_name end diff --git a/lib/groups/item/threads/item/posts/item/in_reply_to/extensions/extensions_request_builder.rb b/lib/groups/item/threads/item/posts/item/in_reply_to/extensions/extensions_request_builder.rb index f0be6167ba..5cef3ce724 100644 --- a/lib/groups/item/threads/item/posts/item/in_reply_to/extensions/extensions_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/in_reply_to/extensions/extensions_request_builder.rb @@ -50,10 +50,10 @@ def by_extension_id(extension_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension_collection_response ## @@ -62,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExtensionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,26 +77,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extensions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + # The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. class ExtensionsRequestBuilderGetQueryParameters ## @@ -138,6 +145,9 @@ class ExtensionsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -162,6 +172,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/threads/item/posts/item/in_reply_to/extensions/item/extension_item_request_builder.rb b/lib/groups/item/threads/item/posts/item/in_reply_to/extensions/item/extension_item_request_builder.rb index aa8a301e2c..8bb35139f3 100644 --- a/lib/groups/item/threads/item/posts/item/in_reply_to/extensions/item/extension_item_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/in_reply_to/extensions/item/extension_item_request_builder.rb @@ -33,7 +33,7 @@ class ExtensionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions/{extension%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions/{extension%2Did}{?%24expand,%24select}") end ## ## Delete navigation property extensions for groups @@ -45,12 +45,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension ## @@ -59,12 +58,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + ## Update the navigation property extensions in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of extension @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,35 +83,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + ## Update the navigation property extensions in groups ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -122,20 +120,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a extension_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExtensionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + # The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. class ExtensionItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/threads/item/posts/item/in_reply_to/forward/forward_post_request_body.rb b/lib/groups/item/threads/item/posts/item/in_reply_to/forward/forward_post_request_body.rb index 5df7f0a67d..7ae19e23b1 100644 --- a/lib/groups/item/threads/item/posts/item/in_reply_to/forward/forward_post_request_body.rb +++ b/lib/groups/item/threads/item/posts/item/in_reply_to/forward/forward_post_request_body.rb @@ -31,15 +31,15 @@ class ForwardPostRequestBody # The ToRecipients property @to_recipients ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -61,7 +61,7 @@ def comment=(value) @comment = value end ## - ## Instantiates a new forwardPostRequestBody and sets the default values. + ## Instantiates a new ForwardPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/threads/item/posts/item/in_reply_to/forward/forward_request_builder.rb b/lib/groups/item/threads/item/posts/item/in_reply_to/forward/forward_request_builder.rb index 64c11d1d0f..47008dce96 100644 --- a/lib/groups/item/threads/item/posts/item/in_reply_to/forward/forward_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/in_reply_to/forward/forward_request_builder.rb @@ -44,8 +44,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,16 +56,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a forward_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ForwardRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/threads/item/posts/item/in_reply_to/in_reply_to_request_builder.rb b/lib/groups/item/threads/item/posts/item/in_reply_to/in_reply_to_request_builder.rb index 2e330f6aac..79c9414c3e 100644 --- a/lib/groups/item/threads/item/posts/item/in_reply_to/in_reply_to_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/in_reply_to/in_reply_to_request_builder.rb @@ -53,7 +53,7 @@ def reply() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo{?%24expand,%24select}") end ## ## Read-only. Supports $expand. @@ -65,8 +65,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Post.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,17 +75,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a in_reply_to_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InReplyToRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Supports $expand. diff --git a/lib/groups/item/threads/item/posts/item/in_reply_to/reply/reply_post_request_body.rb b/lib/groups/item/threads/item/posts/item/in_reply_to/reply/reply_post_request_body.rb index 5ee9dcbce5..772eb55a26 100644 --- a/lib/groups/item/threads/item/posts/item/in_reply_to/reply/reply_post_request_body.rb +++ b/lib/groups/item/threads/item/posts/item/in_reply_to/reply/reply_post_request_body.rb @@ -28,22 +28,22 @@ class ReplyPostRequestBody # The Post property @post ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new replyPostRequestBody and sets the default values. + ## Instantiates a new ReplyPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/threads/item/posts/item/in_reply_to/reply/reply_request_builder.rb b/lib/groups/item/threads/item/posts/item/in_reply_to/reply/reply_request_builder.rb index 381f05e649..a45a44440a 100644 --- a/lib/groups/item/threads/item/posts/item/in_reply_to/reply/reply_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/in_reply_to/reply/reply_request_builder.rb @@ -33,7 +33,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/reply") end ## - ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + ## Invoke action reply ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -44,12 +44,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + ## Invoke action reply ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -57,16 +56,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reply_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReplyRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/threads/item/posts/item/post_item_request_builder.rb b/lib/groups/item/threads/item/posts/item/post_item_request_builder.rb index 7ea29aade2..9e9c65df86 100644 --- a/lib/groups/item/threads/item/posts/item/post_item_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/post_item_request_builder.rb @@ -57,7 +57,7 @@ def reply() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}{?%24expand,%24select}") end ## ## Get posts from groups @@ -69,8 +69,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Post.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,17 +79,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a post_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PostItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get posts from groups diff --git a/lib/groups/item/threads/item/posts/item/reply/reply_post_request_body.rb b/lib/groups/item/threads/item/posts/item/reply/reply_post_request_body.rb index f029f6dba3..56cea0cb27 100644 --- a/lib/groups/item/threads/item/posts/item/reply/reply_post_request_body.rb +++ b/lib/groups/item/threads/item/posts/item/reply/reply_post_request_body.rb @@ -26,22 +26,22 @@ class ReplyPostRequestBody # The Post property @post ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new replyPostRequestBody and sets the default values. + ## Instantiates a new ReplyPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/threads/item/posts/item/reply/reply_request_builder.rb b/lib/groups/item/threads/item/posts/item/reply/reply_request_builder.rb index f398f4e807..42421329c1 100644 --- a/lib/groups/item/threads/item/posts/item/reply/reply_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/reply/reply_request_builder.rb @@ -31,7 +31,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/reply") end ## - ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + ## Invoke action reply ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -42,12 +42,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + ## Invoke action reply ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -55,16 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reply_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReplyRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/threads/item/posts/posts_request_builder.rb b/lib/groups/item/threads/item/posts/posts_request_builder.rb index df20facc02..aba23d9c7d 100644 --- a/lib/groups/item/threads/item/posts/posts_request_builder.rb +++ b/lib/groups/item/threads/item/posts/posts_request_builder.rb @@ -43,10 +43,10 @@ def by_post_id(post_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + ## Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of post_collection_response ## @@ -55,31 +55,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PostCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + ## Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a posts_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PostsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + # Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. class PostsRequestBuilderGetQueryParameters ## @@ -95,6 +103,9 @@ class PostsRequestBuilderGetQueryParameters # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -119,6 +130,8 @@ def get_query_parameter(original_name) return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/threads/item/reply/reply_post_request_body.rb b/lib/groups/item/threads/item/reply/reply_post_request_body.rb index 78ea09b1d9..5d6abbac88 100644 --- a/lib/groups/item/threads/item/reply/reply_post_request_body.rb +++ b/lib/groups/item/threads/item/reply/reply_post_request_body.rb @@ -22,22 +22,22 @@ class ReplyPostRequestBody # The Post property @post ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new replyPostRequestBody and sets the default values. + ## Instantiates a new ReplyPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/threads/item/reply/reply_request_builder.rb b/lib/groups/item/threads/item/reply/reply_request_builder.rb index 8838e368eb..2cbad94314 100644 --- a/lib/groups/item/threads/item/reply/reply_request_builder.rb +++ b/lib/groups/item/threads/item/reply/reply_request_builder.rb @@ -27,7 +27,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/reply") end ## - ## Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -38,12 +38,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -51,16 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reply_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReplyRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/threads/threads_request_builder.rb b/lib/groups/item/threads/threads_request_builder.rb index afe3d20d48..39ee539de7 100644 --- a/lib/groups/item/threads/threads_request_builder.rb +++ b/lib/groups/item/threads/threads_request_builder.rb @@ -40,7 +40,7 @@ def by_conversation_thread_id(conversation_thread_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/threads{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get all the threads of a group. @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationThreadCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationThread.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,15 +77,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a threads_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ThreadsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get all the threads of a group. @@ -119,12 +126,18 @@ class ThreadsRequestBuilderGetQueryParameters # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## # Order items by property values attr_accessor :orderby ## + # Search items by search phrases + attr_accessor :search + ## # Select properties to be returned attr_accessor :select ## @@ -143,10 +156,14 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" return "%24orderby" + when "search" + return "%24search" when "select" return "%24select" when "skip" diff --git a/lib/groups/item/transitive_member_of/count/count_request_builder.rb b/lib/groups/item/transitive_member_of/count/count_request_builder.rb index 1a764623fe..5eaaa86d6d 100644 --- a/lib/groups/item/transitive_member_of/count/count_request_builder.rb +++ b/lib/groups/item/transitive_member_of/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMemberOf/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMemberOf/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb b/lib/groups/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb index 1fe049b322..02fb8d9cc8 100644 --- a/lib/groups/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb +++ b/lib/groups/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMemberOf/graph.administrativeUnit/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMemberOf/graph.administrativeUnit/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/groups/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb index f2efbb4857..200a9f8424 100644 --- a/lib/groups/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +++ b/lib/groups/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMemberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMemberOf/graph.administrativeUnit{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnitCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_administrative_unit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAdministrativeUnitRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/transitive_member_of/graph_group/count/count_request_builder.rb b/lib/groups/item/transitive_member_of/graph_group/count/count_request_builder.rb index 2646a72fd0..3b90e79592 100644 --- a/lib/groups/item/transitive_member_of/graph_group/count/count_request_builder.rb +++ b/lib/groups/item/transitive_member_of/graph_group/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMemberOf/graph.group/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMemberOf/graph.group/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/transitive_member_of/graph_group/graph_group_request_builder.rb b/lib/groups/item/transitive_member_of/graph_group/graph_group_request_builder.rb index b2e0de34bd..abf56be86e 100644 --- a/lib/groups/item/transitive_member_of/graph_group/graph_group_request_builder.rb +++ b/lib/groups/item/transitive_member_of/graph_group/graph_group_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMemberOf/graph.group{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMemberOf/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/transitive_member_of/item/directory_object_item_request_builder.rb b/lib/groups/item/transitive_member_of/item/directory_object_item_request_builder.rb index dfed94b530..3b7c20081d 100644 --- a/lib/groups/item/transitive_member_of/item/directory_object_item_request_builder.rb +++ b/lib/groups/item/transitive_member_of/item/directory_object_item_request_builder.rb @@ -35,10 +35,10 @@ def graph_group() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMemberOf/{directoryObject%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMemberOf/{directoryObject%2Did}{?%24expand,%24select}") end ## - ## The groups that a group is a member of, either directly and through nested membership. Nullable. + ## The groups that a group is a member of, either directly or through nested membership. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object ## @@ -47,31 +47,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The groups that a group is a member of, either directly and through nested membership. Nullable. + ## The groups that a group is a member of, either directly or through nested membership. Nullable. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directory_object_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoryObjectItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # The groups that a group is a member of, either directly and through nested membership. Nullable. + # The groups that a group is a member of, either directly or through nested membership. Nullable. class DirectoryObjectItemRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/groups/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb index 11a9499744..097929de4b 100644 --- a/lib/groups/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +++ b/lib/groups/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -25,7 +25,7 @@ class GraphAdministrativeUnitRequestBuilder < MicrosoftKiotaAbstractions::BaseRe ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_administrative_unit_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphAdministrativeUnitRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit diff --git a/lib/groups/item/transitive_member_of/item/graph_group/graph_group_request_builder.rb b/lib/groups/item/transitive_member_of/item/graph_group/graph_group_request_builder.rb index 751c03eed2..a91f4714ac 100644 --- a/lib/groups/item/transitive_member_of/item/graph_group/graph_group_request_builder.rb +++ b/lib/groups/item/transitive_member_of/item/graph_group/graph_group_request_builder.rb @@ -25,7 +25,7 @@ class GraphGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.group{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.group{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.group @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.group diff --git a/lib/groups/item/transitive_member_of/transitive_member_of_request_builder.rb b/lib/groups/item/transitive_member_of/transitive_member_of_request_builder.rb index 862a6d6148..81478efbf2 100644 --- a/lib/groups/item/transitive_member_of/transitive_member_of_request_builder.rb +++ b/lib/groups/item/transitive_member_of/transitive_member_of_request_builder.rb @@ -51,10 +51,10 @@ def by_directory_object_id(directory_object_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMemberOf{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMemberOf{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## The groups that a group is a member of, either directly and through nested membership. Nullable. + ## Get groups that the group is a member of. This operation is transitive and will also include all groups that this group is a nested member of. Unlike getting a user's Microsoft 365 groups, this returns all types of groups, not just Microsoft 365 groups. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object_collection_response ## @@ -63,31 +63,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The groups that a group is a member of, either directly and through nested membership. Nullable. + ## Get groups that the group is a member of. This operation is transitive and will also include all groups that this group is a nested member of. Unlike getting a user's Microsoft 365 groups, this returns all types of groups, not just Microsoft 365 groups. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a transitive_member_of_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TransitiveMemberOfRequestBuilder.new(raw_url, @request_adapter) + end ## - # The groups that a group is a member of, either directly and through nested membership. Nullable. + # Get groups that the group is a member of. This operation is transitive and will also include all groups that this group is a nested member of. Unlike getting a user's Microsoft 365 groups, this returns all types of groups, not just Microsoft 365 groups. class TransitiveMemberOfRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/transitive_members/count/count_request_builder.rb b/lib/groups/item/transitive_members/count/count_request_builder.rb index 9e8b626899..0c9e1b68b3 100644 --- a/lib/groups/item/transitive_members/count/count_request_builder.rb +++ b/lib/groups/item/transitive_members/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/transitive_members/graph_application/count/count_request_builder.rb b/lib/groups/item/transitive_members/graph_application/count/count_request_builder.rb index 157c537050..3eefdaef06 100644 --- a/lib/groups/item/transitive_members/graph_application/count/count_request_builder.rb +++ b/lib/groups/item/transitive_members/graph_application/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.application/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.application/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/transitive_members/graph_application/graph_application_request_builder.rb b/lib/groups/item/transitive_members/graph_application/graph_application_request_builder.rb index fd1e0081b5..ad7b2bd387 100644 --- a/lib/groups/item/transitive_members/graph_application/graph_application_request_builder.rb +++ b/lib/groups/item/transitive_members/graph_application/graph_application_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.application{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.application{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ApplicationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_application_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphApplicationRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/transitive_members/graph_device/count/count_request_builder.rb b/lib/groups/item/transitive_members/graph_device/count/count_request_builder.rb index 584f0f6135..86bcb96ed7 100644 --- a/lib/groups/item/transitive_members/graph_device/count/count_request_builder.rb +++ b/lib/groups/item/transitive_members/graph_device/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.device/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.device/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/transitive_members/graph_device/graph_device_request_builder.rb b/lib/groups/item/transitive_members/graph_device/graph_device_request_builder.rb index 0786f32689..2809aabe10 100644 --- a/lib/groups/item/transitive_members/graph_device/graph_device_request_builder.rb +++ b/lib/groups/item/transitive_members/graph_device/graph_device_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.device{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.device{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeviceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_device_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphDeviceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/transitive_members/graph_group/count/count_request_builder.rb b/lib/groups/item/transitive_members/graph_group/count/count_request_builder.rb index 82b7390f61..3ae4a7e0cb 100644 --- a/lib/groups/item/transitive_members/graph_group/count/count_request_builder.rb +++ b/lib/groups/item/transitive_members/graph_group/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.group/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.group/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/transitive_members/graph_group/graph_group_request_builder.rb b/lib/groups/item/transitive_members/graph_group/graph_group_request_builder.rb index c11bf014d3..edfe5727c8 100644 --- a/lib/groups/item/transitive_members/graph_group/graph_group_request_builder.rb +++ b/lib/groups/item/transitive_members/graph_group/graph_group_request_builder.rb @@ -29,10 +29,10 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.group{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection + ## Get a list of the group's members. A group can have different object types as members. For more information about supported member types for different groups, see Group membership. This operation is transitive and returns a flat list of all nested members. An attempt to filter by an OData cast that represents an unsupported member type returns a 400 Bad Request error with the Request_UnsupportedQuery code. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of group_collection_response ## @@ -41,31 +41,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection + ## Get a list of the group's members. A group can have different object types as members. For more information about supported member types for different groups, see Group membership. This operation is transitive and returns a flat list of all nested members. An attempt to filter by an OData cast that represents an unsupported member type returns a 400 Bad Request error with the Request_UnsupportedQuery code. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection + # Get a list of the group's members. A group can have different object types as members. For more information about supported member types for different groups, see Group membership. This operation is transitive and returns a flat list of all nested members. An attempt to filter by an OData cast that represents an unsupported member type returns a 400 Bad Request error with the Request_UnsupportedQuery code. class GraphGroupRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/transitive_members/graph_org_contact/count/count_request_builder.rb b/lib/groups/item/transitive_members/graph_org_contact/count/count_request_builder.rb index c2827c04be..bc4c976a70 100644 --- a/lib/groups/item/transitive_members/graph_org_contact/count/count_request_builder.rb +++ b/lib/groups/item/transitive_members/graph_org_contact/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.orgContact/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.orgContact/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/transitive_members/graph_org_contact/graph_org_contact_request_builder.rb b/lib/groups/item/transitive_members/graph_org_contact/graph_org_contact_request_builder.rb index ad315e6324..6fd4095732 100644 --- a/lib/groups/item/transitive_members/graph_org_contact/graph_org_contact_request_builder.rb +++ b/lib/groups/item/transitive_members/graph_org_contact/graph_org_contact_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.orgContact{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.orgContact{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OrgContactCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_org_contact_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphOrgContactRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/transitive_members/graph_service_principal/count/count_request_builder.rb b/lib/groups/item/transitive_members/graph_service_principal/count/count_request_builder.rb index 80728dfe50..055f90c02a 100644 --- a/lib/groups/item/transitive_members/graph_service_principal/count/count_request_builder.rb +++ b/lib/groups/item/transitive_members/graph_service_principal/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.servicePrincipal/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.servicePrincipal/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/transitive_members/graph_service_principal/graph_service_principal_request_builder.rb b/lib/groups/item/transitive_members/graph_service_principal/graph_service_principal_request_builder.rb index 9df9a12b73..565cbf23a1 100644 --- a/lib/groups/item/transitive_members/graph_service_principal/graph_service_principal_request_builder.rb +++ b/lib/groups/item/transitive_members/graph_service_principal/graph_service_principal_request_builder.rb @@ -29,7 +29,7 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.servicePrincipal{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.servicePrincipal{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServicePrincipalCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_service_principal_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphServicePrincipalRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection diff --git a/lib/groups/item/transitive_members/graph_user/count/count_request_builder.rb b/lib/groups/item/transitive_members/graph_user/count/count_request_builder.rb index ba2ef719ff..e4dd97aa65 100644 --- a/lib/groups/item/transitive_members/graph_user/count/count_request_builder.rb +++ b/lib/groups/item/transitive_members/graph_user/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.user/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.user/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/groups/item/transitive_members/graph_user/graph_user_request_builder.rb b/lib/groups/item/transitive_members/graph_user/graph_user_request_builder.rb index 1232a33520..d694890fde 100644 --- a/lib/groups/item/transitive_members/graph_user/graph_user_request_builder.rb +++ b/lib/groups/item/transitive_members/graph_user/graph_user_request_builder.rb @@ -29,10 +29,10 @@ def count() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.user{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/graph.user{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection + ## Get a list of the group's members. A group can have different object types as members. For more information about supported member types for different groups, see Group membership. This operation is transitive and returns a flat list of all nested members. An attempt to filter by an OData cast that represents an unsupported member type returns a 400 Bad Request error with the Request_UnsupportedQuery code. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of user_collection_response ## @@ -41,31 +41,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection + ## Get a list of the group's members. A group can have different object types as members. For more information about supported member types for different groups, see Group membership. This operation is transitive and returns a flat list of all nested members. An attempt to filter by an OData cast that represents an unsupported member type returns a 400 Bad Request error with the Request_UnsupportedQuery code. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphUserRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection + # Get a list of the group's members. A group can have different object types as members. For more information about supported member types for different groups, see Group membership. This operation is transitive and returns a flat list of all nested members. An attempt to filter by an OData cast that represents an unsupported member type returns a 400 Bad Request error with the Request_UnsupportedQuery code. class GraphUserRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/transitive_members/item/directory_object_item_request_builder.rb b/lib/groups/item/transitive_members/item/directory_object_item_request_builder.rb index 980fb2a818..219205769d 100644 --- a/lib/groups/item/transitive_members/item/directory_object_item_request_builder.rb +++ b/lib/groups/item/transitive_members/item/directory_object_item_request_builder.rb @@ -59,7 +59,7 @@ def graph_user() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/{directoryObject%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/{directoryObject%2Did}{?%24expand,%24select}") end ## ## The direct and transitive members of a group. Nullable. @@ -71,8 +71,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,17 +81,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a directory_object_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DirectoryObjectItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The direct and transitive members of a group. Nullable. diff --git a/lib/groups/item/transitive_members/item/graph_application/graph_application_request_builder.rb b/lib/groups/item/transitive_members/item/graph_application/graph_application_request_builder.rb index b2c43279b4..35d9e05850 100644 --- a/lib/groups/item/transitive_members/item/graph_application/graph_application_request_builder.rb +++ b/lib/groups/item/transitive_members/item/graph_application/graph_application_request_builder.rb @@ -25,7 +25,7 @@ class GraphApplicationRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBu ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/{directoryObject%2Did}/graph.application{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/{directoryObject%2Did}/graph.application{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.application @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Application.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_application_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphApplicationRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.application diff --git a/lib/groups/item/transitive_members/item/graph_device/graph_device_request_builder.rb b/lib/groups/item/transitive_members/item/graph_device/graph_device_request_builder.rb index 5b048f12b6..ac2d50d9dc 100644 --- a/lib/groups/item/transitive_members/item/graph_device/graph_device_request_builder.rb +++ b/lib/groups/item/transitive_members/item/graph_device/graph_device_request_builder.rb @@ -25,7 +25,7 @@ class GraphDeviceRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/{directoryObject%2Did}/graph.device{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/{directoryObject%2Did}/graph.device{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.device @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Device.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_device_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphDeviceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.device diff --git a/lib/groups/item/transitive_members/item/graph_group/graph_group_request_builder.rb b/lib/groups/item/transitive_members/item/graph_group/graph_group_request_builder.rb index ba6c3fe590..1f03828a6f 100644 --- a/lib/groups/item/transitive_members/item/graph_group/graph_group_request_builder.rb +++ b/lib/groups/item/transitive_members/item/graph_group/graph_group_request_builder.rb @@ -25,10 +25,10 @@ class GraphGroupRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/{directoryObject%2Did}/graph.group{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/{directoryObject%2Did}/graph.group{?%24expand,%24select}") end ## - ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.group + ## Get a list of the group's members. A group can have different object types as members. For more information about supported member types for different groups, see Group membership. This operation is transitive and returns a flat list of all nested members. An attempt to filter by an OData cast that represents an unsupported member type returns a 400 Bad Request error with the Request_UnsupportedQuery code. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of group ## @@ -37,31 +37,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.group + ## Get a list of the group's members. A group can have different object types as members. For more information about supported member types for different groups, see Group membership. This operation is transitive and returns a flat list of all nested members. An attempt to filter by an OData cast that represents an unsupported member type returns a 400 Bad Request error with the Request_UnsupportedQuery code. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_group_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphGroupRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the item of type microsoft.graph.directoryObject as microsoft.graph.group + # Get a list of the group's members. A group can have different object types as members. For more information about supported member types for different groups, see Group membership. This operation is transitive and returns a flat list of all nested members. An attempt to filter by an OData cast that represents an unsupported member type returns a 400 Bad Request error with the Request_UnsupportedQuery code. class GraphGroupRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/transitive_members/item/graph_org_contact/graph_org_contact_request_builder.rb b/lib/groups/item/transitive_members/item/graph_org_contact/graph_org_contact_request_builder.rb index facd58305f..15000fbd3e 100644 --- a/lib/groups/item/transitive_members/item/graph_org_contact/graph_org_contact_request_builder.rb +++ b/lib/groups/item/transitive_members/item/graph_org_contact/graph_org_contact_request_builder.rb @@ -25,7 +25,7 @@ class GraphOrgContactRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/{directoryObject%2Did}/graph.orgContact{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/{directoryObject%2Did}/graph.orgContact{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OrgContact.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_org_contact_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphOrgContactRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact diff --git a/lib/groups/item/transitive_members/item/graph_service_principal/graph_service_principal_request_builder.rb b/lib/groups/item/transitive_members/item/graph_service_principal/graph_service_principal_request_builder.rb index 416441bed8..2f8fb831f4 100644 --- a/lib/groups/item/transitive_members/item/graph_service_principal/graph_service_principal_request_builder.rb +++ b/lib/groups/item/transitive_members/item/graph_service_principal/graph_service_principal_request_builder.rb @@ -25,7 +25,7 @@ class GraphServicePrincipalRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/{directoryObject%2Did}/graph.servicePrincipal{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/{directoryObject%2Did}/graph.servicePrincipal{?%24expand,%24select}") end ## ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServicePrincipal.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_service_principal_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphServicePrincipalRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal diff --git a/lib/groups/item/transitive_members/item/graph_user/graph_user_request_builder.rb b/lib/groups/item/transitive_members/item/graph_user/graph_user_request_builder.rb index 4a43906c86..1a7ceb18dc 100644 --- a/lib/groups/item/transitive_members/item/graph_user/graph_user_request_builder.rb +++ b/lib/groups/item/transitive_members/item/graph_user/graph_user_request_builder.rb @@ -25,10 +25,10 @@ class GraphUserRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/{directoryObject%2Did}/graph.user{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers/{directoryObject%2Did}/graph.user{?%24expand,%24select}") end ## - ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.user + ## Get a list of the group's members. A group can have different object types as members. For more information about supported member types for different groups, see Group membership. This operation is transitive and returns a flat list of all nested members. An attempt to filter by an OData cast that represents an unsupported member type returns a 400 Bad Request error with the Request_UnsupportedQuery code. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of user ## @@ -37,31 +37,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.user + ## Get a list of the group's members. A group can have different object types as members. For more information about supported member types for different groups, see Group membership. This operation is transitive and returns a flat list of all nested members. An attempt to filter by an OData cast that represents an unsupported member type returns a 400 Bad Request error with the Request_UnsupportedQuery code. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_user_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphUserRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the item of type microsoft.graph.directoryObject as microsoft.graph.user + # Get a list of the group's members. A group can have different object types as members. For more information about supported member types for different groups, see Group membership. This operation is transitive and returns a flat list of all nested members. An attempt to filter by an OData cast that represents an unsupported member type returns a 400 Bad Request error with the Request_UnsupportedQuery code. class GraphUserRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/transitive_members/transitive_members_request_builder.rb b/lib/groups/item/transitive_members/transitive_members_request_builder.rb index 81cfb17ddb..16e5de73f9 100644 --- a/lib/groups/item/transitive_members/transitive_members_request_builder.rb +++ b/lib/groups/item/transitive_members/transitive_members_request_builder.rb @@ -75,10 +75,10 @@ def by_directory_object_id(directory_object_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/transitiveMembers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## The direct and transitive members of a group. Nullable. + ## Get a list of the group's members. A group can have different object types as members. For more information about supported member types for different groups, see Group membership. This operation is transitive and returns a flat list of all nested members. An attempt to filter by an OData cast that represents an unsupported member type returns a 400 Bad Request error with the Request_UnsupportedQuery code. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object_collection_response ## @@ -87,31 +87,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## The direct and transitive members of a group. Nullable. + ## Get a list of the group's members. A group can have different object types as members. For more information about supported member types for different groups, see Group membership. This operation is transitive and returns a flat list of all nested members. An attempt to filter by an OData cast that represents an unsupported member type returns a 400 Bad Request error with the Request_UnsupportedQuery code. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a transitive_members_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TransitiveMembersRequestBuilder.new(raw_url, @request_adapter) + end ## - # The direct and transitive members of a group. Nullable. + # Get a list of the group's members. A group can have different object types as members. For more information about supported member types for different groups, see Group membership. This operation is transitive and returns a flat list of all nested members. An attempt to filter by an OData cast that represents an unsupported member type returns a 400 Bad Request error with the Request_UnsupportedQuery code. class TransitiveMembersRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/unsubscribe_by_mail/unsubscribe_by_mail_request_builder.rb b/lib/groups/item/unsubscribe_by_mail/unsubscribe_by_mail_request_builder.rb index 73ff9709bc..8de00b7ae1 100644 --- a/lib/groups/item/unsubscribe_by_mail/unsubscribe_by_mail_request_builder.rb +++ b/lib/groups/item/unsubscribe_by_mail/unsubscribe_by_mail_request_builder.rb @@ -23,7 +23,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/groups/{group%2Did}/unsubscribeByMail") end ## - ## Calling this method will prevent the current user from receiving email notifications for this group about new posts, events, and files in that group. Supported for Microsoft 365 groups only. + ## Calling this method prevents the current user from receiving email notifications for this group about new posts, events, and files in that group. Supported for Microsoft 365 groups only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -32,26 +32,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Calling this method will prevent the current user from receiving email notifications for this group about new posts, events, and files in that group. Supported for Microsoft 365 groups only. + ## Calling this method prevents the current user from receiving email notifications for this group about new posts, events, and files in that group. Supported for Microsoft 365 groups only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a unsubscribe_by_mail_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UnsubscribeByMailRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/item/validate_properties/validate_properties_post_request_body.rb b/lib/groups/item/validate_properties/validate_properties_post_request_body.rb index b3a57d590b..5c0d5616a3 100644 --- a/lib/groups/item/validate_properties/validate_properties_post_request_body.rb +++ b/lib/groups/item/validate_properties/validate_properties_post_request_body.rb @@ -23,22 +23,22 @@ class ValidatePropertiesPostRequestBody # The onBehalfOfUserId property @on_behalf_of_user_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new validatePropertiesPostRequestBody and sets the default values. + ## Instantiates a new ValidatePropertiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/item/validate_properties/validate_properties_request_builder.rb b/lib/groups/item/validate_properties/validate_properties_request_builder.rb index 2646a4f4c9..3338af3bec 100644 --- a/lib/groups/item/validate_properties/validate_properties_request_builder.rb +++ b/lib/groups/item/validate_properties/validate_properties_request_builder.rb @@ -34,8 +34,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,16 +46,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a validate_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ValidatePropertiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups/validate_properties/validate_properties_post_request_body.rb b/lib/groups/validate_properties/validate_properties_post_request_body.rb index d81de8c264..520036bcad 100644 --- a/lib/groups/validate_properties/validate_properties_post_request_body.rb +++ b/lib/groups/validate_properties/validate_properties_post_request_body.rb @@ -24,22 +24,22 @@ class ValidatePropertiesPostRequestBody # The onBehalfOfUserId property @on_behalf_of_user_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new validatePropertiesPostRequestBody and sets the default values. + ## Instantiates a new ValidatePropertiesPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/groups/validate_properties/validate_properties_request_builder.rb b/lib/groups/validate_properties/validate_properties_request_builder.rb index 4cb9a04d54..9ed890490d 100644 --- a/lib/groups/validate_properties/validate_properties_request_builder.rb +++ b/lib/groups/validate_properties/validate_properties_request_builder.rb @@ -32,8 +32,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -45,16 +44,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a validate_properties_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ValidatePropertiesRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/groups_with_unique_name/groups_with_unique_name.rb b/lib/groups_with_unique_name/groups_with_unique_name.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups_with_unique_name/groups_with_unique_name_request_builder.rb b/lib/groups_with_unique_name/groups_with_unique_name_request_builder.rb new file mode 100644 index 0000000000..f2a53b254c --- /dev/null +++ b/lib/groups_with_unique_name/groups_with_unique_name_request_builder.rb @@ -0,0 +1,158 @@ +require 'microsoft_kiota_abstractions' +require_relative '../microsoft_graph' +require_relative '../models/group' +require_relative '../models/o_data_errors_o_data_error' +require_relative './groups_with_unique_name' + +module MicrosoftGraph + module GroupsWithUniqueName + ## + # Provides operations to manage the collection of group entities. + class GroupsWithUniqueNameRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new GroupsWithUniqueNameRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @param unique_name Alternate key of group + ## @return a void + ## + def initialize(path_parameters, request_adapter, unique_name=nil) + super(path_parameters, request_adapter, "{+baseurl}/groups(uniqueName='{uniqueName}'){?%24expand,%24select}") + end + ## + ## Delete a group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that aren't_ returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and aren't returned in the $select query. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of group + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of group + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete a group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that aren't_ returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and aren't returned in the $select query. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a groups_with_unique_name_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GroupsWithUniqueNameRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that aren't_ returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and aren't returned in the $select query. + class GroupsWithUniqueNameRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end +end diff --git a/lib/identity/api_connectors/api_connectors_request_builder.rb b/lib/identity/api_connectors/api_connectors_request_builder.rb index 70c4f248eb..5e7b10e98d 100644 --- a/lib/identity/api_connectors/api_connectors_request_builder.rb +++ b/lib/identity/api_connectors/api_connectors_request_builder.rb @@ -38,7 +38,7 @@ def by_identity_api_connector_id(identity_api_connector_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/apiConnectors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/apiConnectors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Read the properties of an identityApiConnector object. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityApiConnectorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityApiConnector.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a api_connectors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApiConnectorsRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties of an identityApiConnector object. diff --git a/lib/identity/api_connectors/count/count_request_builder.rb b/lib/identity/api_connectors/count/count_request_builder.rb index 602f9814d8..f6e8e43665 100644 --- a/lib/identity/api_connectors/count/count_request_builder.rb +++ b/lib/identity/api_connectors/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/apiConnectors/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identity/apiConnectors/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity/api_connectors/item/identity_api_connector_item_request_builder.rb b/lib/identity/api_connectors/item/identity_api_connector_item_request_builder.rb index 284ebd3410..c774898563 100644 --- a/lib/identity/api_connectors/item/identity_api_connector_item_request_builder.rb +++ b/lib/identity/api_connectors/item/identity_api_connector_item_request_builder.rb @@ -27,7 +27,7 @@ def upload_client_certificate() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/apiConnectors/{identityApiConnector%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/apiConnectors/{identityApiConnector%2Did}{?%24expand,%24select}") end ## ## Delete an identityApiConnector object. @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityApiConnector.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityApiConnector.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,13 +77,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,15 +94,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,17 +114,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a identity_api_connector_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IdentityApiConnectorItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties of an identityApiConnector object. diff --git a/lib/identity/api_connectors/item/upload_client_certificate/upload_client_certificate_post_request_body.rb b/lib/identity/api_connectors/item/upload_client_certificate/upload_client_certificate_post_request_body.rb index a6cabcf781..9f73d4973d 100644 --- a/lib/identity/api_connectors/item/upload_client_certificate/upload_client_certificate_post_request_body.rb +++ b/lib/identity/api_connectors/item/upload_client_certificate/upload_client_certificate_post_request_body.rb @@ -22,22 +22,22 @@ class UploadClientCertificatePostRequestBody # The pkcs12Value property @pkcs12_value ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new uploadClientCertificatePostRequestBody and sets the default values. + ## Instantiates a new UploadClientCertificatePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/identity/api_connectors/item/upload_client_certificate/upload_client_certificate_request_builder.rb b/lib/identity/api_connectors/item/upload_client_certificate/upload_client_certificate_request_builder.rb index e02f83cb63..fa5cf75aaf 100644 --- a/lib/identity/api_connectors/item/upload_client_certificate/upload_client_certificate_request_builder.rb +++ b/lib/identity/api_connectors/item/upload_client_certificate/upload_client_certificate_request_builder.rb @@ -37,8 +37,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityApiConnector.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a upload_client_certificate_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UploadClientCertificateRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity/authentication_event_listeners/authentication_event_listeners.rb b/lib/identity/authentication_event_listeners/authentication_event_listeners.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_event_listeners/authentication_event_listeners_request_builder.rb b/lib/identity/authentication_event_listeners/authentication_event_listeners_request_builder.rb new file mode 100644 index 0000000000..7070f9e0e8 --- /dev/null +++ b/lib/identity/authentication_event_listeners/authentication_event_listeners_request_builder.rb @@ -0,0 +1,179 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/authentication_event_listener' +require_relative '../../models/authentication_event_listener_collection_response' +require_relative '../../models/o_data_errors_o_data_error' +require_relative '../identity' +require_relative './authentication_event_listeners' +require_relative './count/count_request_builder' +require_relative './item/authentication_event_listener_item_request_builder' + +module MicrosoftGraph + module Identity + module AuthenticationEventListeners + ## + # Provides operations to manage the authenticationEventListeners property of the microsoft.graph.identityContainer entity. + class AuthenticationEventListenersRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Identity::AuthenticationEventListeners::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the authenticationEventListeners property of the microsoft.graph.identityContainer entity. + ## @param authentication_event_listener_id The unique identifier of authenticationEventListener + ## @return a authentication_event_listener_item_request_builder + ## + def by_authentication_event_listener_id(authentication_event_listener_id) + raise StandardError, 'authentication_event_listener_id cannot be null' if authentication_event_listener_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["authenticationEventListener%2Did"] = authentication_event_listener_id + return MicrosoftGraph::Identity::AuthenticationEventListeners::Item::AuthenticationEventListenerItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AuthenticationEventListenersRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventListeners{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get a list of the authenticationEventListener objects and their properties. The following derived types are supported: + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of authentication_event_listener_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationEventListenerCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create a new authenticationEventListener object. You can create one of the following subtypes that are derived from authenticationEventListener. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of authentication_event_listener + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationEventListener.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get a list of the authenticationEventListener objects and their properties. The following derived types are supported: + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create a new authenticationEventListener object. You can create one of the following subtypes that are derived from authenticationEventListener. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a authentication_event_listeners_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AuthenticationEventListenersRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get a list of the authenticationEventListener objects and their properties. The following derived types are supported: + class AuthenticationEventListenersRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_event_listeners/count/count.rb b/lib/identity/authentication_event_listeners/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_event_listeners/count/count_request_builder.rb b/lib/identity/authentication_event_listeners/count/count_request_builder.rb new file mode 100644 index 0000000000..babbea0caa --- /dev/null +++ b/lib/identity/authentication_event_listeners/count/count_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../identity' +require_relative '../authentication_event_listeners' +require_relative './count' + +module MicrosoftGraph + module Identity + module AuthenticationEventListeners + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventListeners/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_event_listeners/item/authentication_event_listener_item_request_builder.rb b/lib/identity/authentication_event_listeners/item/authentication_event_listener_item_request_builder.rb new file mode 100644 index 0000000000..7dd15074b1 --- /dev/null +++ b/lib/identity/authentication_event_listeners/item/authentication_event_listener_item_request_builder.rb @@ -0,0 +1,163 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/authentication_event_listener' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../identity' +require_relative '../authentication_event_listeners' +require_relative './item' + +module MicrosoftGraph + module Identity + module AuthenticationEventListeners + module Item + ## + # Provides operations to manage the authenticationEventListeners property of the microsoft.graph.identityContainer entity. + class AuthenticationEventListenerItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new AuthenticationEventListenerItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventListeners/{authenticationEventListener%2Did}{?%24expand,%24select}") + end + ## + ## Delete an authenticationEventListener object. The following derived types are currently supported. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. The following derived types are currently supported. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of authentication_event_listener + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationEventListener.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the properties of an authenticationEventListener object. You must specify the @odata.type property and the value of the authenticationEventListener object type to update. The following derived types are currently supported. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of authentication_event_listener + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationEventListener.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete an authenticationEventListener object. The following derived types are currently supported. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. The following derived types are currently supported. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the properties of an authenticationEventListener object. You must specify the @odata.type property and the value of the authenticationEventListener object type to update. The following derived types are currently supported. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a authentication_event_listener_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AuthenticationEventListenerItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. The following derived types are currently supported. + class AuthenticationEventListenerItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_event_listeners/item/item.rb b/lib/identity/authentication_event_listeners/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/authentication_events_flows.rb b/lib/identity/authentication_events_flows/authentication_events_flows.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/authentication_events_flows_request_builder.rb b/lib/identity/authentication_events_flows/authentication_events_flows_request_builder.rb new file mode 100644 index 0000000000..d7eb5f5d9a --- /dev/null +++ b/lib/identity/authentication_events_flows/authentication_events_flows_request_builder.rb @@ -0,0 +1,185 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/authentication_events_flow' +require_relative '../../models/authentication_events_flow_collection_response' +require_relative '../../models/o_data_errors_o_data_error' +require_relative '../identity' +require_relative './authentication_events_flows' +require_relative './count/count_request_builder' +require_relative './graph_external_users_self_service_sign_up_events_flow/graph_external_users_self_service_sign_up_events_flow_request_builder' +require_relative './item/authentication_events_flow_item_request_builder' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + ## + # Provides operations to manage the authenticationEventsFlows property of the microsoft.graph.identityContainer entity. + class AuthenticationEventsFlowsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to externalUsersSelfServiceSignUpEventsFlow. + def graph_external_users_self_service_sign_up_events_flow() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::GraphExternalUsersSelfServiceSignUpEventsFlow::GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the authenticationEventsFlows property of the microsoft.graph.identityContainer entity. + ## @param authentication_events_flow_id The unique identifier of authenticationEventsFlow + ## @return a authentication_events_flow_item_request_builder + ## + def by_authentication_events_flow_id(authentication_events_flow_id) + raise StandardError, 'authentication_events_flow_id cannot be null' if authentication_events_flow_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["authenticationEventsFlow%2Did"] = authentication_events_flow_id + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::AuthenticationEventsFlowItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AuthenticationEventsFlowsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get a collection of authentication events policies that are derived from authenticationEventsFlow. The following derived subtypes are supported: - externalUsersSelfServiceSignupEventsFlow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of authentication_events_flow_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationEventsFlowCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create a new authenticationEventsFlow object that is of the type specified in the request body. The following derived subtypes are supported:- externalUsersSelfServiceSignupEventsFlow object type. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of authentication_events_flow + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationEventsFlow.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get a collection of authentication events policies that are derived from authenticationEventsFlow. The following derived subtypes are supported: - externalUsersSelfServiceSignupEventsFlow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create a new authenticationEventsFlow object that is of the type specified in the request body. The following derived subtypes are supported:- externalUsersSelfServiceSignupEventsFlow object type. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a authentication_events_flows_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AuthenticationEventsFlowsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get a collection of authentication events policies that are derived from authenticationEventsFlow. The following derived subtypes are supported: - externalUsersSelfServiceSignupEventsFlow + class AuthenticationEventsFlowsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/count/count.rb b/lib/identity/authentication_events_flows/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/count/count_request_builder.rb b/lib/identity/authentication_events_flows/count/count_request_builder.rb new file mode 100644 index 0000000000..883a820652 --- /dev/null +++ b/lib/identity/authentication_events_flows/count/count_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../identity' +require_relative '../authentication_events_flows' +require_relative './count' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/graph_external_users_self_service_sign_up_events_flow/count/count.rb b/lib/identity/authentication_events_flows/graph_external_users_self_service_sign_up_events_flow/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/graph_external_users_self_service_sign_up_events_flow/count/count_request_builder.rb b/lib/identity/authentication_events_flows/graph_external_users_self_service_sign_up_events_flow/count/count_request_builder.rb new file mode 100644 index 0000000000..c5271e5052 --- /dev/null +++ b/lib/identity/authentication_events_flows/graph_external_users_self_service_sign_up_events_flow/count/count_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../identity' +require_relative '../../authentication_events_flows' +require_relative '../graph_external_users_self_service_sign_up_events_flow' +require_relative './count' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module GraphExternalUsersSelfServiceSignUpEventsFlow + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/graph.externalUsersSelfServiceSignUpEventsFlow/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/graph_external_users_self_service_sign_up_events_flow/graph_external_users_self_service_sign_up_events_flow.rb b/lib/identity/authentication_events_flows/graph_external_users_self_service_sign_up_events_flow/graph_external_users_self_service_sign_up_events_flow.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/graph_external_users_self_service_sign_up_events_flow/graph_external_users_self_service_sign_up_events_flow_request_builder.rb b/lib/identity/authentication_events_flows/graph_external_users_self_service_sign_up_events_flow/graph_external_users_self_service_sign_up_events_flow_request_builder.rb new file mode 100644 index 0000000000..4f5ca2193b --- /dev/null +++ b/lib/identity/authentication_events_flows/graph_external_users_self_service_sign_up_events_flow/graph_external_users_self_service_sign_up_events_flow_request_builder.rb @@ -0,0 +1,134 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/external_users_self_service_sign_up_events_flow_collection_response' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../identity' +require_relative '../authentication_events_flows' +require_relative './count/count_request_builder' +require_relative './graph_external_users_self_service_sign_up_events_flow' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module GraphExternalUsersSelfServiceSignUpEventsFlow + ## + # Casts the previous resource to externalUsersSelfServiceSignUpEventsFlow. + class GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::GraphExternalUsersSelfServiceSignUpEventsFlow::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/graph.externalUsersSelfServiceSignUpEventsFlow{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get the items of type microsoft.graph.externalUsersSelfServiceSignUpEventsFlow in the microsoft.graph.authenticationEventsFlow collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of external_users_self_service_sign_up_events_flow_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalUsersSelfServiceSignUpEventsFlowCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.externalUsersSelfServiceSignUpEventsFlow in the microsoft.graph.authenticationEventsFlow collection + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_external_users_self_service_sign_up_events_flow_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the items of type microsoft.graph.externalUsersSelfServiceSignUpEventsFlow in the microsoft.graph.authenticationEventsFlow collection + class GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/authentication_events_flow_item_request_builder.rb b/lib/identity/authentication_events_flows/item/authentication_events_flow_item_request_builder.rb new file mode 100644 index 0000000000..6dee26845c --- /dev/null +++ b/lib/identity/authentication_events_flows/item/authentication_events_flow_item_request_builder.rb @@ -0,0 +1,175 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/authentication_events_flow' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../identity' +require_relative '../authentication_events_flows' +require_relative './conditions/conditions_request_builder' +require_relative './graph_external_users_self_service_sign_up_events_flow/graph_external_users_self_service_sign_up_events_flow_request_builder' +require_relative './item' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + ## + # Provides operations to manage the authenticationEventsFlows property of the microsoft.graph.identityContainer entity. + class AuthenticationEventsFlowItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # The conditions property + def conditions() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::Conditions::ConditionsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Casts the previous resource to externalUsersSelfServiceSignUpEventsFlow. + def graph_external_users_self_service_sign_up_events_flow() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::GraphExternalUsersSelfServiceSignUpEventsFlow::GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new AuthenticationEventsFlowItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}{?%24expand,%24select}") + end + ## + ## Delete a specific authenticationEventsFlow resource by ID. This operation also removes or unlinks all applications from the flow, which disables the customized authentication experience defined for the application. The following derived subtypes are supported:- externalUsersSelfServiceSignupEventsFlow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Retrieve the properties and relationships of a specific authenticationEventsFlow object by ID. The @odata.type property in the response object indicates the type of the object, which can be one of the following derived subtypes:- externalUsersSelfServiceSignupEventsFlow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of authentication_events_flow + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationEventsFlow.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the properties of an authenticationEventsFlow object by ID. You must specify the @odata.type property and the value of the authenticationEventsFlow object type to update. The following derived subtypes are supported:- externalUsersSelfServiceSignupEventsFlow + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of authentication_events_flow + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationEventsFlow.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete a specific authenticationEventsFlow resource by ID. This operation also removes or unlinks all applications from the flow, which disables the customized authentication experience defined for the application. The following derived subtypes are supported:- externalUsersSelfServiceSignupEventsFlow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Retrieve the properties and relationships of a specific authenticationEventsFlow object by ID. The @odata.type property in the response object indicates the type of the object, which can be one of the following derived subtypes:- externalUsersSelfServiceSignupEventsFlow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the properties of an authenticationEventsFlow object by ID. You must specify the @odata.type property and the value of the authenticationEventsFlow object type to update. The following derived subtypes are supported:- externalUsersSelfServiceSignupEventsFlow + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a authentication_events_flow_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AuthenticationEventsFlowItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Retrieve the properties and relationships of a specific authenticationEventsFlow object by ID. The @odata.type property in the response object indicates the type of the object, which can be one of the following derived subtypes:- externalUsersSelfServiceSignupEventsFlow + class AuthenticationEventsFlowItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/conditions/applications/applications.rb b/lib/identity/authentication_events_flows/item/conditions/applications/applications.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/conditions/applications/applications_request_builder.rb b/lib/identity/authentication_events_flows/item/conditions/applications/applications_request_builder.rb new file mode 100644 index 0000000000..a757585e5a --- /dev/null +++ b/lib/identity/authentication_events_flows/item/conditions/applications/applications_request_builder.rb @@ -0,0 +1,40 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../identity' +require_relative '../../../authentication_events_flows' +require_relative '../../item' +require_relative '../conditions' +require_relative './applications' +require_relative './include_applications/include_applications_request_builder' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module Conditions + module Applications + ## + # Builds and executes requests for operations under \identity\authenticationEventsFlows\{authenticationEventsFlow-id}\conditions\applications + class ApplicationsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the includeApplications property of the microsoft.graph.authenticationConditionsApplications entity. + def include_applications() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::Conditions::Applications::IncludeApplications::IncludeApplicationsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ApplicationsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/conditions/applications") + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/conditions/applications/include_applications/count/count.rb b/lib/identity/authentication_events_flows/item/conditions/applications/include_applications/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/conditions/applications/include_applications/count/count_request_builder.rb b/lib/identity/authentication_events_flows/item/conditions/applications/include_applications/count/count_request_builder.rb new file mode 100644 index 0000000000..5a00383e16 --- /dev/null +++ b/lib/identity/authentication_events_flows/item/conditions/applications/include_applications/count/count_request_builder.rb @@ -0,0 +1,109 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../identity' +require_relative '../../../../../authentication_events_flows' +require_relative '../../../../item' +require_relative '../../../conditions' +require_relative '../../applications' +require_relative '../include_applications' +require_relative './count' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module Conditions + module Applications + module IncludeApplications + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/conditions/applications/includeApplications/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/conditions/applications/include_applications/include_applications.rb b/lib/identity/authentication_events_flows/item/conditions/applications/include_applications/include_applications.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/conditions/applications/include_applications/include_applications_request_builder.rb b/lib/identity/authentication_events_flows/item/conditions/applications/include_applications/include_applications_request_builder.rb new file mode 100644 index 0000000000..1d31605193 --- /dev/null +++ b/lib/identity/authentication_events_flows/item/conditions/applications/include_applications/include_applications_request_builder.rb @@ -0,0 +1,191 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/authentication_condition_application' +require_relative '../../../../../../models/authentication_condition_application_collection_response' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../identity' +require_relative '../../../../authentication_events_flows' +require_relative '../../../item' +require_relative '../../conditions' +require_relative '../applications' +require_relative './count/count_request_builder' +require_relative './include_applications' +require_relative './item/authentication_condition_application_app_item_request_builder' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module Conditions + module Applications + module IncludeApplications + ## + # Provides operations to manage the includeApplications property of the microsoft.graph.authenticationConditionsApplications entity. + class IncludeApplicationsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::Conditions::Applications::IncludeApplications::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the includeApplications property of the microsoft.graph.authenticationConditionsApplications entity. + ## @param authentication_condition_application_app_id The unique identifier of authenticationConditionApplication + ## @return a authentication_condition_application_app_item_request_builder + ## + def by_authentication_condition_application_app_id(authentication_condition_application_app_id) + raise StandardError, 'authentication_condition_application_app_id cannot be null' if authentication_condition_application_app_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["authenticationConditionApplication%2DappId"] = authentication_condition_application_app_id + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::Conditions::Applications::IncludeApplications::Item::AuthenticationConditionApplicationAppItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new IncludeApplicationsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/conditions/applications/includeApplications{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## List the applications linked to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. These are the applications for which the authentication experience that's defined by the user flow is enabled. To find the user flow that's linked to an application, see Example 4: List user flow associated with specific application ID. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of authentication_condition_application_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationConditionApplicationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Add or link an application to a user flow, or authenticationEventsFlow. This enables the authentication experience defined by the user flow to be enabled for the application. An application can only be linked to one user flow. The app must have an associated service principal in the tenant. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of authentication_condition_application + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationConditionApplication.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## List the applications linked to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. These are the applications for which the authentication experience that's defined by the user flow is enabled. To find the user flow that's linked to an application, see Example 4: List user flow associated with specific application ID. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Add or link an application to a user flow, or authenticationEventsFlow. This enables the authentication experience defined by the user flow to be enabled for the application. An application can only be linked to one user flow. The app must have an associated service principal in the tenant. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a include_applications_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IncludeApplicationsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # List the applications linked to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. These are the applications for which the authentication experience that's defined by the user flow is enabled. To find the user flow that's linked to an application, see Example 4: List user flow associated with specific application ID. + class IncludeApplicationsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/conditions/applications/include_applications/item/authentication_condition_application_app_item_request_builder.rb b/lib/identity/authentication_events_flows/item/conditions/applications/include_applications/item/authentication_condition_application_app_item_request_builder.rb new file mode 100644 index 0000000000..fd1cfbb581 --- /dev/null +++ b/lib/identity/authentication_events_flows/item/conditions/applications/include_applications/item/authentication_condition_application_app_item_request_builder.rb @@ -0,0 +1,175 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/authentication_condition_application' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../identity' +require_relative '../../../../../authentication_events_flows' +require_relative '../../../../item' +require_relative '../../../conditions' +require_relative '../../applications' +require_relative '../include_applications' +require_relative './item' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module Conditions + module Applications + module IncludeApplications + module Item + ## + # Provides operations to manage the includeApplications property of the microsoft.graph.authenticationConditionsApplications entity. + class AuthenticationConditionApplicationAppItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new AuthenticationConditionApplicationAppItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/conditions/applications/includeApplications/{authenticationConditionApplication%2DappId}{?%24expand,%24select}") + end + ## + ## Remove or unlink an application from an authenticationEventsFlow object. This disables the customized authentication experience defined for the application. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Get includeApplications from identity + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of authentication_condition_application + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationConditionApplication.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property includeApplications in identity + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of authentication_condition_application + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationConditionApplication.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Remove or unlink an application from an authenticationEventsFlow object. This disables the customized authentication experience defined for the application. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Get includeApplications from identity + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property includeApplications in identity + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a authentication_condition_application_app_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AuthenticationConditionApplicationAppItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get includeApplications from identity + class AuthenticationConditionApplicationAppItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/conditions/applications/include_applications/item/item.rb b/lib/identity/authentication_events_flows/item/conditions/applications/include_applications/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/conditions/conditions.rb b/lib/identity/authentication_events_flows/item/conditions/conditions.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/conditions/conditions_request_builder.rb b/lib/identity/authentication_events_flows/item/conditions/conditions_request_builder.rb new file mode 100644 index 0000000000..6411960a91 --- /dev/null +++ b/lib/identity/authentication_events_flows/item/conditions/conditions_request_builder.rb @@ -0,0 +1,107 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/authentication_conditions' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../identity' +require_relative '../../authentication_events_flows' +require_relative '../item' +require_relative './applications/applications_request_builder' +require_relative './conditions' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module Conditions + ## + # Builds and executes requests for operations under \identity\authenticationEventsFlows\{authenticationEventsFlow-id}\conditions + class ConditionsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # The applications property + def applications() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::Conditions::Applications::ApplicationsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ConditionsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/conditions{?%24expand,%24select}") + end + ## + ## The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of authentication_conditions + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationConditions.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a conditions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConditionsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. + class ConditionsRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/applications/applications.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/applications/applications.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/applications/applications_request_builder.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/applications/applications_request_builder.rb new file mode 100644 index 0000000000..f45b589524 --- /dev/null +++ b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/applications/applications_request_builder.rb @@ -0,0 +1,43 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../identity' +require_relative '../../../../authentication_events_flows' +require_relative '../../../item' +require_relative '../../graph_external_users_self_service_sign_up_events_flow' +require_relative '../conditions' +require_relative './applications' +require_relative './include_applications/include_applications_request_builder' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module GraphExternalUsersSelfServiceSignUpEventsFlow + module Conditions + module Applications + ## + # Builds and executes requests for operations under \identity\authenticationEventsFlows\{authenticationEventsFlow-id}\graph.externalUsersSelfServiceSignUpEventsFlow\conditions\applications + class ApplicationsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the includeApplications property of the microsoft.graph.authenticationConditionsApplications entity. + def include_applications() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::GraphExternalUsersSelfServiceSignUpEventsFlow::Conditions::Applications::IncludeApplications::IncludeApplicationsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ApplicationsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/conditions/applications") + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/applications/include_applications/count/count.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/applications/include_applications/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/applications/include_applications/count/count_request_builder.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/applications/include_applications/count/count_request_builder.rb new file mode 100644 index 0000000000..8974b73be0 --- /dev/null +++ b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/applications/include_applications/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../identity' +require_relative '../../../../../../authentication_events_flows' +require_relative '../../../../../item' +require_relative '../../../../graph_external_users_self_service_sign_up_events_flow' +require_relative '../../../conditions' +require_relative '../../applications' +require_relative '../include_applications' +require_relative './count' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module GraphExternalUsersSelfServiceSignUpEventsFlow + module Conditions + module Applications + module IncludeApplications + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/conditions/applications/includeApplications/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/applications/include_applications/include_applications.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/applications/include_applications/include_applications.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/applications/include_applications/include_applications_request_builder.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/applications/include_applications/include_applications_request_builder.rb new file mode 100644 index 0000000000..9dacb50701 --- /dev/null +++ b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/applications/include_applications/include_applications_request_builder.rb @@ -0,0 +1,194 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/authentication_condition_application' +require_relative '../../../../../../../models/authentication_condition_application_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../identity' +require_relative '../../../../../authentication_events_flows' +require_relative '../../../../item' +require_relative '../../../graph_external_users_self_service_sign_up_events_flow' +require_relative '../../conditions' +require_relative '../applications' +require_relative './count/count_request_builder' +require_relative './include_applications' +require_relative './item/authentication_condition_application_app_item_request_builder' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module GraphExternalUsersSelfServiceSignUpEventsFlow + module Conditions + module Applications + module IncludeApplications + ## + # Provides operations to manage the includeApplications property of the microsoft.graph.authenticationConditionsApplications entity. + class IncludeApplicationsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::GraphExternalUsersSelfServiceSignUpEventsFlow::Conditions::Applications::IncludeApplications::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the includeApplications property of the microsoft.graph.authenticationConditionsApplications entity. + ## @param authentication_condition_application_app_id The unique identifier of authenticationConditionApplication + ## @return a authentication_condition_application_app_item_request_builder + ## + def by_authentication_condition_application_app_id(authentication_condition_application_app_id) + raise StandardError, 'authentication_condition_application_app_id cannot be null' if authentication_condition_application_app_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["authenticationConditionApplication%2DappId"] = authentication_condition_application_app_id + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::GraphExternalUsersSelfServiceSignUpEventsFlow::Conditions::Applications::IncludeApplications::Item::AuthenticationConditionApplicationAppItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new IncludeApplicationsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/conditions/applications/includeApplications{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get includeApplications from identity + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of authentication_condition_application_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationConditionApplicationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to includeApplications for identity + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of authentication_condition_application + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationConditionApplication.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get includeApplications from identity + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create new navigation property to includeApplications for identity + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a include_applications_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IncludeApplicationsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get includeApplications from identity + class IncludeApplicationsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/applications/include_applications/item/authentication_condition_application_app_item_request_builder.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/applications/include_applications/item/authentication_condition_application_app_item_request_builder.rb new file mode 100644 index 0000000000..7e355c9a7f --- /dev/null +++ b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/applications/include_applications/item/authentication_condition_application_app_item_request_builder.rb @@ -0,0 +1,178 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/authentication_condition_application' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../identity' +require_relative '../../../../../../authentication_events_flows' +require_relative '../../../../../item' +require_relative '../../../../graph_external_users_self_service_sign_up_events_flow' +require_relative '../../../conditions' +require_relative '../../applications' +require_relative '../include_applications' +require_relative './item' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module GraphExternalUsersSelfServiceSignUpEventsFlow + module Conditions + module Applications + module IncludeApplications + module Item + ## + # Provides operations to manage the includeApplications property of the microsoft.graph.authenticationConditionsApplications entity. + class AuthenticationConditionApplicationAppItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new AuthenticationConditionApplicationAppItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/conditions/applications/includeApplications/{authenticationConditionApplication%2DappId}{?%24expand,%24select}") + end + ## + ## Delete navigation property includeApplications for identity + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Get includeApplications from identity + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of authentication_condition_application + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationConditionApplication.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property includeApplications in identity + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of authentication_condition_application + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationConditionApplication.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property includeApplications for identity + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Get includeApplications from identity + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the navigation property includeApplications in identity + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a authentication_condition_application_app_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AuthenticationConditionApplicationAppItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get includeApplications from identity + class AuthenticationConditionApplicationAppItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/applications/include_applications/item/item.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/applications/include_applications/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/conditions.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/conditions.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/conditions_request_builder.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/conditions_request_builder.rb new file mode 100644 index 0000000000..fece33fe14 --- /dev/null +++ b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/conditions/conditions_request_builder.rb @@ -0,0 +1,110 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/authentication_conditions' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../identity' +require_relative '../../../authentication_events_flows' +require_relative '../../item' +require_relative '../graph_external_users_self_service_sign_up_events_flow' +require_relative './applications/applications_request_builder' +require_relative './conditions' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module GraphExternalUsersSelfServiceSignUpEventsFlow + module Conditions + ## + # Builds and executes requests for operations under \identity\authenticationEventsFlows\{authenticationEventsFlow-id}\graph.externalUsersSelfServiceSignUpEventsFlow\conditions + class ConditionsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # The applications property + def applications() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::GraphExternalUsersSelfServiceSignUpEventsFlow::Conditions::Applications::ApplicationsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ConditionsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/conditions{?%24expand,%24select}") + end + ## + ## The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of authentication_conditions + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationConditions.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a conditions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConditionsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. + class ConditionsRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/graph_external_users_self_service_sign_up_events_flow.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/graph_external_users_self_service_sign_up_events_flow.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/graph_external_users_self_service_sign_up_events_flow_request_builder.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/graph_external_users_self_service_sign_up_events_flow_request_builder.rb new file mode 100644 index 0000000000..7e6891fd95 --- /dev/null +++ b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/graph_external_users_self_service_sign_up_events_flow_request_builder.rb @@ -0,0 +1,119 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/external_users_self_service_sign_up_events_flow' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../identity' +require_relative '../../authentication_events_flows' +require_relative '../item' +require_relative './conditions/conditions_request_builder' +require_relative './graph_external_users_self_service_sign_up_events_flow' +require_relative './on_attribute_collection/on_attribute_collection_request_builder' +require_relative './on_authentication_method_load_start/on_authentication_method_load_start_request_builder' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module GraphExternalUsersSelfServiceSignUpEventsFlow + ## + # Casts the previous resource to externalUsersSelfServiceSignUpEventsFlow. + class GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # The conditions property + def conditions() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::GraphExternalUsersSelfServiceSignUpEventsFlow::Conditions::ConditionsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # The onAttributeCollection property + def on_attribute_collection() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::GraphExternalUsersSelfServiceSignUpEventsFlow::OnAttributeCollection::OnAttributeCollectionRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # The onAuthenticationMethodLoadStart property + def on_authentication_method_load_start() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::GraphExternalUsersSelfServiceSignUpEventsFlow::OnAuthenticationMethodLoadStart::OnAuthenticationMethodLoadStartRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow{?%24expand,%24select}") + end + ## + ## Get the item of type microsoft.graph.authenticationEventsFlow as microsoft.graph.externalUsersSelfServiceSignUpEventsFlow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of external_users_self_service_sign_up_events_flow + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ExternalUsersSelfServiceSignUpEventsFlow.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.authenticationEventsFlow as microsoft.graph.externalUsersSelfServiceSignUpEventsFlow + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_external_users_self_service_sign_up_events_flow_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the item of type microsoft.graph.authenticationEventsFlow as microsoft.graph.externalUsersSelfServiceSignUpEventsFlow + class GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/153d2d9b48165897f24a2e4204454386cc7fe7654bce396de5141a8846989bac.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/153d2d9b48165897f24a2e4204454386cc7fe7654bce396de5141a8846989bac.rb new file mode 100644 index 0000000000..8d1f552ce7 --- /dev/null +++ b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/153d2d9b48165897f24a2e4204454386cc7fe7654bce396de5141a8846989bac.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/on_attribute_collection_external_users_self_service_sign_up' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../identity' +require_relative '../../../../authentication_events_flows' +require_relative '../../../item' +require_relative '../../graph_external_users_self_service_sign_up_events_flow' +require_relative '../on_attribute_collection' +require_relative './attributes/attributes_request_builder' +require_relative './f024c257001096dd92a7acdfc2e3732ad4ca2d3fce6fa8a836886e7189548c1b' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module GraphExternalUsersSelfServiceSignUpEventsFlow + module OnAttributeCollection + module GraphOnAttributeCollectionExternalUsersSelfServiceSignUp + ## + # Casts the previous resource to onAttributeCollectionExternalUsersSelfServiceSignUp. + class GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the attributes property of the microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp entity. + def attributes() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::GraphExternalUsersSelfServiceSignUpEventsFlow::OnAttributeCollection::GraphOnAttributeCollectionExternalUsersSelfServiceSignUp::Attributes::AttributesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp") + end + ## + ## Get the item of type microsoft.graph.onAttributeCollectionHandler as microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of on_attribute_collection_external_users_self_service_sign_up + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnAttributeCollectionExternalUsersSelfServiceSignUp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.onAttributeCollectionHandler as microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_on_attribute_collection_external_users_self_service_sign_up_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/attributes.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/attributes.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/attributes_request_builder.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/attributes_request_builder.rb new file mode 100644 index 0000000000..7e335fa53e --- /dev/null +++ b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/attributes_request_builder.rb @@ -0,0 +1,164 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/identity_user_flow_attribute_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../identity' +require_relative '../../../../../authentication_events_flows' +require_relative '../../../../item' +require_relative '../../../graph_external_users_self_service_sign_up_events_flow' +require_relative '../../on_attribute_collection' +require_relative '../f024c257001096dd92a7acdfc2e3732ad4ca2d3fce6fa8a836886e7189548c1b' +require_relative './attributes' +require_relative './count/count_request_builder' +require_relative './item/be558a88b882b2fd237e0cfbe4d857b74a11d0308b75adea0ff3750487ff475c' +require_relative './ref/ref_request_builder' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module GraphExternalUsersSelfServiceSignUpEventsFlow + module OnAttributeCollection + module GraphOnAttributeCollectionExternalUsersSelfServiceSignUp + module Attributes + ## + # Provides operations to manage the attributes property of the microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp entity. + class AttributesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::GraphExternalUsersSelfServiceSignUpEventsFlow::OnAttributeCollection::GraphOnAttributeCollectionExternalUsersSelfServiceSignUp::Attributes::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the collection of identityContainer entities. + def ref() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::GraphExternalUsersSelfServiceSignUpEventsFlow::OnAttributeCollection::GraphOnAttributeCollectionExternalUsersSelfServiceSignUp::Attributes::Ref::RefRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Gets an item from the MicrosoftGraph.identity.authenticationEventsFlows.item.graphExternalUsersSelfServiceSignUpEventsFlow.onAttributeCollection.graphOnAttributeCollectionExternalUsersSelfServiceSignUp.attributes.item collection + ## @param identity_user_flow_attribute_id The unique identifier of identityUserFlowAttribute + ## @return a identity_user_flow_attribute_item_request_builder + ## + def by_identity_user_flow_attribute_id(identity_user_flow_attribute_id) + raise StandardError, 'identity_user_flow_attribute_id cannot be null' if identity_user_flow_attribute_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["identityUserFlowAttribute%2Did"] = identity_user_flow_attribute_id + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::GraphExternalUsersSelfServiceSignUpEventsFlow::OnAttributeCollection::GraphOnAttributeCollectionExternalUsersSelfServiceSignUp::Attributes::Item::IdentityUserFlowAttributeItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new AttributesRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get an identityUserFlowAttribute collection associated with an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object. These attributes are collected from the user during the authentication experience defined by the user flow. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of identity_user_flow_attribute_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityUserFlowAttributeCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get an identityUserFlowAttribute collection associated with an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object. These attributes are collected from the user during the authentication experience defined by the user flow. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a attributes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AttributesRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get an identityUserFlowAttribute collection associated with an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object. These attributes are collected from the user during the authentication experience defined by the user flow. + class AttributesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/count/count.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/count/count_request_builder.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/count/count_request_builder.rb new file mode 100644 index 0000000000..ab97207486 --- /dev/null +++ b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../identity' +require_relative '../../../../../../authentication_events_flows' +require_relative '../../../../../item' +require_relative '../../../../graph_external_users_self_service_sign_up_events_flow' +require_relative '../../../on_attribute_collection' +require_relative '../../f024c257001096dd92a7acdfc2e3732ad4ca2d3fce6fa8a836886e7189548c1b' +require_relative '../attributes' +require_relative './count' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module GraphExternalUsersSelfServiceSignUpEventsFlow + module OnAttributeCollection + module GraphOnAttributeCollectionExternalUsersSelfServiceSignUp + module Attributes + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/item/be558a88b882b2fd237e0cfbe4d857b74a11d0308b75adea0ff3750487ff475c.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/item/be558a88b882b2fd237e0cfbe4d857b74a11d0308b75adea0ff3750487ff475c.rb new file mode 100644 index 0000000000..4ae0203c79 --- /dev/null +++ b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/item/be558a88b882b2fd237e0cfbe4d857b74a11d0308b75adea0ff3750487ff475c.rb @@ -0,0 +1,49 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../identity' +require_relative '../../../../../../authentication_events_flows' +require_relative '../../../../../item' +require_relative '../../../../graph_external_users_self_service_sign_up_events_flow' +require_relative '../../../on_attribute_collection' +require_relative '../../f024c257001096dd92a7acdfc2e3732ad4ca2d3fce6fa8a836886e7189548c1b' +require_relative '../attributes' +require_relative './item' +require_relative './ref/ref_request_builder' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module GraphExternalUsersSelfServiceSignUpEventsFlow + module OnAttributeCollection + module GraphOnAttributeCollectionExternalUsersSelfServiceSignUp + module Attributes + module Item + ## + # Builds and executes requests for operations under \identity\authenticationEventsFlows\{authenticationEventsFlow-id}\graph.externalUsersSelfServiceSignUpEventsFlow\onAttributeCollection\graph.onAttributeCollectionExternalUsersSelfServiceSignUp\attributes\{identityUserFlowAttribute-id} + class IdentityUserFlowAttributeItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the collection of identityContainer entities. + def ref() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::GraphExternalUsersSelfServiceSignUpEventsFlow::OnAttributeCollection::GraphOnAttributeCollectionExternalUsersSelfServiceSignUp::Attributes::Item::Ref::RefRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new IdentityUserFlowAttributeItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/{identityUserFlowAttribute%2Did}") + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/item/item.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/item/ref/ref.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/item/ref/ref.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/item/ref/ref_request_builder.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/item/ref/ref_request_builder.rb new file mode 100644 index 0000000000..4756e22d0a --- /dev/null +++ b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/item/ref/ref_request_builder.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../identity' +require_relative '../../../../../../../authentication_events_flows' +require_relative '../../../../../../item' +require_relative '../../../../../graph_external_users_self_service_sign_up_events_flow' +require_relative '../../../../on_attribute_collection' +require_relative '../../../f024c257001096dd92a7acdfc2e3732ad4ca2d3fce6fa8a836886e7189548c1b' +require_relative '../../attributes' +require_relative '../item' +require_relative './ref' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module GraphExternalUsersSelfServiceSignUpEventsFlow + module OnAttributeCollection + module GraphOnAttributeCollectionExternalUsersSelfServiceSignUp + module Attributes + module Item + module Ref + ## + # Provides operations to manage the collection of identityContainer entities. + class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RefRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/{identityUserFlowAttribute%2Did}/$ref") + end + ## + ## Delete ref of navigation property attributes for identity + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Delete ref of navigation property attributes for identity + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/ref/ref.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/ref/ref.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/ref/ref_request_builder.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/ref/ref_request_builder.rb new file mode 100644 index 0000000000..cd6054aab8 --- /dev/null +++ b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/attributes/ref/ref_request_builder.rb @@ -0,0 +1,223 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../models/reference_create' +require_relative '../../../../../../../../models/string_collection_response' +require_relative '../../../../../../../identity' +require_relative '../../../../../../authentication_events_flows' +require_relative '../../../../../item' +require_relative '../../../../graph_external_users_self_service_sign_up_events_flow' +require_relative '../../../on_attribute_collection' +require_relative '../../f024c257001096dd92a7acdfc2e3732ad4ca2d3fce6fa8a836886e7189548c1b' +require_relative '../attributes' +require_relative './ref' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module GraphExternalUsersSelfServiceSignUpEventsFlow + module OnAttributeCollection + module GraphOnAttributeCollectionExternalUsersSelfServiceSignUp + module Attributes + module Ref + ## + # Provides operations to manage the collection of identityContainer entities. + class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RefRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") + end + ## + ## Delete ref of navigation property attributes for identity + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Get an identityUserFlowAttribute collection associated with an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object. These attributes are collected from the user during the authentication experience defined by the user flow. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of string_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Add an attribute to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. The attribute is added to both the attributeCollection> attributes and attributeCollection> attributeCollectionPage > views collections on the user flow. In the views collection, the attribute is assigned the default settings. You can PATCH the user flow to customize the settings of the attribute on the views object, for example, marking it as required or updating the allowed input types. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Delete ref of navigation property attributes for identity + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/$ref?@id={%40id}' + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Get an identityUserFlowAttribute collection associated with an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object. These attributes are collected from the user during the authentication experience defined by the user flow. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Add an attribute to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. The attribute is added to both the attributeCollection> attributes and attributeCollection> attributeCollectionPage > views collections on the user flow. In the views collection, the attribute is assigned the default settings. You can PATCH the user flow to customize the settings of the attribute on the views object, for example, marking it as required or updating the allowed input types. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Delete ref of navigation property attributes for identity + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end + + ## + # Get an identityUserFlowAttribute collection associated with an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object. These attributes are collected from the user during the authentication experience defined by the user flow. + class RefRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/f024c257001096dd92a7acdfc2e3732ad4ca2d3fce6fa8a836886e7189548c1b.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/graph_on_attribute_collection_external_users_self_service_sign_up/f024c257001096dd92a7acdfc2e3732ad4ca2d3fce6fa8a836886e7189548c1b.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/on_attribute_collection.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/on_attribute_collection.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/on_attribute_collection_request_builder.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/on_attribute_collection_request_builder.rb new file mode 100644 index 0000000000..e18425a146 --- /dev/null +++ b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_attribute_collection/on_attribute_collection_request_builder.rb @@ -0,0 +1,110 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/on_attribute_collection_handler' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../identity' +require_relative '../../../authentication_events_flows' +require_relative '../../item' +require_relative '../graph_external_users_self_service_sign_up_events_flow' +require_relative './graph_on_attribute_collection_external_users_self_service_sign_up/153d2d9b48165897f24a2e4204454386cc7fe7654bce396de5141a8846989bac' +require_relative './on_attribute_collection' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module GraphExternalUsersSelfServiceSignUpEventsFlow + module OnAttributeCollection + ## + # Builds and executes requests for operations under \identity\authenticationEventsFlows\{authenticationEventsFlow-id}\graph.externalUsersSelfServiceSignUpEventsFlow\onAttributeCollection + class OnAttributeCollectionRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Casts the previous resource to onAttributeCollectionExternalUsersSelfServiceSignUp. + def graph_on_attribute_collection_external_users_self_service_sign_up() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::GraphExternalUsersSelfServiceSignUpEventsFlow::OnAttributeCollection::GraphOnAttributeCollectionExternalUsersSelfServiceSignUp::GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new OnAttributeCollectionRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection{?%24expand,%24select}") + end + ## + ## The configuration for what to invoke when attributes are ready to be collected from the user. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of on_attribute_collection_handler + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnAttributeCollectionHandler.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The configuration for what to invoke when attributes are ready to be collected from the user. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a on_attribute_collection_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnAttributeCollectionRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # The configuration for what to invoke when attributes are ready to be collected from the user. + class OnAttributeCollectionRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/0d30463e3d6e1fc8d5786c35777f82039ac09c52227259d20e0697eabbc43739.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/0d30463e3d6e1fc8d5786c35777f82039ac09c52227259d20e0697eabbc43739.rb new file mode 100644 index 0000000000..5afdb9337c --- /dev/null +++ b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/0d30463e3d6e1fc8d5786c35777f82039ac09c52227259d20e0697eabbc43739.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/on_authentication_method_load_start_external_users_self_service_sign_up' +require_relative '../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../identity' +require_relative '../../../../authentication_events_flows' +require_relative '../../../item' +require_relative '../../graph_external_users_self_service_sign_up_events_flow' +require_relative '../on_authentication_method_load_start' +require_relative './58488316f8253acf7a8e4a86532a399e446b9575e28151ed7acba97a24342341' +require_relative './identity_providers/2088f24069c31169b499380234b3747c456f1ba1815c4dd80711955dfa01e61a' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module GraphExternalUsersSelfServiceSignUpEventsFlow + module OnAuthenticationMethodLoadStart + module GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp + ## + # Casts the previous resource to onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp. + class GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the identityProviders property of the microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp entity. + def identity_providers() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::GraphExternalUsersSelfServiceSignUpEventsFlow::OnAuthenticationMethodLoadStart::GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp::IdentityProviders::IdentityProvidersRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp") + end + ## + ## Get the item of type microsoft.graph.onAuthenticationMethodLoadStartHandler as microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of on_authentication_method_load_start_external_users_self_service_sign_up + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.onAuthenticationMethodLoadStartHandler as microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a graph_on_authentication_method_load_start_external_users_self_service_sign_up_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/58488316f8253acf7a8e4a86532a399e446b9575e28151ed7acba97a24342341.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/58488316f8253acf7a8e4a86532a399e446b9575e28151ed7acba97a24342341.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/2088f24069c31169b499380234b3747c456f1ba1815c4dd80711955dfa01e61a.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/2088f24069c31169b499380234b3747c456f1ba1815c4dd80711955dfa01e61a.rb new file mode 100644 index 0000000000..e1c9b2b5f1 --- /dev/null +++ b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/2088f24069c31169b499380234b3747c456f1ba1815c4dd80711955dfa01e61a.rb @@ -0,0 +1,164 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/identity_provider_base_collection_response' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../identity' +require_relative '../../../../../authentication_events_flows' +require_relative '../../../../item' +require_relative '../../../graph_external_users_self_service_sign_up_events_flow' +require_relative '../../on_authentication_method_load_start' +require_relative '../58488316f8253acf7a8e4a86532a399e446b9575e28151ed7acba97a24342341' +require_relative './5ef97b175e346a8a0842479b1c9b93af12b8f8b5d9e34a375b2f5bdba802eafc' +require_relative './count/c2d464a14d231282699ce186783cc1f28f16ada73c685979750702bb76ce87fa' +require_relative './item/d570cbf615a8b853defc56db5c01bb7cb59049c516380ecc9e37e5a8dd71b965' +require_relative './ref/063bcda814bc1411a3ac6fc7b73d84ae5397049f0f02a2c01f46ee12ba28304b' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module GraphExternalUsersSelfServiceSignUpEventsFlow + module OnAuthenticationMethodLoadStart + module GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp + module IdentityProviders + ## + # Provides operations to manage the identityProviders property of the microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp entity. + class IdentityProvidersRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::GraphExternalUsersSelfServiceSignUpEventsFlow::OnAuthenticationMethodLoadStart::GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp::IdentityProviders::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the collection of identityContainer entities. + def ref() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::GraphExternalUsersSelfServiceSignUpEventsFlow::OnAuthenticationMethodLoadStart::GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp::IdentityProviders::Ref::RefRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Gets an item from the MicrosoftGraph.identity.authenticationEventsFlows.item.graphExternalUsersSelfServiceSignUpEventsFlow.onAuthenticationMethodLoadStart.graphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp.identityProviders.item collection + ## @param identity_provider_base_id The unique identifier of identityProviderBase + ## @return a identity_provider_base_item_request_builder + ## + def by_identity_provider_base_id(identity_provider_base_id) + raise StandardError, 'identity_provider_base_id cannot be null' if identity_provider_base_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["identityProviderBase%2Did"] = identity_provider_base_id + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::GraphExternalUsersSelfServiceSignUpEventsFlow::OnAuthenticationMethodLoadStart::GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp::IdentityProviders::Item::IdentityProviderBaseItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new IdentityProvidersRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get the identity providers that are defined for an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object type. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of identity_provider_base_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityProviderBaseCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the identity providers that are defined for an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object type. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a identity_providers_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IdentityProvidersRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the identity providers that are defined for an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object type. + class IdentityProvidersRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/5ef97b175e346a8a0842479b1c9b93af12b8f8b5d9e34a375b2f5bdba802eafc.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/5ef97b175e346a8a0842479b1c9b93af12b8f8b5d9e34a375b2f5bdba802eafc.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/count/6c35493a2b937829c9815c39e23af964bc84e5430a7dc104c700bbc0de2b59e3.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/count/6c35493a2b937829c9815c39e23af964bc84e5430a7dc104c700bbc0de2b59e3.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/count/c2d464a14d231282699ce186783cc1f28f16ada73c685979750702bb76ce87fa.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/count/c2d464a14d231282699ce186783cc1f28f16ada73c685979750702bb76ce87fa.rb new file mode 100644 index 0000000000..9f269d6b02 --- /dev/null +++ b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/count/c2d464a14d231282699ce186783cc1f28f16ada73c685979750702bb76ce87fa.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../identity' +require_relative '../../../../../../authentication_events_flows' +require_relative '../../../../../item' +require_relative '../../../../graph_external_users_self_service_sign_up_events_flow' +require_relative '../../../on_authentication_method_load_start' +require_relative '../../58488316f8253acf7a8e4a86532a399e446b9575e28151ed7acba97a24342341' +require_relative '../5ef97b175e346a8a0842479b1c9b93af12b8f8b5d9e34a375b2f5bdba802eafc' +require_relative './6c35493a2b937829c9815c39e23af964bc84e5430a7dc104c700bbc0de2b59e3' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module GraphExternalUsersSelfServiceSignUpEventsFlow + module OnAuthenticationMethodLoadStart + module GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp + module IdentityProviders + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/item/4a33eacd5fa65f2b2e2871cd131286b53c415b131666d71173bb6e3fe59361b3.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/item/4a33eacd5fa65f2b2e2871cd131286b53c415b131666d71173bb6e3fe59361b3.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/item/d570cbf615a8b853defc56db5c01bb7cb59049c516380ecc9e37e5a8dd71b965.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/item/d570cbf615a8b853defc56db5c01bb7cb59049c516380ecc9e37e5a8dd71b965.rb new file mode 100644 index 0000000000..7ae6c5427d --- /dev/null +++ b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/item/d570cbf615a8b853defc56db5c01bb7cb59049c516380ecc9e37e5a8dd71b965.rb @@ -0,0 +1,49 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../identity' +require_relative '../../../../../../authentication_events_flows' +require_relative '../../../../../item' +require_relative '../../../../graph_external_users_self_service_sign_up_events_flow' +require_relative '../../../on_authentication_method_load_start' +require_relative '../../58488316f8253acf7a8e4a86532a399e446b9575e28151ed7acba97a24342341' +require_relative '../5ef97b175e346a8a0842479b1c9b93af12b8f8b5d9e34a375b2f5bdba802eafc' +require_relative './4a33eacd5fa65f2b2e2871cd131286b53c415b131666d71173bb6e3fe59361b3' +require_relative './ref/063bcda814bc1411a3ac6fc7b73d84ae5397049f0f02a2c01f46ee12ba28304b' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module GraphExternalUsersSelfServiceSignUpEventsFlow + module OnAuthenticationMethodLoadStart + module GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp + module IdentityProviders + module Item + ## + # Builds and executes requests for operations under \identity\authenticationEventsFlows\{authenticationEventsFlow-id}\graph.externalUsersSelfServiceSignUpEventsFlow\onAuthenticationMethodLoadStart\graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp\identityProviders\{identityProviderBase-id} + class IdentityProviderBaseItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to manage the collection of identityContainer entities. + def ref() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::GraphExternalUsersSelfServiceSignUpEventsFlow::OnAuthenticationMethodLoadStart::GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp::IdentityProviders::Item::Ref::RefRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new IdentityProviderBaseItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/{identityProviderBase%2Did}") + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/item/ref/063bcda814bc1411a3ac6fc7b73d84ae5397049f0f02a2c01f46ee12ba28304b.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/item/ref/063bcda814bc1411a3ac6fc7b73d84ae5397049f0f02a2c01f46ee12ba28304b.rb new file mode 100644 index 0000000000..8ae5705108 --- /dev/null +++ b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/item/ref/063bcda814bc1411a3ac6fc7b73d84ae5397049f0f02a2c01f46ee12ba28304b.rb @@ -0,0 +1,86 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../identity' +require_relative '../../../../../../../authentication_events_flows' +require_relative '../../../../../../item' +require_relative '../../../../../graph_external_users_self_service_sign_up_events_flow' +require_relative '../../../../on_authentication_method_load_start' +require_relative '../../../58488316f8253acf7a8e4a86532a399e446b9575e28151ed7acba97a24342341' +require_relative '../../5ef97b175e346a8a0842479b1c9b93af12b8f8b5d9e34a375b2f5bdba802eafc' +require_relative '../4a33eacd5fa65f2b2e2871cd131286b53c415b131666d71173bb6e3fe59361b3' +require_relative './3ff6c05723bb069d19953340320fa9512f0be584742703e60226ded28bb43861' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module GraphExternalUsersSelfServiceSignUpEventsFlow + module OnAuthenticationMethodLoadStart + module GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp + module IdentityProviders + module Item + module Ref + ## + # Provides operations to manage the collection of identityContainer entities. + class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RefRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/{identityProviderBase%2Did}/$ref") + end + ## + ## Delete ref of navigation property identityProviders for identity + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Delete ref of navigation property identityProviders for identity + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/item/ref/3ff6c05723bb069d19953340320fa9512f0be584742703e60226ded28bb43861.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/item/ref/3ff6c05723bb069d19953340320fa9512f0be584742703e60226ded28bb43861.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/ref/063bcda814bc1411a3ac6fc7b73d84ae5397049f0f02a2c01f46ee12ba28304b.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/ref/063bcda814bc1411a3ac6fc7b73d84ae5397049f0f02a2c01f46ee12ba28304b.rb new file mode 100644 index 0000000000..d0eebaf8fd --- /dev/null +++ b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/ref/063bcda814bc1411a3ac6fc7b73d84ae5397049f0f02a2c01f46ee12ba28304b.rb @@ -0,0 +1,223 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../../models/reference_create' +require_relative '../../../../../../../../models/string_collection_response' +require_relative '../../../../../../../identity' +require_relative '../../../../../../authentication_events_flows' +require_relative '../../../../../item' +require_relative '../../../../graph_external_users_self_service_sign_up_events_flow' +require_relative '../../../on_authentication_method_load_start' +require_relative '../../58488316f8253acf7a8e4a86532a399e446b9575e28151ed7acba97a24342341' +require_relative '../5ef97b175e346a8a0842479b1c9b93af12b8f8b5d9e34a375b2f5bdba802eafc' +require_relative './3ff6c05723bb069d19953340320fa9512f0be584742703e60226ded28bb43861' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module GraphExternalUsersSelfServiceSignUpEventsFlow + module OnAuthenticationMethodLoadStart + module GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp + module IdentityProviders + module Ref + ## + # Provides operations to manage the collection of identityContainer entities. + class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new RefRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") + end + ## + ## Delete ref of navigation property identityProviders for identity + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Get the identity providers that are defined for an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object type. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of string_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Add an identity provider to an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object type. The identity provider must first be configured in the tenant. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Delete ref of navigation property identityProviders for identity + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/$ref?@id={%40id}' + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Get the identity providers that are defined for an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object type. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Add an identity provider to an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object type. The identity provider must first be configured in the tenant. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Delete ref of navigation property identityProviders for identity + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end + + ## + # Get the identity providers that are defined for an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object type. + class RefRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/ref/3ff6c05723bb069d19953340320fa9512f0be584742703e60226ded28bb43861.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/graph_on_authentication_method_load_start_external_users_self_service_sign_up/identity_providers/ref/3ff6c05723bb069d19953340320fa9512f0be584742703e60226ded28bb43861.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/on_authentication_method_load_start.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/on_authentication_method_load_start.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/on_authentication_method_load_start_request_builder.rb b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/on_authentication_method_load_start_request_builder.rb new file mode 100644 index 0000000000..ac5eb7c9d7 --- /dev/null +++ b/lib/identity/authentication_events_flows/item/graph_external_users_self_service_sign_up_events_flow/on_authentication_method_load_start/on_authentication_method_load_start_request_builder.rb @@ -0,0 +1,110 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/on_authentication_method_load_start_handler' +require_relative '../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../identity' +require_relative '../../../authentication_events_flows' +require_relative '../../item' +require_relative '../graph_external_users_self_service_sign_up_events_flow' +require_relative './graph_on_authentication_method_load_start_external_users_self_service_sign_up/0d30463e3d6e1fc8d5786c35777f82039ac09c52227259d20e0697eabbc43739' +require_relative './on_authentication_method_load_start' + +module MicrosoftGraph + module Identity + module AuthenticationEventsFlows + module Item + module GraphExternalUsersSelfServiceSignUpEventsFlow + module OnAuthenticationMethodLoadStart + ## + # Builds and executes requests for operations under \identity\authenticationEventsFlows\{authenticationEventsFlow-id}\graph.externalUsersSelfServiceSignUpEventsFlow\onAuthenticationMethodLoadStart + class OnAuthenticationMethodLoadStartRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Casts the previous resource to onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp. + def graph_on_authentication_method_load_start_external_users_self_service_sign_up() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::Item::GraphExternalUsersSelfServiceSignUpEventsFlow::OnAuthenticationMethodLoadStart::GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp::GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new OnAuthenticationMethodLoadStartRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart{?%24expand,%24select}") + end + ## + ## Required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. Supports $filter (eq). See support for filtering on user flows for syntax information. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of on_authentication_method_load_start_handler + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OnAuthenticationMethodLoadStartHandler.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. Supports $filter (eq). See support for filtering on user flows for syntax information. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a on_authentication_method_load_start_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OnAuthenticationMethodLoadStartRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. Supports $filter (eq). See support for filtering on user flows for syntax information. + class OnAuthenticationMethodLoadStartRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity/authentication_events_flows/item/item.rb b/lib/identity/authentication_events_flows/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/b2x_user_flows/b2x_user_flows_request_builder.rb b/lib/identity/b2x_user_flows/b2x_user_flows_request_builder.rb index b4ecac4ae4..63fe34a458 100644 --- a/lib/identity/b2x_user_flows/b2x_user_flows_request_builder.rb +++ b/lib/identity/b2x_user_flows/b2x_user_flows_request_builder.rb @@ -38,7 +38,7 @@ def by_b2x_identity_user_flow_id(b2x_identity_user_flow_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of b2xIdentityUserFlow objects. @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::B2xIdentityUserFlowCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::B2xIdentityUserFlow.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,15 +75,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a b2x_user_flows_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return B2xUserFlowsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of b2xIdentityUserFlow objects. diff --git a/lib/identity/b2x_user_flows/count/count_request_builder.rb b/lib/identity/b2x_user_flows/count/count_request_builder.rb index e35683bf95..4536423dc9 100644 --- a/lib/identity/b2x_user_flows/count/count_request_builder.rb +++ b/lib/identity/b2x_user_flows/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity/b2x_user_flows/item/api_connector_configuration/api_connector_configuration_request_builder.rb b/lib/identity/b2x_user_flows/item/api_connector_configuration/api_connector_configuration_request_builder.rb index bf465baa44..3232a0c4f2 100644 --- a/lib/identity/b2x_user_flows/item/api_connector_configuration/api_connector_configuration_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/api_connector_configuration/api_connector_configuration_request_builder.rb @@ -35,10 +35,10 @@ def post_federation_signup() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/apiConnectorConfiguration{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/apiConnectorConfiguration{?%24expand,%24select}") end ## - ## Configuration for enabling an API connector for use as part of the self-service sign-up user flow. You can only obtain the value of this object using Get userFlowApiConnectorConfiguration. + ## Get the apiConnectorConfiguration property in a b2xIdentityUserFlow to detail the API connectors enabled for the user flow. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of user_flow_api_connector_configuration ## @@ -47,31 +47,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserFlowApiConnectorConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Configuration for enabling an API connector for use as part of the self-service sign-up user flow. You can only obtain the value of this object using Get userFlowApiConnectorConfiguration. + ## Get the apiConnectorConfiguration property in a b2xIdentityUserFlow to detail the API connectors enabled for the user flow. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a api_connector_configuration_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApiConnectorConfigurationRequestBuilder.new(raw_url, @request_adapter) + end ## - # Configuration for enabling an API connector for use as part of the self-service sign-up user flow. You can only obtain the value of this object using Get userFlowApiConnectorConfiguration. + # Get the apiConnectorConfiguration property in a b2xIdentityUserFlow to detail the API connectors enabled for the user flow. class ApiConnectorConfigurationRequestBuilderGetQueryParameters ## diff --git a/lib/identity/b2x_user_flows/item/api_connector_configuration/post_attribute_collection/post_attribute_collection_request_builder.rb b/lib/identity/b2x_user_flows/item/api_connector_configuration/post_attribute_collection/post_attribute_collection_request_builder.rb index 9a490e33c3..0bbe112012 100644 --- a/lib/identity/b2x_user_flows/item/api_connector_configuration/post_attribute_collection/post_attribute_collection_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/api_connector_configuration/post_attribute_collection/post_attribute_collection_request_builder.rb @@ -37,7 +37,7 @@ def upload_client_certificate() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/apiConnectorConfiguration/postAttributeCollection{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/apiConnectorConfiguration/postAttributeCollection{?%24expand,%24select}") end ## ## Delete navigation property postAttributeCollection for identity @@ -49,8 +49,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityApiConnector.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,8 +77,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityApiConnector.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,13 +87,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -106,15 +104,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,17 +124,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a post_attribute_collection_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PostAttributeCollectionRequestBuilder.new(raw_url, @request_adapter) + end ## # Get postAttributeCollection from identity diff --git a/lib/identity/b2x_user_flows/item/api_connector_configuration/post_attribute_collection/ref/ref_request_builder.rb b/lib/identity/b2x_user_flows/item/api_connector_configuration/post_attribute_collection/ref/ref_request_builder.rb index a795dd8562..6da51433e2 100644 --- a/lib/identity/b2x_user_flows/item/api_connector_configuration/post_attribute_collection/ref/ref_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/api_connector_configuration/post_attribute_collection/ref/ref_request_builder.rb @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, string, error_mapping) end ## @@ -69,8 +67,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -80,13 +77,14 @@ def put(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,14 +94,14 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -115,16 +113,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity/b2x_user_flows/item/api_connector_configuration/post_attribute_collection/upload_client_certificate/upload_client_certificate_post_request_body.rb b/lib/identity/b2x_user_flows/item/api_connector_configuration/post_attribute_collection/upload_client_certificate/upload_client_certificate_post_request_body.rb index 9564a96ab9..a9c6d2d964 100644 --- a/lib/identity/b2x_user_flows/item/api_connector_configuration/post_attribute_collection/upload_client_certificate/upload_client_certificate_post_request_body.rb +++ b/lib/identity/b2x_user_flows/item/api_connector_configuration/post_attribute_collection/upload_client_certificate/upload_client_certificate_post_request_body.rb @@ -26,22 +26,22 @@ class UploadClientCertificatePostRequestBody # The pkcs12Value property @pkcs12_value ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new uploadClientCertificatePostRequestBody and sets the default values. + ## Instantiates a new UploadClientCertificatePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/identity/b2x_user_flows/item/api_connector_configuration/post_attribute_collection/upload_client_certificate/upload_client_certificate_request_builder.rb b/lib/identity/b2x_user_flows/item/api_connector_configuration/post_attribute_collection/upload_client_certificate/upload_client_certificate_request_builder.rb index 139f8289a0..73b71fb2c8 100644 --- a/lib/identity/b2x_user_flows/item/api_connector_configuration/post_attribute_collection/upload_client_certificate/upload_client_certificate_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/api_connector_configuration/post_attribute_collection/upload_client_certificate/upload_client_certificate_request_builder.rb @@ -41,8 +41,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityApiConnector.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a upload_client_certificate_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UploadClientCertificateRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity/b2x_user_flows/item/api_connector_configuration/post_federation_signup/post_federation_signup_request_builder.rb b/lib/identity/b2x_user_flows/item/api_connector_configuration/post_federation_signup/post_federation_signup_request_builder.rb index ca904ff973..16eb502327 100644 --- a/lib/identity/b2x_user_flows/item/api_connector_configuration/post_federation_signup/post_federation_signup_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/api_connector_configuration/post_federation_signup/post_federation_signup_request_builder.rb @@ -37,7 +37,7 @@ def upload_client_certificate() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/apiConnectorConfiguration/postFederationSignup{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/apiConnectorConfiguration/postFederationSignup{?%24expand,%24select}") end ## ## Delete navigation property postFederationSignup for identity @@ -49,8 +49,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityApiConnector.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,8 +77,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityApiConnector.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,13 +87,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -106,15 +104,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,17 +124,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a post_federation_signup_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PostFederationSignupRequestBuilder.new(raw_url, @request_adapter) + end ## # Get postFederationSignup from identity diff --git a/lib/identity/b2x_user_flows/item/api_connector_configuration/post_federation_signup/ref/ref_request_builder.rb b/lib/identity/b2x_user_flows/item/api_connector_configuration/post_federation_signup/ref/ref_request_builder.rb index 988df5daf1..52f6774200 100644 --- a/lib/identity/b2x_user_flows/item/api_connector_configuration/post_federation_signup/ref/ref_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/api_connector_configuration/post_federation_signup/ref/ref_request_builder.rb @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, string, error_mapping) end ## @@ -69,8 +67,7 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -80,13 +77,14 @@ def put(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,14 +94,14 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -115,16 +113,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity/b2x_user_flows/item/api_connector_configuration/post_federation_signup/upload_client_certificate/upload_client_certificate_post_request_body.rb b/lib/identity/b2x_user_flows/item/api_connector_configuration/post_federation_signup/upload_client_certificate/upload_client_certificate_post_request_body.rb index ff7ab0a23b..f5fc0592dd 100644 --- a/lib/identity/b2x_user_flows/item/api_connector_configuration/post_federation_signup/upload_client_certificate/upload_client_certificate_post_request_body.rb +++ b/lib/identity/b2x_user_flows/item/api_connector_configuration/post_federation_signup/upload_client_certificate/upload_client_certificate_post_request_body.rb @@ -26,22 +26,22 @@ class UploadClientCertificatePostRequestBody # The pkcs12Value property @pkcs12_value ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new uploadClientCertificatePostRequestBody and sets the default values. + ## Instantiates a new UploadClientCertificatePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/identity/b2x_user_flows/item/api_connector_configuration/post_federation_signup/upload_client_certificate/upload_client_certificate_request_builder.rb b/lib/identity/b2x_user_flows/item/api_connector_configuration/post_federation_signup/upload_client_certificate/upload_client_certificate_request_builder.rb index 4d64c172ca..2ef0cbaddf 100644 --- a/lib/identity/b2x_user_flows/item/api_connector_configuration/post_federation_signup/upload_client_certificate/upload_client_certificate_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/api_connector_configuration/post_federation_signup/upload_client_certificate/upload_client_certificate_request_builder.rb @@ -41,8 +41,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityApiConnector.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a upload_client_certificate_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UploadClientCertificateRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity/b2x_user_flows/item/b2x_identity_user_flow_item_request_builder.rb b/lib/identity/b2x_user_flows/item/b2x_identity_user_flow_item_request_builder.rb index 69426a5531..6fe06172c3 100644 --- a/lib/identity/b2x_user_flows/item/b2x_identity_user_flow_item_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/b2x_identity_user_flow_item_request_builder.rb @@ -51,7 +51,7 @@ def user_flow_identity_providers() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}{?%24expand,%24select}") end ## ## Delete a b2xIdentityUserFlow object. @@ -63,8 +63,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -77,8 +76,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::B2xIdentityUserFlow.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,8 +91,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::B2xIdentityUserFlow.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -104,13 +101,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,15 +118,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -140,17 +138,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a b2x_identity_user_flow_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return B2xIdentityUserFlowItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of a b2xIdentityUserFlow object. diff --git a/lib/identity/b2x_user_flows/item/identity_providers/count/count_request_builder.rb b/lib/identity/b2x_user_flows/item/identity_providers/count/count_request_builder.rb index 356d366711..64b5688b76 100644 --- a/lib/identity/b2x_user_flows/item/identity_providers/count/count_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/identity_providers/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/identityProviders/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/identityProviders/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity/b2x_user_flows/item/identity_providers/identity_providers_request_builder.rb b/lib/identity/b2x_user_flows/item/identity_providers/identity_providers_request_builder.rb index 99568cd1a0..82ca15d352 100644 --- a/lib/identity/b2x_user_flows/item/identity_providers/identity_providers_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/identity_providers/identity_providers_request_builder.rb @@ -41,7 +41,7 @@ def by_identity_provider_id(identity_provider_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/identityProviders{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/identityProviders{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the identity providers in a b2xIdentityUserFlow object. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityProviderCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a identity_providers_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IdentityProvidersRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the identity providers in a b2xIdentityUserFlow object. diff --git a/lib/identity/b2x_user_flows/item/identity_providers/item/identity_provider_item_request_builder.rb b/lib/identity/b2x_user_flows/item/identity_providers/item/identity_provider_item_request_builder.rb index 423a1d1071..65843e5c2b 100644 --- a/lib/identity/b2x_user_flows/item/identity_providers/item/identity_provider_item_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/identity_providers/item/identity_provider_item_request_builder.rb @@ -25,21 +25,7 @@ class IdentityProviderItemRequestBuilder < MicrosoftKiotaAbstractions::BaseReque ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/identityProviders/{identityProvider%2Did}{?%24select,%24expand}") - end - ## - ## Delete an identity provider from a b2xIdentityUserFlow object. For self-service sign-up user flows, the values can be Google-OAUTH or Facebook-OAUTH. - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of void - ## - def delete(request_configuration=nil) - request_info = self.to_delete_request_information( - request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, nil, error_mapping) + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/identityProviders/{identityProvider%2Did}{?%24expand,%24select}") end ## ## The identity providers included in the user flow. @@ -51,44 +37,36 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityProvider.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete an identity provider from a b2xIdentityUserFlow object. For self-service sign-up user flows, the values can be Google-OAUTH or Facebook-OAUTH. - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_delete_request_information(request_configuration=nil) - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - return request_info - end - ## ## The identity providers included in the user flow. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a identity_provider_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IdentityProviderItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The identity providers included in the user flow. diff --git a/lib/identity/b2x_user_flows/item/languages/count/count_request_builder.rb b/lib/identity/b2x_user_flows/item/languages/count/count_request_builder.rb index b35846c6d5..ad215fa956 100644 --- a/lib/identity/b2x_user_flows/item/languages/count/count_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/languages/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity/b2x_user_flows/item/languages/item/default_pages/count/count_request_builder.rb b/lib/identity/b2x_user_flows/item/languages/item/default_pages/count/count_request_builder.rb index 834dcc8a58..be4c3cf3c2 100644 --- a/lib/identity/b2x_user_flows/item/languages/item/default_pages/count/count_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/languages/item/default_pages/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/defaultPages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/defaultPages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity/b2x_user_flows/item/languages/item/default_pages/default_pages_request_builder.rb b/lib/identity/b2x_user_flows/item/languages/item/default_pages/default_pages_request_builder.rb index 6b2c28b237..6ec442c1eb 100644 --- a/lib/identity/b2x_user_flows/item/languages/item/default_pages/default_pages_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/languages/item/default_pages/default_pages_request_builder.rb @@ -46,10 +46,10 @@ def by_user_flow_language_page_id(user_flow_language_page_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/defaultPages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/defaultPages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Collection of pages with the default content to display in a user flow for a specified language. This collection does not allow any kind of modification. + ## Read the values in a userFlowLanguagePage object for a language in a user flow. These values are shown to a user during a user journey defined by a user flow. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of user_flow_language_page_collection_response ## @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserFlowLanguagePageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,26 +73,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserFlowLanguagePage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Collection of pages with the default content to display in a user flow for a specified language. This collection does not allow any kind of modification. + ## Read the values in a userFlowLanguagePage object for a language in a user flow. These values are shown to a user during a user journey defined by a user flow. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a default_pages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DefaultPagesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Collection of pages with the default content to display in a user flow for a specified language. This collection does not allow any kind of modification. + # Read the values in a userFlowLanguagePage object for a language in a user flow. These values are shown to a user during a user journey defined by a user flow. class DefaultPagesRequestBuilderGetQueryParameters ## diff --git a/lib/identity/b2x_user_flows/item/languages/item/default_pages/item/user_flow_language_page_item_request_builder.rb b/lib/identity/b2x_user_flows/item/languages/item/default_pages/item/user_flow_language_page_item_request_builder.rb index 549321aa1b..e70b7b2c4c 100644 --- a/lib/identity/b2x_user_flows/item/languages/item/default_pages/item/user_flow_language_page_item_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/languages/item/default_pages/item/user_flow_language_page_item_request_builder.rb @@ -35,7 +35,7 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/defaultPages/{userFlowLanguagePage%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/defaultPages/{userFlowLanguagePage%2Did}{?%24expand,%24select}") end ## ## Delete navigation property defaultPages for identity @@ -47,12 +47,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Collection of pages with the default content to display in a user flow for a specified language. This collection does not allow any kind of modification. + ## Collection of pages with the default content to display in a user flow for a specified language. This collection doesn't allow any kind of modification. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of user_flow_language_page ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserFlowLanguagePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserFlowLanguagePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,31 +85,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Collection of pages with the default content to display in a user flow for a specified language. This collection does not allow any kind of modification. + ## Collection of pages with the default content to display in a user flow for a specified language. This collection doesn't allow any kind of modification. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,20 +122,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_flow_language_page_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserFlowLanguagePageItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Collection of pages with the default content to display in a user flow for a specified language. This collection does not allow any kind of modification. + # Collection of pages with the default content to display in a user flow for a specified language. This collection doesn't allow any kind of modification. class UserFlowLanguagePageItemRequestBuilderGetQueryParameters ## diff --git a/lib/identity/b2x_user_flows/item/languages/item/default_pages/item/value/content_request_builder.rb b/lib/identity/b2x_user_flows/item/languages/item/default_pages/item/value/content_request_builder.rb index 1a4553cb7d..52bad3397a 100644 --- a/lib/identity/b2x_user_flows/item/languages/item/default_pages/item/value/content_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/languages/item/default_pages/item/value/content_request_builder.rb @@ -33,7 +33,20 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/defaultPages/{userFlowLanguagePage%2Did}/$value") end ## - ## Get media content for the navigation property defaultPages from identity + ## The unique identifier for an entity. Read-only. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Read the values in a userFlowLanguagePage object for a language in a user flow. These values are shown to a user during a user journey defined by a user flow. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## @@ -42,12 +55,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Update media content for the navigation property defaultPages in identity + ## The unique identifier for an entity. Read-only. ## @param body Binary request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary @@ -58,28 +70,45 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Get media content for the navigation property defaultPages from identity + ## The unique identifier for an entity. Read-only. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Read the values in a userFlowLanguagePage object for a language in a user flow. These values are shown to a user during a user journey defined by a user flow. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## - ## Update media content for the navigation property defaultPages in identity + ## The unique identifier for an entity. Read-only. ## @param body Binary request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -87,16 +116,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity/b2x_user_flows/item/languages/item/overrides_pages/count/count_request_builder.rb b/lib/identity/b2x_user_flows/item/languages/item/overrides_pages/count/count_request_builder.rb index 389a63913f..ea40544d17 100644 --- a/lib/identity/b2x_user_flows/item/languages/item/overrides_pages/count/count_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/languages/item/overrides_pages/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/overridesPages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/overridesPages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity/b2x_user_flows/item/languages/item/overrides_pages/item/user_flow_language_page_item_request_builder.rb b/lib/identity/b2x_user_flows/item/languages/item/overrides_pages/item/user_flow_language_page_item_request_builder.rb index f70aed2b20..7d5d15ba66 100644 --- a/lib/identity/b2x_user_flows/item/languages/item/overrides_pages/item/user_flow_language_page_item_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/languages/item/overrides_pages/item/user_flow_language_page_item_request_builder.rb @@ -35,10 +35,10 @@ def content() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/overridesPages/{userFlowLanguagePage%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/overridesPages/{userFlowLanguagePage%2Did}{?%24expand,%24select}") end ## - ## Delete navigation property overridesPages for identity + ## Deletes the values in an userFlowLanguagePage object. You may only delete the values in an overridesPage, which is used to customize the values shown to a user during a user journey defined by a user flow. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -47,12 +47,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Collection of pages with the overrides messages to display in a user flow for a specified language. This collection only allows to modify the content of the page, any other modification is not allowed (creation or deletion of pages). + ## Collection of pages with the overrides messages to display in a user flow for a specified language. This collection only allows you to modify the content of the page, any other modification isn't allowed (creation or deletion of pages). ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of user_flow_language_page ## @@ -61,12 +60,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserFlowLanguagePage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the navigation property overridesPages in identity + ## Update the values in an userFlowLanguagePage object. You may only update the values in an overridesPage, which is used to customize the values shown to a user during a user journey defined by a user flow. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of user_flow_language_page @@ -77,46 +75,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserFlowLanguagePage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete navigation property overridesPages for identity + ## Deletes the values in an userFlowLanguagePage object. You may only delete the values in an overridesPage, which is used to customize the values shown to a user during a user journey defined by a user flow. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Collection of pages with the overrides messages to display in a user flow for a specified language. This collection only allows to modify the content of the page, any other modification is not allowed (creation or deletion of pages). + ## Collection of pages with the overrides messages to display in a user flow for a specified language. This collection only allows you to modify the content of the page, any other modification isn't allowed (creation or deletion of pages). ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the navigation property overridesPages in identity + ## Update the values in an userFlowLanguagePage object. You may only update the values in an overridesPage, which is used to customize the values shown to a user during a user journey defined by a user flow. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -124,20 +122,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_flow_language_page_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserFlowLanguagePageItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Collection of pages with the overrides messages to display in a user flow for a specified language. This collection only allows to modify the content of the page, any other modification is not allowed (creation or deletion of pages). + # Collection of pages with the overrides messages to display in a user flow for a specified language. This collection only allows you to modify the content of the page, any other modification isn't allowed (creation or deletion of pages). class UserFlowLanguagePageItemRequestBuilderGetQueryParameters ## diff --git a/lib/identity/b2x_user_flows/item/languages/item/overrides_pages/item/value/content_request_builder.rb b/lib/identity/b2x_user_flows/item/languages/item/overrides_pages/item/value/content_request_builder.rb index b9e6446c24..04ea062545 100644 --- a/lib/identity/b2x_user_flows/item/languages/item/overrides_pages/item/value/content_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/languages/item/overrides_pages/item/value/content_request_builder.rb @@ -33,7 +33,20 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/overridesPages/{userFlowLanguagePage%2Did}/$value") end ## - ## Get media content for the navigation property overridesPages from identity + ## Deletes the values in an userFlowLanguagePage object. You may only delete the values in an overridesPage, which is used to customize the values shown to a user during a user journey defined by a user flow. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Get the userFlowLanguagePage resources from the overridesPages navigation property. These pages are used to customize the values shown to the user during a user journey in a user flow. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary ## @@ -42,12 +55,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Update media content for the navigation property overridesPages in identity + ## Update the values in an userFlowLanguagePage object. You may only update the values in an overridesPage, which is used to customize the values shown to a user during a user journey defined by a user flow. ## @param body Binary request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of binary @@ -58,28 +70,45 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, Binary, error_mapping) end ## - ## Get media content for the navigation property overridesPages from identity + ## Deletes the values in an userFlowLanguagePage object. You may only delete the values in an overridesPage, which is used to customize the values shown to a user during a user journey defined by a user flow. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end request_info.url_template = @url_template request_info.path_parameters = @path_parameters - request_info.http_method = :GET + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Get the userFlowLanguagePage resources from the overridesPages navigation property. These pages are used to customize the values shown to the user during a user journey in a user flow. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/octet-stream, application/json') return request_info end ## - ## Update media content for the navigation property overridesPages in identity + ## Update the values in an userFlowLanguagePage object. You may only update the values in an overridesPage, which is used to customize the values shown to a user during a user journey defined by a user flow. ## @param body Binary request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -87,16 +116,26 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "", body) + request_info.set_content_from_parsable(@request_adapter, 'application/octet-stream', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a content_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContentRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity/b2x_user_flows/item/languages/item/overrides_pages/overrides_pages_request_builder.rb b/lib/identity/b2x_user_flows/item/languages/item/overrides_pages/overrides_pages_request_builder.rb index 277696cbab..d8238bfcd6 100644 --- a/lib/identity/b2x_user_flows/item/languages/item/overrides_pages/overrides_pages_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/languages/item/overrides_pages/overrides_pages_request_builder.rb @@ -46,7 +46,7 @@ def by_user_flow_language_page_id(user_flow_language_page_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/overridesPages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/overridesPages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the userFlowLanguagePage resources from the overridesPages navigation property. These pages are used to customize the values shown to the user during a user journey in a user flow. @@ -58,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserFlowLanguagePageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -74,8 +73,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserFlowLanguagePage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,15 +83,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -105,17 +103,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a overrides_pages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return OverridesPagesRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the userFlowLanguagePage resources from the overridesPages navigation property. These pages are used to customize the values shown to the user during a user journey in a user flow. diff --git a/lib/identity/b2x_user_flows/item/languages/item/user_flow_language_configuration_item_request_builder.rb b/lib/identity/b2x_user_flows/item/languages/item/user_flow_language_configuration_item_request_builder.rb index 5f4040623f..50b68cea39 100644 --- a/lib/identity/b2x_user_flows/item/languages/item/user_flow_language_configuration_item_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/languages/item/user_flow_language_configuration_item_request_builder.rb @@ -37,7 +37,7 @@ def overrides_pages() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}{?%24expand,%24select}") end ## ## Delete navigation property languages for identity @@ -49,12 +49,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Azure Active Directory user flows. + ## Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Microsoft Entra user flows. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of user_flow_language_configuration ## @@ -63,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserFlowLanguageConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,8 +77,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserFlowLanguageConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,31 +87,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Azure Active Directory user flows. + ## Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Microsoft Entra user flows. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,20 +124,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_flow_language_configuration_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserFlowLanguageConfigurationItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Azure Active Directory user flows. + # Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Microsoft Entra user flows. class UserFlowLanguageConfigurationItemRequestBuilderGetQueryParameters ## diff --git a/lib/identity/b2x_user_flows/item/languages/languages_request_builder.rb b/lib/identity/b2x_user_flows/item/languages/languages_request_builder.rb index b7223e2fda..9eedbb7c57 100644 --- a/lib/identity/b2x_user_flows/item/languages/languages_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/languages/languages_request_builder.rb @@ -42,7 +42,7 @@ def by_user_flow_language_configuration_id(user_flow_language_configuration_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of languages supported for customization in a B2X user flow. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserFlowLanguageConfigurationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserFlowLanguageConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a languages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return LanguagesRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of languages supported for customization in a B2X user flow. diff --git a/lib/identity/b2x_user_flows/item/user_attribute_assignments/count/count_request_builder.rb b/lib/identity/b2x_user_flows/item/user_attribute_assignments/count/count_request_builder.rb index 561b712a91..ff2f5d046d 100644 --- a/lib/identity/b2x_user_flows/item/user_attribute_assignments/count/count_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/user_attribute_assignments/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userAttributeAssignments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userAttributeAssignments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity/b2x_user_flows/item/user_attribute_assignments/get_order/get_order_request_builder.rb b/lib/identity/b2x_user_flows/item/user_attribute_assignments/get_order/get_order_request_builder.rb index ce84cddfd5..1b7f364b29 100644 --- a/lib/identity/b2x_user_flows/item/user_attribute_assignments/get_order/get_order_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/user_attribute_assignments/get_order/get_order_request_builder.rb @@ -28,7 +28,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userAttributeAssignments/getOrder()") end ## - ## Invoke function getOrder + ## Get the order of identityUserFlowAttributeAssignments being collected within a user flow. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of assignment_order ## @@ -37,27 +37,35 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AssignmentOrder.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function getOrder + ## Get the order of identityUserFlowAttributeAssignments being collected within a user flow. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_order_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetOrderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity/b2x_user_flows/item/user_attribute_assignments/item/identity_user_flow_attribute_assignment_item_request_builder.rb b/lib/identity/b2x_user_flows/item/user_attribute_assignments/item/identity_user_flow_attribute_assignment_item_request_builder.rb index ee2e7a823c..b00bcae54c 100644 --- a/lib/identity/b2x_user_flows/item/user_attribute_assignments/item/identity_user_flow_attribute_assignment_item_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/user_attribute_assignments/item/identity_user_flow_attribute_assignment_item_request_builder.rb @@ -31,7 +31,7 @@ def user_attribute() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userAttributeAssignments/{identityUserFlowAttributeAssignment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userAttributeAssignments/{identityUserFlowAttributeAssignment%2Did}{?%24expand,%24select}") end ## ## Delete an identityUserFlowAttributeAssignment object. @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityUserFlowAttributeAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityUserFlowAttributeAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,15 +98,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a identity_user_flow_attribute_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IdentityUserFlowAttributeAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of an identityUserFlowAttributeAssignment object. diff --git a/lib/identity/b2x_user_flows/item/user_attribute_assignments/item/user_attribute/user_attribute_request_builder.rb b/lib/identity/b2x_user_flows/item/user_attribute_assignments/item/user_attribute/user_attribute_request_builder.rb index 2acce9dac3..a2ccc50261 100644 --- a/lib/identity/b2x_user_flows/item/user_attribute_assignments/item/user_attribute/user_attribute_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/user_attribute_assignments/item/user_attribute/user_attribute_request_builder.rb @@ -27,7 +27,7 @@ class UserAttributeRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userAttributeAssignments/{identityUserFlowAttributeAssignment%2Did}/userAttribute{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userAttributeAssignments/{identityUserFlowAttributeAssignment%2Did}/userAttribute{?%24expand,%24select}") end ## ## The user attribute that you want to add to your user flow. @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityUserFlowAttribute.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_attribute_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserAttributeRequestBuilder.new(raw_url, @request_adapter) + end ## # The user attribute that you want to add to your user flow. diff --git a/lib/identity/b2x_user_flows/item/user_attribute_assignments/set_order/set_order_post_request_body.rb b/lib/identity/b2x_user_flows/item/user_attribute_assignments/set_order/set_order_post_request_body.rb index 5a9488250b..73c7687ef0 100644 --- a/lib/identity/b2x_user_flows/item/user_attribute_assignments/set_order/set_order_post_request_body.rb +++ b/lib/identity/b2x_user_flows/item/user_attribute_assignments/set_order/set_order_post_request_body.rb @@ -22,22 +22,22 @@ class SetOrderPostRequestBody # The newAssignmentOrder property @new_assignment_order ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new setOrderPostRequestBody and sets the default values. + ## Instantiates a new SetOrderPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/identity/b2x_user_flows/item/user_attribute_assignments/set_order/set_order_request_builder.rb b/lib/identity/b2x_user_flows/item/user_attribute_assignments/set_order/set_order_request_builder.rb index da841fe392..7189d02217 100644 --- a/lib/identity/b2x_user_flows/item/user_attribute_assignments/set_order/set_order_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/user_attribute_assignments/set_order/set_order_request_builder.rb @@ -38,8 +38,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,16 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a set_order_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SetOrderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity/b2x_user_flows/item/user_attribute_assignments/user_attribute_assignments_request_builder.rb b/lib/identity/b2x_user_flows/item/user_attribute_assignments/user_attribute_assignments_request_builder.rb index b6c65d4d65..d0958858f3 100644 --- a/lib/identity/b2x_user_flows/item/user_attribute_assignments/user_attribute_assignments_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/user_attribute_assignments/user_attribute_assignments_request_builder.rb @@ -54,7 +54,7 @@ def by_identity_user_flow_attribute_assignment_id(identity_user_flow_attribute_a ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userAttributeAssignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userAttributeAssignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the identityUserFlowAttributeAssignment resources from the userAttributeAssignments navigation property in a b2xIdentityUserFlow. @@ -66,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityUserFlowAttributeAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,8 +81,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityUserFlowAttributeAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,15 +91,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -113,17 +111,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_attribute_assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserAttributeAssignmentsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the identityUserFlowAttributeAssignment resources from the userAttributeAssignments navigation property in a b2xIdentityUserFlow. diff --git a/lib/identity/b2x_user_flows/item/user_flow_identity_providers/count/count_request_builder.rb b/lib/identity/b2x_user_flows/item/user_flow_identity_providers/count/count_request_builder.rb index 52bda15800..c63253a7b4 100644 --- a/lib/identity/b2x_user_flows/item/user_flow_identity_providers/count/count_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/user_flow_identity_providers/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity/b2x_user_flows/item/user_flow_identity_providers/item/ref/ref_request_builder.rb b/lib/identity/b2x_user_flows/item/user_flow_identity_providers/item/ref/ref_request_builder.rb index 22b48166f7..e741013dd5 100644 --- a/lib/identity/b2x_user_flows/item/user_flow_identity_providers/item/ref/ref_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/user_flow_identity_providers/item/ref/ref_request_builder.rb @@ -26,7 +26,7 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/{identityProviderBase%2Did}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/{identityProviderBase%2Did}/$ref") end ## ## Delete ref of navigation property userFlowIdentityProviders for identity @@ -38,8 +38,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,38 +48,24 @@ def delete(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Delete ref of navigation property userFlowIdentityProviders for identity - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/identity/b2x_user_flows/item/user_flow_identity_providers/ref/ref_request_builder.rb b/lib/identity/b2x_user_flows/item/user_flow_identity_providers/ref/ref_request_builder.rb index bee928b2ca..b98ec33abb 100644 --- a/lib/identity/b2x_user_flows/item/user_flow_identity_providers/ref/ref_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/user_flow_identity_providers/ref/ref_request_builder.rb @@ -26,7 +26,20 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") + end + ## + ## Delete ref of navigation property userFlowIdentityProviders for identity + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) end ## ## Get ref of userFlowIdentityProviders from identity @@ -38,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,26 +66,43 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## + ## Delete ref of navigation property userFlowIdentityProviders for identity + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/$ref?@id={%40id}' + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## ## Get ref of userFlowIdentityProviders from identity ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -85,16 +114,49 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Delete ref of navigation property userFlowIdentityProviders for identity + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end ## # Get ref of userFlowIdentityProviders from identity diff --git a/lib/identity/b2x_user_flows/item/user_flow_identity_providers/user_flow_identity_providers_request_builder.rb b/lib/identity/b2x_user_flows/item/user_flow_identity_providers/user_flow_identity_providers_request_builder.rb index fa3881c1d8..fde549a349 100644 --- a/lib/identity/b2x_user_flows/item/user_flow_identity_providers/user_flow_identity_providers_request_builder.rb +++ b/lib/identity/b2x_user_flows/item/user_flow_identity_providers/user_flow_identity_providers_request_builder.rb @@ -31,7 +31,7 @@ def ref() end ## ## Gets an item from the MicrosoftGraph.identity.b2xUserFlows.item.userFlowIdentityProviders.item collection - ## @param identity_provider_base_id Unique identifier of the item + ## @param identity_provider_base_id The unique identifier of identityProviderBase ## @return a identity_provider_base_item_request_builder ## def by_identity_provider_base_id(identity_provider_base_id) @@ -47,7 +47,7 @@ def by_identity_provider_base_id(identity_provider_base_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get userFlowIdentityProviders from identity @@ -59,8 +59,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityProviderBaseCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,17 +69,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_flow_identity_providers_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserFlowIdentityProvidersRequestBuilder.new(raw_url, @request_adapter) + end ## # Get userFlowIdentityProviders from identity diff --git a/lib/identity/conditional_access/authentication_context_class_references/authentication_context_class_references_request_builder.rb b/lib/identity/conditional_access/authentication_context_class_references/authentication_context_class_references_request_builder.rb index 74fcd17864..6c5c04e073 100644 --- a/lib/identity/conditional_access/authentication_context_class_references/authentication_context_class_references_request_builder.rb +++ b/lib/identity/conditional_access/authentication_context_class_references/authentication_context_class_references_request_builder.rb @@ -40,7 +40,7 @@ def by_authentication_context_class_reference_id(authentication_context_class_re ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationContextClassReferences{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationContextClassReferences{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of authenticationContextClassReference objects. @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationContextClassReferenceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationContextClassReference.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,15 +77,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a authentication_context_class_references_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AuthenticationContextClassReferencesRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of authenticationContextClassReference objects. diff --git a/lib/identity/conditional_access/authentication_context_class_references/count/count_request_builder.rb b/lib/identity/conditional_access/authentication_context_class_references/count/count_request_builder.rb index 0ec603a532..ac44ff01b2 100644 --- a/lib/identity/conditional_access/authentication_context_class_references/count/count_request_builder.rb +++ b/lib/identity/conditional_access/authentication_context_class_references/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationContextClassReferences/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationContextClassReferences/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity/conditional_access/authentication_context_class_references/item/authentication_context_class_reference_item_request_builder.rb b/lib/identity/conditional_access/authentication_context_class_references/item/authentication_context_class_reference_item_request_builder.rb index fdb27300b4..ab7bc5995d 100644 --- a/lib/identity/conditional_access/authentication_context_class_references/item/authentication_context_class_reference_item_request_builder.rb +++ b/lib/identity/conditional_access/authentication_context_class_references/item/authentication_context_class_reference_item_request_builder.rb @@ -23,7 +23,7 @@ class AuthenticationContextClassReferenceItemRequestBuilder < MicrosoftKiotaAbst ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationContextClassReferences/{authenticationContextClassReference%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationContextClassReferences/{authenticationContextClassReference%2Did}{?%24expand,%24select}") end ## ## Delete an authenticationContextClassReference object that's not published or used by a conditional access policy. @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationContextClassReference.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationContextClassReference.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a authentication_context_class_reference_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AuthenticationContextClassReferenceItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of a authenticationContextClassReference object. diff --git a/lib/identity/conditional_access/authentication_strength/authentication_method_modes/authentication_method_modes_request_builder.rb b/lib/identity/conditional_access/authentication_strength/authentication_method_modes/authentication_method_modes_request_builder.rb index 7eca28c16a..43a3d4901d 100644 --- a/lib/identity/conditional_access/authentication_strength/authentication_method_modes/authentication_method_modes_request_builder.rb +++ b/lib/identity/conditional_access/authentication_strength/authentication_method_modes/authentication_method_modes_request_builder.rb @@ -42,7 +42,7 @@ def by_authentication_method_mode_detail_id(authentication_method_mode_detail_id ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/authenticationMethodModes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/authenticationMethodModes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a list of all supported authentication methods, or all supported authentication method combinations as a list of authenticationMethodModes objects and their properties. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationMethodModeDetailCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationMethodModeDetail.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a authentication_method_modes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AuthenticationMethodModesRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a list of all supported authentication methods, or all supported authentication method combinations as a list of authenticationMethodModes objects and their properties. diff --git a/lib/identity/conditional_access/authentication_strength/authentication_method_modes/count/count_request_builder.rb b/lib/identity/conditional_access/authentication_strength/authentication_method_modes/count/count_request_builder.rb index 75854e1b73..377d713b25 100644 --- a/lib/identity/conditional_access/authentication_strength/authentication_method_modes/count/count_request_builder.rb +++ b/lib/identity/conditional_access/authentication_strength/authentication_method_modes/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/authenticationMethodModes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/authenticationMethodModes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity/conditional_access/authentication_strength/authentication_method_modes/item/authentication_method_mode_detail_item_request_builder.rb b/lib/identity/conditional_access/authentication_strength/authentication_method_modes/item/authentication_method_mode_detail_item_request_builder.rb index 1ca23c14a6..7f285d352a 100644 --- a/lib/identity/conditional_access/authentication_strength/authentication_method_modes/item/authentication_method_mode_detail_item_request_builder.rb +++ b/lib/identity/conditional_access/authentication_strength/authentication_method_modes/item/authentication_method_mode_detail_item_request_builder.rb @@ -25,7 +25,7 @@ class AuthenticationMethodModeDetailItemRequestBuilder < MicrosoftKiotaAbstracti ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/authenticationMethodModes/{authenticationMethodModeDetail%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/authenticationMethodModes/{authenticationMethodModeDetail%2Did}{?%24expand,%24select}") end ## ## Delete navigation property authenticationMethodModes for identity @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationMethodModeDetail.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationMethodModeDetail.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a authentication_method_mode_detail_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AuthenticationMethodModeDetailItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Names and descriptions of all valid authentication method modes in the system. diff --git a/lib/identity/conditional_access/authentication_strength/authentication_strength_request_builder.rb b/lib/identity/conditional_access/authentication_strength/authentication_strength_request_builder.rb index 1aca92a687..2f77699a5b 100644 --- a/lib/identity/conditional_access/authentication_strength/authentication_strength_request_builder.rb +++ b/lib/identity/conditional_access/authentication_strength/authentication_strength_request_builder.rb @@ -33,7 +33,7 @@ def policies() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength{?%24expand,%24select}") end ## ## Delete navigation property authenticationStrength for identity @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationStrengthRoot.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationStrengthRoot.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,13 +83,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -102,15 +100,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,17 +120,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a authentication_strength_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AuthenticationStrengthRequestBuilder.new(raw_url, @request_adapter) + end ## # Get authenticationStrength from identity diff --git a/lib/identity/conditional_access/authentication_strength/policies/count/count_request_builder.rb b/lib/identity/conditional_access/authentication_strength/policies/count/count_request_builder.rb index efbeeeb293..a1b1d49249 100644 --- a/lib/identity/conditional_access/authentication_strength/policies/count/count_request_builder.rb +++ b/lib/identity/conditional_access/authentication_strength/policies/count/count_request_builder.rb @@ -24,7 +24,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -36,8 +36,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity/conditional_access/authentication_strength/policies/item/authentication_strength_policy_item_request_builder.rb b/lib/identity/conditional_access/authentication_strength/policies/item/authentication_strength_policy_item_request_builder.rb index 4611a6e5f3..b5c59b1a73 100644 --- a/lib/identity/conditional_access/authentication_strength/policies/item/authentication_strength_policy_item_request_builder.rb +++ b/lib/identity/conditional_access/authentication_strength/policies/item/authentication_strength_policy_item_request_builder.rb @@ -43,7 +43,7 @@ def usage() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}{?%24expand,%24select}") end ## ## Delete navigation property policies for identity @@ -55,8 +55,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -69,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationStrengthPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,8 +83,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationStrengthPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -96,13 +93,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,15 +110,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,17 +130,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a authentication_strength_policy_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AuthenticationStrengthPolicyItemRequestBuilder.new(raw_url, @request_adapter) + end ## # A collection of authentication strength policies that exist for this tenant, including both built-in and custom policies. diff --git a/lib/identity/conditional_access/authentication_strength/policies/item/combination_configurations/combination_configurations_request_builder.rb b/lib/identity/conditional_access/authentication_strength/policies/item/combination_configurations/combination_configurations_request_builder.rb index 48d3e84581..1f114db1ab 100644 --- a/lib/identity/conditional_access/authentication_strength/policies/item/combination_configurations/combination_configurations_request_builder.rb +++ b/lib/identity/conditional_access/authentication_strength/policies/item/combination_configurations/combination_configurations_request_builder.rb @@ -46,10 +46,10 @@ def by_authentication_combination_configuration_id(authentication_combination_co ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}/combinationConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}/combinationConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. + ## Get the authenticationCombinationConfiguration objects for an authentication strength policy. The objects can be of one or more of the following derived types:* fido2combinationConfigurations* x509certificatecombinationconfiguration authenticationCombinationConfiguration objects are supported only for custom authentication strengths. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of authentication_combination_configuration_collection_response ## @@ -58,12 +58,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationCombinationConfigurationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be created, and these may only be created for custom authentication strength policies. + ## Create a new authenticationCombinationConfiguration object which can be of one of the following derived types:* fido2combinationConfiguration* x509certificatecombinationconfiguration ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of authentication_combination_configuration @@ -74,30 +73,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationCombinationConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. + ## Get the authenticationCombinationConfiguration objects for an authentication strength policy. The objects can be of one or more of the following derived types:* fido2combinationConfigurations* x509certificatecombinationconfiguration authenticationCombinationConfiguration objects are supported only for custom authentication strengths. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be created, and these may only be created for custom authentication strength policies. + ## Create a new authenticationCombinationConfiguration object which can be of one of the following derived types:* fido2combinationConfiguration* x509certificatecombinationconfiguration ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -105,20 +103,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a combination_configurations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CombinationConfigurationsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. + # Get the authenticationCombinationConfiguration objects for an authentication strength policy. The objects can be of one or more of the following derived types:* fido2combinationConfigurations* x509certificatecombinationconfiguration authenticationCombinationConfiguration objects are supported only for custom authentication strengths. class CombinationConfigurationsRequestBuilderGetQueryParameters ## diff --git a/lib/identity/conditional_access/authentication_strength/policies/item/combination_configurations/count/count_request_builder.rb b/lib/identity/conditional_access/authentication_strength/policies/item/combination_configurations/count/count_request_builder.rb index a04ceafd9b..82b54e0d87 100644 --- a/lib/identity/conditional_access/authentication_strength/policies/item/combination_configurations/count/count_request_builder.rb +++ b/lib/identity/conditional_access/authentication_strength/policies/item/combination_configurations/count/count_request_builder.rb @@ -28,7 +28,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}/combinationConfigurations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}/combinationConfigurations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -40,8 +40,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -51,17 +50,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity/conditional_access/authentication_strength/policies/item/combination_configurations/item/authentication_combination_configuration_item_request_builder.rb b/lib/identity/conditional_access/authentication_strength/policies/item/combination_configurations/item/authentication_combination_configuration_item_request_builder.rb index 0bb7e9b552..ff00cb29f5 100644 --- a/lib/identity/conditional_access/authentication_strength/policies/item/combination_configurations/item/authentication_combination_configuration_item_request_builder.rb +++ b/lib/identity/conditional_access/authentication_strength/policies/item/combination_configurations/item/authentication_combination_configuration_item_request_builder.rb @@ -29,7 +29,7 @@ class AuthenticationCombinationConfigurationItemRequestBuilder < MicrosoftKiotaA ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}/combinationConfigurations/{authenticationCombinationConfiguration%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}/combinationConfigurations/{authenticationCombinationConfiguration%2Did}{?%24expand,%24select}") end ## ## Delete an authenticationCombinationConfiguration for a custom authenticationStrengthPolicy object. @@ -41,8 +41,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,12 +54,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationCombinationConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of an authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be updated as they are the only type of authenticationCombinationConfiguration that may be created. + ## Update the properties of an authenticationCombinationConfiguration object. The properties can be for one of the following derived types:* fido2combinationConfigurations* x509certificatecombinationconfiguration ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of authentication_combination_configuration @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationCombinationConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,13 +79,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -98,19 +96,19 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of an authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be updated as they are the only type of authenticationCombinationConfiguration that may be created. + ## Update the properties of an authenticationCombinationConfiguration object. The properties can be for one of the following derived types:* fido2combinationConfigurations* x509certificatecombinationconfiguration ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -118,17 +116,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a authentication_combination_configuration_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AuthenticationCombinationConfigurationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of an authenticationCombinationConfiguration object. diff --git a/lib/identity/conditional_access/authentication_strength/policies/item/update_allowed_combinations/update_allowed_combinations_post_request_body.rb b/lib/identity/conditional_access/authentication_strength/policies/item/update_allowed_combinations/update_allowed_combinations_post_request_body.rb index abb44575cd..2c57d852fd 100644 --- a/lib/identity/conditional_access/authentication_strength/policies/item/update_allowed_combinations/update_allowed_combinations_post_request_body.rb +++ b/lib/identity/conditional_access/authentication_strength/policies/item/update_allowed_combinations/update_allowed_combinations_post_request_body.rb @@ -24,15 +24,15 @@ class UpdateAllowedCombinationsPostRequestBody # The allowedCombinations property @allowed_combinations ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @@ -54,7 +54,7 @@ def allowed_combinations=(value) @allowed_combinations = value end ## - ## Instantiates a new updateAllowedCombinationsPostRequestBody and sets the default values. + ## Instantiates a new UpdateAllowedCombinationsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/identity/conditional_access/authentication_strength/policies/item/update_allowed_combinations/update_allowed_combinations_request_builder.rb b/lib/identity/conditional_access/authentication_strength/policies/item/update_allowed_combinations/update_allowed_combinations_request_builder.rb index b132489861..56394b4c2e 100644 --- a/lib/identity/conditional_access/authentication_strength/policies/item/update_allowed_combinations/update_allowed_combinations_request_builder.rb +++ b/lib/identity/conditional_access/authentication_strength/policies/item/update_allowed_combinations/update_allowed_combinations_request_builder.rb @@ -41,8 +41,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UpdateAllowedCombinationsResult.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a update_allowed_combinations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UpdateAllowedCombinationsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity/conditional_access/authentication_strength/policies/item/usage/usage_request_builder.rb b/lib/identity/conditional_access/authentication_strength/policies/item/usage/usage_request_builder.rb index 35716c3e34..c5d797dc68 100644 --- a/lib/identity/conditional_access/authentication_strength/policies/item/usage/usage_request_builder.rb +++ b/lib/identity/conditional_access/authentication_strength/policies/item/usage/usage_request_builder.rb @@ -30,7 +30,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}/usage()") end ## - ## Invoke function usage + ## Allows the caller to see which Conditional Access policies reference a specified authentication strength policy. The policies are returned in two collections, one containing Conditional Access policies that require an MFA claim and the other containing Conditional Access policies that do not require such a claim. Policies in the former category are restricted in what kinds of changes may be made to them to prevent undermining the MFA requirement of those policies. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of authentication_strength_usage ## @@ -39,27 +39,35 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationStrengthUsage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function usage + ## Allows the caller to see which Conditional Access policies reference a specified authentication strength policy. The policies are returned in two collections, one containing Conditional Access policies that require an MFA claim and the other containing Conditional Access policies that do not require such a claim. Policies in the former category are restricted in what kinds of changes may be made to them to prevent undermining the MFA requirement of those policies. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a usage_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UsageRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity/conditional_access/authentication_strength/policies/policies_request_builder.rb b/lib/identity/conditional_access/authentication_strength/policies/policies_request_builder.rb index e6ef72daea..350fa3403b 100644 --- a/lib/identity/conditional_access/authentication_strength/policies/policies_request_builder.rb +++ b/lib/identity/conditional_access/authentication_strength/policies/policies_request_builder.rb @@ -42,7 +42,7 @@ def by_authentication_strength_policy_id(authentication_strength_policy_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## A collection of authentication strength policies that exist for this tenant, including both built-in and custom policies. @@ -54,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationStrengthPolicyCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -70,8 +69,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationStrengthPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,15 +79,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -101,17 +99,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a policies_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PoliciesRequestBuilder.new(raw_url, @request_adapter) + end ## # A collection of authentication strength policies that exist for this tenant, including both built-in and custom policies. diff --git a/lib/identity/conditional_access/conditional_access_request_builder.rb b/lib/identity/conditional_access/conditional_access_request_builder.rb index 6143581afc..e1a0b55ea9 100644 --- a/lib/identity/conditional_access/conditional_access_request_builder.rb +++ b/lib/identity/conditional_access/conditional_access_request_builder.rb @@ -1,7 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../microsoft_graph' -require_relative '../../models/conditional_access_root' -require_relative '../../models/o_data_errors_o_data_error' require_relative '../identity' require_relative './authentication_context_class_references/authentication_context_class_references_request_builder' require_relative './authentication_strength/authentication_strength_request_builder' @@ -14,7 +12,7 @@ module MicrosoftGraph module Identity module ConditionalAccess ## - # Provides operations to manage the conditionalAccess property of the microsoft.graph.identityContainer entity. + # Builds and executes requests for operations under \identity\conditionalAccess class ConditionalAccessRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @@ -49,133 +47,7 @@ def templates() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess{?%24select,%24expand}") - end - ## - ## Delete navigation property conditionalAccess for identity - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of void - ## - def delete(request_configuration=nil) - request_info = self.to_delete_request_information( - request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, nil, error_mapping) - end - ## - ## the entry point for the Conditional Access (CA) object model. - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of conditional_access_root - ## - def get(request_configuration=nil) - request_info = self.to_get_request_information( - request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConditionalAccessRoot.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Update the navigation property conditionalAccess in identity - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of conditional_access_root - ## - def patch(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_patch_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConditionalAccessRoot.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Delete navigation property conditionalAccess for identity - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_delete_request_information(request_configuration=nil) - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - return request_info - end - ## - ## the entry point for the Conditional Access (CA) object model. - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_get_request_information(request_configuration=nil) - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) - request_info.add_request_options(request_configuration.options) - end - return request_info - end - ## - ## Update the navigation property conditionalAccess in identity - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_patch_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - - ## - # the entry point for the Conditional Access (CA) object model. - class ConditionalAccessRequestBuilderGetQueryParameters - - ## - # Expand related entities - attr_accessor :expand - ## - # Select properties to be returned - attr_accessor :select - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "expand" - return "%24expand" - when "select" - return "%24select" - else - return original_name - end - end + super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess") end end end diff --git a/lib/identity/conditional_access/named_locations/count/count_request_builder.rb b/lib/identity/conditional_access/named_locations/count/count_request_builder.rb index b1db4cab98..da9c9715e3 100644 --- a/lib/identity/conditional_access/named_locations/count/count_request_builder.rb +++ b/lib/identity/conditional_access/named_locations/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/namedLocations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/namedLocations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity/conditional_access/named_locations/item/named_location_item_request_builder.rb b/lib/identity/conditional_access/named_locations/item/named_location_item_request_builder.rb index c3a4d8ff82..7a8f4cd2d5 100644 --- a/lib/identity/conditional_access/named_locations/item/named_location_item_request_builder.rb +++ b/lib/identity/conditional_access/named_locations/item/named_location_item_request_builder.rb @@ -23,10 +23,10 @@ class NamedLocationItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestB ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/namedLocations/{namedLocation%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/namedLocations/{namedLocation%2Did}{?%24expand,%24select}") end ## - ## Delete a namedLocation object. + ## Delete a countryNamedLocation object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::NamedLocation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,24 +63,24 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::NamedLocation.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete a namedLocation object. + ## Delete a countryNamedLocation object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a named_location_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NamedLocationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of a namedLocation object. diff --git a/lib/identity/conditional_access/named_locations/named_locations_request_builder.rb b/lib/identity/conditional_access/named_locations/named_locations_request_builder.rb index bdfd194c99..0436a734b2 100644 --- a/lib/identity/conditional_access/named_locations/named_locations_request_builder.rb +++ b/lib/identity/conditional_access/named_locations/named_locations_request_builder.rb @@ -40,7 +40,7 @@ def by_named_location_id(named_location_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/namedLocations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/namedLocations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a list of namedLocation objects. @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::NamedLocationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::NamedLocation.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,15 +77,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a named_locations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return NamedLocationsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a list of namedLocation objects. diff --git a/lib/identity/conditional_access/policies/count/count_request_builder.rb b/lib/identity/conditional_access/policies/count/count_request_builder.rb index 81e0a5cfa2..ed4f26ef94 100644 --- a/lib/identity/conditional_access/policies/count/count_request_builder.rb +++ b/lib/identity/conditional_access/policies/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/policies/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/policies/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity/conditional_access/policies/item/conditional_access_policy_item_request_builder.rb b/lib/identity/conditional_access/policies/item/conditional_access_policy_item_request_builder.rb index 4fa3217883..31e1b183fb 100644 --- a/lib/identity/conditional_access/policies/item/conditional_access_policy_item_request_builder.rb +++ b/lib/identity/conditional_access/policies/item/conditional_access_policy_item_request_builder.rb @@ -23,7 +23,7 @@ class ConditionalAccessPolicyItemRequestBuilder < MicrosoftKiotaAbstractions::Ba ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/policies/{conditionalAccessPolicy%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/policies/{conditionalAccessPolicy%2Did}{?%24expand,%24select}") end ## ## Delete a conditionalAccessPolicy object. @@ -35,8 +35,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -49,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConditionalAccessPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -65,8 +63,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConditionalAccessPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,13 +73,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -92,15 +90,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,17 +110,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a conditional_access_policy_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConditionalAccessPolicyItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of a conditionalAccessPolicy object. diff --git a/lib/identity/conditional_access/policies/policies_request_builder.rb b/lib/identity/conditional_access/policies/policies_request_builder.rb index bcd71b02d5..c613d00e86 100644 --- a/lib/identity/conditional_access/policies/policies_request_builder.rb +++ b/lib/identity/conditional_access/policies/policies_request_builder.rb @@ -40,7 +40,7 @@ def by_conditional_access_policy_id(conditional_access_policy_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/policies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/policies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of conditionalAccessPolicy objects. @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConditionalAccessPolicyCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConditionalAccessPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,15 +77,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a policies_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return PoliciesRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of conditionalAccessPolicy objects. diff --git a/lib/identity/conditional_access/templates/count/count_request_builder.rb b/lib/identity/conditional_access/templates/count/count_request_builder.rb index 5a9ed8f938..3b58914a20 100644 --- a/lib/identity/conditional_access/templates/count/count_request_builder.rb +++ b/lib/identity/conditional_access/templates/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/templates/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/templates/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity/conditional_access/templates/item/conditional_access_template_item_request_builder.rb b/lib/identity/conditional_access/templates/item/conditional_access_template_item_request_builder.rb index d64b220c03..2a6f845ac6 100644 --- a/lib/identity/conditional_access/templates/item/conditional_access_template_item_request_builder.rb +++ b/lib/identity/conditional_access/templates/item/conditional_access_template_item_request_builder.rb @@ -23,7 +23,7 @@ class ConditionalAccessTemplateItemRequestBuilder < MicrosoftKiotaAbstractions:: ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/templates/{conditionalAccessTemplate%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/templates/{conditionalAccessTemplate%2Did}{?%24expand,%24select}") end ## ## Read the properties and relationships of a conditionalAccessTemplate object. @@ -35,8 +35,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConditionalAccessTemplate.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -46,17 +45,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a conditional_access_template_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConditionalAccessTemplateItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of a conditionalAccessTemplate object. diff --git a/lib/identity/conditional_access/templates/templates_request_builder.rb b/lib/identity/conditional_access/templates/templates_request_builder.rb index 15cd46ed3e..98c1522149 100644 --- a/lib/identity/conditional_access/templates/templates_request_builder.rb +++ b/lib/identity/conditional_access/templates/templates_request_builder.rb @@ -39,7 +39,7 @@ def by_conditional_access_template_id(conditional_access_template_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/templates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/conditionalAccess/templates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get a list of the conditionalAccessTemplate objects and their properties. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConditionalAccessTemplateCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a templates_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TemplatesRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a list of the conditionalAccessTemplate objects and their properties. diff --git a/lib/identity/custom_authentication_extensions/count/count.rb b/lib/identity/custom_authentication_extensions/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/custom_authentication_extensions/count/count_request_builder.rb b/lib/identity/custom_authentication_extensions/count/count_request_builder.rb new file mode 100644 index 0000000000..08de37d16c --- /dev/null +++ b/lib/identity/custom_authentication_extensions/count/count_request_builder.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../identity' +require_relative '../custom_authentication_extensions' +require_relative './count' + +module MicrosoftGraph + module Identity + module CustomAuthenticationExtensions + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/customAuthenticationExtensions/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/identity/custom_authentication_extensions/custom_authentication_extensions.rb b/lib/identity/custom_authentication_extensions/custom_authentication_extensions.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/custom_authentication_extensions/custom_authentication_extensions_request_builder.rb b/lib/identity/custom_authentication_extensions/custom_authentication_extensions_request_builder.rb new file mode 100644 index 0000000000..dd00f9dbdb --- /dev/null +++ b/lib/identity/custom_authentication_extensions/custom_authentication_extensions_request_builder.rb @@ -0,0 +1,185 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/custom_authentication_extension' +require_relative '../../models/custom_authentication_extension_collection_response' +require_relative '../../models/o_data_errors_o_data_error' +require_relative '../identity' +require_relative './count/count_request_builder' +require_relative './custom_authentication_extensions' +require_relative './item/custom_authentication_extension_item_request_builder' +require_relative './validate_authentication_configuration/validate_authentication_configuration_request_builder' + +module MicrosoftGraph + module Identity + module CustomAuthenticationExtensions + ## + # Provides operations to manage the customAuthenticationExtensions property of the microsoft.graph.identityContainer entity. + class CustomAuthenticationExtensionsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Identity::CustomAuthenticationExtensions::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the validateAuthenticationConfiguration method. + def validate_authentication_configuration() + return MicrosoftGraph::Identity::CustomAuthenticationExtensions::ValidateAuthenticationConfiguration::ValidateAuthenticationConfigurationRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Provides operations to manage the customAuthenticationExtensions property of the microsoft.graph.identityContainer entity. + ## @param custom_authentication_extension_id The unique identifier of customAuthenticationExtension + ## @return a custom_authentication_extension_item_request_builder + ## + def by_custom_authentication_extension_id(custom_authentication_extension_id) + raise StandardError, 'custom_authentication_extension_id cannot be null' if custom_authentication_extension_id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["customAuthenticationExtension%2Did"] = custom_authentication_extension_id + return MicrosoftGraph::Identity::CustomAuthenticationExtensions::Item::CustomAuthenticationExtensionItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new CustomAuthenticationExtensionsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/customAuthenticationExtensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Get a list of the customAuthenticationExtension objects and their properties. The following derived types are supported. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of custom_authentication_extension_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CustomAuthenticationExtensionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create a new customAuthenticationExtension object. The following derived types are currently supported. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of custom_authentication_extension + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CustomAuthenticationExtension.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get a list of the customAuthenticationExtension objects and their properties. The following derived types are supported. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Create a new customAuthenticationExtension object. The following derived types are currently supported. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a custom_authentication_extensions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CustomAuthenticationExtensionsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get a list of the customAuthenticationExtension objects and their properties. The following derived types are supported. + class CustomAuthenticationExtensionsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end +end diff --git a/lib/identity/custom_authentication_extensions/item/custom_authentication_extension_item_request_builder.rb b/lib/identity/custom_authentication_extensions/item/custom_authentication_extension_item_request_builder.rb new file mode 100644 index 0000000000..0d16df89bf --- /dev/null +++ b/lib/identity/custom_authentication_extensions/item/custom_authentication_extension_item_request_builder.rb @@ -0,0 +1,169 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/custom_authentication_extension' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../identity' +require_relative '../custom_authentication_extensions' +require_relative './item' +require_relative './validate_authentication_configuration/validate_authentication_configuration_request_builder' + +module MicrosoftGraph + module Identity + module CustomAuthenticationExtensions + module Item + ## + # Provides operations to manage the customAuthenticationExtensions property of the microsoft.graph.identityContainer entity. + class CustomAuthenticationExtensionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to call the validateAuthenticationConfiguration method. + def validate_authentication_configuration() + return MicrosoftGraph::Identity::CustomAuthenticationExtensions::Item::ValidateAuthenticationConfiguration::ValidateAuthenticationConfigurationRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new CustomAuthenticationExtensionItemRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/customAuthenticationExtensions/{customAuthenticationExtension%2Did}{?%24expand,%24select}") + end + ## + ## Delete a customAuthenticationExtension object. The following derived types are currently supported. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Read the properties and relationships of a customAuthenticationExtension object. The following derived types are currently supported. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of custom_authentication_extension + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CustomAuthenticationExtension.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the properties of a customAuthenticationExtension object. The following derived types are currently supported. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of custom_authentication_extension + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CustomAuthenticationExtension.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete a customAuthenticationExtension object. The following derived types are currently supported. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Read the properties and relationships of a customAuthenticationExtension object. The following derived types are currently supported. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Update the properties of a customAuthenticationExtension object. The following derived types are currently supported. + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a custom_authentication_extension_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CustomAuthenticationExtensionItemRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Read the properties and relationships of a customAuthenticationExtension object. The following derived types are currently supported. + class CustomAuthenticationExtensionItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + end + end + end + end +end diff --git a/lib/identity/custom_authentication_extensions/item/item.rb b/lib/identity/custom_authentication_extensions/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/custom_authentication_extensions/item/validate_authentication_configuration/validate_authentication_configuration.rb b/lib/identity/custom_authentication_extensions/item/validate_authentication_configuration/validate_authentication_configuration.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity/custom_authentication_extensions/item/validate_authentication_configuration/validate_authentication_configuration_request_builder.rb b/lib/identity/custom_authentication_extensions/item/validate_authentication_configuration/validate_authentication_configuration_request_builder.rb new file mode 100644 index 0000000000..e37fb9892e --- /dev/null +++ b/lib/identity/custom_authentication_extensions/item/validate_authentication_configuration/validate_authentication_configuration_request_builder.rb @@ -0,0 +1,72 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/authentication_configuration_validation' +require_relative '../../../../models/o_data_errors_o_data_error' +require_relative '../../../identity' +require_relative '../../custom_authentication_extensions' +require_relative '../item' +require_relative './validate_authentication_configuration' + +module MicrosoftGraph + module Identity + module CustomAuthenticationExtensions + module Item + module ValidateAuthenticationConfiguration + ## + # Provides operations to call the validateAuthenticationConfiguration method. + class ValidateAuthenticationConfigurationRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ValidateAuthenticationConfigurationRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/customAuthenticationExtensions/{customAuthenticationExtension%2Did}/validateAuthenticationConfiguration") + end + ## + ## An API to check validity of the endpoint and and authentication configuration for a customAuthenticationExtension object, which can represent one of the following derived types: + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of authentication_configuration_validation + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationConfigurationValidation.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## An API to check validity of the endpoint and and authentication configuration for a customAuthenticationExtension object, which can represent one of the following derived types: + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a validate_authentication_configuration_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ValidateAuthenticationConfigurationRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end + end +end diff --git a/lib/identity/custom_authentication_extensions/validate_authentication_configuration/validate_authentication_configuration.rb b/lib/identity/custom_authentication_extensions/validate_authentication_configuration/validate_authentication_configuration.rb new file mode 100644 index 0000000000..c6e0c0211e --- /dev/null +++ b/lib/identity/custom_authentication_extensions/validate_authentication_configuration/validate_authentication_configuration.rb @@ -0,0 +1 @@ +require_relative 'validate_authentication_configuration_post_request_body' diff --git a/lib/identity/custom_authentication_extensions/validate_authentication_configuration/validate_authentication_configuration_post_request_body.rb b/lib/identity/custom_authentication_extensions/validate_authentication_configuration/validate_authentication_configuration_post_request_body.rb new file mode 100644 index 0000000000..d8e457d058 --- /dev/null +++ b/lib/identity/custom_authentication_extensions/validate_authentication_configuration/validate_authentication_configuration_post_request_body.rb @@ -0,0 +1,110 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/custom_extension_authentication_configuration' +require_relative '../../../models/custom_extension_endpoint_configuration' +require_relative '../../identity' +require_relative '../custom_authentication_extensions' +require_relative './validate_authentication_configuration' + +module MicrosoftGraph + module Identity + module CustomAuthenticationExtensions + module ValidateAuthenticationConfiguration + class ValidateAuthenticationConfigurationPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The authenticationConfiguration property + @authentication_configuration + ## + # The endpointConfiguration property + @endpoint_configuration + ## + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Gets the authenticationConfiguration property value. The authenticationConfiguration property + ## @return a custom_extension_authentication_configuration + ## + def authentication_configuration + return @authentication_configuration + end + ## + ## Sets the authenticationConfiguration property value. The authenticationConfiguration property + ## @param value Value to set for the authenticationConfiguration property. + ## @return a void + ## + def authentication_configuration=(value) + @authentication_configuration = value + end + ## + ## Instantiates a new ValidateAuthenticationConfigurationPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a validate_authentication_configuration_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return ValidateAuthenticationConfigurationPostRequestBody.new + end + ## + ## Gets the endpointConfiguration property value. The endpointConfiguration property + ## @return a custom_extension_endpoint_configuration + ## + def endpoint_configuration + return @endpoint_configuration + end + ## + ## Sets the endpointConfiguration property value. The endpointConfiguration property + ## @param value Value to set for the endpointConfiguration property. + ## @return a void + ## + def endpoint_configuration=(value) + @endpoint_configuration = value + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "authenticationConfiguration" => lambda {|n| @authentication_configuration = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::CustomExtensionAuthenticationConfiguration.create_from_discriminator_value(pn) }) }, + "endpointConfiguration" => lambda {|n| @endpoint_configuration = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::CustomExtensionEndpointConfiguration.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_object_value("authenticationConfiguration", @authentication_configuration) + writer.write_object_value("endpointConfiguration", @endpoint_configuration) + writer.write_additional_data(@additional_data) + end + end + end + end + end +end diff --git a/lib/identity/custom_authentication_extensions/validate_authentication_configuration/validate_authentication_configuration_request_builder.rb b/lib/identity/custom_authentication_extensions/validate_authentication_configuration/validate_authentication_configuration_request_builder.rb new file mode 100644 index 0000000000..e3368b3528 --- /dev/null +++ b/lib/identity/custom_authentication_extensions/validate_authentication_configuration/validate_authentication_configuration_request_builder.rb @@ -0,0 +1,74 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/authentication_configuration_validation' +require_relative '../../../models/o_data_errors_o_data_error' +require_relative '../../identity' +require_relative '../custom_authentication_extensions' +require_relative './validate_authentication_configuration' + +module MicrosoftGraph + module Identity + module CustomAuthenticationExtensions + module ValidateAuthenticationConfiguration + ## + # Provides operations to call the validateAuthenticationConfiguration method. + class ValidateAuthenticationConfigurationRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new ValidateAuthenticationConfigurationRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identity/customAuthenticationExtensions/validateAuthenticationConfiguration") + end + ## + ## Invoke action validateAuthenticationConfiguration + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of authentication_configuration_validation + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AuthenticationConfigurationValidation.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke action validateAuthenticationConfiguration + ## @param body The request body + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a validate_authentication_configuration_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ValidateAuthenticationConfigurationRequestBuilder.new(raw_url, @request_adapter) + end + end + end + end + end +end diff --git a/lib/identity/identity_providers/available_provider_types/available_provider_types.rb b/lib/identity/identity_providers/available_provider_types/available_provider_types.rb index 68984e83c5..2ad3288b41 100644 --- a/lib/identity/identity_providers/available_provider_types/available_provider_types.rb +++ b/lib/identity/identity_providers/available_provider_types/available_provider_types.rb @@ -1 +1 @@ -require_relative 'available_provider_types_response' +require_relative 'available_provider_types_get_response' diff --git a/lib/identity/identity_providers/available_provider_types/available_provider_types_get_response.rb b/lib/identity/identity_providers/available_provider_types/available_provider_types_get_response.rb new file mode 100644 index 0000000000..b61d9b933c --- /dev/null +++ b/lib/identity/identity_providers/available_provider_types/available_provider_types_get_response.rb @@ -0,0 +1,71 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../identity' +require_relative '../identity_providers' +require_relative './available_provider_types' + +module MicrosoftGraph + module Identity + module IdentityProviders + module AvailableProviderTypes + class AvailableProviderTypesGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new AvailableProviderTypesGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a available_provider_types_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AvailableProviderTypesGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_primitive_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a string + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/identity/identity_providers/available_provider_types/available_provider_types_request_builder.rb b/lib/identity/identity_providers/available_provider_types/available_provider_types_request_builder.rb index 0a7f89b4f9..59bce4c920 100644 --- a/lib/identity/identity_providers/available_provider_types/available_provider_types_request_builder.rb +++ b/lib/identity/identity_providers/available_provider_types/available_provider_types_request_builder.rb @@ -20,43 +20,51 @@ class AvailableProviderTypesRequestBuilder < MicrosoftKiotaAbstractions::BaseReq ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/identityProviders/availableProviderTypes(){?%24top,%24skip,%24search,%24filter,%24count}") + super(path_parameters, request_adapter, "{+baseurl}/identity/identityProviders/availableProviderTypes(){?%24count,%24filter,%24search,%24skip,%24top}") end ## - ## Invoke function availableProviderTypes + ## Get all identity providers supported in a directory. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of available_provider_types_response + ## @return a Fiber of available_provider_types_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Identity::IdentityProviders::AvailableProviderTypes::AvailableProviderTypesResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Identity::IdentityProviders::AvailableProviderTypes::AvailableProviderTypesGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function availableProviderTypes + ## Get all identity providers supported in a directory. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a available_provider_types_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AvailableProviderTypesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function availableProviderTypes + # Get all identity providers supported in a directory. class AvailableProviderTypesRequestBuilderGetQueryParameters ## diff --git a/lib/identity/identity_providers/available_provider_types/available_provider_types_response.rb b/lib/identity/identity_providers/available_provider_types/available_provider_types_response.rb deleted file mode 100644 index 9287db6102..0000000000 --- a/lib/identity/identity_providers/available_provider_types/available_provider_types_response.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../microsoft_graph' -require_relative '../../../models/base_collection_pagination_count_response' -require_relative '../../identity' -require_relative '../identity_providers' -require_relative './available_provider_types' - -module MicrosoftGraph - module Identity - module IdentityProviders - module AvailableProviderTypes - class AvailableProviderTypesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new availableProviderTypesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a available_provider_types_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return AvailableProviderTypesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_primitive_values(String) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_primitive_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a string - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end -end diff --git a/lib/identity/identity_providers/count/count_request_builder.rb b/lib/identity/identity_providers/count/count_request_builder.rb index 408aa79f91..9327cf0a28 100644 --- a/lib/identity/identity_providers/count/count_request_builder.rb +++ b/lib/identity/identity_providers/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/identityProviders/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identity/identityProviders/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity/identity_providers/identity_providers_request_builder.rb b/lib/identity/identity_providers/identity_providers_request_builder.rb index 03b3dda4f2..b60e29ef5f 100644 --- a/lib/identity/identity_providers/identity_providers_request_builder.rb +++ b/lib/identity/identity_providers/identity_providers_request_builder.rb @@ -44,10 +44,10 @@ def by_identity_provider_base_id(identity_provider_base_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/identityProviders{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/identityProviders{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For an Azure AD tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. + ## Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For a Microsoft Entra tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of identity_provider_base_collection_response ## @@ -56,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityProviderBaseCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create an identity provider object that is of the type specified in the request body. Among the types of providers derived from identityProviderBase, you can currently create a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently create a socialIdentityProvider, or an appleManagedIdentityProvider resource. + ## Create an identity provider object that is of the type specified in the request body. Among the types of providers derived from identityProviderBase, you can currently create a socialIdentityProvider resource in Microsoft Entra ID. In Azure AD B2C, this operation can currently create a socialIdentityProvider, or an appleManagedIdentityProvider resource. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of identity_provider_base @@ -72,30 +71,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityProviderBase.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For an Azure AD tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. + ## Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For a Microsoft Entra tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create an identity provider object that is of the type specified in the request body. Among the types of providers derived from identityProviderBase, you can currently create a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently create a socialIdentityProvider, or an appleManagedIdentityProvider resource. + ## Create an identity provider object that is of the type specified in the request body. Among the types of providers derived from identityProviderBase, you can currently create a socialIdentityProvider resource in Microsoft Entra ID. In Azure AD B2C, this operation can currently create a socialIdentityProvider, or an appleManagedIdentityProvider resource. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a identity_providers_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IdentityProvidersRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For an Azure AD tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. + # Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For a Microsoft Entra tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. class IdentityProvidersRequestBuilderGetQueryParameters ## diff --git a/lib/identity/identity_providers/item/identity_provider_base_item_request_builder.rb b/lib/identity/identity_providers/item/identity_provider_base_item_request_builder.rb index db79e0c5d3..b94226d8f2 100644 --- a/lib/identity/identity_providers/item/identity_provider_base_item_request_builder.rb +++ b/lib/identity/identity_providers/item/identity_provider_base_item_request_builder.rb @@ -21,10 +21,10 @@ class IdentityProviderBaseItemRequestBuilder < MicrosoftKiotaAbstractions::BaseR ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/identityProviders/{identityProviderBase%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/identityProviders/{identityProviderBase%2Did}{?%24expand,%24select}") end ## - ## Delete an identity provider resource that is of the type specified by the id in the request. Among the types of providers derived from identityProviderBase, you can currently delete a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently delete a socialIdentityProvider, or an appleManagedIdentityProvider resource. + ## Delete an identity provider resource that is of the type specified by the id in the request. Among the types of providers derived from identityProviderBase, you can currently delete a socialIdentityProvider resource in Microsoft Entra ID. In Azure AD B2C, this operation can currently delete a socialIdentityProvider, or an appleManagedIdentityProvider resource. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -33,12 +33,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. + ## Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Microsoft Entra ID. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of identity_provider_base ## @@ -47,12 +46,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityProviderBase.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently update a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently update a socialIdentityProvider, or an appleManagedIdentityProvider resource. + ## Update the properties of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently update a socialIdentityProvider resource in Microsoft Entra ID. In Azure AD B2C, this operation can currently update a socialIdentityProvider, or an appleManagedIdentityProvider resource. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of identity_provider_base @@ -63,46 +61,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityProviderBase.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete an identity provider resource that is of the type specified by the id in the request. Among the types of providers derived from identityProviderBase, you can currently delete a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently delete a socialIdentityProvider, or an appleManagedIdentityProvider resource. + ## Delete an identity provider resource that is of the type specified by the id in the request. Among the types of providers derived from identityProviderBase, you can currently delete a socialIdentityProvider resource in Microsoft Entra ID. In Azure AD B2C, this operation can currently delete a socialIdentityProvider, or an appleManagedIdentityProvider resource. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. + ## Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Microsoft Entra ID. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently update a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently update a socialIdentityProvider, or an appleManagedIdentityProvider resource. + ## Update the properties of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently update a socialIdentityProvider resource in Microsoft Entra ID. In Azure AD B2C, this operation can currently update a socialIdentityProvider, or an appleManagedIdentityProvider resource. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -110,20 +108,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a identity_provider_base_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IdentityProviderBaseItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. + # Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Microsoft Entra ID. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. class IdentityProviderBaseItemRequestBuilderGetQueryParameters ## diff --git a/lib/identity/identity_request_builder.rb b/lib/identity/identity_request_builder.rb index dc0ea1b5ff..818d7695fd 100644 --- a/lib/identity/identity_request_builder.rb +++ b/lib/identity/identity_request_builder.rb @@ -3,8 +3,11 @@ require_relative '../models/identity_container' require_relative '../models/o_data_errors_o_data_error' require_relative './api_connectors/api_connectors_request_builder' +require_relative './authentication_event_listeners/authentication_event_listeners_request_builder' +require_relative './authentication_events_flows/authentication_events_flows_request_builder' require_relative './b2x_user_flows/b2x_user_flows_request_builder' require_relative './conditional_access/conditional_access_request_builder' +require_relative './custom_authentication_extensions/custom_authentication_extensions_request_builder' require_relative './identity' require_relative './identity_providers/identity_providers_request_builder' require_relative './user_flow_attributes/user_flow_attributes_request_builder' @@ -21,16 +24,31 @@ def api_connectors() return MicrosoftGraph::Identity::ApiConnectors::ApiConnectorsRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to manage the authenticationEventListeners property of the microsoft.graph.identityContainer entity. + def authentication_event_listeners() + return MicrosoftGraph::Identity::AuthenticationEventListeners::AuthenticationEventListenersRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the authenticationEventsFlows property of the microsoft.graph.identityContainer entity. + def authentication_events_flows() + return MicrosoftGraph::Identity::AuthenticationEventsFlows::AuthenticationEventsFlowsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to manage the b2xUserFlows property of the microsoft.graph.identityContainer entity. def b2x_user_flows() return MicrosoftGraph::Identity::B2xUserFlows::B2xUserFlowsRequestBuilder.new(@path_parameters, @request_adapter) end ## - # Provides operations to manage the conditionalAccess property of the microsoft.graph.identityContainer entity. + # The conditionalAccess property def conditional_access() return MicrosoftGraph::Identity::ConditionalAccess::ConditionalAccessRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Provides operations to manage the customAuthenticationExtensions property of the microsoft.graph.identityContainer entity. + def custom_authentication_extensions() + return MicrosoftGraph::Identity::CustomAuthenticationExtensions::CustomAuthenticationExtensionsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Provides operations to manage the identityProviders property of the microsoft.graph.identityContainer entity. def identity_providers() return MicrosoftGraph::Identity::IdentityProviders::IdentityProvidersRequestBuilder.new(@path_parameters, @request_adapter) @@ -47,7 +65,7 @@ def user_flow_attributes() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity{?%24expand,%24select}") end ## ## Get identity @@ -59,8 +77,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityContainer.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +92,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityContainer.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,15 +102,15 @@ def patch(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -106,17 +122,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a identity_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IdentityRequestBuilder.new(raw_url, @request_adapter) + end ## # Get identity diff --git a/lib/identity/user_flow_attributes/count/count_request_builder.rb b/lib/identity/user_flow_attributes/count/count_request_builder.rb index 97a18ba93e..50ed335f32 100644 --- a/lib/identity/user_flow_attributes/count/count_request_builder.rb +++ b/lib/identity/user_flow_attributes/count/count_request_builder.rb @@ -20,7 +20,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/userFlowAttributes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identity/userFlowAttributes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -32,8 +32,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -43,17 +42,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity/user_flow_attributes/item/identity_user_flow_attribute_item_request_builder.rb b/lib/identity/user_flow_attributes/item/identity_user_flow_attribute_item_request_builder.rb index ebec86c1ad..87d953bb77 100644 --- a/lib/identity/user_flow_attributes/item/identity_user_flow_attribute_item_request_builder.rb +++ b/lib/identity/user_flow_attributes/item/identity_user_flow_attribute_item_request_builder.rb @@ -21,10 +21,10 @@ class IdentityUserFlowAttributeItemRequestBuilder < MicrosoftKiotaAbstractions:: ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/userFlowAttributes/{identityUserFlowAttribute%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/userFlowAttributes/{identityUserFlowAttribute%2Did}{?%24expand,%24select}") end ## - ## Delete an identityUserFlowAttribute. Only custom user flow attributes can be deleted. + ## Delete a custom identityUserFlowAttribute. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -33,8 +33,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,12 +46,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityUserFlowAttribute.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of a identityUserFlowAttribute object. Only custom user flow attributes can be updated. + ## Update the properties of a custom identityUserFlowAttribute object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of identity_user_flow_attribute @@ -63,24 +61,24 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityUserFlowAttribute.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete an identityUserFlowAttribute. Only custom user flow attributes can be deleted. + ## Delete a custom identityUserFlowAttribute. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -90,19 +88,19 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the properties of a identityUserFlowAttribute object. Only custom user flow attributes can be updated. + ## Update the properties of a custom identityUserFlowAttribute object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -110,17 +108,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a identity_user_flow_attribute_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IdentityUserFlowAttributeItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of a identityUserFlowAttribute object. diff --git a/lib/identity/user_flow_attributes/user_flow_attributes_request_builder.rb b/lib/identity/user_flow_attributes/user_flow_attributes_request_builder.rb index 8be5bb770c..1f858f5d0f 100644 --- a/lib/identity/user_flow_attributes/user_flow_attributes_request_builder.rb +++ b/lib/identity/user_flow_attributes/user_flow_attributes_request_builder.rb @@ -38,7 +38,7 @@ def by_identity_user_flow_attribute_id(identity_user_flow_attribute_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identity/userFlowAttributes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identity/userFlowAttributes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of identityUserFlowAttribute objects. @@ -50,12 +50,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityUserFlowAttributeCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new identityUserFlowAttribute object. + ## Create a new custom identityUserFlowAttribute object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of identity_user_flow_attribute @@ -66,8 +65,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::IdentityUserFlowAttribute.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,19 +75,19 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create a new identityUserFlowAttribute object. + ## Create a new custom identityUserFlowAttribute object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -97,17 +95,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_flow_attributes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserFlowAttributesRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of identityUserFlowAttribute objects. diff --git a/lib/identity_governance/access_reviews/access_reviews_request_builder.rb b/lib/identity_governance/access_reviews/access_reviews_request_builder.rb index 49a090fcb8..5a1c5674c1 100644 --- a/lib/identity_governance/access_reviews/access_reviews_request_builder.rb +++ b/lib/identity_governance/access_reviews/access_reviews_request_builder.rb @@ -31,7 +31,7 @@ def history_definitions() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews{?%24expand,%24select}") end ## ## Delete navigation property accessReviews for identityGovernance @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewSet.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,15 +98,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_reviews_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessReviewsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get accessReviews from identityGovernance diff --git a/lib/identity_governance/access_reviews/definitions/count/count_request_builder.rb b/lib/identity_governance/access_reviews/definitions/count/count_request_builder.rb index 778779c497..da30e04c8c 100644 --- a/lib/identity_governance/access_reviews/definitions/count/count_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/access_reviews/definitions/definitions_request_builder.rb b/lib/identity_governance/access_reviews/definitions/definitions_request_builder.rb index 6de6d4abd7..fced2bb6fd 100644 --- a/lib/identity_governance/access_reviews/definitions/definitions_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/definitions_request_builder.rb @@ -41,7 +41,7 @@ def by_access_review_schedule_definition_id(access_review_schedule_definition_id ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Provides operations to call the filterByCurrentUser method. @@ -62,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewScheduleDefinitionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,8 +77,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewScheduleDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,15 +87,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -109,17 +107,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a definitions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DefinitionsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a list of the accessReviewScheduleDefinition objects and their properties. diff --git a/lib/identity_governance/access_reviews/definitions/filter_by_current_user_with_on/filter_by_current_user_with_on.rb b/lib/identity_governance/access_reviews/definitions/filter_by_current_user_with_on/filter_by_current_user_with_on.rb index 720a62f905..0e09a13b0f 100644 --- a/lib/identity_governance/access_reviews/definitions/filter_by_current_user_with_on/filter_by_current_user_with_on.rb +++ b/lib/identity_governance/access_reviews/definitions/filter_by_current_user_with_on/filter_by_current_user_with_on.rb @@ -1 +1 @@ -require_relative 'filter_by_current_user_with_on_response' +require_relative 'filter_by_current_user_with_on_get_response' diff --git a/lib/identity_governance/access_reviews/definitions/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb b/lib/identity_governance/access_reviews/definitions/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb new file mode 100644 index 0000000000..8b9db763f0 --- /dev/null +++ b/lib/identity_governance/access_reviews/definitions/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/access_review_schedule_definition' +require_relative '../../../../models/base_collection_pagination_count_response' +require_relative '../../../identity_governance' +require_relative '../../access_reviews' +require_relative '../definitions' +require_relative './filter_by_current_user_with_on' + +module MicrosoftGraph + module IdentityGovernance + module AccessReviews + module Definitions + module FilterByCurrentUserWithOn + class FilterByCurrentUserWithOnGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new FilterByCurrentUserWithOnGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a filter_by_current_user_with_on_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return FilterByCurrentUserWithOnGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessReviewScheduleDefinition.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a access_review_schedule_definition + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/identity_governance/access_reviews/definitions/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb b/lib/identity_governance/access_reviews/definitions/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb index 40d697db59..34a850b165 100644 --- a/lib/identity_governance/access_reviews/definitions/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb @@ -23,49 +23,60 @@ class FilterByCurrentUserWithOnRequestBuilder < MicrosoftKiotaAbstractions::Base ## @return a void ## def initialize(path_parameters, request_adapter, on=nil) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function filterByCurrentUser + ## Returns accessReviewScheduleDefinition objects where the calling user is a reviewer on one or more accessReviewInstance objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of filter_by_current_user_with_on_response + ## @return a Fiber of filter_by_current_user_with_on_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::AccessReviews::Definitions::FilterByCurrentUserWithOn::FilterByCurrentUserWithOnResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::AccessReviews::Definitions::FilterByCurrentUserWithOn::FilterByCurrentUserWithOnGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function filterByCurrentUser + ## Returns accessReviewScheduleDefinition objects where the calling user is a reviewer on one or more accessReviewInstance objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a filter_by_current_user_with_on_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilterByCurrentUserWithOnRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function filterByCurrentUser + # Returns accessReviewScheduleDefinition objects where the calling user is a reviewer on one or more accessReviewInstance objects. class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -93,6 +104,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/identity_governance/access_reviews/definitions/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb b/lib/identity_governance/access_reviews/definitions/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb deleted file mode 100644 index a5876e6137..0000000000 --- a/lib/identity_governance/access_reviews/definitions/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/access_review_schedule_definition' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../identity_governance' -require_relative '../../access_reviews' -require_relative '../definitions' -require_relative './filter_by_current_user_with_on' - -module MicrosoftGraph - module IdentityGovernance - module AccessReviews - module Definitions - module FilterByCurrentUserWithOn - class FilterByCurrentUserWithOnResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a filter_by_current_user_with_on_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return FilterByCurrentUserWithOnResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessReviewScheduleDefinition.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a access_review_schedule_definition - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/identity_governance/access_reviews/definitions/item/access_review_schedule_definition_item_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/access_review_schedule_definition_item_request_builder.rb index 348eee0864..079103a43e 100644 --- a/lib/identity_governance/access_reviews/definitions/item/access_review_schedule_definition_item_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/access_review_schedule_definition_item_request_builder.rb @@ -35,7 +35,7 @@ def stop() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}{?%24expand,%24select}") end ## ## Deletes an accessReviewScheduleDefinition object. @@ -47,8 +47,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewScheduleDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,14 +69,13 @@ def get(request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of access_review_schedule_definition ## - def patch(body, request_configuration=nil) + def put(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_patch_request_information( + request_info = self.to_put_request_information( body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewScheduleDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,13 +85,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -104,15 +102,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -121,20 +119,29 @@ def to_get_request_information(request_configuration=nil) ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_patch_request_information(body, request_configuration=nil) + def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_review_schedule_definition_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessReviewScheduleDefinitionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of an accessReviewScheduleDefinition object. To retrieve the instances of the access review series, use the list accessReviewInstance API. diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/count/count_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/count/count_request_builder.rb index 572be4a73a..c617f24834 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/count/count_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/filter_by_current_user_with_on/filter_by_current_user_with_on.rb b/lib/identity_governance/access_reviews/definitions/item/instances/filter_by_current_user_with_on/filter_by_current_user_with_on.rb index 720a62f905..0e09a13b0f 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/filter_by_current_user_with_on/filter_by_current_user_with_on.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/filter_by_current_user_with_on/filter_by_current_user_with_on.rb @@ -1 +1 @@ -require_relative 'filter_by_current_user_with_on_response' +require_relative 'filter_by_current_user_with_on_get_response' diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb b/lib/identity_governance/access_reviews/definitions/item/instances/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb new file mode 100644 index 0000000000..80d30eb6b7 --- /dev/null +++ b/lib/identity_governance/access_reviews/definitions/item/instances/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb @@ -0,0 +1,81 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/access_review_instance' +require_relative '../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../identity_governance' +require_relative '../../../../access_reviews' +require_relative '../../../definitions' +require_relative '../../item' +require_relative '../instances' +require_relative './filter_by_current_user_with_on' + +module MicrosoftGraph + module IdentityGovernance + module AccessReviews + module Definitions + module Item + module Instances + module FilterByCurrentUserWithOn + class FilterByCurrentUserWithOnGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new FilterByCurrentUserWithOnGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a filter_by_current_user_with_on_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return FilterByCurrentUserWithOnGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessReviewInstance.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a access_review_instance + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end +end diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb index 65c062f977..ff7d4844b6 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb @@ -27,49 +27,60 @@ class FilterByCurrentUserWithOnRequestBuilder < MicrosoftKiotaAbstractions::Base ## @return a void ## def initialize(path_parameters, request_adapter, on=nil) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function filterByCurrentUser + ## Retrieve all accessReviewInstance objects on a given accessReviewScheduleDefinition where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of filter_by_current_user_with_on_response + ## @return a Fiber of filter_by_current_user_with_on_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::AccessReviews::Definitions::Item::Instances::FilterByCurrentUserWithOn::FilterByCurrentUserWithOnResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::AccessReviews::Definitions::Item::Instances::FilterByCurrentUserWithOn::FilterByCurrentUserWithOnGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function filterByCurrentUser + ## Retrieve all accessReviewInstance objects on a given accessReviewScheduleDefinition where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a filter_by_current_user_with_on_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilterByCurrentUserWithOnRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function filterByCurrentUser + # Retrieve all accessReviewInstance objects on a given accessReviewScheduleDefinition where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -97,6 +108,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb b/lib/identity_governance/access_reviews/definitions/item/instances/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb deleted file mode 100644 index e30c3de150..0000000000 --- a/lib/identity_governance/access_reviews/definitions/item/instances/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb +++ /dev/null @@ -1,81 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/access_review_instance' -require_relative '../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../identity_governance' -require_relative '../../../../access_reviews' -require_relative '../../../definitions' -require_relative '../../item' -require_relative '../instances' -require_relative './filter_by_current_user_with_on' - -module MicrosoftGraph - module IdentityGovernance - module AccessReviews - module Definitions - module Item - module Instances - module FilterByCurrentUserWithOn - class FilterByCurrentUserWithOnResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a filter_by_current_user_with_on_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return FilterByCurrentUserWithOnResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessReviewInstance.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a access_review_instance - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/instances_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/instances_request_builder.rb index 66deb047f7..b89ed47ac3 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/instances_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/instances_request_builder.rb @@ -45,7 +45,7 @@ def by_access_review_instance_id(access_review_instance_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Provides operations to call the filterByCurrentUser method. @@ -66,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewInstanceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,8 +81,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewInstance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,15 +91,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -113,17 +111,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a instances_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InstancesRequestBuilder.new(raw_url, @request_adapter) + end ## # Get a list of the accessReviewInstance objects and their properties. diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/accept_recommendations/accept_recommendations_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/accept_recommendations/accept_recommendations_request_builder.rb index a8da5c37e9..8bb785c307 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/accept_recommendations/accept_recommendations_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/accept_recommendations/accept_recommendations_request_builder.rb @@ -31,7 +31,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/acceptRecommendations") end ## - ## Allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that have not been reviewed on an accessReviewInstance object for which the calling user is a reviewer. + ## Allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed on an accessReviewInstance object for which the calling user is a reviewer. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -40,26 +40,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that have not been reviewed on an accessReviewInstance object for which the calling user is a reviewer. + ## Allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed on an accessReviewInstance object for which the calling user is a reviewer. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a accept_recommendations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AcceptRecommendationsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/access_review_instance_item_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/access_review_instance_item_request_builder.rb index 5d82d57981..bcc7626000 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/access_review_instance_item_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/access_review_instance_item_request_builder.rb @@ -81,7 +81,7 @@ def stop() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}{?%24expand,%24select}") end ## ## Delete navigation property instances for identityGovernance @@ -93,8 +93,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -107,8 +106,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewInstance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -123,8 +121,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewInstance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -134,13 +131,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -150,15 +148,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -170,17 +168,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_review_instance_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessReviewInstanceItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of an accessReviewInstance object. diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/apply_decisions/apply_decisions_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/apply_decisions/apply_decisions_request_builder.rb index e0e2a2d5fa..00b6fa8f52 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/apply_decisions/apply_decisions_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/apply_decisions/apply_decisions_request_builder.rb @@ -40,8 +40,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,15 +50,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a apply_decisions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApplyDecisionsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/batch_record_decisions/batch_record_decisions_post_request_body.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/batch_record_decisions/batch_record_decisions_post_request_body.rb index 71d8281af6..9d71e966ea 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/batch_record_decisions/batch_record_decisions_post_request_body.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/batch_record_decisions/batch_record_decisions_post_request_body.rb @@ -34,22 +34,22 @@ class BatchRecordDecisionsPostRequestBody # The resourceId property @resource_id ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new batchRecordDecisionsPostRequestBody and sets the default values. + ## Instantiates a new BatchRecordDecisionsPostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/batch_record_decisions/batch_record_decisions_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/batch_record_decisions/batch_record_decisions_request_builder.rb index e1cb4aaf9f..24a24441ab 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/batch_record_decisions/batch_record_decisions_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/batch_record_decisions/batch_record_decisions_request_builder.rb @@ -42,8 +42,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,16 +54,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a batch_record_decisions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return BatchRecordDecisionsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/contacted_reviewers/contacted_reviewers_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/contacted_reviewers/contacted_reviewers_request_builder.rb index 230fdde141..84ac0db3d7 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/contacted_reviewers/contacted_reviewers_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/contacted_reviewers/contacted_reviewers_request_builder.rb @@ -48,7 +48,7 @@ def by_access_review_reviewer_id(access_review_reviewer_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/contactedReviewers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/contactedReviewers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get the reviewers for an access review instance, irrespective of whether or not they have received a notification. The reviewers are represented by an accessReviewReviewer object. A list of zero or more objects are returned, including all of their nested properties. @@ -60,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewReviewerCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,8 +75,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewReviewer.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,15 +85,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -107,17 +105,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a contacted_reviewers_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ContactedReviewersRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the reviewers for an access review instance, irrespective of whether or not they have received a notification. The reviewers are represented by an accessReviewReviewer object. A list of zero or more objects are returned, including all of their nested properties. diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/contacted_reviewers/count/count_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/contacted_reviewers/count/count_request_builder.rb index 2a251e6e72..95ddc38681 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/contacted_reviewers/count/count_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/contacted_reviewers/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/contactedReviewers/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/contactedReviewers/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/contacted_reviewers/item/access_review_reviewer_item_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/contacted_reviewers/item/access_review_reviewer_item_request_builder.rb index 5e8255c966..9ef557ceed 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/contacted_reviewers/item/access_review_reviewer_item_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/contacted_reviewers/item/access_review_reviewer_item_request_builder.rb @@ -31,7 +31,7 @@ class AccessReviewReviewerItemRequestBuilder < MicrosoftKiotaAbstractions::BaseR ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/contactedReviewers/{accessReviewReviewer%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/contactedReviewers/{accessReviewReviewer%2Did}{?%24expand,%24select}") end ## ## Delete navigation property contactedReviewers for identityGovernance @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewReviewer.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewReviewer.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,15 +98,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_review_reviewer_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessReviewReviewerItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/count/count_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/count/count_request_builder.rb index 3350812113..0a89189d04 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/count/count_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/decisions_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/decisions_request_builder.rb index d2f165625c..c87d2ec1e3 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/decisions_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/decisions_request_builder.rb @@ -49,7 +49,7 @@ def by_access_review_instance_decision_item_id(access_review_instance_decision_i ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Provides operations to call the filterByCurrentUser method. @@ -70,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewInstanceDecisionItemCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,8 +85,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewInstanceDecisionItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -97,15 +95,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -117,17 +115,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a decisions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DecisionsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties. diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on.rb index 720a62f905..0e09a13b0f 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on.rb @@ -1 +1 @@ -require_relative 'filter_by_current_user_with_on_response' +require_relative 'filter_by_current_user_with_on_get_response' diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb new file mode 100644 index 0000000000..9d9ca268ee --- /dev/null +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/access_review_instance_decision_item' +require_relative '../../../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../../identity_governance' +require_relative '../../../../../../access_reviews' +require_relative '../../../../../definitions' +require_relative '../../../../item' +require_relative '../../../instances' +require_relative '../../item' +require_relative '../decisions' +require_relative './filter_by_current_user_with_on' + +module MicrosoftGraph + module IdentityGovernance + module AccessReviews + module Definitions + module Item + module Instances + module Item + module Decisions + module FilterByCurrentUserWithOn + class FilterByCurrentUserWithOnGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new FilterByCurrentUserWithOnGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a filter_by_current_user_with_on_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return FilterByCurrentUserWithOnGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessReviewInstanceDecisionItem.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a access_review_instance_decision_item + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb index 9a74ce8010..3681d2f4ba 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb @@ -31,49 +31,60 @@ class FilterByCurrentUserWithOnRequestBuilder < MicrosoftKiotaAbstractions::Base ## @return a void ## def initialize(path_parameters, request_adapter, on=nil) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function filterByCurrentUser + ## Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review, for which the calling user is the reviewer. The decision items are represented by accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of filter_by_current_user_with_on_response + ## @return a Fiber of filter_by_current_user_with_on_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::AccessReviews::Definitions::Item::Instances::Item::Decisions::FilterByCurrentUserWithOn::FilterByCurrentUserWithOnResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::AccessReviews::Definitions::Item::Instances::Item::Decisions::FilterByCurrentUserWithOn::FilterByCurrentUserWithOnGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function filterByCurrentUser + ## Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review, for which the calling user is the reviewer. The decision items are represented by accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a filter_by_current_user_with_on_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilterByCurrentUserWithOnRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function filterByCurrentUser + # Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review, for which the calling user is the reviewer. The decision items are represented by accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -101,6 +112,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb deleted file mode 100644 index 73a2c0a79c..0000000000 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb +++ /dev/null @@ -1,87 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../models/access_review_instance_decision_item' -require_relative '../../../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../../../identity_governance' -require_relative '../../../../../../access_reviews' -require_relative '../../../../../definitions' -require_relative '../../../../item' -require_relative '../../../instances' -require_relative '../../item' -require_relative '../decisions' -require_relative './filter_by_current_user_with_on' - -module MicrosoftGraph - module IdentityGovernance - module AccessReviews - module Definitions - module Item - module Instances - module Item - module Decisions - module FilterByCurrentUserWithOn - class FilterByCurrentUserWithOnResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a filter_by_current_user_with_on_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return FilterByCurrentUserWithOnResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessReviewInstanceDecisionItem.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a access_review_instance_decision_item - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/item/access_review_instance_decision_item_item_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/item/access_review_instance_decision_item_item_request_builder.rb index 04bf850025..7653fbb003 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/item/access_review_instance_decision_item_item_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/item/access_review_instance_decision_item_item_request_builder.rb @@ -37,7 +37,7 @@ def insights() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}{?%24expand,%24select}") end ## ## Delete navigation property decisions for identityGovernance @@ -49,8 +49,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewInstanceDecisionItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,8 +77,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewInstanceDecisionItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,13 +87,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -106,15 +104,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,17 +124,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_review_instance_decision_item_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessReviewInstanceDecisionItemItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of an accessReviewInstanceDecisionItem object. diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/item/insights/count/count_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/item/insights/count/count_request_builder.rb index 4024d8ab1f..60cead975b 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/item/insights/count/count_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/item/insights/count/count_request_builder.rb @@ -34,7 +34,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -46,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -57,17 +56,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/item/insights/insights_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/item/insights/insights_request_builder.rb index 5c0a7c1003..9b0ffa7260 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/item/insights/insights_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/item/insights/insights_request_builder.rb @@ -52,7 +52,7 @@ def by_governance_insight_id(governance_insight_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. @@ -64,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GovernanceInsightCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,8 +79,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GovernanceInsight.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,15 +89,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -111,17 +109,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insights_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsightsRequestBuilder.new(raw_url, @request_adapter) + end ## # Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/item/insights/item/governance_insight_item_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/item/insights/item/governance_insight_item_request_builder.rb index 3f69c5d4f1..012b906647 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/item/insights/item/governance_insight_item_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/decisions/item/insights/item/governance_insight_item_request_builder.rb @@ -35,7 +35,7 @@ class GovernanceInsightItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/{governanceInsight%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/{governanceInsight%2Did}{?%24expand,%24select}") end ## ## Delete navigation property insights for identityGovernance @@ -47,8 +47,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GovernanceInsight.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GovernanceInsight.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,13 +85,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -104,15 +102,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,17 +122,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a governance_insight_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GovernanceInsightItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/reset_decisions/reset_decisions_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/reset_decisions/reset_decisions_request_builder.rb index c416c403e1..e36292de8c 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/reset_decisions/reset_decisions_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/reset_decisions/reset_decisions_request_builder.rb @@ -40,8 +40,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,15 +50,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reset_decisions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResetDecisionsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/send_reminder/send_reminder_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/send_reminder/send_reminder_request_builder.rb index fae081ae81..20fb139a30 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/send_reminder/send_reminder_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/send_reminder/send_reminder_request_builder.rb @@ -40,8 +40,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,15 +50,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a send_reminder_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return SendReminderRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/count/count_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/count/count_request_builder.rb index d8d22f6cc1..91eab5e147 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/count/count_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/filter_by_current_user_with_on/filter_by_current_user_with_on.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/filter_by_current_user_with_on/filter_by_current_user_with_on.rb index 720a62f905..0e09a13b0f 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/filter_by_current_user_with_on/filter_by_current_user_with_on.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/filter_by_current_user_with_on/filter_by_current_user_with_on.rb @@ -1 +1 @@ -require_relative 'filter_by_current_user_with_on_response' +require_relative 'filter_by_current_user_with_on_get_response' diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb new file mode 100644 index 0000000000..6d5adb24e3 --- /dev/null +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb @@ -0,0 +1,87 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/access_review_stage' +require_relative '../../../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../../identity_governance' +require_relative '../../../../../../access_reviews' +require_relative '../../../../../definitions' +require_relative '../../../../item' +require_relative '../../../instances' +require_relative '../../item' +require_relative '../stages' +require_relative './filter_by_current_user_with_on' + +module MicrosoftGraph + module IdentityGovernance + module AccessReviews + module Definitions + module Item + module Instances + module Item + module Stages + module FilterByCurrentUserWithOn + class FilterByCurrentUserWithOnGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new FilterByCurrentUserWithOnGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a filter_by_current_user_with_on_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return FilterByCurrentUserWithOnGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessReviewStage.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a access_review_stage + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb index dd42076645..536b2a6d6b 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb @@ -31,49 +31,60 @@ class FilterByCurrentUserWithOnRequestBuilder < MicrosoftKiotaAbstractions::Base ## @return a void ## def initialize(path_parameters, request_adapter, on=nil) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function filterByCurrentUser + ## Return all accessReviewStage objects on a given accessReviewInstance where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of filter_by_current_user_with_on_response + ## @return a Fiber of filter_by_current_user_with_on_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::AccessReviews::Definitions::Item::Instances::Item::Stages::FilterByCurrentUserWithOn::FilterByCurrentUserWithOnResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::AccessReviews::Definitions::Item::Instances::Item::Stages::FilterByCurrentUserWithOn::FilterByCurrentUserWithOnGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function filterByCurrentUser + ## Return all accessReviewStage objects on a given accessReviewInstance where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a filter_by_current_user_with_on_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilterByCurrentUserWithOnRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function filterByCurrentUser + # Return all accessReviewStage objects on a given accessReviewInstance where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -101,6 +112,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb deleted file mode 100644 index 351b72ca06..0000000000 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb +++ /dev/null @@ -1,87 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../models/access_review_stage' -require_relative '../../../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../../../identity_governance' -require_relative '../../../../../../access_reviews' -require_relative '../../../../../definitions' -require_relative '../../../../item' -require_relative '../../../instances' -require_relative '../../item' -require_relative '../stages' -require_relative './filter_by_current_user_with_on' - -module MicrosoftGraph - module IdentityGovernance - module AccessReviews - module Definitions - module Item - module Instances - module Item - module Stages - module FilterByCurrentUserWithOn - class FilterByCurrentUserWithOnResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a filter_by_current_user_with_on_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return FilterByCurrentUserWithOnResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessReviewStage.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a access_review_stage - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/access_review_stage_item_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/access_review_stage_item_request_builder.rb index 8533fa02a9..38485e4b6f 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/access_review_stage_item_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/access_review_stage_item_request_builder.rb @@ -43,7 +43,7 @@ def stop() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}{?%24expand,%24select}") end ## ## Delete navigation property stages for identityGovernance @@ -55,8 +55,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -69,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewStage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,8 +83,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewStage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -96,13 +93,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,15 +110,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,17 +130,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_review_stage_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessReviewStageItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of an accessReviewStage object. diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/count/count_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/count/count_request_builder.rb index 5951f0e5ae..c27cead51f 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/count/count_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/count/count_request_builder.rb @@ -34,7 +34,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -46,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -57,17 +56,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/decisions_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/decisions_request_builder.rb index 32abbf3b5b..1c43359240 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/decisions_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/decisions_request_builder.rb @@ -53,7 +53,7 @@ def by_access_review_instance_decision_item_id(access_review_instance_decision_i ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Provides operations to call the filterByCurrentUser method. @@ -74,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewInstanceDecisionItemCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,8 +89,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewInstanceDecisionItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -101,15 +99,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -121,17 +119,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a decisions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return DecisionsRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the decisions from a stage in a multi-stage access review. The decisions in an accessReviewStage object are represented by an accessReviewInstanceDecisionItem object. diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on.rb index 720a62f905..0e09a13b0f 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on.rb @@ -1 +1 @@ -require_relative 'filter_by_current_user_with_on_response' +require_relative 'filter_by_current_user_with_on_get_response' diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb new file mode 100644 index 0000000000..b62b94ac64 --- /dev/null +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb @@ -0,0 +1,93 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/access_review_instance_decision_item' +require_relative '../../../../../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../../../../identity_governance' +require_relative '../../../../../../../../access_reviews' +require_relative '../../../../../../../definitions' +require_relative '../../../../../../item' +require_relative '../../../../../instances' +require_relative '../../../../item' +require_relative '../../../stages' +require_relative '../../item' +require_relative '../decisions' +require_relative './filter_by_current_user_with_on' + +module MicrosoftGraph + module IdentityGovernance + module AccessReviews + module Definitions + module Item + module Instances + module Item + module Stages + module Item + module Decisions + module FilterByCurrentUserWithOn + class FilterByCurrentUserWithOnGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new FilterByCurrentUserWithOnGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a filter_by_current_user_with_on_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return FilterByCurrentUserWithOnGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessReviewInstanceDecisionItem.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a access_review_instance_decision_item + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb index 09aefb9e20..c16483c27a 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb @@ -35,49 +35,60 @@ class FilterByCurrentUserWithOnRequestBuilder < MicrosoftKiotaAbstractions::Base ## @return a void ## def initialize(path_parameters, request_adapter, on=nil) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function filterByCurrentUser + ## Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review, for which the calling user is the reviewer. The decision items are represented by accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of filter_by_current_user_with_on_response + ## @return a Fiber of filter_by_current_user_with_on_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::AccessReviews::Definitions::Item::Instances::Item::Stages::Item::Decisions::FilterByCurrentUserWithOn::FilterByCurrentUserWithOnResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::AccessReviews::Definitions::Item::Instances::Item::Stages::Item::Decisions::FilterByCurrentUserWithOn::FilterByCurrentUserWithOnGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function filterByCurrentUser + ## Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review, for which the calling user is the reviewer. The decision items are represented by accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a filter_by_current_user_with_on_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilterByCurrentUserWithOnRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function filterByCurrentUser + # Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review, for which the calling user is the reviewer. The decision items are represented by accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -105,6 +116,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb deleted file mode 100644 index 2d411de5f8..0000000000 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb +++ /dev/null @@ -1,93 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../../../../../microsoft_graph' -require_relative '../../../../../../../../../../models/access_review_instance_decision_item' -require_relative '../../../../../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../../../../../identity_governance' -require_relative '../../../../../../../../access_reviews' -require_relative '../../../../../../../definitions' -require_relative '../../../../../../item' -require_relative '../../../../../instances' -require_relative '../../../../item' -require_relative '../../../stages' -require_relative '../../item' -require_relative '../decisions' -require_relative './filter_by_current_user_with_on' - -module MicrosoftGraph - module IdentityGovernance - module AccessReviews - module Definitions - module Item - module Instances - module Item - module Stages - module Item - module Decisions - module FilterByCurrentUserWithOn - class FilterByCurrentUserWithOnResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a filter_by_current_user_with_on_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return FilterByCurrentUserWithOnResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessReviewInstanceDecisionItem.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a access_review_instance_decision_item - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/item/access_review_instance_decision_item_item_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/item/access_review_instance_decision_item_item_request_builder.rb index 327fce2403..1f14878c0b 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/item/access_review_instance_decision_item_item_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/item/access_review_instance_decision_item_item_request_builder.rb @@ -41,7 +41,7 @@ def insights() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}{?%24expand,%24select}") end ## ## Delete navigation property decisions for identityGovernance @@ -53,8 +53,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewInstanceDecisionItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,8 +81,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewInstanceDecisionItem.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -94,13 +91,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,15 +108,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -130,17 +128,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_review_instance_decision_item_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessReviewInstanceDecisionItemItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of an accessReviewInstanceDecisionItem object. diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/item/insights/count/count_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/item/insights/count/count_request_builder.rb index 1e72f6aaa1..d55528e0ba 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/item/insights/count/count_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/item/insights/count/count_request_builder.rb @@ -38,7 +38,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -61,17 +60,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/item/insights/insights_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/item/insights/insights_request_builder.rb index 9786f154ed..2e4b45b714 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/item/insights/insights_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/item/insights/insights_request_builder.rb @@ -56,7 +56,7 @@ def by_governance_insight_id(governance_insight_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. @@ -68,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GovernanceInsightCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,8 +83,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GovernanceInsight.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -95,15 +93,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -115,17 +113,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a insights_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InsightsRequestBuilder.new(raw_url, @request_adapter) + end ## # Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/item/insights/item/governance_insight_item_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/item/insights/item/governance_insight_item_request_builder.rb index 26e0f752bb..fdc7436d44 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/item/insights/item/governance_insight_item_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/decisions/item/insights/item/governance_insight_item_request_builder.rb @@ -39,7 +39,7 @@ class GovernanceInsightItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/{governanceInsight%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/{governanceInsight%2Did}{?%24expand,%24select}") end ## ## Delete navigation property insights for identityGovernance @@ -51,8 +51,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GovernanceInsight.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GovernanceInsight.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,13 +89,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,15 +106,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,17 +126,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a governance_insight_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GovernanceInsightItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/stop/stop_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/stop/stop_request_builder.rb index 144ee1af42..d8a53641cd 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/stop/stop_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/item/stop/stop_request_builder.rb @@ -44,8 +44,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,15 +54,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a stop_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return StopRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/stages_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/stages_request_builder.rb index e684a1e303..ede08f0333 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/stages_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/stages/stages_request_builder.rb @@ -49,7 +49,7 @@ def by_access_review_stage_id(access_review_stage_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Provides operations to call the filterByCurrentUser method. @@ -70,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewStageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,8 +85,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewStage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -97,15 +95,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -117,17 +115,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a stages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return StagesRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the stages in a multi-stage access review instance. diff --git a/lib/identity_governance/access_reviews/definitions/item/instances/item/stop/stop_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/instances/item/stop/stop_request_builder.rb index 61ec4133b0..306890f229 100644 --- a/lib/identity_governance/access_reviews/definitions/item/instances/item/stop/stop_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/instances/item/stop/stop_request_builder.rb @@ -40,8 +40,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,15 +50,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a stop_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return StopRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity_governance/access_reviews/definitions/item/stop/stop_request_builder.rb b/lib/identity_governance/access_reviews/definitions/item/stop/stop_request_builder.rb index 322dee584a..5e41674c38 100644 --- a/lib/identity_governance/access_reviews/definitions/item/stop/stop_request_builder.rb +++ b/lib/identity_governance/access_reviews/definitions/item/stop/stop_request_builder.rb @@ -36,8 +36,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -47,15 +46,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a stop_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return StopRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity_governance/access_reviews/history_definitions/count/count_request_builder.rb b/lib/identity_governance/access_reviews/history_definitions/count/count_request_builder.rb index b6db5a937e..ebff09c9eb 100644 --- a/lib/identity_governance/access_reviews/history_definitions/count/count_request_builder.rb +++ b/lib/identity_governance/access_reviews/history_definitions/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/historyDefinitions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/historyDefinitions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/access_reviews/history_definitions/history_definitions_request_builder.rb b/lib/identity_governance/access_reviews/history_definitions/history_definitions_request_builder.rb index 593fef7f41..2a2d499c39 100644 --- a/lib/identity_governance/access_reviews/history_definitions/history_definitions_request_builder.rb +++ b/lib/identity_governance/access_reviews/history_definitions/history_definitions_request_builder.rb @@ -40,7 +40,7 @@ def by_access_review_history_definition_id(access_review_history_definition_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/historyDefinitions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/historyDefinitions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve the accessReviewHistoryDefinition objects created in the last 30 days, including all nested properties. @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewHistoryDefinitionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewHistoryDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,15 +77,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a history_definitions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return HistoryDefinitionsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the accessReviewHistoryDefinition objects created in the last 30 days, including all nested properties. diff --git a/lib/identity_governance/access_reviews/history_definitions/item/access_review_history_definition_item_request_builder.rb b/lib/identity_governance/access_reviews/history_definitions/item/access_review_history_definition_item_request_builder.rb index ce33ffa67d..1543de938f 100644 --- a/lib/identity_governance/access_reviews/history_definitions/item/access_review_history_definition_item_request_builder.rb +++ b/lib/identity_governance/access_reviews/history_definitions/item/access_review_history_definition_item_request_builder.rb @@ -29,7 +29,7 @@ def instances() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/historyDefinitions/{accessReviewHistoryDefinition%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/historyDefinitions/{accessReviewHistoryDefinition%2Did}{?%24expand,%24select}") end ## ## Delete navigation property historyDefinitions for identityGovernance @@ -41,8 +41,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewHistoryDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewHistoryDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,13 +79,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -98,15 +96,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,17 +116,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_review_history_definition_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessReviewHistoryDefinitionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve an accessReviewHistoryDefinition object by its identifier. All the properties of the access review history definition object are returned. If the definition is 30 days or older, a 404 Not Found error is returned. diff --git a/lib/identity_governance/access_reviews/history_definitions/item/instances/count/count_request_builder.rb b/lib/identity_governance/access_reviews/history_definitions/item/instances/count/count_request_builder.rb index ba4c56cdd0..3b2763f338 100644 --- a/lib/identity_governance/access_reviews/history_definitions/item/instances/count/count_request_builder.rb +++ b/lib/identity_governance/access_reviews/history_definitions/item/instances/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/historyDefinitions/{accessReviewHistoryDefinition%2Did}/instances/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/historyDefinitions/{accessReviewHistoryDefinition%2Did}/instances/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/access_reviews/history_definitions/item/instances/instances_request_builder.rb b/lib/identity_governance/access_reviews/history_definitions/item/instances/instances_request_builder.rb index c819a670b6..f34032dfb1 100644 --- a/lib/identity_governance/access_reviews/history_definitions/item/instances/instances_request_builder.rb +++ b/lib/identity_governance/access_reviews/history_definitions/item/instances/instances_request_builder.rb @@ -44,7 +44,7 @@ def by_access_review_history_instance_id(access_review_history_instance_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/historyDefinitions/{accessReviewHistoryDefinition%2Did}/instances{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/historyDefinitions/{accessReviewHistoryDefinition%2Did}/instances{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve the instances of an access review history definition created in the last 30 days. @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewHistoryInstanceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,8 +71,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewHistoryInstance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,15 +81,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,17 +101,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a instances_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InstancesRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the instances of an access review history definition created in the last 30 days. diff --git a/lib/identity_governance/access_reviews/history_definitions/item/instances/item/access_review_history_instance_item_request_builder.rb b/lib/identity_governance/access_reviews/history_definitions/item/instances/item/access_review_history_instance_item_request_builder.rb index 3603b8598a..fd05b9b139 100644 --- a/lib/identity_governance/access_reviews/history_definitions/item/instances/item/access_review_history_instance_item_request_builder.rb +++ b/lib/identity_governance/access_reviews/history_definitions/item/instances/item/access_review_history_instance_item_request_builder.rb @@ -33,7 +33,7 @@ def generate_download_uri() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/historyDefinitions/{accessReviewHistoryDefinition%2Did}/instances/{accessReviewHistoryInstance%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/accessReviews/historyDefinitions/{accessReviewHistoryDefinition%2Did}/instances/{accessReviewHistoryInstance%2Did}{?%24expand,%24select}") end ## ## Delete navigation property instances for identityGovernance @@ -45,12 +45,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that does not recur will have exactly one instance. + ## If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that doesn't recur will have exactly one instance. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of access_review_history_instance ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewHistoryInstance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewHistoryInstance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,31 +83,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that does not recur will have exactly one instance. + ## If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that doesn't recur will have exactly one instance. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,20 +120,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_review_history_instance_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessReviewHistoryInstanceItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that does not recur will have exactly one instance. + # If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that doesn't recur will have exactly one instance. class AccessReviewHistoryInstanceItemRequestBuilderGetQueryParameters ## diff --git a/lib/identity_governance/access_reviews/history_definitions/item/instances/item/generate_download_uri/generate_download_uri_request_builder.rb b/lib/identity_governance/access_reviews/history_definitions/item/instances/item/generate_download_uri/generate_download_uri_request_builder.rb index 5c9e9ef884..fc3e97d83e 100644 --- a/lib/identity_governance/access_reviews/history_definitions/item/instances/item/generate_download_uri/generate_download_uri_request_builder.rb +++ b/lib/identity_governance/access_reviews/history_definitions/item/instances/item/generate_download_uri/generate_download_uri_request_builder.rb @@ -41,8 +41,7 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessReviewHistoryInstance.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,16 +51,25 @@ def post(request_configuration=nil) ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a generate_download_uri_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GenerateDownloadUriRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity_governance/app_consent/app_consent_request_builder.rb b/lib/identity_governance/app_consent/app_consent_request_builder.rb index 312beef354..755b357c51 100644 --- a/lib/identity_governance/app_consent/app_consent_request_builder.rb +++ b/lib/identity_governance/app_consent/app_consent_request_builder.rb @@ -25,7 +25,7 @@ def app_consent_requests() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent{?%24expand,%24select}") end ## ## Delete navigation property appConsent for identityGovernance @@ -37,8 +37,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppConsentApprovalRoute.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppConsentApprovalRoute.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a app_consent_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AppConsentRequestBuilder.new(raw_url, @request_adapter) + end ## # Get appConsent from identityGovernance diff --git a/lib/identity_governance/app_consent/app_consent_requests/app_consent_requests_request_builder.rb b/lib/identity_governance/app_consent/app_consent_requests/app_consent_requests_request_builder.rb index c292ef8bbe..cf52bd73e8 100644 --- a/lib/identity_governance/app_consent/app_consent_requests/app_consent_requests_request_builder.rb +++ b/lib/identity_governance/app_consent/app_consent_requests/app_consent_requests_request_builder.rb @@ -41,7 +41,7 @@ def by_app_consent_request_id(app_consent_request_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Provides operations to call the filterByCurrentUser method. @@ -62,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppConsentRequestCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,8 +77,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppConsentRequest.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,15 +87,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -109,17 +107,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a app_consent_requests_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AppConsentRequestsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve appConsentRequest objects and their properties. diff --git a/lib/identity_governance/app_consent/app_consent_requests/count/count_request_builder.rb b/lib/identity_governance/app_consent/app_consent_requests/count/count_request_builder.rb index 53695ca77d..ed4850ad14 100644 --- a/lib/identity_governance/app_consent/app_consent_requests/count/count_request_builder.rb +++ b/lib/identity_governance/app_consent/app_consent_requests/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/app_consent/app_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on.rb b/lib/identity_governance/app_consent/app_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on.rb index 720a62f905..0e09a13b0f 100644 --- a/lib/identity_governance/app_consent/app_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on.rb +++ b/lib/identity_governance/app_consent/app_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on.rb @@ -1 +1 @@ -require_relative 'filter_by_current_user_with_on_response' +require_relative 'filter_by_current_user_with_on_get_response' diff --git a/lib/identity_governance/app_consent/app_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb b/lib/identity_governance/app_consent/app_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb new file mode 100644 index 0000000000..79d5539389 --- /dev/null +++ b/lib/identity_governance/app_consent/app_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/app_consent_request' +require_relative '../../../../models/base_collection_pagination_count_response' +require_relative '../../../identity_governance' +require_relative '../../app_consent' +require_relative '../app_consent_requests' +require_relative './filter_by_current_user_with_on' + +module MicrosoftGraph + module IdentityGovernance + module AppConsent + module AppConsentRequests + module FilterByCurrentUserWithOn + class FilterByCurrentUserWithOnGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new FilterByCurrentUserWithOnGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a filter_by_current_user_with_on_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return FilterByCurrentUserWithOnGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AppConsentRequest.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a app_consent_request + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/identity_governance/app_consent/app_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb b/lib/identity_governance/app_consent/app_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb index 3d98bed148..f4a9f3e891 100644 --- a/lib/identity_governance/app_consent/app_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb +++ b/lib/identity_governance/app_consent/app_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb @@ -23,49 +23,60 @@ class FilterByCurrentUserWithOnRequestBuilder < MicrosoftKiotaAbstractions::Base ## @return a void ## def initialize(path_parameters, request_adapter, on=nil) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function filterByCurrentUser + ## Retrieve a collection of appConsentRequest objects for which the current user is the reviewer and the status of the userConsentRequest for accessing the specified app is InProgress. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of filter_by_current_user_with_on_response + ## @return a Fiber of filter_by_current_user_with_on_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::AppConsent::AppConsentRequests::FilterByCurrentUserWithOn::FilterByCurrentUserWithOnResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::AppConsent::AppConsentRequests::FilterByCurrentUserWithOn::FilterByCurrentUserWithOnGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function filterByCurrentUser + ## Retrieve a collection of appConsentRequest objects for which the current user is the reviewer and the status of the userConsentRequest for accessing the specified app is InProgress. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a filter_by_current_user_with_on_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilterByCurrentUserWithOnRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function filterByCurrentUser + # Retrieve a collection of appConsentRequest objects for which the current user is the reviewer and the status of the userConsentRequest for accessing the specified app is InProgress. class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -93,6 +104,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/identity_governance/app_consent/app_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb b/lib/identity_governance/app_consent/app_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb deleted file mode 100644 index f2981c0822..0000000000 --- a/lib/identity_governance/app_consent/app_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/app_consent_request' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../identity_governance' -require_relative '../../app_consent' -require_relative '../app_consent_requests' -require_relative './filter_by_current_user_with_on' - -module MicrosoftGraph - module IdentityGovernance - module AppConsent - module AppConsentRequests - module FilterByCurrentUserWithOn - class FilterByCurrentUserWithOnResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a filter_by_current_user_with_on_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return FilterByCurrentUserWithOnResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AppConsentRequest.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a app_consent_request - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/identity_governance/app_consent/app_consent_requests/item/app_consent_request_item_request_builder.rb b/lib/identity_governance/app_consent/app_consent_requests/item/app_consent_request_item_request_builder.rb index 4138911056..89e583029f 100644 --- a/lib/identity_governance/app_consent/app_consent_requests/item/app_consent_request_item_request_builder.rb +++ b/lib/identity_governance/app_consent/app_consent_requests/item/app_consent_request_item_request_builder.rb @@ -29,7 +29,7 @@ def user_consent_requests() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/{appConsentRequest%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/{appConsentRequest%2Did}{?%24expand,%24select}") end ## ## Delete navigation property appConsentRequests for identityGovernance @@ -41,8 +41,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppConsentRequest.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AppConsentRequest.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,13 +79,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -98,15 +96,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,17 +116,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a app_consent_request_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AppConsentRequestItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of an appConsentRequest object. diff --git a/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/count/count_request_builder.rb b/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/count/count_request_builder.rb index 7baeb75378..bc4262b548 100644 --- a/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/count/count_request_builder.rb +++ b/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/{appConsentRequest%2Did}/userConsentRequests/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/{appConsentRequest%2Did}/userConsentRequests/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on.rb b/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on.rb index 720a62f905..0e09a13b0f 100644 --- a/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on.rb +++ b/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on.rb @@ -1 +1 @@ -require_relative 'filter_by_current_user_with_on_response' +require_relative 'filter_by_current_user_with_on_get_response' diff --git a/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb b/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb new file mode 100644 index 0000000000..960b6586ac --- /dev/null +++ b/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb @@ -0,0 +1,81 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../models/user_consent_request' +require_relative '../../../../../identity_governance' +require_relative '../../../../app_consent' +require_relative '../../../app_consent_requests' +require_relative '../../item' +require_relative '../user_consent_requests' +require_relative './filter_by_current_user_with_on' + +module MicrosoftGraph + module IdentityGovernance + module AppConsent + module AppConsentRequests + module Item + module UserConsentRequests + module FilterByCurrentUserWithOn + class FilterByCurrentUserWithOnGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new FilterByCurrentUserWithOnGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a filter_by_current_user_with_on_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return FilterByCurrentUserWithOnGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::UserConsentRequest.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a user_consent_request + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end +end diff --git a/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb b/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb index aaa8f44d83..0a283636ae 100644 --- a/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb +++ b/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb @@ -27,49 +27,60 @@ class FilterByCurrentUserWithOnRequestBuilder < MicrosoftKiotaAbstractions::Base ## @return a void ## def initialize(path_parameters, request_adapter, on=nil) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/{appConsentRequest%2Did}/userConsentRequests/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/{appConsentRequest%2Did}/userConsentRequests/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function filterByCurrentUser + ## Retrieve a collection of userConsentRequest objects for accessing a specified app, for which the current user is the reviewer. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of filter_by_current_user_with_on_response + ## @return a Fiber of filter_by_current_user_with_on_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::AppConsent::AppConsentRequests::Item::UserConsentRequests::FilterByCurrentUserWithOn::FilterByCurrentUserWithOnResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::AppConsent::AppConsentRequests::Item::UserConsentRequests::FilterByCurrentUserWithOn::FilterByCurrentUserWithOnGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function filterByCurrentUser + ## Retrieve a collection of userConsentRequest objects for accessing a specified app, for which the current user is the reviewer. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a filter_by_current_user_with_on_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilterByCurrentUserWithOnRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function filterByCurrentUser + # Retrieve a collection of userConsentRequest objects for accessing a specified app, for which the current user is the reviewer. class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -97,6 +108,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb b/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb deleted file mode 100644 index 729191de69..0000000000 --- a/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb +++ /dev/null @@ -1,81 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../../models/user_consent_request' -require_relative '../../../../../identity_governance' -require_relative '../../../../app_consent' -require_relative '../../../app_consent_requests' -require_relative '../../item' -require_relative '../user_consent_requests' -require_relative './filter_by_current_user_with_on' - -module MicrosoftGraph - module IdentityGovernance - module AppConsent - module AppConsentRequests - module Item - module UserConsentRequests - module FilterByCurrentUserWithOn - class FilterByCurrentUserWithOnResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a filter_by_current_user_with_on_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return FilterByCurrentUserWithOnResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::UserConsentRequest.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a user_consent_request - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/item/approval/approval_request_builder.rb b/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/item/approval/approval_request_builder.rb index 3233987a51..351e802d30 100644 --- a/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/item/approval/approval_request_builder.rb +++ b/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/item/approval/approval_request_builder.rb @@ -35,7 +35,7 @@ def stages() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/{appConsentRequest%2Did}/userConsentRequests/{userConsentRequest%2Did}/approval{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/{appConsentRequest%2Did}/userConsentRequests/{userConsentRequest%2Did}/approval{?%24expand,%24select}") end ## ## Delete navigation property approval for identityGovernance @@ -47,8 +47,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Approval.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Approval.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,13 +85,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -104,15 +102,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,17 +122,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a approval_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApprovalRequestBuilder.new(raw_url, @request_adapter) + end ## # Approval decisions associated with a request. diff --git a/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/item/approval/stages/count/count_request_builder.rb b/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/item/approval/stages/count/count_request_builder.rb index 502b484e07..a482b07a82 100644 --- a/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/item/approval/stages/count/count_request_builder.rb +++ b/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/item/approval/stages/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/{appConsentRequest%2Did}/userConsentRequests/{userConsentRequest%2Did}/approval/stages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/{appConsentRequest%2Did}/userConsentRequests/{userConsentRequest%2Did}/approval/stages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/item/approval/stages/item/approval_stage_item_request_builder.rb b/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/item/approval/stages/item/approval_stage_item_request_builder.rb index ba81d3ae99..be4cb3d82d 100644 --- a/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/item/approval/stages/item/approval_stage_item_request_builder.rb +++ b/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/item/approval/stages/item/approval_stage_item_request_builder.rb @@ -33,7 +33,7 @@ class ApprovalStageItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestB ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/{appConsentRequest%2Did}/userConsentRequests/{userConsentRequest%2Did}/approval/stages/{approvalStage%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/{appConsentRequest%2Did}/userConsentRequests/{userConsentRequest%2Did}/approval/stages/{approvalStage%2Did}{?%24expand,%24select}") end ## ## Delete navigation property stages for identityGovernance @@ -45,12 +45,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. + ## A collection of stages in the approval decision. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of approval_stage ## @@ -59,12 +58,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ApprovalStage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## In Azure AD entitlement management, approve or deny an approvalStage object in an approval. + ## Update the navigation property stages in identityGovernance ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of approval_stage @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ApprovalStage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,35 +83,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. + ## A collection of stages in the approval decision. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## In Azure AD entitlement management, approve or deny an approvalStage object in an approval. + ## Update the navigation property stages in identityGovernance ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -122,20 +120,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a approval_stage_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApprovalStageItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. + # A collection of stages in the approval decision. class ApprovalStageItemRequestBuilderGetQueryParameters ## diff --git a/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/item/approval/stages/stages_request_builder.rb b/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/item/approval/stages/stages_request_builder.rb index c6300ce260..df60bcf771 100644 --- a/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/item/approval/stages/stages_request_builder.rb +++ b/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/item/approval/stages/stages_request_builder.rb @@ -50,10 +50,10 @@ def by_approval_stage_id(approval_stage_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/{appConsentRequest%2Did}/userConsentRequests/{userConsentRequest%2Did}/approval/stages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/{appConsentRequest%2Did}/userConsentRequests/{userConsentRequest%2Did}/approval/stages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + ## A collection of stages in the approval decision. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of approval_stage_collection_response ## @@ -62,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ApprovalStageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,26 +77,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ApprovalStage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + ## A collection of stages in the approval decision. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a stages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return StagesRequestBuilder.new(raw_url, @request_adapter) + end ## - # In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + # A collection of stages in the approval decision. class StagesRequestBuilderGetQueryParameters ## diff --git a/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/item/user_consent_request_item_request_builder.rb b/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/item/user_consent_request_item_request_builder.rb index 2b33e9e265..b122a4fd4e 100644 --- a/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/item/user_consent_request_item_request_builder.rb +++ b/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/item/user_consent_request_item_request_builder.rb @@ -33,7 +33,7 @@ def approval() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/{appConsentRequest%2Did}/userConsentRequests/{userConsentRequest%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/{appConsentRequest%2Did}/userConsentRequests/{userConsentRequest%2Did}{?%24expand,%24select}") end ## ## Delete navigation property userConsentRequests for identityGovernance @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserConsentRequest.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserConsentRequest.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,13 +83,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -102,15 +100,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,17 +120,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_consent_request_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserConsentRequestItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read the properties and relationships of a userConsentRequest object. diff --git a/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/user_consent_requests_request_builder.rb b/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/user_consent_requests_request_builder.rb index f30d91fb08..ed075fe248 100644 --- a/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/user_consent_requests_request_builder.rb +++ b/lib/identity_governance/app_consent/app_consent_requests/item/user_consent_requests/user_consent_requests_request_builder.rb @@ -45,7 +45,7 @@ def by_user_consent_request_id(user_consent_request_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/{appConsentRequest%2Did}/userConsentRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/{appConsentRequest%2Did}/userConsentRequests{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Provides operations to call the filterByCurrentUser method. @@ -66,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserConsentRequestCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,8 +81,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::UserConsentRequest.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,15 +91,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -113,17 +111,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a user_consent_requests_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return UserConsentRequestsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a collection of userConsentRequest objects and their properties. diff --git a/lib/identity_governance/entitlement_management/access_package_assignment_approvals/access_package_assignment_approvals_request_builder.rb b/lib/identity_governance/entitlement_management/access_package_assignment_approvals/access_package_assignment_approvals_request_builder.rb index d8377f08a1..39deca153f 100644 --- a/lib/identity_governance/entitlement_management/access_package_assignment_approvals/access_package_assignment_approvals_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_package_assignment_approvals/access_package_assignment_approvals_request_builder.rb @@ -41,7 +41,7 @@ def by_approval_id(approval_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Provides operations to call the filterByCurrentUser method. @@ -53,7 +53,7 @@ def filter_by_current_user_with_on(on) return FilterByCurrentUserWithOnRequestBuilder.new(@path_parameters, @request_adapter, on) end ## - ## In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + ## Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of approval_collection_response ## @@ -62,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ApprovalCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,26 +77,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Approval.create_from_discriminator_value(pn) }, error_mapping) end ## - ## In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + ## Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_assignment_approvals_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageAssignmentApprovalsRequestBuilder.new(raw_url, @request_adapter) + end ## - # In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + # Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. class AccessPackageAssignmentApprovalsRequestBuilderGetQueryParameters ## diff --git a/lib/identity_governance/entitlement_management/access_package_assignment_approvals/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/access_package_assignment_approvals/count/count_request_builder.rb index de98d844b2..5e78d8a196 100644 --- a/lib/identity_governance/entitlement_management/access_package_assignment_approvals/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_package_assignment_approvals/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/access_package_assignment_approvals/filter_by_current_user_with_on/filter_by_current_user_with_on.rb b/lib/identity_governance/entitlement_management/access_package_assignment_approvals/filter_by_current_user_with_on/filter_by_current_user_with_on.rb index 720a62f905..0e09a13b0f 100644 --- a/lib/identity_governance/entitlement_management/access_package_assignment_approvals/filter_by_current_user_with_on/filter_by_current_user_with_on.rb +++ b/lib/identity_governance/entitlement_management/access_package_assignment_approvals/filter_by_current_user_with_on/filter_by_current_user_with_on.rb @@ -1 +1 @@ -require_relative 'filter_by_current_user_with_on_response' +require_relative 'filter_by_current_user_with_on_get_response' diff --git a/lib/identity_governance/entitlement_management/access_package_assignment_approvals/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb b/lib/identity_governance/entitlement_management/access_package_assignment_approvals/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb new file mode 100644 index 0000000000..e254f179cf --- /dev/null +++ b/lib/identity_governance/entitlement_management/access_package_assignment_approvals/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/approval' +require_relative '../../../../models/base_collection_pagination_count_response' +require_relative '../../../identity_governance' +require_relative '../../entitlement_management' +require_relative '../access_package_assignment_approvals' +require_relative './filter_by_current_user_with_on' + +module MicrosoftGraph + module IdentityGovernance + module EntitlementManagement + module AccessPackageAssignmentApprovals + module FilterByCurrentUserWithOn + class FilterByCurrentUserWithOnGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new FilterByCurrentUserWithOnGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a filter_by_current_user_with_on_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return FilterByCurrentUserWithOnGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Approval.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a approval + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/identity_governance/entitlement_management/access_package_assignment_approvals/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb b/lib/identity_governance/entitlement_management/access_package_assignment_approvals/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb index 9f5e7dfb30..5c475275ff 100644 --- a/lib/identity_governance/entitlement_management/access_package_assignment_approvals/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_package_assignment_approvals/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb @@ -23,49 +23,60 @@ class FilterByCurrentUserWithOnRequestBuilder < MicrosoftKiotaAbstractions::Base ## @return a void ## def initialize(path_parameters, request_adapter, on=nil) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function filterByCurrentUser + ## In Microsoft Entra entitlement management, return a collection of access package assignment approvals. The objects returned are those that are in scope for approval by the calling user. In PIM for groups, return a collection of assignment approvals. The objects returned are those that are in scope for approval by the calling user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of filter_by_current_user_with_on_response + ## @return a Fiber of filter_by_current_user_with_on_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::EntitlementManagement::AccessPackageAssignmentApprovals::FilterByCurrentUserWithOn::FilterByCurrentUserWithOnResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::EntitlementManagement::AccessPackageAssignmentApprovals::FilterByCurrentUserWithOn::FilterByCurrentUserWithOnGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function filterByCurrentUser + ## In Microsoft Entra entitlement management, return a collection of access package assignment approvals. The objects returned are those that are in scope for approval by the calling user. In PIM for groups, return a collection of assignment approvals. The objects returned are those that are in scope for approval by the calling user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a filter_by_current_user_with_on_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilterByCurrentUserWithOnRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function filterByCurrentUser + # In Microsoft Entra entitlement management, return a collection of access package assignment approvals. The objects returned are those that are in scope for approval by the calling user. In PIM for groups, return a collection of assignment approvals. The objects returned are those that are in scope for approval by the calling user. class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -93,6 +104,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/identity_governance/entitlement_management/access_package_assignment_approvals/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb b/lib/identity_governance/entitlement_management/access_package_assignment_approvals/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb deleted file mode 100644 index 490a7df022..0000000000 --- a/lib/identity_governance/entitlement_management/access_package_assignment_approvals/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/approval' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../identity_governance' -require_relative '../../entitlement_management' -require_relative '../access_package_assignment_approvals' -require_relative './filter_by_current_user_with_on' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module AccessPackageAssignmentApprovals - module FilterByCurrentUserWithOn - class FilterByCurrentUserWithOnResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a filter_by_current_user_with_on_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return FilterByCurrentUserWithOnResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Approval.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a approval - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/access_package_assignment_approvals/item/approval_item_request_builder.rb b/lib/identity_governance/entitlement_management/access_package_assignment_approvals/item/approval_item_request_builder.rb index dc4a593c90..fa2995ca13 100644 --- a/lib/identity_governance/entitlement_management/access_package_assignment_approvals/item/approval_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_package_assignment_approvals/item/approval_item_request_builder.rb @@ -29,7 +29,7 @@ def stages() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/{approval%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/{approval%2Did}{?%24expand,%24select}") end ## ## Delete navigation property accessPackageAssignmentApprovals for identityGovernance @@ -41,12 +41,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + ## Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of approval ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Approval.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Approval.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,31 +79,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + ## Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,20 +116,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a approval_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApprovalItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + # Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. class ApprovalItemRequestBuilderGetQueryParameters ## diff --git a/lib/identity_governance/entitlement_management/access_package_assignment_approvals/item/stages/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/access_package_assignment_approvals/item/stages/count/count_request_builder.rb index 3224f29f41..1f04ea7e72 100644 --- a/lib/identity_governance/entitlement_management/access_package_assignment_approvals/item/stages/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_package_assignment_approvals/item/stages/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/{approval%2Did}/stages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/{approval%2Did}/stages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/access_package_assignment_approvals/item/stages/item/approval_stage_item_request_builder.rb b/lib/identity_governance/entitlement_management/access_package_assignment_approvals/item/stages/item/approval_stage_item_request_builder.rb index 33cb772712..e1596f6df7 100644 --- a/lib/identity_governance/entitlement_management/access_package_assignment_approvals/item/stages/item/approval_stage_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_package_assignment_approvals/item/stages/item/approval_stage_item_request_builder.rb @@ -27,7 +27,7 @@ class ApprovalStageItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestB ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/{approval%2Did}/stages/{approvalStage%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/{approval%2Did}/stages/{approvalStage%2Did}{?%24expand,%24select}") end ## ## Delete navigation property stages for identityGovernance @@ -39,12 +39,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. + ## Retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of approval_stage ## @@ -53,12 +52,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ApprovalStage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## In Azure AD entitlement management, approve or deny an approvalStage object in an approval. + ## Approve or deny an approvalStage object in an approval. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of approval_stage @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ApprovalStage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,35 +77,36 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. + ## Retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## In Azure AD entitlement management, approve or deny an approvalStage object in an approval. + ## Approve or deny an approvalStage object in an approval. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -116,20 +114,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a approval_stage_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ApprovalStageItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. + # Retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. class ApprovalStageItemRequestBuilderGetQueryParameters ## diff --git a/lib/identity_governance/entitlement_management/access_package_assignment_approvals/item/stages/stages_request_builder.rb b/lib/identity_governance/entitlement_management/access_package_assignment_approvals/item/stages/stages_request_builder.rb index 1e48a35d92..1caea86b2c 100644 --- a/lib/identity_governance/entitlement_management/access_package_assignment_approvals/item/stages/stages_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_package_assignment_approvals/item/stages/stages_request_builder.rb @@ -44,10 +44,10 @@ def by_approval_stage_id(approval_stage_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/{approval%2Did}/stages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/{approval%2Did}/stages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + ## List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of approval_stage_collection_response ## @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ApprovalStageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,26 +71,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ApprovalStage.create_from_discriminator_value(pn) }, error_mapping) end ## - ## In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + ## List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a stages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return StagesRequestBuilder.new(raw_url, @request_adapter) + end ## - # In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + # List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. class StagesRequestBuilderGetQueryParameters ## diff --git a/lib/identity_governance/entitlement_management/access_packages/access_packages_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/access_packages_request_builder.rb index dbf9fb7340..02280fe3ca 100644 --- a/lib/identity_governance/entitlement_management/access_packages/access_packages_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/access_packages_request_builder.rb @@ -41,7 +41,7 @@ def by_access_package_id(access_package_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Provides operations to call the filterByCurrentUser method. @@ -62,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,8 +77,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,15 +87,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -109,17 +107,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_packages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackagesRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of accessPackage objects. The resulting list includes all the access packages that the caller has access to read, across all catalogs. diff --git a/lib/identity_governance/entitlement_management/access_packages/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/count/count_request_builder.rb index 16163714f9..5b987a4c96 100644 --- a/lib/identity_governance/entitlement_management/access_packages/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/access_packages/filter_by_current_user_with_on/filter_by_current_user_with_on.rb b/lib/identity_governance/entitlement_management/access_packages/filter_by_current_user_with_on/filter_by_current_user_with_on.rb index 720a62f905..0e09a13b0f 100644 --- a/lib/identity_governance/entitlement_management/access_packages/filter_by_current_user_with_on/filter_by_current_user_with_on.rb +++ b/lib/identity_governance/entitlement_management/access_packages/filter_by_current_user_with_on/filter_by_current_user_with_on.rb @@ -1 +1 @@ -require_relative 'filter_by_current_user_with_on_response' +require_relative 'filter_by_current_user_with_on_get_response' diff --git a/lib/identity_governance/entitlement_management/access_packages/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb b/lib/identity_governance/entitlement_management/access_packages/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb new file mode 100644 index 0000000000..7ca6a735a3 --- /dev/null +++ b/lib/identity_governance/entitlement_management/access_packages/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/access_package' +require_relative '../../../../models/base_collection_pagination_count_response' +require_relative '../../../identity_governance' +require_relative '../../entitlement_management' +require_relative '../access_packages' +require_relative './filter_by_current_user_with_on' + +module MicrosoftGraph + module IdentityGovernance + module EntitlementManagement + module AccessPackages + module FilterByCurrentUserWithOn + class FilterByCurrentUserWithOnGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new FilterByCurrentUserWithOnGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a filter_by_current_user_with_on_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return FilterByCurrentUserWithOnGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackage.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a access_package + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/identity_governance/entitlement_management/access_packages/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb index 2b292e3993..92c12685c5 100644 --- a/lib/identity_governance/entitlement_management/access_packages/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb @@ -23,49 +23,60 @@ class FilterByCurrentUserWithOnRequestBuilder < MicrosoftKiotaAbstractions::Base ## @return a void ## def initialize(path_parameters, request_adapter, on=nil) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function filterByCurrentUser + ## In Microsoft Entra Entitlement Management, retrieve a list of accessPackage objects filtered on the signed-in user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of filter_by_current_user_with_on_response + ## @return a Fiber of filter_by_current_user_with_on_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::EntitlementManagement::AccessPackages::FilterByCurrentUserWithOn::FilterByCurrentUserWithOnResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::EntitlementManagement::AccessPackages::FilterByCurrentUserWithOn::FilterByCurrentUserWithOnGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function filterByCurrentUser + ## In Microsoft Entra Entitlement Management, retrieve a list of accessPackage objects filtered on the signed-in user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a filter_by_current_user_with_on_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilterByCurrentUserWithOnRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function filterByCurrentUser + # In Microsoft Entra Entitlement Management, retrieve a list of accessPackage objects filtered on the signed-in user. class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -93,6 +104,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/identity_governance/entitlement_management/access_packages/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb b/lib/identity_governance/entitlement_management/access_packages/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb deleted file mode 100644 index a688cc9089..0000000000 --- a/lib/identity_governance/entitlement_management/access_packages/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/access_package' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../identity_governance' -require_relative '../../entitlement_management' -require_relative '../access_packages' -require_relative './filter_by_current_user_with_on' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module AccessPackages - module FilterByCurrentUserWithOn - class FilterByCurrentUserWithOnResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a filter_by_current_user_with_on_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return FilterByCurrentUserWithOnResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackage.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a access_package - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/access_packages/item/access_package_item_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/access_package_item_request_builder.rb index fa8e146993..f9b9bc2481 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/access_package_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/access_package_item_request_builder.rb @@ -65,7 +65,7 @@ def resource_role_scopes() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}{?%24expand,%24select}") end ## ## Delete an accessPackage object. You cannot delete an access package if it has any accessPackageAssignment. @@ -77,12 +77,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. + ## Retrieve the properties and relationships of an accessPackage object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of access_package ## @@ -91,8 +90,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -107,8 +105,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -118,31 +115,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. + ## Retrieve the properties and relationships of an accessPackage object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -154,20 +152,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. + # Retrieve the properties and relationships of an accessPackage object. class AccessPackageItemRequestBuilderGetQueryParameters ## diff --git a/lib/identity_governance/entitlement_management/access_packages/item/access_packages_incompatible_with/access_packages_incompatible_with_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/access_packages_incompatible_with/access_packages_incompatible_with_request_builder.rb index 7a5b813595..354fe470ee 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/access_packages_incompatible_with/access_packages_incompatible_with_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/access_packages_incompatible_with/access_packages_incompatible_with_request_builder.rb @@ -43,7 +43,7 @@ def by_access_package_id1(access_package_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/accessPackagesIncompatibleWith{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/accessPackagesIncompatibleWith{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_packages_incompatible_with_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackagesIncompatibleWithRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/access_packages_incompatible_with/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/access_packages_incompatible_with/count/count_request_builder.rb index 3e6198a79a..3902dd5a78 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/access_packages_incompatible_with/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/access_packages_incompatible_with/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/accessPackagesIncompatibleWith/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/accessPackagesIncompatibleWith/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/access_packages/item/access_packages_incompatible_with/item/access_package_item_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/access_packages_incompatible_with/item/access_package_item_request_builder.rb index 6cfb5f1f29..d64c29a8a6 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/access_packages_incompatible_with/item/access_package_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/access_packages_incompatible_with/item/access_package_item_request_builder.rb @@ -27,7 +27,7 @@ class AccessPackageItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestB ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/accessPackagesIncompatibleWith/{accessPackage%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/accessPackagesIncompatibleWith/{accessPackage%2Did1}{?%24expand,%24select}") end ## ## The access packages that are incompatible with this package. Read-only. @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The access packages that are incompatible with this package. Read-only. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/assignment_policies_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/assignment_policies_request_builder.rb index 3d65950d61..c445e9a1e3 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/assignment_policies_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/assignment_policies_request_builder.rb @@ -44,7 +44,7 @@ def by_access_package_assignment_policy_id(access_package_assignment_policy_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Read-only. Nullable. Supports $expand. @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignmentPolicyCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,8 +71,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignmentPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,15 +81,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,17 +101,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignment_policies_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentPoliciesRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/count/count_request_builder.rb index 8075e62c90..f9b977d7ec 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/access_package/access_package_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/access_package/access_package_request_builder.rb index 82dfcbb03b..f529506b14 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/access_package/access_package_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/access_package/access_package_request_builder.rb @@ -29,7 +29,7 @@ class AccessPackageRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/accessPackage{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/accessPackage{?%24expand,%24select}") end ## ## Access package containing this policy. Read-only. Supports $expand. @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageRequestBuilder.new(raw_url, @request_adapter) + end ## # Access package containing this policy. Read-only. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/access_package_assignment_policy_item_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/access_package_assignment_policy_item_request_builder.rb index ba240b3b5e..7f2745e2d3 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/access_package_assignment_policy_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/access_package_assignment_policy_item_request_builder.rb @@ -51,7 +51,7 @@ def questions() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}{?%24expand,%24select}") end ## ## Delete navigation property assignmentPolicies for identityGovernance @@ -63,8 +63,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -77,8 +76,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignmentPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,8 +91,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignmentPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -104,13 +101,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,15 +118,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -140,17 +138,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_assignment_policy_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageAssignmentPolicyItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/catalog/catalog_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/catalog/catalog_request_builder.rb index 06c9d9f5e6..db8d3b9e31 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/catalog/catalog_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/catalog/catalog_request_builder.rb @@ -29,7 +29,7 @@ class CatalogRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/catalog{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/catalog{?%24expand,%24select}") end ## ## Catalog of the access package containing this policy. Read-only. @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageCatalog.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a catalog_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CatalogRequestBuilder.new(raw_url, @request_adapter) + end ## # Catalog of the access package containing this policy. Read-only. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/custom_extension_stage_settings/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/custom_extension_stage_settings/count/count_request_builder.rb index 616c762dc9..bc30f59bd3 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/custom_extension_stage_settings/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/custom_extension_stage_settings/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/customExtensionStageSettings/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/customExtensionStageSettings/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/custom_extension_stage_settings/custom_extension_stage_settings_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/custom_extension_stage_settings/custom_extension_stage_settings_request_builder.rb index 4fec2ed370..95bc002764 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/custom_extension_stage_settings/custom_extension_stage_settings_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/custom_extension_stage_settings/custom_extension_stage_settings_request_builder.rb @@ -48,7 +48,7 @@ def by_custom_extension_stage_setting_id(custom_extension_stage_setting_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/customExtensionStageSettings{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/customExtensionStageSettings{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The collection of stages when to execute one or more custom access package workflow extensions. Supports $expand. @@ -60,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CustomExtensionStageSettingCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,8 +75,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CustomExtensionStageSetting.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,15 +85,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -107,17 +105,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a custom_extension_stage_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CustomExtensionStageSettingsRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of stages when to execute one or more custom access package workflow extensions. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/custom_extension_stage_settings/item/custom_extension/custom_extension_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/custom_extension_stage_settings/item/custom_extension/custom_extension_request_builder.rb index f0a727e489..d8c1329ad9 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/custom_extension_stage_settings/item/custom_extension/custom_extension_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/custom_extension_stage_settings/item/custom_extension/custom_extension_request_builder.rb @@ -33,7 +33,7 @@ class CustomExtensionRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/customExtensionStageSettings/{customExtensionStageSetting%2Did}/customExtension{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/customExtensionStageSettings/{customExtensionStageSetting%2Did}/customExtension{?%24expand,%24select}") end ## ## Indicates the custom workflow extension that will be executed at this stage. Nullable. Supports $expand. @@ -45,8 +45,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CustomCalloutExtension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a custom_extension_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CustomExtensionRequestBuilder.new(raw_url, @request_adapter) + end ## # Indicates the custom workflow extension that will be executed at this stage. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/custom_extension_stage_settings/item/custom_extension_stage_setting_item_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/custom_extension_stage_settings/item/custom_extension_stage_setting_item_request_builder.rb index 8931b5f3ba..ee9d2e6ef5 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/custom_extension_stage_settings/item/custom_extension_stage_setting_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/custom_extension_stage_settings/item/custom_extension_stage_setting_item_request_builder.rb @@ -37,7 +37,7 @@ def custom_extension() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/customExtensionStageSettings/{customExtensionStageSetting%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/customExtensionStageSettings/{customExtensionStageSetting%2Did}{?%24expand,%24select}") end ## ## Delete navigation property customExtensionStageSettings for identityGovernance @@ -49,8 +49,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CustomExtensionStageSetting.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,8 +77,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CustomExtensionStageSetting.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,13 +87,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -106,15 +104,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,17 +124,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a custom_extension_stage_setting_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CustomExtensionStageSettingItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of stages when to execute one or more custom access package workflow extensions. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/questions/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/questions/count/count_request_builder.rb index 2df15a65c3..72f750b9d1 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/questions/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/questions/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/questions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/questions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/questions/item/access_package_question_item_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/questions/item/access_package_question_item_request_builder.rb index 9387e9957d..971d992253 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/questions/item/access_package_question_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/questions/item/access_package_question_item_request_builder.rb @@ -31,7 +31,7 @@ class AccessPackageQuestionItemRequestBuilder < MicrosoftKiotaAbstractions::Base ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/questions/{accessPackageQuestion%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/questions/{accessPackageQuestion%2Did}{?%24expand,%24select}") end ## ## Delete navigation property questions for identityGovernance @@ -43,8 +43,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -57,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageQuestion.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -73,8 +71,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageQuestion.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,13 +81,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -100,15 +98,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -120,17 +118,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_question_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageQuestionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Questions that are posed to the requestor. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/questions/questions_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/questions/questions_request_builder.rb index faca273578..0e8dacb542 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/questions/questions_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/assignment_policies/item/questions/questions_request_builder.rb @@ -48,7 +48,7 @@ def by_access_package_question_id(access_package_question_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/questions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/questions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Questions that are posed to the requestor. @@ -60,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageQuestionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,8 +75,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageQuestion.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,15 +85,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -107,17 +105,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a questions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return QuestionsRequestBuilder.new(raw_url, @request_adapter) + end ## # Questions that are posed to the requestor. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/catalog/catalog_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/catalog/catalog_request_builder.rb index d81103871a..e411bcb9f7 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/catalog/catalog_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/catalog/catalog_request_builder.rb @@ -25,7 +25,7 @@ class CatalogRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/catalog{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/catalog{?%24expand,%24select}") end ## ## Required when creating the access package. Read-only. Nullable. @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageCatalog.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a catalog_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CatalogRequestBuilder.new(raw_url, @request_adapter) + end ## # Required when creating the access package. Read-only. Nullable. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/get_applicable_policy_requirements/get_applicable_policy_requirements.rb b/lib/identity_governance/entitlement_management/access_packages/item/get_applicable_policy_requirements/get_applicable_policy_requirements.rb index bb00b9ea3f..c3aaa3e0e3 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/get_applicable_policy_requirements/get_applicable_policy_requirements.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/get_applicable_policy_requirements/get_applicable_policy_requirements.rb @@ -1 +1 @@ -require_relative 'get_applicable_policy_requirements_response' +require_relative 'get_applicable_policy_requirements_post_response' diff --git a/lib/identity_governance/entitlement_management/access_packages/item/get_applicable_policy_requirements/get_applicable_policy_requirements_post_response.rb b/lib/identity_governance/entitlement_management/access_packages/item/get_applicable_policy_requirements/get_applicable_policy_requirements_post_response.rb new file mode 100644 index 0000000000..9edae5e634 --- /dev/null +++ b/lib/identity_governance/entitlement_management/access_packages/item/get_applicable_policy_requirements/get_applicable_policy_requirements_post_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/access_package_assignment_request_requirements' +require_relative '../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../identity_governance' +require_relative '../../../entitlement_management' +require_relative '../../access_packages' +require_relative '../item' +require_relative './get_applicable_policy_requirements' + +module MicrosoftGraph + module IdentityGovernance + module EntitlementManagement + module AccessPackages + module Item + module GetApplicablePolicyRequirements + class GetApplicablePolicyRequirementsPostResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new GetApplicablePolicyRequirementsPostResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a get_applicable_policy_requirements_post_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetApplicablePolicyRequirementsPostResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignmentRequestRequirements.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a access_package_assignment_request_requirements + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/identity_governance/entitlement_management/access_packages/item/get_applicable_policy_requirements/get_applicable_policy_requirements_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/get_applicable_policy_requirements/get_applicable_policy_requirements_request_builder.rb index 07e31a3464..9a349d85e1 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/get_applicable_policy_requirements/get_applicable_policy_requirements_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/get_applicable_policy_requirements/get_applicable_policy_requirements_request_builder.rb @@ -27,36 +27,44 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/getApplicablePolicyRequirements") end ## - ## In Azure AD entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. + ## In Microsoft Entra entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_applicable_policy_requirements_response + ## @return a Fiber of get_applicable_policy_requirements_post_response ## def post(request_configuration=nil) request_info = self.to_post_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::EntitlementManagement::AccessPackages::Item::GetApplicablePolicyRequirements::GetApplicablePolicyRequirementsResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::EntitlementManagement::AccessPackages::Item::GetApplicablePolicyRequirements::GetApplicablePolicyRequirementsPostResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## In Azure AD entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. + ## In Microsoft Entra entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a get_applicable_policy_requirements_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return GetApplicablePolicyRequirementsRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity_governance/entitlement_management/access_packages/item/get_applicable_policy_requirements/get_applicable_policy_requirements_response.rb b/lib/identity_governance/entitlement_management/access_packages/item/get_applicable_policy_requirements/get_applicable_policy_requirements_response.rb deleted file mode 100644 index c878e2d75b..0000000000 --- a/lib/identity_governance/entitlement_management/access_packages/item/get_applicable_policy_requirements/get_applicable_policy_requirements_response.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/access_package_assignment_request_requirements' -require_relative '../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../identity_governance' -require_relative '../../../entitlement_management' -require_relative '../../access_packages' -require_relative '../item' -require_relative './get_applicable_policy_requirements' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module AccessPackages - module Item - module GetApplicablePolicyRequirements - class GetApplicablePolicyRequirementsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getApplicablePolicyRequirementsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_applicable_policy_requirements_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetApplicablePolicyRequirementsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignmentRequestRequirements.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a access_package_assignment_request_requirements - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/access_packages/item/incompatible_access_packages/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_access_packages/count/count_request_builder.rb index a672b94b06..ca4dabaf32 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/incompatible_access_packages/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_access_packages/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/access_packages/item/incompatible_access_packages/incompatible_access_packages_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_access_packages/incompatible_access_packages_request_builder.rb index 8d03631aa1..16a1499fb9 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/incompatible_access_packages/incompatible_access_packages_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_access_packages/incompatible_access_packages_request_builder.rb @@ -33,7 +33,7 @@ def ref() end ## ## Gets an item from the MicrosoftGraph.identityGovernance.entitlementManagement.accessPackages.item.incompatibleAccessPackages.item collection - ## @param access_package_id1 Unique identifier of the item + ## @param access_package_id1 The unique identifier of accessPackage ## @return a access_package_item_request_builder ## def by_access_package_id1(access_package_id1) @@ -49,7 +49,7 @@ def by_access_package_id1(access_package_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. @@ -61,8 +61,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,17 +71,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a incompatible_access_packages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IncompatibleAccessPackagesRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/incompatible_access_packages/item/ref/ref_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_access_packages/item/ref/ref_request_builder.rb index 3f301df58d..4f56dfd59e 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/incompatible_access_packages/item/ref/ref_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_access_packages/item/ref/ref_request_builder.rb @@ -28,7 +28,7 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/{accessPackage%2Did1}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/{accessPackage%2Did1}/$ref") end ## ## Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. @@ -40,8 +40,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,38 +50,24 @@ def delete(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/identity_governance/entitlement_management/access_packages/item/incompatible_access_packages/ref/ref_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_access_packages/ref/ref_request_builder.rb index 3c3d914ac3..922b84b5b5 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/incompatible_access_packages/ref/ref_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_access_packages/ref/ref_request_builder.rb @@ -28,7 +28,20 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") + end + ## + ## Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) end ## ## Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. @@ -40,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,26 +68,43 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## + ## Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/$ref?@id={%40id}' + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## ## Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -87,16 +116,49 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end ## # Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/count/count_request_builder.rb index 38f454499e..7583eb629c 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/incompatible_groups_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/incompatible_groups_request_builder.rb index 97c456afa7..56ec89a3e0 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/incompatible_groups_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/incompatible_groups_request_builder.rb @@ -33,7 +33,7 @@ def ref() end ## ## Gets an item from the MicrosoftGraph.identityGovernance.entitlementManagement.accessPackages.item.incompatibleGroups.item collection - ## @param group_id Unique identifier of the item + ## @param group_id The unique identifier of group ## @return a group_item_request_builder ## def by_group_id(group_id) @@ -49,7 +49,7 @@ def by_group_id(group_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. @@ -61,8 +61,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::GroupCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,17 +71,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a incompatible_groups_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return IncompatibleGroupsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/item/group_item_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/item/group_item_request_builder.rb index 2a66db1925..ce2a88ad69 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/item/group_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/item/group_item_request_builder.rb @@ -7,6 +7,7 @@ require_relative '../incompatible_groups' require_relative './item' require_relative './ref/ref_request_builder' +require_relative './service_provisioning_errors/service_provisioning_errors_request_builder' module MicrosoftGraph module IdentityGovernance @@ -25,6 +26,11 @@ def ref() return MicrosoftGraph::IdentityGovernance::EntitlementManagement::AccessPackages::Item::IncompatibleGroups::Item::Ref::RefRequestBuilder.new(@path_parameters, @request_adapter) end ## + # The serviceProvisioningErrors property + def service_provisioning_errors() + return MicrosoftGraph::IdentityGovernance::EntitlementManagement::AccessPackages::Item::IncompatibleGroups::Item::ServiceProvisioningErrors::ServiceProvisioningErrorsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## ## Instantiates a new GroupItemRequestBuilder and sets the default values. ## @param path_parameters Path parameters for the request ## @param request_adapter The request adapter to use to execute the requests. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/item/ref/ref_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/item/ref/ref_request_builder.rb index d9a2da9764..f55ffbec1c 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/item/ref/ref_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/item/ref/ref_request_builder.rb @@ -28,7 +28,7 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/{group%2Did}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/{group%2Did}/$ref") end ## ## Remove a group from the list of groups that have been marked as incompatible on an accessPackage. @@ -40,8 +40,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,38 +50,24 @@ def delete(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Remove a group from the list of groups that have been marked as incompatible on an accessPackage. - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/item/service_provisioning_errors/count/count.rb b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/item/service_provisioning_errors/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/item/service_provisioning_errors/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/item/service_provisioning_errors/count/count_request_builder.rb new file mode 100644 index 0000000000..f773f5686e --- /dev/null +++ b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/item/service_provisioning_errors/count/count_request_builder.rb @@ -0,0 +1,112 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../identity_governance' +require_relative '../../../../../../entitlement_management' +require_relative '../../../../../access_packages' +require_relative '../../../../item' +require_relative '../../../incompatible_groups' +require_relative '../../item' +require_relative '../service_provisioning_errors' +require_relative './count' + +module MicrosoftGraph + module IdentityGovernance + module EntitlementManagement + module AccessPackages + module Item + module IncompatibleGroups + module Item + module ServiceProvisioningErrors + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/{group%2Did}/serviceProvisioningErrors/$count{?%24filter,%24search}") + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/item/service_provisioning_errors/service_provisioning_errors.rb b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/item/service_provisioning_errors/service_provisioning_errors.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/item/service_provisioning_errors/service_provisioning_errors_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/item/service_provisioning_errors/service_provisioning_errors_request_builder.rb new file mode 100644 index 0000000000..050148e4bb --- /dev/null +++ b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/item/service_provisioning_errors/service_provisioning_errors_request_builder.rb @@ -0,0 +1,146 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors_o_data_error' +require_relative '../../../../../../../models/service_provisioning_error_collection_response' +require_relative '../../../../../../identity_governance' +require_relative '../../../../../entitlement_management' +require_relative '../../../../access_packages' +require_relative '../../../item' +require_relative '../../incompatible_groups' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './service_provisioning_errors' + +module MicrosoftGraph + module IdentityGovernance + module EntitlementManagement + module AccessPackages + module Item + module IncompatibleGroups + module Item + module ServiceProvisioningErrors + ## + # Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\incompatibleGroups\{group-id}\serviceProvisioningErrors + class ServiceProvisioningErrorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::IdentityGovernance::EntitlementManagement::AccessPackages::Item::IncompatibleGroups::Item::ServiceProvisioningErrors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + ## Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + ## @param path_parameters Path parameters for the request + ## @param request_adapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/{group%2Did}/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of service_provisioning_error_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ServiceProvisioningErrorCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a service_provisioning_errors_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ServiceProvisioningErrorsRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). + class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/ref/ref_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/ref/ref_request_builder.rb index 0d2d5f6d85..86e10ccc9b 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/ref/ref_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/incompatible_groups/ref/ref_request_builder.rb @@ -28,7 +28,20 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") + end + ## + ## Remove a group from the list of groups that have been marked as incompatible on an accessPackage. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) end ## ## Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. @@ -40,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,26 +68,43 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## + ## Remove a group from the list of groups that have been marked as incompatible on an accessPackage. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/$ref?@id={%40id}' + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## ## Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -87,16 +116,49 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Remove a group from the list of groups that have been marked as incompatible on an accessPackage. + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end ## # Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/count/count_request_builder.rb index 819552deea..89736dc9ba 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/access_package_resource_role_scope_item_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/access_package_resource_role_scope_item_request_builder.rb index 3a23a4d247..36cade2dca 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/access_package_resource_role_scope_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/access_package_resource_role_scope_item_request_builder.rb @@ -39,10 +39,10 @@ def scope() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}{?%24expand,%24select}") end ## - ## Remove a accessPackageResourceRoleScope from an accessPackage list of resource role scopes. + ## Remove an accessPackageResourceRoleScope from an accessPackage list of resource role scopes. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -51,8 +51,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRoleScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,24 +79,24 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRoleScope.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Remove a accessPackageResourceRoleScope from an accessPackage list of resource role scopes. + ## Remove an accessPackageResourceRoleScope from an accessPackage list of resource role scopes. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,15 +106,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,17 +126,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_role_scope_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceRoleScopeItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The resource roles and scopes in this access package. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/environment/environment_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/environment/environment_request_builder.rb index f6daf66bb1..991f40d2c7 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/environment/environment_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/environment/environment_request_builder.rb @@ -33,7 +33,7 @@ class EnvironmentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/environment{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/environment{?%24expand,%24select}") end ## ## Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. @@ -45,8 +45,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceEnvironment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a environment_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EnvironmentRequestBuilder.new(raw_url, @request_adapter) + end ## # Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/resource_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/resource_request_builder.rb index 3e445c4995..453f34c750 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/resource_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/resource_request_builder.rb @@ -49,7 +49,7 @@ def scopes() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource{?%24expand,%24select}") end ## ## Delete navigation property resource for identityGovernance @@ -61,8 +61,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -75,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,13 +99,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,15 +116,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,17 +136,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resource_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get resource from identityGovernance diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/roles/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/roles/count/count_request_builder.rb index 040faa732a..b5b9dd8f55 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/roles/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/roles/count/count_request_builder.rb @@ -34,7 +34,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/roles/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/roles/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -46,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -57,17 +56,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/roles/item/access_package_resource_role_item_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/roles/item/access_package_resource_role_item_request_builder.rb index ea052e165d..6d3e4bda48 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/roles/item/access_package_resource_role_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/roles/item/access_package_resource_role_item_request_builder.rb @@ -35,7 +35,7 @@ class AccessPackageResourceRoleItemRequestBuilder < MicrosoftKiotaAbstractions:: ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/roles/{accessPackageResourceRole%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/roles/{accessPackageResourceRole%2Did}{?%24expand,%24select}") end ## ## Delete navigation property roles for identityGovernance @@ -47,8 +47,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,13 +85,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -104,15 +102,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,17 +122,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_role_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceRoleItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/roles/roles_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/roles/roles_request_builder.rb index 2048d7d5ec..277450e543 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/roles/roles_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/roles/roles_request_builder.rb @@ -52,7 +52,7 @@ def by_access_package_resource_role_id(access_package_resource_role_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/roles{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/roles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Read-only. Nullable. Supports $expand. @@ -64,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRoleCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,8 +79,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,15 +89,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -111,17 +109,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a roles_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RolesRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/count/count_request_builder.rb index bacfd16aab..e7a80bb529 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/count/count_request_builder.rb @@ -34,7 +34,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -46,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -57,17 +56,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/access_package_resource_scope_item_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/access_package_resource_scope_item_request_builder.rb index d3e6c7085b..d4cb6b674e 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/access_package_resource_scope_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/access_package_resource_scope_item_request_builder.rb @@ -41,7 +41,7 @@ def resource() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}{?%24expand,%24select}") end ## ## Delete navigation property scopes for identityGovernance @@ -53,8 +53,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,8 +81,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -94,13 +91,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,15 +108,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -130,17 +128,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_scope_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceScopeItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/resource/environment/environment_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/resource/environment/environment_request_builder.rb index ab44f7e242..f58fffc37f 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/resource/environment/environment_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/resource/environment/environment_request_builder.rb @@ -39,7 +39,7 @@ class EnvironmentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/environment{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/environment{?%24expand,%24select}") end ## ## Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceEnvironment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a environment_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EnvironmentRequestBuilder.new(raw_url, @request_adapter) + end ## # Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/resource/resource_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/resource/resource_request_builder.rb index 68bb48a31c..1f4ae44885 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/resource/resource_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/resource/resource_request_builder.rb @@ -49,7 +49,7 @@ def roles() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource{?%24expand,%24select}") end ## ## Delete navigation property resource for identityGovernance @@ -61,8 +61,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -75,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,13 +99,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,15 +116,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,17 +136,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resource_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get resource from identityGovernance diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/resource/roles/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/resource/roles/count/count_request_builder.rb index 602e1e8fb6..04bc0e338a 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/resource/roles/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/resource/roles/count/count_request_builder.rb @@ -40,7 +40,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -63,17 +62,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/resource/roles/item/access_package_resource_role_item_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/resource/roles/item/access_package_resource_role_item_request_builder.rb index cd1b3369eb..dc5fad9451 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/resource/roles/item/access_package_resource_role_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/resource/roles/item/access_package_resource_role_item_request_builder.rb @@ -41,7 +41,7 @@ class AccessPackageResourceRoleItemRequestBuilder < MicrosoftKiotaAbstractions:: ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}{?%24expand,%24select}") end ## ## Delete navigation property roles for identityGovernance @@ -53,8 +53,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,8 +81,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -94,13 +91,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,15 +108,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -130,17 +128,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_role_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceRoleItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/resource/roles/roles_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/resource/roles/roles_request_builder.rb index 8a55e608f3..da3b9551ae 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/resource/roles/roles_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/item/resource/roles/roles_request_builder.rb @@ -58,7 +58,7 @@ def by_access_package_resource_role_id(access_package_resource_role_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Read-only. Nullable. Supports $expand. @@ -70,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRoleCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,8 +85,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -97,15 +95,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -117,17 +115,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a roles_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RolesRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/scopes_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/scopes_request_builder.rb index 9dee0e28ce..0bdb987dfd 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/scopes_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/resource/scopes/scopes_request_builder.rb @@ -52,7 +52,7 @@ def by_access_package_resource_scope_id(access_package_resource_scope_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Read-only. Nullable. Supports $expand. @@ -64,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScopeCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,8 +79,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,15 +89,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -111,17 +109,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a scopes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ScopesRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/role_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/role_request_builder.rb index b1c863f129..8fd6e667b4 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/role_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/role/role_request_builder.rb @@ -35,7 +35,7 @@ def resource() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role{?%24expand,%24select}") end ## ## Delete navigation property role for identityGovernance @@ -47,8 +47,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,13 +85,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -104,15 +102,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,17 +122,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a role_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RoleRequestBuilder.new(raw_url, @request_adapter) + end ## # Get role from identityGovernance diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/environment/environment_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/environment/environment_request_builder.rb index 07d2b2b95c..8a51cae5d2 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/environment/environment_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/environment/environment_request_builder.rb @@ -33,7 +33,7 @@ class EnvironmentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/environment{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/environment{?%24expand,%24select}") end ## ## Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. @@ -45,8 +45,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceEnvironment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,17 +55,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a environment_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EnvironmentRequestBuilder.new(raw_url, @request_adapter) + end ## # Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/resource_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/resource_request_builder.rb index 56b2892d71..7bf3e73baf 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/resource_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/resource_request_builder.rb @@ -49,7 +49,7 @@ def scopes() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource{?%24expand,%24select}") end ## ## Delete navigation property resource for identityGovernance @@ -61,8 +61,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -75,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,13 +99,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,15 +116,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,17 +136,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resource_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get resource from identityGovernance diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/count/count_request_builder.rb index 31e0df65a3..898b68921a 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/count/count_request_builder.rb @@ -34,7 +34,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -46,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -57,17 +56,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/access_package_resource_role_item_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/access_package_resource_role_item_request_builder.rb index 7cf8659551..293f98528a 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/access_package_resource_role_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/access_package_resource_role_item_request_builder.rb @@ -41,7 +41,7 @@ def resource() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}{?%24expand,%24select}") end ## ## Delete navigation property roles for identityGovernance @@ -53,8 +53,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,8 +81,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -94,13 +91,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,15 +108,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -130,17 +128,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_role_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceRoleItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/resource/environment/environment_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/resource/environment/environment_request_builder.rb index ab5953a4ef..f53dee5551 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/resource/environment/environment_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/resource/environment/environment_request_builder.rb @@ -39,7 +39,7 @@ class EnvironmentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/environment{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/environment{?%24expand,%24select}") end ## ## Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. @@ -51,8 +51,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceEnvironment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -62,17 +61,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a environment_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EnvironmentRequestBuilder.new(raw_url, @request_adapter) + end ## # Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/resource/resource_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/resource/resource_request_builder.rb index 68bdd3e3ad..b02725614b 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/resource/resource_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/resource/resource_request_builder.rb @@ -49,7 +49,7 @@ def scopes() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource{?%24expand,%24select}") end ## ## Delete navigation property resource for identityGovernance @@ -61,8 +61,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -75,8 +74,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,8 +89,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -102,13 +99,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,15 +116,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -138,17 +136,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resource_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get resource from identityGovernance diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/resource/scopes/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/resource/scopes/count/count_request_builder.rb index c3e621a0da..8b1937accd 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/resource/scopes/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/resource/scopes/count/count_request_builder.rb @@ -40,7 +40,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -63,17 +62,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb index 9785a1eba6..4909baf61f 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb @@ -41,7 +41,7 @@ class AccessPackageResourceScopeItemRequestBuilder < MicrosoftKiotaAbstractions: ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}{?%24expand,%24select}") end ## ## Delete navigation property scopes for identityGovernance @@ -53,8 +53,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -67,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,8 +81,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -94,13 +91,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -110,15 +108,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -130,17 +128,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_scope_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceScopeItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/resource/scopes/scopes_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/resource/scopes/scopes_request_builder.rb index 55804f42b3..e96a087dd9 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/resource/scopes/scopes_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/item/resource/scopes/scopes_request_builder.rb @@ -58,7 +58,7 @@ def by_access_package_resource_scope_id(access_package_resource_scope_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Read-only. Nullable. Supports $expand. @@ -70,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScopeCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,8 +85,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -97,15 +95,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -117,17 +115,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a scopes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ScopesRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/roles_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/roles_request_builder.rb index 4ba469d28d..317d7213c3 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/roles_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/roles/roles_request_builder.rb @@ -52,7 +52,7 @@ def by_access_package_resource_role_id(access_package_resource_role_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Read-only. Nullable. Supports $expand. @@ -64,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRoleCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,8 +79,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,15 +89,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -111,17 +109,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a roles_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RolesRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/scopes/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/scopes/count/count_request_builder.rb index a12e84c775..2144a2d806 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/scopes/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/scopes/count/count_request_builder.rb @@ -34,7 +34,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/scopes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/scopes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -46,8 +46,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -57,17 +56,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/scopes/item/access_package_resource_scope_item_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/scopes/item/access_package_resource_scope_item_request_builder.rb index 3e83491d82..85a2cfd807 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/scopes/item/access_package_resource_scope_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/scopes/item/access_package_resource_scope_item_request_builder.rb @@ -35,7 +35,7 @@ class AccessPackageResourceScopeItemRequestBuilder < MicrosoftKiotaAbstractions: ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/scopes/{accessPackageResourceScope%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/scopes/{accessPackageResourceScope%2Did}{?%24expand,%24select}") end ## ## Delete navigation property scopes for identityGovernance @@ -47,8 +47,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,13 +85,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -104,15 +102,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,17 +122,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_scope_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceScopeItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/scopes/scopes_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/scopes/scopes_request_builder.rb index 818c7d460c..be005209f1 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/scopes/scopes_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/resource/scopes/scopes_request_builder.rb @@ -52,7 +52,7 @@ def by_access_package_resource_scope_id(access_package_resource_scope_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/scopes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/scopes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Read-only. Nullable. Supports $expand. @@ -64,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScopeCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,8 +79,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -91,15 +89,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -111,17 +109,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a scopes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ScopesRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/scope_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/scope_request_builder.rb index db370510eb..03a16ee8ae 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/scope_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/item/scope/scope_request_builder.rb @@ -35,7 +35,7 @@ def resource() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope{?%24expand,%24select}") end ## ## Delete navigation property scope for identityGovernance @@ -47,8 +47,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,13 +85,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -104,15 +102,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,17 +122,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a scope_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ScopeRequestBuilder.new(raw_url, @request_adapter) + end ## # Get scope from identityGovernance diff --git a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/resource_role_scopes_request_builder.rb b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/resource_role_scopes_request_builder.rb index d03ebd3f3c..a1f760843b 100644 --- a/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/resource_role_scopes_request_builder.rb +++ b/lib/identity_governance/entitlement_management/access_packages/item/resource_role_scopes/resource_role_scopes_request_builder.rb @@ -44,7 +44,7 @@ def by_access_package_resource_role_scope_id(access_package_resource_role_scope_ ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The resource roles and scopes in this access package. @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRoleScopeCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,8 +71,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRoleScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,15 +81,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,17 +101,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resource_role_scopes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourceRoleScopesRequestBuilder.new(raw_url, @request_adapter) + end ## # The resource roles and scopes in this access package. diff --git a/lib/identity_governance/entitlement_management/assignment_policies/assignment_policies_request_builder.rb b/lib/identity_governance/entitlement_management/assignment_policies/assignment_policies_request_builder.rb index 48fdced534..0a8a6d80ee 100644 --- a/lib/identity_governance/entitlement_management/assignment_policies/assignment_policies_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignment_policies/assignment_policies_request_builder.rb @@ -40,10 +40,10 @@ def by_access_package_assignment_policy_id(access_package_assignment_policy_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## In Azure AD entitlement management, retrieve a list of accessPackageAssignmentPolicy objects. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=accessPackageAssignmentPolicies as a query parameter. + ## Retrieve a list of accessPackageAssignmentPolicy objects in Microsoft Entra entitlement management. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=assignmentPolicies as a query parameter. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of access_package_assignment_policy_collection_response ## @@ -52,12 +52,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignmentPolicyCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## In Azure AD entitlement management, create a new accessPackageAssignmentPolicy object. The request will include a reference to the accessPackage that will contain this policy, which must already exist. + ## Create a new accessPackageAssignmentPolicy object in Microsoft Entra entitlement management. The request includes a reference to the accessPackage that contains this policy, which must already exist. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of access_package_assignment_policy @@ -68,30 +67,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignmentPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## - ## In Azure AD entitlement management, retrieve a list of accessPackageAssignmentPolicy objects. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=accessPackageAssignmentPolicies as a query parameter. + ## Retrieve a list of accessPackageAssignmentPolicy objects in Microsoft Entra entitlement management. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=assignmentPolicies as a query parameter. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## In Azure AD entitlement management, create a new accessPackageAssignmentPolicy object. The request will include a reference to the accessPackage that will contain this policy, which must already exist. + ## Create a new accessPackageAssignmentPolicy object in Microsoft Entra entitlement management. The request includes a reference to the accessPackage that contains this policy, which must already exist. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -99,20 +97,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignment_policies_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentPoliciesRequestBuilder.new(raw_url, @request_adapter) + end ## - # In Azure AD entitlement management, retrieve a list of accessPackageAssignmentPolicy objects. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=accessPackageAssignmentPolicies as a query parameter. + # Retrieve a list of accessPackageAssignmentPolicy objects in Microsoft Entra entitlement management. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=assignmentPolicies as a query parameter. class AssignmentPoliciesRequestBuilderGetQueryParameters ## diff --git a/lib/identity_governance/entitlement_management/assignment_policies/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/assignment_policies/count/count_request_builder.rb index 6c47145aaa..aded207d1e 100644 --- a/lib/identity_governance/entitlement_management/assignment_policies/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignment_policies/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/assignment_policies/item/access_package/access_package_request_builder.rb b/lib/identity_governance/entitlement_management/assignment_policies/item/access_package/access_package_request_builder.rb index e8da4973aa..ebd9a54271 100644 --- a/lib/identity_governance/entitlement_management/assignment_policies/item/access_package/access_package_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignment_policies/item/access_package/access_package_request_builder.rb @@ -25,7 +25,7 @@ class AccessPackageRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/accessPackage{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/accessPackage{?%24expand,%24select}") end ## ## Access package containing this policy. Read-only. Supports $expand. @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageRequestBuilder.new(raw_url, @request_adapter) + end ## # Access package containing this policy. Read-only. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/assignment_policies/item/access_package_assignment_policy_item_request_builder.rb b/lib/identity_governance/entitlement_management/assignment_policies/item/access_package_assignment_policy_item_request_builder.rb index c6b7b54773..edf3ba4cdc 100644 --- a/lib/identity_governance/entitlement_management/assignment_policies/item/access_package_assignment_policy_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignment_policies/item/access_package_assignment_policy_item_request_builder.rb @@ -47,10 +47,10 @@ def questions() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}{?%24expand,%24select}") end ## - ## In Azure AD entitlement management, delete an accessPackageAssignmentPolicy. + ## In Microsoft Entra entitlement management, delete an accessPackageAssignmentPolicy. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -59,12 +59,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. + ## In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of access_package_assignment_policy ## @@ -73,12 +72,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignmentPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the navigation property assignmentPolicies in identityGovernance + ## Update an existing accessPackageAssignmentPolicy object to change one or more of its properties, such as the display name or description. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of access_package_assignment_policy @@ -89,46 +87,46 @@ def put(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignmentPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## - ## In Azure AD entitlement management, delete an accessPackageAssignmentPolicy. + ## In Microsoft Entra entitlement management, delete an accessPackageAssignmentPolicy. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. + ## In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the navigation property assignmentPolicies in identityGovernance + ## Update an existing accessPackageAssignmentPolicy object to change one or more of its properties, such as the display name or description. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -136,20 +134,29 @@ def to_get_request_information(request_configuration=nil) def to_put_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PUT - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_assignment_policy_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageAssignmentPolicyItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. + # In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. class AccessPackageAssignmentPolicyItemRequestBuilderGetQueryParameters ## diff --git a/lib/identity_governance/entitlement_management/assignment_policies/item/catalog/catalog_request_builder.rb b/lib/identity_governance/entitlement_management/assignment_policies/item/catalog/catalog_request_builder.rb index 71b55dc52c..fa7de569db 100644 --- a/lib/identity_governance/entitlement_management/assignment_policies/item/catalog/catalog_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignment_policies/item/catalog/catalog_request_builder.rb @@ -25,7 +25,7 @@ class CatalogRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/catalog{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/catalog{?%24expand,%24select}") end ## ## Catalog of the access package containing this policy. Read-only. @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageCatalog.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a catalog_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CatalogRequestBuilder.new(raw_url, @request_adapter) + end ## # Catalog of the access package containing this policy. Read-only. diff --git a/lib/identity_governance/entitlement_management/assignment_policies/item/custom_extension_stage_settings/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/assignment_policies/item/custom_extension_stage_settings/count/count_request_builder.rb index d20283ea85..5879493584 100644 --- a/lib/identity_governance/entitlement_management/assignment_policies/item/custom_extension_stage_settings/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignment_policies/item/custom_extension_stage_settings/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/customExtensionStageSettings/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/customExtensionStageSettings/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/assignment_policies/item/custom_extension_stage_settings/custom_extension_stage_settings_request_builder.rb b/lib/identity_governance/entitlement_management/assignment_policies/item/custom_extension_stage_settings/custom_extension_stage_settings_request_builder.rb index 6739be9997..8b8c1ffe5d 100644 --- a/lib/identity_governance/entitlement_management/assignment_policies/item/custom_extension_stage_settings/custom_extension_stage_settings_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignment_policies/item/custom_extension_stage_settings/custom_extension_stage_settings_request_builder.rb @@ -44,7 +44,7 @@ def by_custom_extension_stage_setting_id(custom_extension_stage_setting_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/customExtensionStageSettings{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/customExtensionStageSettings{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The collection of stages when to execute one or more custom access package workflow extensions. Supports $expand. @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CustomExtensionStageSettingCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,8 +71,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CustomExtensionStageSetting.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,15 +81,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,17 +101,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a custom_extension_stage_settings_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CustomExtensionStageSettingsRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of stages when to execute one or more custom access package workflow extensions. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/assignment_policies/item/custom_extension_stage_settings/item/custom_extension/custom_extension_request_builder.rb b/lib/identity_governance/entitlement_management/assignment_policies/item/custom_extension_stage_settings/item/custom_extension/custom_extension_request_builder.rb index 36c106d857..1d4aafa6f9 100644 --- a/lib/identity_governance/entitlement_management/assignment_policies/item/custom_extension_stage_settings/item/custom_extension/custom_extension_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignment_policies/item/custom_extension_stage_settings/item/custom_extension/custom_extension_request_builder.rb @@ -29,7 +29,7 @@ class CustomExtensionRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBui ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/customExtensionStageSettings/{customExtensionStageSetting%2Did}/customExtension{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/customExtensionStageSettings/{customExtensionStageSetting%2Did}/customExtension{?%24expand,%24select}") end ## ## Indicates the custom workflow extension that will be executed at this stage. Nullable. Supports $expand. @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CustomCalloutExtension.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a custom_extension_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CustomExtensionRequestBuilder.new(raw_url, @request_adapter) + end ## # Indicates the custom workflow extension that will be executed at this stage. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/assignment_policies/item/custom_extension_stage_settings/item/custom_extension_stage_setting_item_request_builder.rb b/lib/identity_governance/entitlement_management/assignment_policies/item/custom_extension_stage_settings/item/custom_extension_stage_setting_item_request_builder.rb index e09f595fab..dae20ddbd6 100644 --- a/lib/identity_governance/entitlement_management/assignment_policies/item/custom_extension_stage_settings/item/custom_extension_stage_setting_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignment_policies/item/custom_extension_stage_settings/item/custom_extension_stage_setting_item_request_builder.rb @@ -33,7 +33,7 @@ def custom_extension() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/customExtensionStageSettings/{customExtensionStageSetting%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/customExtensionStageSettings/{customExtensionStageSetting%2Did}{?%24expand,%24select}") end ## ## Delete navigation property customExtensionStageSettings for identityGovernance @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CustomExtensionStageSetting.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CustomExtensionStageSetting.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,13 +83,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -102,15 +100,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,17 +120,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a custom_extension_stage_setting_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CustomExtensionStageSettingItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The collection of stages when to execute one or more custom access package workflow extensions. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/assignment_policies/item/questions/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/assignment_policies/item/questions/count/count_request_builder.rb index 6b7564e796..6f676e378a 100644 --- a/lib/identity_governance/entitlement_management/assignment_policies/item/questions/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignment_policies/item/questions/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/questions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/questions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/assignment_policies/item/questions/item/access_package_question_item_request_builder.rb b/lib/identity_governance/entitlement_management/assignment_policies/item/questions/item/access_package_question_item_request_builder.rb index 4b2871ea86..5a9a7a05b5 100644 --- a/lib/identity_governance/entitlement_management/assignment_policies/item/questions/item/access_package_question_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignment_policies/item/questions/item/access_package_question_item_request_builder.rb @@ -27,7 +27,7 @@ class AccessPackageQuestionItemRequestBuilder < MicrosoftKiotaAbstractions::Base ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/questions/{accessPackageQuestion%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/questions/{accessPackageQuestion%2Did}{?%24expand,%24select}") end ## ## Delete navigation property questions for identityGovernance @@ -39,8 +39,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -53,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageQuestion.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -69,8 +67,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageQuestion.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -80,13 +77,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -96,15 +94,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,17 +114,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_question_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageQuestionItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Questions that are posed to the requestor. diff --git a/lib/identity_governance/entitlement_management/assignment_policies/item/questions/questions_request_builder.rb b/lib/identity_governance/entitlement_management/assignment_policies/item/questions/questions_request_builder.rb index d68be136cb..3ad73fbb3c 100644 --- a/lib/identity_governance/entitlement_management/assignment_policies/item/questions/questions_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignment_policies/item/questions/questions_request_builder.rb @@ -44,7 +44,7 @@ def by_access_package_question_id(access_package_question_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/questions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/questions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Questions that are posed to the requestor. @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageQuestionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,8 +71,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageQuestion.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,15 +81,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,17 +101,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a questions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return QuestionsRequestBuilder.new(raw_url, @request_adapter) + end ## # Questions that are posed to the requestor. diff --git a/lib/identity_governance/entitlement_management/assignment_requests/assignment_requests_request_builder.rb b/lib/identity_governance/entitlement_management/assignment_requests/assignment_requests_request_builder.rb index f2fa83cb39..a155101a30 100644 --- a/lib/identity_governance/entitlement_management/assignment_requests/assignment_requests_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignment_requests/assignment_requests_request_builder.rb @@ -41,7 +41,7 @@ def by_access_package_assignment_request_id(access_package_assignment_request_id ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Provides operations to call the filterByCurrentUser method. @@ -53,7 +53,7 @@ def filter_by_current_user_with_on(on) return FilterByCurrentUserWithOnRequestBuilder.new(@path_parameters, @request_adapter, on) end ## - ## In Azure AD entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. + ## In Microsoft Entra entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of access_package_assignment_request_collection_response ## @@ -62,12 +62,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignmentRequestCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## In Azure AD Entitlement Management, create a new accessPackageAssignmentRequest object. This operation is used to assign a user to an access package, update the assignment, or to remove an access package assignment. + ## In Microsoft Entra Entitlement Management, create a new accessPackageAssignmentRequest object. This operation is used to assign a user to an access package, update the assignment, or to remove an access package assignment. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of access_package_assignment_request @@ -78,30 +77,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignmentRequest.create_from_discriminator_value(pn) }, error_mapping) end ## - ## In Azure AD entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. + ## In Microsoft Entra entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## In Azure AD Entitlement Management, create a new accessPackageAssignmentRequest object. This operation is used to assign a user to an access package, update the assignment, or to remove an access package assignment. + ## In Microsoft Entra Entitlement Management, create a new accessPackageAssignmentRequest object. This operation is used to assign a user to an access package, update the assignment, or to remove an access package assignment. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -109,20 +107,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignment_requests_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentRequestsRequestBuilder.new(raw_url, @request_adapter) + end ## - # In Azure AD entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. + # In Microsoft Entra entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. class AssignmentRequestsRequestBuilderGetQueryParameters ## diff --git a/lib/identity_governance/entitlement_management/assignment_requests/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/assignment_requests/count/count_request_builder.rb index ebf6335463..77115682f3 100644 --- a/lib/identity_governance/entitlement_management/assignment_requests/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignment_requests/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/assignment_requests/filter_by_current_user_with_on/filter_by_current_user_with_on.rb b/lib/identity_governance/entitlement_management/assignment_requests/filter_by_current_user_with_on/filter_by_current_user_with_on.rb index 720a62f905..0e09a13b0f 100644 --- a/lib/identity_governance/entitlement_management/assignment_requests/filter_by_current_user_with_on/filter_by_current_user_with_on.rb +++ b/lib/identity_governance/entitlement_management/assignment_requests/filter_by_current_user_with_on/filter_by_current_user_with_on.rb @@ -1 +1 @@ -require_relative 'filter_by_current_user_with_on_response' +require_relative 'filter_by_current_user_with_on_get_response' diff --git a/lib/identity_governance/entitlement_management/assignment_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb b/lib/identity_governance/entitlement_management/assignment_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb new file mode 100644 index 0000000000..cfc288d2f0 --- /dev/null +++ b/lib/identity_governance/entitlement_management/assignment_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/access_package_assignment_request' +require_relative '../../../../models/base_collection_pagination_count_response' +require_relative '../../../identity_governance' +require_relative '../../entitlement_management' +require_relative '../assignment_requests' +require_relative './filter_by_current_user_with_on' + +module MicrosoftGraph + module IdentityGovernance + module EntitlementManagement + module AssignmentRequests + module FilterByCurrentUserWithOn + class FilterByCurrentUserWithOnGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new FilterByCurrentUserWithOnGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a filter_by_current_user_with_on_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return FilterByCurrentUserWithOnGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignmentRequest.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a access_package_assignment_request + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/identity_governance/entitlement_management/assignment_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb b/lib/identity_governance/entitlement_management/assignment_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb index 908b30088c..8dfd1010c6 100644 --- a/lib/identity_governance/entitlement_management/assignment_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignment_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb @@ -23,49 +23,60 @@ class FilterByCurrentUserWithOnRequestBuilder < MicrosoftKiotaAbstractions::Base ## @return a void ## def initialize(path_parameters, request_adapter, on=nil) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function filterByCurrentUser + ## In Microsoft Entra Entitlement Management, retrieve a list of accessPackageAssignmentRequest objects filtered on the signed-in user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of filter_by_current_user_with_on_response + ## @return a Fiber of filter_by_current_user_with_on_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::EntitlementManagement::AssignmentRequests::FilterByCurrentUserWithOn::FilterByCurrentUserWithOnResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::EntitlementManagement::AssignmentRequests::FilterByCurrentUserWithOn::FilterByCurrentUserWithOnGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function filterByCurrentUser + ## In Microsoft Entra Entitlement Management, retrieve a list of accessPackageAssignmentRequest objects filtered on the signed-in user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a filter_by_current_user_with_on_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilterByCurrentUserWithOnRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function filterByCurrentUser + # In Microsoft Entra Entitlement Management, retrieve a list of accessPackageAssignmentRequest objects filtered on the signed-in user. class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -93,6 +104,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/identity_governance/entitlement_management/assignment_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb b/lib/identity_governance/entitlement_management/assignment_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb deleted file mode 100644 index 776c366033..0000000000 --- a/lib/identity_governance/entitlement_management/assignment_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/access_package_assignment_request' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../identity_governance' -require_relative '../../entitlement_management' -require_relative '../assignment_requests' -require_relative './filter_by_current_user_with_on' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module AssignmentRequests - module FilterByCurrentUserWithOn - class FilterByCurrentUserWithOnResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a filter_by_current_user_with_on_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return FilterByCurrentUserWithOnResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignmentRequest.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a access_package_assignment_request - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/assignment_requests/item/access_package/access_package_request_builder.rb b/lib/identity_governance/entitlement_management/assignment_requests/item/access_package/access_package_request_builder.rb index bf7b076976..0a3dcdc076 100644 --- a/lib/identity_governance/entitlement_management/assignment_requests/item/access_package/access_package_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignment_requests/item/access_package/access_package_request_builder.rb @@ -25,7 +25,7 @@ class AccessPackageRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/accessPackage{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/accessPackage{?%24expand,%24select}") end ## ## The access package associated with the accessPackageAssignmentRequest. An access package defines the collections of resource roles and the policies for how one or more users can get access to those resources. Read-only. Nullable. Supports $expand. @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageRequestBuilder.new(raw_url, @request_adapter) + end ## # The access package associated with the accessPackageAssignmentRequest. An access package defines the collections of resource roles and the policies for how one or more users can get access to those resources. Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/assignment_requests/item/access_package_assignment_request_item_request_builder.rb b/lib/identity_governance/entitlement_management/assignment_requests/item/access_package_assignment_request_item_request_builder.rb index 8a7885c333..7a47973495 100644 --- a/lib/identity_governance/entitlement_management/assignment_requests/item/access_package_assignment_request_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignment_requests/item/access_package_assignment_request_item_request_builder.rb @@ -59,7 +59,7 @@ def resume() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}{?%24expand,%24select}") end ## ## Delete an accessPackageAssignmentRequest object. This request can be made to remove a denied or completed request. You cannot delete an access package assignment request if it has any accessPackageAssignment objects. @@ -71,12 +71,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. + ## In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of access_package_assignment_request ## @@ -85,8 +84,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignmentRequest.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -101,8 +99,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignmentRequest.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -112,31 +109,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. + ## In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -148,20 +146,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_assignment_request_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageAssignmentRequestItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. + # In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. class AccessPackageAssignmentRequestItemRequestBuilderGetQueryParameters ## diff --git a/lib/identity_governance/entitlement_management/assignment_requests/item/assignment/assignment_request_builder.rb b/lib/identity_governance/entitlement_management/assignment_requests/item/assignment/assignment_request_builder.rb index e3bf17b48e..02aed3e7aa 100644 --- a/lib/identity_governance/entitlement_management/assignment_requests/item/assignment/assignment_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignment_requests/item/assignment/assignment_request_builder.rb @@ -25,10 +25,10 @@ class AssignmentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/assignment{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/assignment{?%24expand,%24select}") end ## - ## For a requestType of userAdd or adminAdd, this is an access package assignment requested to be created. For a requestType of userRemove, adminRemove or systemRemove, this has the id property of an existing assignment to be removed. Supports $expand. + ## For a requestType of userAdd or adminAdd, this is an access package assignment requested to be created. For a requestType of userRemove, adminRemove or systemRemove, this has the id property of an existing assignment to be removed. Supports $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of access_package_assignment ## @@ -37,31 +37,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## For a requestType of userAdd or adminAdd, this is an access package assignment requested to be created. For a requestType of userRemove, adminRemove or systemRemove, this has the id property of an existing assignment to be removed. Supports $expand. + ## For a requestType of userAdd or adminAdd, this is an access package assignment requested to be created. For a requestType of userRemove, adminRemove or systemRemove, this has the id property of an existing assignment to be removed. Supports $expand. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignment_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentRequestBuilder.new(raw_url, @request_adapter) + end ## - # For a requestType of userAdd or adminAdd, this is an access package assignment requested to be created. For a requestType of userRemove, adminRemove or systemRemove, this has the id property of an existing assignment to be removed. Supports $expand. + # For a requestType of userAdd or adminAdd, this is an access package assignment requested to be created. For a requestType of userRemove, adminRemove or systemRemove, this has the id property of an existing assignment to be removed. Supports $expand. class AssignmentRequestBuilderGetQueryParameters ## diff --git a/lib/identity_governance/entitlement_management/assignment_requests/item/cancel/cancel_request_builder.rb b/lib/identity_governance/entitlement_management/assignment_requests/item/cancel/cancel_request_builder.rb index 03c609e21e..4d0046bcf5 100644 --- a/lib/identity_governance/entitlement_management/assignment_requests/item/cancel/cancel_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignment_requests/item/cancel/cancel_request_builder.rb @@ -27,7 +27,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/cancel") end ## - ## In Azure AD Entitlement Management, cancel accessPackageAssignmentRequest objects that are in a cancellable state: accepted, pendingApproval, pendingNotBefore, pendingApprovalEscalated. + ## In Microsoft Entra Entitlement Management, cancel accessPackageAssignmentRequest objects that are in a cancellable state: accepted, pendingApproval, pendingNotBefore, pendingApprovalEscalated. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -36,26 +36,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## In Azure AD Entitlement Management, cancel accessPackageAssignmentRequest objects that are in a cancellable state: accepted, pendingApproval, pendingNotBefore, pendingApprovalEscalated. + ## In Microsoft Entra Entitlement Management, cancel accessPackageAssignmentRequest objects that are in a cancellable state: accepted, pendingApproval, pendingNotBefore, pendingApprovalEscalated. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a cancel_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CancelRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity_governance/entitlement_management/assignment_requests/item/reprocess/reprocess_request_builder.rb b/lib/identity_governance/entitlement_management/assignment_requests/item/reprocess/reprocess_request_builder.rb index 77a7b2ace4..3fcf282c30 100644 --- a/lib/identity_governance/entitlement_management/assignment_requests/item/reprocess/reprocess_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignment_requests/item/reprocess/reprocess_request_builder.rb @@ -27,7 +27,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/reprocess") end ## - ## In Azure AD entitlement management, callers can automatically retry a user's request for access to an access package. It is performed on an accessPackageAssignmentRequest object whose requestState is in a DeliveryFailed or PartiallyDelivered state. You can only reprocess a request within 14 days from the time the original request was completed. For requests completed more than 14 days, you will need to ask the users to cancel the request(s) and make a new request in the MyAccess portal. + ## In Microsoft Entra entitlement management, callers can automatically retry a user's request for access to an access package. It's performed on an accessPackageAssignmentRequest object whose requestState is in a DeliveryFailed or PartiallyDelivered state. You can only reprocess a request within 14 days from the time the original request was completed. For requests completed more than 14 days, you will need to ask the users to cancel the request(s) and make a new request in the MyAccess portal. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -36,26 +36,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## In Azure AD entitlement management, callers can automatically retry a user's request for access to an access package. It is performed on an accessPackageAssignmentRequest object whose requestState is in a DeliveryFailed or PartiallyDelivered state. You can only reprocess a request within 14 days from the time the original request was completed. For requests completed more than 14 days, you will need to ask the users to cancel the request(s) and make a new request in the MyAccess portal. + ## In Microsoft Entra entitlement management, callers can automatically retry a user's request for access to an access package. It's performed on an accessPackageAssignmentRequest object whose requestState is in a DeliveryFailed or PartiallyDelivered state. You can only reprocess a request within 14 days from the time the original request was completed. For requests completed more than 14 days, you will need to ask the users to cancel the request(s) and make a new request in the MyAccess portal. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reprocess_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReprocessRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity_governance/entitlement_management/assignment_requests/item/requestor/requestor_request_builder.rb b/lib/identity_governance/entitlement_management/assignment_requests/item/requestor/requestor_request_builder.rb index cdda5c23f7..e96f245620 100644 --- a/lib/identity_governance/entitlement_management/assignment_requests/item/requestor/requestor_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignment_requests/item/requestor/requestor_request_builder.rb @@ -25,7 +25,7 @@ class RequestorRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/requestor{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/requestor{?%24expand,%24select}") end ## ## The subject who requested or, if a direct assignment, was assigned. Read-only. Nullable. Supports $expand. @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageSubject.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a requestor_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RequestorRequestBuilder.new(raw_url, @request_adapter) + end ## # The subject who requested or, if a direct assignment, was assigned. Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/assignment_requests/item/resume/resume_post_request_body.rb b/lib/identity_governance/entitlement_management/assignment_requests/item/resume/resume_post_request_body.rb index b0dc310c1d..265a937636 100644 --- a/lib/identity_governance/entitlement_management/assignment_requests/item/resume/resume_post_request_body.rb +++ b/lib/identity_governance/entitlement_management/assignment_requests/item/resume/resume_post_request_body.rb @@ -28,22 +28,22 @@ class ResumePostRequestBody # The type property @type ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## def additional_data return @additional_data end ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. + ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. ## @return a void ## def additional_data=(value) @additional_data = value end ## - ## Instantiates a new resumePostRequestBody and sets the default values. + ## Instantiates a new ResumePostRequestBody and sets the default values. ## @return a void ## def initialize() diff --git a/lib/identity_governance/entitlement_management/assignment_requests/item/resume/resume_request_builder.rb b/lib/identity_governance/entitlement_management/assignment_requests/item/resume/resume_request_builder.rb index 804d03b878..785b791cc1 100644 --- a/lib/identity_governance/entitlement_management/assignment_requests/item/resume/resume_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignment_requests/item/resume/resume_request_builder.rb @@ -27,7 +27,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/resume") end ## - ## Invoke action resume + ## Resume a user's access package request after waiting for a callback from a custom extension. In Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It's performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -38,12 +38,11 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Invoke action resume + ## Resume a user's access package request after waiting for a callback from a custom extension. In Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It's performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -51,16 +50,26 @@ def post(body, request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resume_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResumeRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity_governance/entitlement_management/assignments/additional_access/additional_access.rb b/lib/identity_governance/entitlement_management/assignments/additional_access/additional_access.rb index 907dbd338b..bceba315f8 100644 --- a/lib/identity_governance/entitlement_management/assignments/additional_access/additional_access.rb +++ b/lib/identity_governance/entitlement_management/assignments/additional_access/additional_access.rb @@ -1 +1 @@ -require_relative 'additional_access_response' +require_relative 'additional_access_get_response' diff --git a/lib/identity_governance/entitlement_management/assignments/additional_access/additional_access_get_response.rb b/lib/identity_governance/entitlement_management/assignments/additional_access/additional_access_get_response.rb new file mode 100644 index 0000000000..b18237b5b1 --- /dev/null +++ b/lib/identity_governance/entitlement_management/assignments/additional_access/additional_access_get_response.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/access_package_assignment' +require_relative '../../../../models/base_collection_pagination_count_response' +require_relative '../../../identity_governance' +require_relative '../../entitlement_management' +require_relative '../assignments' +require_relative './additional_access' + +module MicrosoftGraph + module IdentityGovernance + module EntitlementManagement + module Assignments + module AdditionalAccess + class AdditionalAccessGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new AdditionalAccessGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a additional_access_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AdditionalAccessGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignment.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a access_package_assignment + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/identity_governance/entitlement_management/assignments/additional_access/additional_access_request_builder.rb b/lib/identity_governance/entitlement_management/assignments/additional_access/additional_access_request_builder.rb index 60fee91e7b..18a40192a5 100644 --- a/lib/identity_governance/entitlement_management/assignments/additional_access/additional_access_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignments/additional_access/additional_access_request_builder.rb @@ -22,49 +22,60 @@ class AdditionalAccessRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBu ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignments/additionalAccess(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignments/additionalAccess(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function additionalAccess + ## In Microsoft Entra Entitlement Management, retrieve a collection of accessPackageAssignment objects that indicate a target user has an assignment to a specified access package and also an assignment to another, potentially incompatible, access package. This can be used to prepare to configure the incompatible access packages for a specific access package. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of additional_access_response + ## @return a Fiber of additional_access_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::EntitlementManagement::Assignments::AdditionalAccess::AdditionalAccessResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::EntitlementManagement::Assignments::AdditionalAccess::AdditionalAccessGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function additionalAccess + ## In Microsoft Entra Entitlement Management, retrieve a collection of accessPackageAssignment objects that indicate a target user has an assignment to a specified access package and also an assignment to another, potentially incompatible, access package. This can be used to prepare to configure the incompatible access packages for a specific access package. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a additional_access_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AdditionalAccessRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function additionalAccess + # In Microsoft Entra Entitlement Management, retrieve a collection of accessPackageAssignment objects that indicate a target user has an assignment to a specified access package and also an assignment to another, potentially incompatible, access package. This can be used to prepare to configure the incompatible access packages for a specific access package. class AdditionalAccessRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -92,6 +103,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/identity_governance/entitlement_management/assignments/additional_access/additional_access_response.rb b/lib/identity_governance/entitlement_management/assignments/additional_access/additional_access_response.rb deleted file mode 100644 index 4c6ac9aa33..0000000000 --- a/lib/identity_governance/entitlement_management/assignments/additional_access/additional_access_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/access_package_assignment' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../identity_governance' -require_relative '../../entitlement_management' -require_relative '../assignments' -require_relative './additional_access' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module Assignments - module AdditionalAccess - class AdditionalAccessResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new additionalAccessResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a additional_access_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return AdditionalAccessResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignment.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a access_package_assignment - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/assignments/additional_access_with_access_package_id_with_incompatible_access_package_id/additional_access_with_access_package_id_with_incompatible_access_package_id.rb b/lib/identity_governance/entitlement_management/assignments/additional_access_with_access_package_id_with_incompatible_access_package_id/additional_access_with_access_package_id_with_incompatible_access_package_id.rb index 5cffaa0f85..f3ecb5ab37 100644 --- a/lib/identity_governance/entitlement_management/assignments/additional_access_with_access_package_id_with_incompatible_access_package_id/additional_access_with_access_package_id_with_incompatible_access_package_id.rb +++ b/lib/identity_governance/entitlement_management/assignments/additional_access_with_access_package_id_with_incompatible_access_package_id/additional_access_with_access_package_id_with_incompatible_access_package_id.rb @@ -1 +1 @@ -require_relative 'additional_access_with_access_package_id_with_incompatible_access_package_id_response' +require_relative 'additional_access_with_access_package_id_with_incompatible_access_package_id_get_response' diff --git a/lib/identity_governance/entitlement_management/assignments/additional_access_with_access_package_id_with_incompatible_access_package_id/additional_access_with_access_package_id_with_incompatible_access_package_id_get_response.rb b/lib/identity_governance/entitlement_management/assignments/additional_access_with_access_package_id_with_incompatible_access_package_id/additional_access_with_access_package_id_with_incompatible_access_package_id_get_response.rb new file mode 100644 index 0000000000..e6b7f37651 --- /dev/null +++ b/lib/identity_governance/entitlement_management/assignments/additional_access_with_access_package_id_with_incompatible_access_package_id/additional_access_with_access_package_id_with_incompatible_access_package_id_get_response.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/access_package_assignment' +require_relative '../../../../models/base_collection_pagination_count_response' +require_relative '../../../identity_governance' +require_relative '../../entitlement_management' +require_relative '../assignments' +require_relative './additional_access_with_access_package_id_with_incompatible_access_package_id' + +module MicrosoftGraph + module IdentityGovernance + module EntitlementManagement + module Assignments + module AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId + class AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a additional_access_with_access_package_id_with_incompatible_access_package_id_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignment.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a access_package_assignment + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/identity_governance/entitlement_management/assignments/additional_access_with_access_package_id_with_incompatible_access_package_id/additional_access_with_access_package_id_with_incompatible_access_package_id_request_builder.rb b/lib/identity_governance/entitlement_management/assignments/additional_access_with_access_package_id_with_incompatible_access_package_id/additional_access_with_access_package_id_with_incompatible_access_package_id_request_builder.rb index 5ee28e9b8c..ec2d47efc2 100644 --- a/lib/identity_governance/entitlement_management/assignments/additional_access_with_access_package_id_with_incompatible_access_package_id/additional_access_with_access_package_id_with_incompatible_access_package_id_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignments/additional_access_with_access_package_id_with_incompatible_access_package_id/additional_access_with_access_package_id_with_incompatible_access_package_id_request_builder.rb @@ -24,21 +24,20 @@ class AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestB ## @return a void ## def initialize(path_parameters, request_adapter, access_package_id=nil, incompatible_access_package_id=nil) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignments/additionalAccess(accessPackageId='{accessPackageId}',incompatibleAccessPackageId='{incompatibleAccessPackageId}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignments/additionalAccess(accessPackageId='{accessPackageId}',incompatibleAccessPackageId='{incompatibleAccessPackageId}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Invoke function additionalAccess ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of additional_access_with_access_package_id_with_incompatible_access_package_id_response + ## @return a Fiber of additional_access_with_access_package_id_with_incompatible_access_package_id_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::EntitlementManagement::Assignments::AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId::AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::EntitlementManagement::Assignments::AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId::AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## ## Invoke function additionalAccess @@ -47,17 +46,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a additional_access_with_access_package_id_with_incompatible_access_package_id_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder.new(raw_url, @request_adapter) + end ## # Invoke function additionalAccess @@ -67,6 +75,9 @@ class AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestB # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -94,6 +105,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/identity_governance/entitlement_management/assignments/additional_access_with_access_package_id_with_incompatible_access_package_id/additional_access_with_access_package_id_with_incompatible_access_package_id_response.rb b/lib/identity_governance/entitlement_management/assignments/additional_access_with_access_package_id_with_incompatible_access_package_id/additional_access_with_access_package_id_with_incompatible_access_package_id_response.rb deleted file mode 100644 index b4292ecd83..0000000000 --- a/lib/identity_governance/entitlement_management/assignments/additional_access_with_access_package_id_with_incompatible_access_package_id/additional_access_with_access_package_id_with_incompatible_access_package_id_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/access_package_assignment' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../identity_governance' -require_relative '../../entitlement_management' -require_relative '../assignments' -require_relative './additional_access_with_access_package_id_with_incompatible_access_package_id' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module Assignments - module AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId - class AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a additional_access_with_access_package_id_with_incompatible_access_package_id_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignment.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a access_package_assignment - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/assignments/assignments_request_builder.rb b/lib/identity_governance/entitlement_management/assignments/assignments_request_builder.rb index 15739d6ee4..bd32b890b8 100644 --- a/lib/identity_governance/entitlement_management/assignments/assignments_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignments/assignments_request_builder.rb @@ -59,7 +59,7 @@ def by_access_package_assignment_id(access_package_assignment_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Provides operations to call the filterByCurrentUser method. @@ -71,7 +71,7 @@ def filter_by_current_user_with_on(on) return FilterByCurrentUserWithOnRequestBuilder.new(@path_parameters, @request_adapter, on) end ## - ## In Azure AD entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. + ## In Microsoft Entra entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of access_package_assignment_collection_response ## @@ -80,8 +80,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -96,26 +95,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## In Azure AD entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. + ## In Microsoft Entra entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -127,20 +125,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignments_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentsRequestBuilder.new(raw_url, @request_adapter) + end ## - # In Azure AD entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. + # In Microsoft Entra entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. class AssignmentsRequestBuilderGetQueryParameters ## diff --git a/lib/identity_governance/entitlement_management/assignments/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/assignments/count/count_request_builder.rb index d4a548f774..7bce1ffc9d 100644 --- a/lib/identity_governance/entitlement_management/assignments/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignments/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/assignments/filter_by_current_user_with_on/filter_by_current_user_with_on.rb b/lib/identity_governance/entitlement_management/assignments/filter_by_current_user_with_on/filter_by_current_user_with_on.rb index 720a62f905..0e09a13b0f 100644 --- a/lib/identity_governance/entitlement_management/assignments/filter_by_current_user_with_on/filter_by_current_user_with_on.rb +++ b/lib/identity_governance/entitlement_management/assignments/filter_by_current_user_with_on/filter_by_current_user_with_on.rb @@ -1 +1 @@ -require_relative 'filter_by_current_user_with_on_response' +require_relative 'filter_by_current_user_with_on_get_response' diff --git a/lib/identity_governance/entitlement_management/assignments/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb b/lib/identity_governance/entitlement_management/assignments/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb new file mode 100644 index 0000000000..2ef8a30ef9 --- /dev/null +++ b/lib/identity_governance/entitlement_management/assignments/filter_by_current_user_with_on/filter_by_current_user_with_on_get_response.rb @@ -0,0 +1,75 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/access_package_assignment' +require_relative '../../../../models/base_collection_pagination_count_response' +require_relative '../../../identity_governance' +require_relative '../../entitlement_management' +require_relative '../assignments' +require_relative './filter_by_current_user_with_on' + +module MicrosoftGraph + module IdentityGovernance + module EntitlementManagement + module Assignments + module FilterByCurrentUserWithOn + class FilterByCurrentUserWithOnGetResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new FilterByCurrentUserWithOnGetResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parse_node The parse node to use to read the discriminator value and create the object + ## @return a filter_by_current_user_with_on_get_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return FilterByCurrentUserWithOnGetResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignment.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a access_package_assignment + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end +end diff --git a/lib/identity_governance/entitlement_management/assignments/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb b/lib/identity_governance/entitlement_management/assignments/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb index df7cb5f01c..e56ee6a6a9 100644 --- a/lib/identity_governance/entitlement_management/assignments/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignments/filter_by_current_user_with_on/filter_by_current_user_with_on_request_builder.rb @@ -23,49 +23,60 @@ class FilterByCurrentUserWithOnRequestBuilder < MicrosoftKiotaAbstractions::Base ## @return a void ## def initialize(path_parameters, request_adapter, on=nil) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignments/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignments/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Invoke function filterByCurrentUser + ## In Microsoft Entra Entitlement Management, retrieve a list of accessPackageAssignment objects filtered on the signed-in user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of filter_by_current_user_with_on_response + ## @return a Fiber of filter_by_current_user_with_on_get_response ## def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::EntitlementManagement::Assignments::FilterByCurrentUserWithOn::FilterByCurrentUserWithOnResponse.create_from_discriminator_value(pn) }, error_mapping) + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::EntitlementManagement::Assignments::FilterByCurrentUserWithOn::FilterByCurrentUserWithOnGetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke function filterByCurrentUser + ## In Microsoft Entra Entitlement Management, retrieve a list of accessPackageAssignment objects filtered on the signed-in user. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a filter_by_current_user_with_on_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return FilterByCurrentUserWithOnRequestBuilder.new(raw_url, @request_adapter) + end ## - # Invoke function filterByCurrentUser + # In Microsoft Entra Entitlement Management, retrieve a list of accessPackageAssignment objects filtered on the signed-in user. class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters ## # Include count of items attr_accessor :count ## + # Expand related entities + attr_accessor :expand + ## # Filter items by property values attr_accessor :filter ## @@ -93,6 +104,8 @@ def get_query_parameter(original_name) case original_name when "count" return "%24count" + when "expand" + return "%24expand" when "filter" return "%24filter" when "orderby" diff --git a/lib/identity_governance/entitlement_management/assignments/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb b/lib/identity_governance/entitlement_management/assignments/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb deleted file mode 100644 index 6c0ac10406..0000000000 --- a/lib/identity_governance/entitlement_management/assignments/filter_by_current_user_with_on/filter_by_current_user_with_on_response.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../microsoft_graph' -require_relative '../../../../models/access_package_assignment' -require_relative '../../../../models/base_collection_pagination_count_response' -require_relative '../../../identity_governance' -require_relative '../../entitlement_management' -require_relative '../assignments' -require_relative './filter_by_current_user_with_on' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module Assignments - module FilterByCurrentUserWithOn - class FilterByCurrentUserWithOnResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a filter_by_current_user_with_on_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return FilterByCurrentUserWithOnResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignment.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a access_package_assignment - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/assignments/item/access_package/access_package_request_builder.rb b/lib/identity_governance/entitlement_management/assignments/item/access_package/access_package_request_builder.rb index 460c99ba34..ba9eb4fe1e 100644 --- a/lib/identity_governance/entitlement_management/assignments/item/access_package/access_package_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignments/item/access_package/access_package_request_builder.rb @@ -25,7 +25,7 @@ class AccessPackageRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuild ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignments/{accessPackageAssignment%2Did}/accessPackage{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignments/{accessPackageAssignment%2Did}/accessPackage{?%24expand,%24select}") end ## ## Read-only. Nullable. Supports $filter (eq) on the id property and $expand query parameters. @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $filter (eq) on the id property and $expand query parameters. diff --git a/lib/identity_governance/entitlement_management/assignments/item/access_package_assignment_item_request_builder.rb b/lib/identity_governance/entitlement_management/assignments/item/access_package_assignment_item_request_builder.rb index 20cce9fe46..a18ca8e30b 100644 --- a/lib/identity_governance/entitlement_management/assignments/item/access_package_assignment_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignments/item/access_package_assignment_item_request_builder.rb @@ -47,7 +47,7 @@ def target() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignments/{accessPackageAssignment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignments/{accessPackageAssignment%2Did}{?%24expand,%24select}") end ## ## Delete navigation property assignments for identityGovernance @@ -59,12 +59,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. + ## In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of access_package_assignment ## @@ -73,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,8 +87,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -100,31 +97,32 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. + ## In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,20 +134,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_assignment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageAssignmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. + # In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. class AccessPackageAssignmentItemRequestBuilderGetQueryParameters ## diff --git a/lib/identity_governance/entitlement_management/assignments/item/assignment_policy/assignment_policy_request_builder.rb b/lib/identity_governance/entitlement_management/assignments/item/assignment_policy/assignment_policy_request_builder.rb index e38cd0c4ea..6c2c83864d 100644 --- a/lib/identity_governance/entitlement_management/assignments/item/assignment_policy/assignment_policy_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignments/item/assignment_policy/assignment_policy_request_builder.rb @@ -25,7 +25,7 @@ class AssignmentPolicyRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBu ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignments/{accessPackageAssignment%2Did}/assignmentPolicy{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignments/{accessPackageAssignment%2Did}/assignmentPolicy{?%24expand,%24select}") end ## ## Read-only. Supports $filter (eq) on the id property and $expand query parameters. @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignmentPolicy.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a assignment_policy_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AssignmentPolicyRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Supports $filter (eq) on the id property and $expand query parameters. diff --git a/lib/identity_governance/entitlement_management/assignments/item/reprocess/reprocess_request_builder.rb b/lib/identity_governance/entitlement_management/assignments/item/reprocess/reprocess_request_builder.rb index 534be6e69f..eb76b42a3a 100644 --- a/lib/identity_governance/entitlement_management/assignments/item/reprocess/reprocess_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignments/item/reprocess/reprocess_request_builder.rb @@ -27,7 +27,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignments/{accessPackageAssignment%2Did}/reprocess") end ## - ## In Azure AD entitlement management, callers can automatically reevaluate and enforce an accessPackageAssignment object of a user’s assignments for a specific access package. The state of the access package assignment must be Delivered for the administrator to reprocess the user's assignment. Only admins with the Access Package Assignment Manager role, or higher, in Azure AD entitlement management can perform this action. + ## In Microsoft Entra entitlement management, callers can automatically reevaluate and enforce an accessPackageAssignment object of a user’s assignments for a specific access package. The state of the access package assignment must be Delivered for the administrator to reprocess the user's assignment. Only admins with the Access Package Assignment Manager role, or higher, in Microsoft Entra entitlement management can perform this action. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -36,26 +36,35 @@ def post(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## In Azure AD entitlement management, callers can automatically reevaluate and enforce an accessPackageAssignment object of a user’s assignments for a specific access package. The state of the access package assignment must be Delivered for the administrator to reprocess the user's assignment. Only admins with the Access Package Assignment Manager role, or higher, in Azure AD entitlement management can perform this action. + ## In Microsoft Entra entitlement management, callers can automatically reevaluate and enforce an accessPackageAssignment object of a user’s assignments for a specific access package. The state of the access package assignment must be Delivered for the administrator to reprocess the user's assignment. Only admins with the Access Package Assignment Manager role, or higher, in Microsoft Entra entitlement management can perform this action. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_post_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a reprocess_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ReprocessRequestBuilder.new(raw_url, @request_adapter) + end end end end diff --git a/lib/identity_governance/entitlement_management/assignments/item/target/target_request_builder.rb b/lib/identity_governance/entitlement_management/assignments/item/target/target_request_builder.rb index b4a71dd5af..75001aec32 100644 --- a/lib/identity_governance/entitlement_management/assignments/item/target/target_request_builder.rb +++ b/lib/identity_governance/entitlement_management/assignments/item/target/target_request_builder.rb @@ -25,7 +25,7 @@ class TargetRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignments/{accessPackageAssignment%2Did}/target{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/assignments/{accessPackageAssignment%2Did}/target{?%24expand,%24select}") end ## ## The subject of the access package assignment. Read-only. Nullable. Supports $expand. Supports $filter (eq) on objectId. @@ -37,8 +37,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageSubject.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -48,17 +47,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a target_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return TargetRequestBuilder.new(raw_url, @request_adapter) + end ## # The subject of the access package assignment. Read-only. Nullable. Supports $expand. Supports $filter (eq) on objectId. diff --git a/lib/identity_governance/entitlement_management/catalogs/catalogs_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/catalogs_request_builder.rb index bc730d3475..f79a09dad4 100644 --- a/lib/identity_governance/entitlement_management/catalogs/catalogs_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/catalogs_request_builder.rb @@ -40,7 +40,7 @@ def by_access_package_catalog_id(access_package_catalog_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of accessPackageCatalog objects. @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageCatalogCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageCatalog.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,15 +77,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a catalogs_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CatalogsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of accessPackageCatalog objects. diff --git a/lib/identity_governance/entitlement_management/catalogs/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/count/count_request_builder.rb index 465d7331d2..667fd403c7 100644 --- a/lib/identity_governance/entitlement_management/catalogs/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/catalogs/item/access_package_catalog_item_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/access_package_catalog_item_request_builder.rb index 7e4d2b5592..ccc0d46874 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/access_package_catalog_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/access_package_catalog_item_request_builder.rb @@ -53,7 +53,7 @@ def resource_scopes() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}{?%24expand,%24select}") end ## ## Delete an accessPackageCatalog. @@ -65,8 +65,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -79,8 +78,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageCatalog.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -95,8 +93,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageCatalog.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -106,13 +103,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,15 +120,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -142,17 +140,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_catalog_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageCatalogItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of an accessPackageCatalog object. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/access_packages/access_packages_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/access_packages/access_packages_request_builder.rb index 408d980ca1..6fd24c582a 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/access_packages/access_packages_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/access_packages/access_packages_request_builder.rb @@ -43,7 +43,7 @@ def by_access_package_id(access_package_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/accessPackages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/accessPackages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## The access packages in this catalog. Read-only. Nullable. @@ -55,8 +55,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -66,17 +65,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_packages_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackagesRequestBuilder.new(raw_url, @request_adapter) + end ## # The access packages in this catalog. Read-only. Nullable. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/access_packages/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/access_packages/count/count_request_builder.rb index 45e6971c98..405b4b5f3d 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/access_packages/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/access_packages/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/accessPackages/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/accessPackages/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/catalogs/item/access_packages/item/access_package_item_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/access_packages/item/access_package_item_request_builder.rb index 235d8dc95a..125afd9905 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/access_packages/item/access_package_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/access_packages/item/access_package_item_request_builder.rb @@ -27,7 +27,7 @@ class AccessPackageItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestB ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/accessPackages/{accessPackage%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/accessPackages/{accessPackage%2Did}{?%24expand,%24select}") end ## ## The access packages in this catalog. Read-only. Nullable. @@ -39,8 +39,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackage.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -50,17 +49,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageItemRequestBuilder.new(raw_url, @request_adapter) + end ## # The access packages in this catalog. Read-only. Nullable. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/count/count_request_builder.rb index 46b6a96850..47539b56c0 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/customWorkflowExtensions/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/customWorkflowExtensions/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/custom_workflow_extensions_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/custom_workflow_extensions_request_builder.rb index c4af8561b9..c30c858bf0 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/custom_workflow_extensions_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/custom_workflow_extensions_request_builder.rb @@ -44,10 +44,10 @@ def by_custom_callout_extension_id(custom_callout_extension_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/customWorkflowExtensions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/customWorkflowExtensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Get customWorkflowExtensions from identityGovernance + ## Get a list of the accessPackageAssignmentRequestWorkflowExtension and accessPackageAssignmentWorkflowExtension objects and their properties. The resulting list includes all the customAccessPackageWorkflowExtension objects for the catalog that the caller has access to read. Each object includes an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of custom_callout_extension_collection_response ## @@ -56,12 +56,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CustomCalloutExtensionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create new navigation property to customWorkflowExtensions for identityGovernance + ## Create a new accessPackageAssignmentRequestWorkflowExtension or accessPackageAssignmentWorkflowExtension object and add it to an existing accessPackageCatalog object. You must explicitly provide an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of custom_callout_extension @@ -72,30 +71,29 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CustomCalloutExtension.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get customWorkflowExtensions from identityGovernance + ## Get a list of the accessPackageAssignmentRequestWorkflowExtension and accessPackageAssignmentWorkflowExtension objects and their properties. The resulting list includes all the customAccessPackageWorkflowExtension objects for the catalog that the caller has access to read. Each object includes an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Create new navigation property to customWorkflowExtensions for identityGovernance + ## Create a new accessPackageAssignmentRequestWorkflowExtension or accessPackageAssignmentWorkflowExtension object and add it to an existing accessPackageCatalog object. You must explicitly provide an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a custom_workflow_extensions_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CustomWorkflowExtensionsRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get customWorkflowExtensions from identityGovernance + # Get a list of the accessPackageAssignmentRequestWorkflowExtension and accessPackageAssignmentWorkflowExtension objects and their properties. The resulting list includes all the customAccessPackageWorkflowExtension objects for the catalog that the caller has access to read. Each object includes an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. class CustomWorkflowExtensionsRequestBuilderGetQueryParameters ## diff --git a/lib/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/item/custom_callout_extension_item_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/item/custom_callout_extension_item_request_builder.rb index 5efffb5acb..d6c69cc5b4 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/item/custom_callout_extension_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/item/custom_callout_extension_item_request_builder.rb @@ -27,10 +27,10 @@ class CustomCalloutExtensionItemRequestBuilder < MicrosoftKiotaAbstractions::Bas ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/customWorkflowExtensions/{customCalloutExtension%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/customWorkflowExtensions/{customCalloutExtension%2Did}{?%24expand,%24select}") end ## - ## Delete navigation property customWorkflowExtensions for identityGovernance + ## Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void ## @@ -39,12 +39,11 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get customWorkflowExtensions from identityGovernance + ## Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of custom_callout_extension ## @@ -53,12 +52,11 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CustomCalloutExtension.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the navigation property customWorkflowExtensions in identityGovernance + ## Update the properties of an accessPackageAssignmentWorkflowExtension object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of custom_callout_extension @@ -69,46 +67,46 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::CustomCalloutExtension.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Delete navigation property customWorkflowExtensions for identityGovernance + ## Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Get customWorkflowExtensions from identityGovernance + ## Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Update the navigation property customWorkflowExtensions in identityGovernance + ## Update the properties of an accessPackageAssignmentWorkflowExtension object. ## @param body The request body ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information @@ -116,20 +114,29 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a custom_callout_extension_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CustomCalloutExtensionItemRequestBuilder.new(raw_url, @request_adapter) + end ## - # Get customWorkflowExtensions from identityGovernance + # Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. class CustomCalloutExtensionItemRequestBuilderGetQueryParameters ## diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/count/count_request_builder.rb index 5daf738164..54242c1480 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/access_package_resource_role_item_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/access_package_resource_role_item_request_builder.rb index 585f1db83e..34e4d4a68e 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/access_package_resource_role_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/access_package_resource_role_item_request_builder.rb @@ -33,7 +33,7 @@ def resource() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}{?%24expand,%24select}") end ## ## Delete navigation property resourceRoles for identityGovernance @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,13 +83,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -102,15 +100,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,17 +120,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_role_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceRoleItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get resourceRoles from identityGovernance diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/environment/environment_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/environment/environment_request_builder.rb index 4e3ece02c9..f631abb439 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/environment/environment_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/environment/environment_request_builder.rb @@ -31,7 +31,7 @@ class EnvironmentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/environment{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/environment{?%24expand,%24select}") end ## ## Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceEnvironment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a environment_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EnvironmentRequestBuilder.new(raw_url, @request_adapter) + end ## # Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/resource_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/resource_request_builder.rb index 480ad21032..123e9021d6 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/resource_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/resource_request_builder.rb @@ -47,7 +47,7 @@ def scopes() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource{?%24expand,%24select}") end ## ## Delete navigation property resource for identityGovernance @@ -59,8 +59,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -73,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,8 +87,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -100,13 +97,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,15 +114,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,17 +134,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resource_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get resource from identityGovernance diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/roles/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/roles/count/count_request_builder.rb index 3d36665836..45073e396a 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/roles/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/roles/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/roles/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/roles/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/roles/item/access_package_resource_role_item_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/roles/item/access_package_resource_role_item_request_builder.rb index cdf2f971eb..31de88cfc9 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/roles/item/access_package_resource_role_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/roles/item/access_package_resource_role_item_request_builder.rb @@ -33,7 +33,7 @@ class AccessPackageResourceRoleItemRequestBuilder < MicrosoftKiotaAbstractions:: ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/roles/{accessPackageResourceRole%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/roles/{accessPackageResourceRole%2Did1}{?%24expand,%24select}") end ## ## Delete navigation property roles for identityGovernance @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,13 +83,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -102,15 +100,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,17 +120,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_role_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceRoleItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/roles/roles_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/roles/roles_request_builder.rb index d735edf31b..af2347abf5 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/roles/roles_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/roles/roles_request_builder.rb @@ -50,7 +50,7 @@ def by_access_package_resource_role_id1(access_package_resource_role_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/roles{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/roles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Read-only. Nullable. Supports $expand. @@ -62,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRoleCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,8 +77,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,15 +87,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -109,17 +107,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a roles_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RolesRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/count/count_request_builder.rb index ac9071c7c1..b536ad74ca 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb index f19a97c4ea..c5091255f6 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb @@ -39,7 +39,7 @@ def resource() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}{?%24expand,%24select}") end ## ## Delete navigation property scopes for identityGovernance @@ -51,8 +51,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,13 +89,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,15 +106,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,17 +126,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_scope_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceScopeItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/resource/environment/environment_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/resource/environment/environment_request_builder.rb index 14d8f501c3..c763c71cd0 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/resource/environment/environment_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/resource/environment/environment_request_builder.rb @@ -37,7 +37,7 @@ class EnvironmentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/environment{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/environment{?%24expand,%24select}") end ## ## Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. @@ -49,8 +49,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceEnvironment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -60,17 +59,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a environment_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EnvironmentRequestBuilder.new(raw_url, @request_adapter) + end ## # Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/resource/resource_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/resource/resource_request_builder.rb index a52b0a830b..b1c918e89a 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/resource/resource_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/resource/resource_request_builder.rb @@ -47,7 +47,7 @@ def roles() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource{?%24expand,%24select}") end ## ## Delete navigation property resource for identityGovernance @@ -59,8 +59,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -73,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,8 +87,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -100,13 +97,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,15 +114,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,17 +134,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resource_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get resource from identityGovernance diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/resource/roles/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/resource/roles/count/count_request_builder.rb index 5fbdd935bc..f464716d3c 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/resource/roles/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/resource/roles/count/count_request_builder.rb @@ -38,7 +38,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -61,17 +60,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/resource/roles/item/access_package_resource_role_item_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/resource/roles/item/access_package_resource_role_item_request_builder.rb index 8f69effaf9..ab79cb623b 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/resource/roles/item/access_package_resource_role_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/resource/roles/item/access_package_resource_role_item_request_builder.rb @@ -39,7 +39,7 @@ class AccessPackageResourceRoleItemRequestBuilder < MicrosoftKiotaAbstractions:: ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did1}{?%24expand,%24select}") end ## ## Delete navigation property roles for identityGovernance @@ -51,8 +51,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,13 +89,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,15 +106,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,17 +126,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_role_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceRoleItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/resource/roles/roles_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/resource/roles/roles_request_builder.rb index 9414aec5a4..f64aa44aac 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/resource/roles/roles_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/item/resource/roles/roles_request_builder.rb @@ -56,7 +56,7 @@ def by_access_package_resource_role_id1(access_package_resource_role_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Read-only. Nullable. Supports $expand. @@ -68,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRoleCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,8 +83,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -95,15 +93,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -115,17 +113,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a roles_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RolesRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/scopes_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/scopes_request_builder.rb index 82f244edee..d81df4e8ad 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/scopes_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/item/resource/scopes/scopes_request_builder.rb @@ -50,7 +50,7 @@ def by_access_package_resource_scope_id(access_package_resource_scope_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Read-only. Nullable. Supports $expand. @@ -62,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScopeCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,8 +77,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,15 +87,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -109,17 +107,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a scopes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ScopesRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/resource_roles_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/resource_roles_request_builder.rb index 6dde6eeb7f..835f30f718 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/resource_roles_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_roles/resource_roles_request_builder.rb @@ -44,7 +44,7 @@ def by_access_package_resource_role_id(access_package_resource_role_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRoleCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,8 +71,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,15 +81,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,17 +101,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resource_roles_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourceRolesRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/count/count_request_builder.rb index f02aa87a38..8bead0a8a6 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/access_package_resource_scope_item_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/access_package_resource_scope_item_request_builder.rb index ce838a1d18..c4a8e511aa 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/access_package_resource_scope_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/access_package_resource_scope_item_request_builder.rb @@ -33,7 +33,7 @@ def resource() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}{?%24expand,%24select}") end ## ## Delete navigation property resourceScopes for identityGovernance @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,13 +83,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -102,15 +100,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,17 +120,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_scope_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceScopeItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Get resourceScopes from identityGovernance diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/environment/environment_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/environment/environment_request_builder.rb index 0da176cfcf..11182d6a10 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/environment/environment_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/environment/environment_request_builder.rb @@ -31,7 +31,7 @@ class EnvironmentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/environment{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/environment{?%24expand,%24select}") end ## ## Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. @@ -43,8 +43,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceEnvironment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -54,17 +53,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a environment_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EnvironmentRequestBuilder.new(raw_url, @request_adapter) + end ## # Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/resource_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/resource_request_builder.rb index b205630bc3..dd4df4efd8 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/resource_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/resource_request_builder.rb @@ -47,7 +47,7 @@ def scopes() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource{?%24expand,%24select}") end ## ## Delete navigation property resource for identityGovernance @@ -59,8 +59,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -73,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,8 +87,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -100,13 +97,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,15 +114,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,17 +134,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resource_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get resource from identityGovernance diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/count/count_request_builder.rb index de02de360c..7e6c91720b 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/access_package_resource_role_item_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/access_package_resource_role_item_request_builder.rb index 42a13c51dd..a5ffc3c581 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/access_package_resource_role_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/access_package_resource_role_item_request_builder.rb @@ -39,7 +39,7 @@ def resource() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}{?%24expand,%24select}") end ## ## Delete navigation property roles for identityGovernance @@ -51,8 +51,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,13 +89,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,15 +106,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,17 +126,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_role_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceRoleItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/resource/environment/environment_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/resource/environment/environment_request_builder.rb index 6883374596..58aed19af8 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/resource/environment/environment_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/resource/environment/environment_request_builder.rb @@ -37,7 +37,7 @@ class EnvironmentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/environment{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/environment{?%24expand,%24select}") end ## ## Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. @@ -49,8 +49,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceEnvironment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -60,17 +59,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a environment_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EnvironmentRequestBuilder.new(raw_url, @request_adapter) + end ## # Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/resource/resource_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/resource/resource_request_builder.rb index 343730958e..367a7c4858 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/resource/resource_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/resource/resource_request_builder.rb @@ -47,7 +47,7 @@ def scopes() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource{?%24expand,%24select}") end ## ## Delete navigation property resource for identityGovernance @@ -59,8 +59,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -73,8 +72,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,8 +87,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -100,13 +97,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -116,15 +114,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -136,17 +134,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resource_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get resource from identityGovernance diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/resource/scopes/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/resource/scopes/count/count_request_builder.rb index 6999eed3e0..259af99389 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/resource/scopes/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/resource/scopes/count/count_request_builder.rb @@ -38,7 +38,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -50,8 +50,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -61,17 +60,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb index 22c83a5d7a..c4d2f42b25 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb @@ -39,7 +39,7 @@ class AccessPackageResourceScopeItemRequestBuilder < MicrosoftKiotaAbstractions: ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did1}{?%24expand,%24select}") end ## ## Delete navigation property scopes for identityGovernance @@ -51,8 +51,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -65,8 +64,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -81,8 +79,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -92,13 +89,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -108,15 +106,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -128,17 +126,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_scope_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceScopeItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/resource/scopes/scopes_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/resource/scopes/scopes_request_builder.rb index 4614625967..91e2cc17e6 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/resource/scopes/scopes_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/item/resource/scopes/scopes_request_builder.rb @@ -56,7 +56,7 @@ def by_access_package_resource_scope_id1(access_package_resource_scope_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Read-only. Nullable. Supports $expand. @@ -68,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScopeCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -84,8 +83,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -95,15 +93,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -115,17 +113,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a scopes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ScopesRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/roles_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/roles_request_builder.rb index 5fdff17138..d98c350c68 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/roles_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/roles/roles_request_builder.rb @@ -50,7 +50,7 @@ def by_access_package_resource_role_id(access_package_resource_role_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Read-only. Nullable. Supports $expand. @@ -62,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRoleCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,8 +77,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,15 +87,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -109,17 +107,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a roles_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RolesRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/scopes/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/scopes/count/count_request_builder.rb index 4c979c2086..648b21bef5 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/scopes/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/scopes/count/count_request_builder.rb @@ -32,7 +32,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/scopes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/scopes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -44,8 +44,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -55,17 +54,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb index 66d1b157a6..714691db97 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb @@ -33,7 +33,7 @@ class AccessPackageResourceScopeItemRequestBuilder < MicrosoftKiotaAbstractions: ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/scopes/{accessPackageResourceScope%2Did1}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/scopes/{accessPackageResourceScope%2Did1}{?%24expand,%24select}") end ## ## Delete navigation property scopes for identityGovernance @@ -45,8 +45,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -59,8 +58,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -75,8 +73,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -86,13 +83,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -102,15 +100,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -122,17 +120,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_scope_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceScopeItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/scopes/scopes_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/scopes/scopes_request_builder.rb index 74f86865cb..5f1ce96943 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/scopes/scopes_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/item/resource/scopes/scopes_request_builder.rb @@ -50,7 +50,7 @@ def by_access_package_resource_scope_id1(access_package_resource_scope_id1) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/scopes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/scopes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Read-only. Nullable. Supports $expand. @@ -62,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScopeCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -78,8 +77,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -89,15 +87,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -109,17 +107,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a scopes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ScopesRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/resource_scopes_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/resource_scopes_request_builder.rb index ba345d6031..25b02a03c4 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/resource_scopes_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resource_scopes/resource_scopes_request_builder.rb @@ -44,7 +44,7 @@ def by_access_package_resource_scope_id(access_package_resource_scope_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Get resourceScopes from identityGovernance @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScopeCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,8 +71,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -83,15 +81,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,17 +101,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resource_scopes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourceScopesRequestBuilder.new(raw_url, @request_adapter) + end ## # Get resourceScopes from identityGovernance diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/count/count_request_builder.rb index 89877c6989..a667d757ec 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/access_package_resource_item_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/access_package_resource_item_request_builder.rb index fcf8c7ebc1..f674279c8d 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/access_package_resource_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/access_package_resource_item_request_builder.rb @@ -45,7 +45,7 @@ def scopes() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}{?%24expand,%24select}") end ## ## Delete navigation property resources for identityGovernance @@ -57,8 +57,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -71,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,8 +85,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -98,13 +95,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,15 +112,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -134,17 +132,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Access package resources in this catalog. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/environment/environment_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/environment/environment_request_builder.rb index aa88dc9ca5..5db0c979d5 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/environment/environment_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/environment/environment_request_builder.rb @@ -29,7 +29,7 @@ class EnvironmentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/environment{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/environment{?%24expand,%24select}") end ## ## Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceEnvironment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a environment_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EnvironmentRequestBuilder.new(raw_url, @request_adapter) + end ## # Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/count/count_request_builder.rb index d4bb406e04..aeb63da9de 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/access_package_resource_role_item_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/access_package_resource_role_item_request_builder.rb index f8056672c0..02b8d99908 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/access_package_resource_role_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/access_package_resource_role_item_request_builder.rb @@ -37,7 +37,7 @@ def resource() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}{?%24expand,%24select}") end ## ## Delete navigation property roles for identityGovernance @@ -49,8 +49,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,8 +77,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,13 +87,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -106,15 +104,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,17 +124,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_role_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceRoleItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/environment/environment_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/environment/environment_request_builder.rb index 75d0496d0c..7e3ba7d0d1 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/environment/environment_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/environment/environment_request_builder.rb @@ -35,7 +35,7 @@ class EnvironmentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/environment{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/environment{?%24expand,%24select}") end ## ## Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceEnvironment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a environment_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EnvironmentRequestBuilder.new(raw_url, @request_adapter) + end ## # Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/resource_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/resource_request_builder.rb index 0f152e851b..934e3c229d 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/resource_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/resource_request_builder.rb @@ -45,7 +45,7 @@ def scopes() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource{?%24expand,%24select}") end ## ## Delete navigation property resource for identityGovernance @@ -57,8 +57,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -71,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,8 +85,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -98,13 +95,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,15 +112,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -134,17 +132,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resource_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get resource from identityGovernance diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/scopes/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/scopes/count/count_request_builder.rb index 20b26f6678..e30e416a15 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/scopes/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/scopes/count/count_request_builder.rb @@ -36,7 +36,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -59,17 +58,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb index 152681141f..05fb11f702 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb @@ -43,7 +43,7 @@ def resource() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}{?%24expand,%24select}") end ## ## Delete navigation property scopes for identityGovernance @@ -55,8 +55,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -69,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,8 +83,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -96,13 +93,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,15 +110,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,17 +130,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_scope_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceScopeItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/scopes/item/resource/environment/environment_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/scopes/item/resource/environment/environment_request_builder.rb index 675a794513..c9e84575b9 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/scopes/item/resource/environment/environment_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/scopes/item/resource/environment/environment_request_builder.rb @@ -41,7 +41,7 @@ class EnvironmentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/environment{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/environment{?%24expand,%24select}") end ## ## Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceEnvironment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a environment_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EnvironmentRequestBuilder.new(raw_url, @request_adapter) + end ## # Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/scopes/item/resource/resource_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/scopes/item/resource/resource_request_builder.rb index d1a81425a1..3119176201 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/scopes/item/resource/resource_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/scopes/item/resource/resource_request_builder.rb @@ -45,7 +45,7 @@ def environment() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource{?%24expand,%24select}") end ## ## Delete navigation property resource for identityGovernance @@ -57,8 +57,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -71,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,8 +85,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -98,13 +95,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,15 +112,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -134,17 +132,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resource_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get resource from identityGovernance diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/scopes/scopes_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/scopes/scopes_request_builder.rb index c44cedbfc2..b217ba6407 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/scopes/scopes_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/item/resource/scopes/scopes_request_builder.rb @@ -54,7 +54,7 @@ def by_access_package_resource_scope_id(access_package_resource_scope_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Read-only. Nullable. Supports $expand. @@ -66,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScopeCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,8 +81,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,15 +91,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -113,17 +111,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a scopes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ScopesRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/roles_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/roles_request_builder.rb index b510ca7ea1..8b30b45cf8 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/roles_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/roles/roles_request_builder.rb @@ -48,7 +48,7 @@ def by_access_package_resource_role_id(access_package_resource_role_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Read-only. Nullable. Supports $expand. @@ -60,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRoleCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,8 +75,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,15 +85,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -107,17 +105,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a roles_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RolesRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/count/count_request_builder.rb index 40808977e9..f1e87a1927 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/access_package_resource_scope_item_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/access_package_resource_scope_item_request_builder.rb index 12a2900b29..d791fcc8cf 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/access_package_resource_scope_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/access_package_resource_scope_item_request_builder.rb @@ -37,7 +37,7 @@ def resource() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}{?%24expand,%24select}") end ## ## Delete navigation property scopes for identityGovernance @@ -49,8 +49,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,8 +77,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,13 +87,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -106,15 +104,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,17 +124,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_scope_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceScopeItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/environment/environment_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/environment/environment_request_builder.rb index 4f23ba6d61..c5ffaa1259 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/environment/environment_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/environment/environment_request_builder.rb @@ -35,7 +35,7 @@ class EnvironmentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/environment{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/environment{?%24expand,%24select}") end ## ## Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceEnvironment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a environment_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EnvironmentRequestBuilder.new(raw_url, @request_adapter) + end ## # Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/resource_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/resource_request_builder.rb index 406adc8a81..2bad7e1224 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/resource_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/resource_request_builder.rb @@ -45,7 +45,7 @@ def roles() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource{?%24expand,%24select}") end ## ## Delete navigation property resource for identityGovernance @@ -57,8 +57,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -71,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,8 +85,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -98,13 +95,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,15 +112,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -134,17 +132,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resource_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get resource from identityGovernance diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/roles/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/roles/count/count_request_builder.rb index 53a8457cea..aad1e68ae6 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/roles/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/roles/count/count_request_builder.rb @@ -36,7 +36,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -59,17 +58,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/roles/item/access_package_resource_role_item_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/roles/item/access_package_resource_role_item_request_builder.rb index 1be9dbd252..ba3fb2304e 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/roles/item/access_package_resource_role_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/roles/item/access_package_resource_role_item_request_builder.rb @@ -43,7 +43,7 @@ def resource() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}{?%24expand,%24select}") end ## ## Delete navigation property roles for identityGovernance @@ -55,8 +55,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -69,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,8 +83,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -96,13 +93,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,15 +110,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,17 +130,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_role_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceRoleItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/roles/item/resource/environment/environment_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/roles/item/resource/environment/environment_request_builder.rb index 50658d8b47..cd821c7f2c 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/roles/item/resource/environment/environment_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/roles/item/resource/environment/environment_request_builder.rb @@ -41,7 +41,7 @@ class EnvironmentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/environment{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/environment{?%24expand,%24select}") end ## ## Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceEnvironment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a environment_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EnvironmentRequestBuilder.new(raw_url, @request_adapter) + end ## # Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/roles/item/resource/resource_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/roles/item/resource/resource_request_builder.rb index 9674bc8c28..03a7cd3653 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/roles/item/resource/resource_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/roles/item/resource/resource_request_builder.rb @@ -45,7 +45,7 @@ def environment() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource{?%24expand,%24select}") end ## ## Delete navigation property resource for identityGovernance @@ -57,8 +57,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -71,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,8 +85,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -98,13 +95,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,15 +112,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -134,17 +132,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resource_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get resource from identityGovernance diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/roles/roles_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/roles/roles_request_builder.rb index eecf1994c4..540c87e467 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/roles/roles_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/item/resource/roles/roles_request_builder.rb @@ -54,7 +54,7 @@ def by_access_package_resource_role_id(access_package_resource_role_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Read-only. Nullable. Supports $expand. @@ -66,8 +66,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRoleCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,8 +81,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -93,15 +91,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -113,17 +111,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a roles_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RolesRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/scopes_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/scopes_request_builder.rb index 042f97d1c5..c3e8608572 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/scopes_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/item/scopes/scopes_request_builder.rb @@ -48,7 +48,7 @@ def by_access_package_resource_scope_id(access_package_resource_scope_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Read-only. Nullable. Supports $expand. @@ -60,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScopeCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -76,8 +75,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,15 +85,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -107,17 +105,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a scopes_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ScopesRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/catalogs/item/resources/resources_request_builder.rb b/lib/identity_governance/entitlement_management/catalogs/item/resources/resources_request_builder.rb index 9f65dca28b..c13aeaaf51 100644 --- a/lib/identity_governance/entitlement_management/catalogs/item/resources/resources_request_builder.rb +++ b/lib/identity_governance/entitlement_management/catalogs/item/resources/resources_request_builder.rb @@ -44,10 +44,10 @@ def by_access_package_resource_id(access_package_resource_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of accessPackageResource objects in an accessPackageCatalog. + ## Retrieve a list of accessPackageResource objects in an accessPackageCatalog. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of access_package_resource_collection_response ## @@ -56,8 +56,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -72,26 +71,25 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of accessPackageResource objects in an accessPackageCatalog. + ## Retrieve a list of accessPackageResource objects in an accessPackageCatalog. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -103,20 +101,29 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resources_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourcesRequestBuilder.new(raw_url, @request_adapter) + end ## - # Retrieve a list of accessPackageResource objects in an accessPackageCatalog. + # Retrieve a list of accessPackageResource objects in an accessPackageCatalog. class ResourcesRequestBuilderGetQueryParameters ## diff --git a/lib/identity_governance/entitlement_management/connected_organizations/connected_organizations_request_builder.rb b/lib/identity_governance/entitlement_management/connected_organizations/connected_organizations_request_builder.rb index 61af5e09f6..9eeea1ab9a 100644 --- a/lib/identity_governance/entitlement_management/connected_organizations/connected_organizations_request_builder.rb +++ b/lib/identity_governance/entitlement_management/connected_organizations/connected_organizations_request_builder.rb @@ -40,7 +40,7 @@ def by_connected_organization_id(connected_organization_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## ## Retrieve a list of connectedOrganization objects. @@ -52,8 +52,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConnectedOrganizationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -68,8 +67,7 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConnectedOrganization.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,15 +77,15 @@ def post(body, request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -99,17 +97,26 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a connected_organizations_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConnectedOrganizationsRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve a list of connectedOrganization objects. diff --git a/lib/identity_governance/entitlement_management/connected_organizations/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/connected_organizations/count/count_request_builder.rb index b15884b3ec..a8daab6304 100644 --- a/lib/identity_governance/entitlement_management/connected_organizations/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/connected_organizations/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/connected_organization_item_request_builder.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/connected_organization_item_request_builder.rb index addf6fd41d..5d7f302146 100644 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/connected_organization_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/connected_organizations/item/connected_organization_item_request_builder.rb @@ -35,7 +35,7 @@ def internal_sponsors() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}{?%24expand,%24select}") end ## ## Delete a connectedOrganization object. @@ -47,8 +47,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -61,8 +60,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConnectedOrganization.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -77,8 +75,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConnectedOrganization.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -88,13 +85,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -104,15 +102,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -124,17 +122,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a connected_organization_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ConnectedOrganizationItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Retrieve the properties and relationships of a connectedOrganization object. diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/count/count_request_builder.rb index b1e5481990..ee93c95f00 100644 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/delta/delta.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/delta/delta.rb deleted file mode 100644 index 0c348d20cb..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/delta/delta.rb +++ /dev/null @@ -1 +0,0 @@ -require_relative 'delta_response' diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/delta/delta_request_builder.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/delta/delta_request_builder.rb deleted file mode 100644 index 0fde046531..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/delta/delta_request_builder.rb +++ /dev/null @@ -1,123 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../../identity_governance' -require_relative '../../../../entitlement_management' -require_relative '../../../connected_organizations' -require_relative '../../item' -require_relative '../external_sponsors' -require_relative './delta' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module ConnectedOrganizations - module Item - module ExternalSponsors - module Delta - ## - # Provides operations to call the delta method. - class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new DeltaRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") - end - ## - ## Invoke function delta - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response - ## - def get(request_configuration=nil) - request_info = self.to_get_request_information( - request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::EntitlementManagement::ConnectedOrganizations::Item::ExternalSponsors::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Invoke function delta - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_get_request_information(request_configuration=nil) - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) - request_info.add_request_options(request_configuration.options) - end - return request_info - end - - ## - # Invoke function delta - class DeltaRequestBuilderGetQueryParameters - - ## - # Include count of items - attr_accessor :count - ## - # Filter items by property values - attr_accessor :filter - ## - # Order items by property values - attr_accessor :orderby - ## - # Search items by search phrases - attr_accessor :search - ## - # Select properties to be returned - attr_accessor :select - ## - # Skip the first n items - attr_accessor :skip - ## - # Show only the first n items - attr_accessor :top - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "count" - return "%24count" - when "filter" - return "%24filter" - when "orderby" - return "%24orderby" - when "search" - return "%24search" - when "select" - return "%24select" - when "skip" - return "%24skip" - when "top" - return "%24top" - else - return original_name - end - end - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/delta/delta_response.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/delta/delta_response.rb deleted file mode 100644 index 11bff2b778..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/delta/delta_response.rb +++ /dev/null @@ -1,81 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/base_delta_function_response' -require_relative '../../../../../../models/directory_object' -require_relative '../../../../../identity_governance' -require_relative '../../../../entitlement_management' -require_relative '../../../connected_organizations' -require_relative '../../item' -require_relative '../external_sponsors' -require_relative './delta' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module ConnectedOrganizations - module Item - module ExternalSponsors - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/external_sponsors_request_builder.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/external_sponsors_request_builder.rb index 93aff1423d..8dc1a61ba2 100644 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/external_sponsors_request_builder.rb +++ b/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/external_sponsors_request_builder.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/directory_object' require_relative '../../../../../models/directory_object_collection_response' require_relative '../../../../../models/o_data_errors_o_data_error' require_relative '../../../../identity_governance' @@ -8,13 +7,9 @@ require_relative '../../connected_organizations' require_relative '../item' require_relative './count/count_request_builder' -require_relative './delta/delta_request_builder' require_relative './external_sponsors' -require_relative './get_available_extension_properties/get_available_extension_properties_request_builder' -require_relative './get_by_ids/get_by_ids_request_builder' require_relative './item/directory_object_item_request_builder' require_relative './ref/ref_request_builder' -require_relative './validate_properties/validate_properties_request_builder' module MicrosoftGraph module IdentityGovernance @@ -32,33 +27,13 @@ def count() return MicrosoftGraph::IdentityGovernance::EntitlementManagement::ConnectedOrganizations::Item::ExternalSponsors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## - # Provides operations to call the delta method. - def delta() - return MicrosoftGraph::IdentityGovernance::EntitlementManagement::ConnectedOrganizations::Item::ExternalSponsors::Delta::DeltaRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the getAvailableExtensionProperties method. - def get_available_extension_properties() - return MicrosoftGraph::IdentityGovernance::EntitlementManagement::ConnectedOrganizations::Item::ExternalSponsors::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the getByIds method. - def get_by_ids() - return MicrosoftGraph::IdentityGovernance::EntitlementManagement::ConnectedOrganizations::Item::ExternalSponsors::GetByIds::GetByIdsRequestBuilder.new(@path_parameters, @request_adapter) - end - ## # Provides operations to manage the collection of identityGovernance entities. def ref() return MicrosoftGraph::IdentityGovernance::EntitlementManagement::ConnectedOrganizations::Item::ExternalSponsors::Ref::RefRequestBuilder.new(@path_parameters, @request_adapter) end ## - # Provides operations to call the validateProperties method. - def validate_properties() - return MicrosoftGraph::IdentityGovernance::EntitlementManagement::ConnectedOrganizations::Item::ExternalSponsors::ValidateProperties::ValidatePropertiesRequestBuilder.new(@path_parameters, @request_adapter) - end - ## ## Gets an item from the MicrosoftGraph.identityGovernance.entitlementManagement.connectedOrganizations.item.externalSponsors.item collection - ## @param directory_object_id Unique identifier of the item + ## @param directory_object_id The unique identifier of directoryObject ## @return a directory_object_item_request_builder ## def by_directory_object_id(directory_object_id) @@ -74,10 +49,10 @@ def by_directory_object_id(directory_object_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + ## Get externalSponsors from identityGovernance ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object_collection_response ## @@ -86,67 +61,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Add a user or a group to the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of directory_object - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + ## Get externalSponsors from identityGovernance ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Add a user or a group to the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a external_sponsors_request_builder ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ExternalSponsorsRequestBuilder.new(raw_url, @request_adapter) end ## - # Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + # Get externalSponsors from identityGovernance class ExternalSponsorsRequestBuilderGetQueryParameters ## diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_available_extension_properties/get_available_extension_properties.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_available_extension_properties/get_available_extension_properties.rb deleted file mode 100644 index b6fee576bf..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_available_extension_properties/get_available_extension_properties.rb +++ /dev/null @@ -1,2 +0,0 @@ -require_relative 'get_available_extension_properties_post_request_body' -require_relative 'get_available_extension_properties_response' diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_available_extension_properties/get_available_extension_properties_post_request_body.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_available_extension_properties/get_available_extension_properties_post_request_body.rb deleted file mode 100644 index d4500f8430..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_available_extension_properties/get_available_extension_properties_post_request_body.rb +++ /dev/null @@ -1,97 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../identity_governance' -require_relative '../../../../entitlement_management' -require_relative '../../../connected_organizations' -require_relative '../../item' -require_relative '../external_sponsors' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module ConnectedOrganizations - module Item - module ExternalSponsors - module GetAvailableExtensionProperties - class GetAvailableExtensionPropertiesPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The isSyncedFromOnPremises property - @is_synced_from_on_premises - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new getAvailableExtensionPropertiesPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_available_extension_properties_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAvailableExtensionPropertiesPostRequestBody.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "isSyncedFromOnPremises" => lambda {|n| @is_synced_from_on_premises = n.get_boolean_value() }, - } - end - ## - ## Gets the isSyncedFromOnPremises property value. The isSyncedFromOnPremises property - ## @return a boolean - ## - def is_synced_from_on_premises - return @is_synced_from_on_premises - end - ## - ## Sets the isSyncedFromOnPremises property value. The isSyncedFromOnPremises property - ## @param value Value to set for the isSyncedFromOnPremises property. - ## @return a void - ## - def is_synced_from_on_premises=(value) - @is_synced_from_on_premises = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("isSyncedFromOnPremises", @is_synced_from_on_premises) - writer.write_additional_data(@additional_data) - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_available_extension_properties/get_available_extension_properties_request_builder.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_available_extension_properties/get_available_extension_properties_request_builder.rb deleted file mode 100644 index c078ec70f1..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_available_extension_properties/get_available_extension_properties_request_builder.rb +++ /dev/null @@ -1,74 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../../identity_governance' -require_relative '../../../../entitlement_management' -require_relative '../../../connected_organizations' -require_relative '../../item' -require_relative '../external_sponsors' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module ConnectedOrganizations - module Item - module ExternalSponsors - module GetAvailableExtensionProperties - ## - # Provides operations to call the getAvailableExtensionProperties method. - class GetAvailableExtensionPropertiesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new GetAvailableExtensionPropertiesRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/getAvailableExtensionProperties") - end - ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_available_extension_properties_response - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::EntitlementManagement::ConnectedOrganizations::Item::ExternalSponsors::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_available_extension_properties/get_available_extension_properties_response.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_available_extension_properties/get_available_extension_properties_response.rb deleted file mode 100644 index ec1f2b3369..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_available_extension_properties/get_available_extension_properties_response.rb +++ /dev/null @@ -1,81 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../../models/extension_property' -require_relative '../../../../../identity_governance' -require_relative '../../../../entitlement_management' -require_relative '../../../connected_organizations' -require_relative '../../item' -require_relative '../external_sponsors' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module ConnectedOrganizations - module Item - module ExternalSponsors - module GetAvailableExtensionProperties - class GetAvailableExtensionPropertiesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_available_extension_properties_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAvailableExtensionPropertiesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a extension_property - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_by_ids/get_by_ids.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_by_ids/get_by_ids.rb deleted file mode 100644 index e4b0824834..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_by_ids/get_by_ids.rb +++ /dev/null @@ -1,2 +0,0 @@ -require_relative 'get_by_ids_post_request_body' -require_relative 'get_by_ids_response' diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_by_ids/get_by_ids_post_request_body.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_by_ids/get_by_ids_post_request_body.rb deleted file mode 100644 index e1eb70c03c..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_by_ids/get_by_ids_post_request_body.rb +++ /dev/null @@ -1,117 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../identity_governance' -require_relative '../../../../entitlement_management' -require_relative '../../../connected_organizations' -require_relative '../../item' -require_relative '../external_sponsors' -require_relative './get_by_ids' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module ConnectedOrganizations - module Item - module ExternalSponsors - module GetByIds - class GetByIdsPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The ids property - @ids - ## - # The types property - @types - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new getByIdsPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_by_ids_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetByIdsPostRequestBody.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "ids" => lambda {|n| @ids = n.get_collection_of_primitive_values(String) }, - "types" => lambda {|n| @types = n.get_collection_of_primitive_values(String) }, - } - end - ## - ## Gets the ids property value. The ids property - ## @return a string - ## - def ids - return @ids - end - ## - ## Sets the ids property value. The ids property - ## @param value Value to set for the ids property. - ## @return a void - ## - def ids=(value) - @ids = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_collection_of_primitive_values("ids", @ids) - writer.write_collection_of_primitive_values("types", @types) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the types property value. The types property - ## @return a string - ## - def types - return @types - end - ## - ## Sets the types property value. The types property - ## @param value Value to set for the types property. - ## @return a void - ## - def types=(value) - @types = value - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_by_ids/get_by_ids_request_builder.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_by_ids/get_by_ids_request_builder.rb deleted file mode 100644 index b94dcfeee9..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_by_ids/get_by_ids_request_builder.rb +++ /dev/null @@ -1,74 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../../identity_governance' -require_relative '../../../../entitlement_management' -require_relative '../../../connected_organizations' -require_relative '../../item' -require_relative '../external_sponsors' -require_relative './get_by_ids' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module ConnectedOrganizations - module Item - module ExternalSponsors - module GetByIds - ## - # Provides operations to call the getByIds method. - class GetByIdsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new GetByIdsRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/getByIds") - end - ## - ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_by_ids_response - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::EntitlementManagement::ConnectedOrganizations::Item::ExternalSponsors::GetByIds::GetByIdsResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_by_ids/get_by_ids_response.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_by_ids/get_by_ids_response.rb deleted file mode 100644 index cee9e19ec0..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/get_by_ids/get_by_ids_response.rb +++ /dev/null @@ -1,81 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../../models/directory_object' -require_relative '../../../../../identity_governance' -require_relative '../../../../entitlement_management' -require_relative '../../../connected_organizations' -require_relative '../../item' -require_relative '../external_sponsors' -require_relative './get_by_ids' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module ConnectedOrganizations - module Item - module ExternalSponsors - module GetByIds - class GetByIdsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getByIdsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_by_ids_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetByIdsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/item/ref/ref_request_builder.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/item/ref/ref_request_builder.rb index 06b8a15ddc..8ff191bfcb 100644 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/item/ref/ref_request_builder.rb +++ b/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/item/ref/ref_request_builder.rb @@ -28,7 +28,7 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/{directoryObject%2Did}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/{directoryObject%2Did}/$ref") end ## ## Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. @@ -40,8 +40,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,38 +50,24 @@ def delete(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/ref/ref_request_builder.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/ref/ref_request_builder.rb index 151b306f1a..bbbc5edfdd 100644 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/ref/ref_request_builder.rb +++ b/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/ref/ref_request_builder.rb @@ -28,10 +28,23 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") end ## - ## Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + ## Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Get ref of externalSponsors from identityGovernance ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of string_collection_response ## @@ -40,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,26 +68,43 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + ## Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/$ref?@id={%40id}' request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Get ref of externalSponsors from identityGovernance + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -87,19 +116,52 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end ## - # Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + # Get ref of externalSponsors from identityGovernance class RefRequestBuilderGetQueryParameters ## diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/validate_properties/validate_properties.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/validate_properties/validate_properties.rb deleted file mode 100644 index 6b178d139b..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/validate_properties/validate_properties.rb +++ /dev/null @@ -1 +0,0 @@ -require_relative 'validate_properties_post_request_body' diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/validate_properties/validate_properties_post_request_body.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/validate_properties/validate_properties_post_request_body.rb deleted file mode 100644 index 642760d5c9..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/validate_properties/validate_properties_post_request_body.rb +++ /dev/null @@ -1,157 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../identity_governance' -require_relative '../../../../entitlement_management' -require_relative '../../../connected_organizations' -require_relative '../../item' -require_relative '../external_sponsors' -require_relative './validate_properties' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module ConnectedOrganizations - module Item - module ExternalSponsors - module ValidateProperties - class ValidatePropertiesPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The displayName property - @display_name - ## - # The entityType property - @entity_type - ## - # The mailNickname property - @mail_nickname - ## - # The onBehalfOfUserId property - @on_behalf_of_user_id - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new validatePropertiesPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a validate_properties_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return ValidatePropertiesPostRequestBody.new - end - ## - ## Gets the displayName property value. The displayName property - ## @return a string - ## - def display_name - return @display_name - end - ## - ## Sets the displayName property value. The displayName property - ## @param value Value to set for the displayName property. - ## @return a void - ## - def display_name=(value) - @display_name = value - end - ## - ## Gets the entityType property value. The entityType property - ## @return a string - ## - def entity_type - return @entity_type - end - ## - ## Sets the entityType property value. The entityType property - ## @param value Value to set for the entityType property. - ## @return a void - ## - def entity_type=(value) - @entity_type = value - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "displayName" => lambda {|n| @display_name = n.get_string_value() }, - "entityType" => lambda {|n| @entity_type = n.get_string_value() }, - "mailNickname" => lambda {|n| @mail_nickname = n.get_string_value() }, - "onBehalfOfUserId" => lambda {|n| @on_behalf_of_user_id = n.get_guid_value() }, - } - end - ## - ## Gets the mailNickname property value. The mailNickname property - ## @return a string - ## - def mail_nickname - return @mail_nickname - end - ## - ## Sets the mailNickname property value. The mailNickname property - ## @param value Value to set for the mailNickname property. - ## @return a void - ## - def mail_nickname=(value) - @mail_nickname = value - end - ## - ## Gets the onBehalfOfUserId property value. The onBehalfOfUserId property - ## @return a guid - ## - def on_behalf_of_user_id - return @on_behalf_of_user_id - end - ## - ## Sets the onBehalfOfUserId property value. The onBehalfOfUserId property - ## @param value Value to set for the onBehalfOfUserId property. - ## @return a void - ## - def on_behalf_of_user_id=(value) - @on_behalf_of_user_id = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_string_value("displayName", @display_name) - writer.write_string_value("entityType", @entity_type) - writer.write_string_value("mailNickname", @mail_nickname) - writer.write_guid_value("onBehalfOfUserId", @on_behalf_of_user_id) - writer.write_additional_data(@additional_data) - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/validate_properties/validate_properties_request_builder.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/validate_properties/validate_properties_request_builder.rb deleted file mode 100644 index b1aa370f17..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/external_sponsors/validate_properties/validate_properties_request_builder.rb +++ /dev/null @@ -1,73 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../../identity_governance' -require_relative '../../../../entitlement_management' -require_relative '../../../connected_organizations' -require_relative '../../item' -require_relative '../external_sponsors' -require_relative './validate_properties' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module ConnectedOrganizations - module Item - module ExternalSponsors - module ValidateProperties - ## - # Provides operations to call the validateProperties method. - class ValidatePropertiesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new ValidatePropertiesRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/validateProperties") - end - ## - ## Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of void - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, nil, error_mapping) - end - ## - ## Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/count/count_request_builder.rb index e117c3eec3..db65934feb 100644 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/delta/delta.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/delta/delta.rb deleted file mode 100644 index 0c348d20cb..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/delta/delta.rb +++ /dev/null @@ -1 +0,0 @@ -require_relative 'delta_response' diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/delta/delta_request_builder.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/delta/delta_request_builder.rb deleted file mode 100644 index d2ce7da5b3..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/delta/delta_request_builder.rb +++ /dev/null @@ -1,123 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../../identity_governance' -require_relative '../../../../entitlement_management' -require_relative '../../../connected_organizations' -require_relative '../../item' -require_relative '../internal_sponsors' -require_relative './delta' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module ConnectedOrganizations - module Item - module InternalSponsors - module Delta - ## - # Provides operations to call the delta method. - class DeltaRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new DeltaRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}") - end - ## - ## Invoke function delta - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of delta_response - ## - def get(request_configuration=nil) - request_info = self.to_get_request_information( - request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::EntitlementManagement::ConnectedOrganizations::Item::InternalSponsors::Delta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Invoke function delta - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_get_request_information(request_configuration=nil) - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) - request_info.add_request_options(request_configuration.options) - end - return request_info - end - - ## - # Invoke function delta - class DeltaRequestBuilderGetQueryParameters - - ## - # Include count of items - attr_accessor :count - ## - # Filter items by property values - attr_accessor :filter - ## - # Order items by property values - attr_accessor :orderby - ## - # Search items by search phrases - attr_accessor :search - ## - # Select properties to be returned - attr_accessor :select - ## - # Skip the first n items - attr_accessor :skip - ## - # Show only the first n items - attr_accessor :top - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "count" - return "%24count" - when "filter" - return "%24filter" - when "orderby" - return "%24orderby" - when "search" - return "%24search" - when "select" - return "%24select" - when "skip" - return "%24skip" - when "top" - return "%24top" - else - return original_name - end - end - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/delta/delta_response.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/delta/delta_response.rb deleted file mode 100644 index d06750cbf1..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/delta/delta_response.rb +++ /dev/null @@ -1,81 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/base_delta_function_response' -require_relative '../../../../../../models/directory_object' -require_relative '../../../../../identity_governance' -require_relative '../../../../entitlement_management' -require_relative '../../../connected_organizations' -require_relative '../../item' -require_relative '../internal_sponsors' -require_relative './delta' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module ConnectedOrganizations - module Item - module InternalSponsors - module Delta - class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new deltaResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a delta_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return DeltaResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_available_extension_properties/get_available_extension_properties.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_available_extension_properties/get_available_extension_properties.rb deleted file mode 100644 index b6fee576bf..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_available_extension_properties/get_available_extension_properties.rb +++ /dev/null @@ -1,2 +0,0 @@ -require_relative 'get_available_extension_properties_post_request_body' -require_relative 'get_available_extension_properties_response' diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_available_extension_properties/get_available_extension_properties_post_request_body.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_available_extension_properties/get_available_extension_properties_post_request_body.rb deleted file mode 100644 index 43165c0bc5..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_available_extension_properties/get_available_extension_properties_post_request_body.rb +++ /dev/null @@ -1,97 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../identity_governance' -require_relative '../../../../entitlement_management' -require_relative '../../../connected_organizations' -require_relative '../../item' -require_relative '../internal_sponsors' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module ConnectedOrganizations - module Item - module InternalSponsors - module GetAvailableExtensionProperties - class GetAvailableExtensionPropertiesPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The isSyncedFromOnPremises property - @is_synced_from_on_premises - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new getAvailableExtensionPropertiesPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_available_extension_properties_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAvailableExtensionPropertiesPostRequestBody.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "isSyncedFromOnPremises" => lambda {|n| @is_synced_from_on_premises = n.get_boolean_value() }, - } - end - ## - ## Gets the isSyncedFromOnPremises property value. The isSyncedFromOnPremises property - ## @return a boolean - ## - def is_synced_from_on_premises - return @is_synced_from_on_premises - end - ## - ## Sets the isSyncedFromOnPremises property value. The isSyncedFromOnPremises property - ## @param value Value to set for the isSyncedFromOnPremises property. - ## @return a void - ## - def is_synced_from_on_premises=(value) - @is_synced_from_on_premises = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_boolean_value("isSyncedFromOnPremises", @is_synced_from_on_premises) - writer.write_additional_data(@additional_data) - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_available_extension_properties/get_available_extension_properties_request_builder.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_available_extension_properties/get_available_extension_properties_request_builder.rb deleted file mode 100644 index 6c1c69bba5..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_available_extension_properties/get_available_extension_properties_request_builder.rb +++ /dev/null @@ -1,74 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../../identity_governance' -require_relative '../../../../entitlement_management' -require_relative '../../../connected_organizations' -require_relative '../../item' -require_relative '../internal_sponsors' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module ConnectedOrganizations - module Item - module InternalSponsors - module GetAvailableExtensionProperties - ## - # Provides operations to call the getAvailableExtensionProperties method. - class GetAvailableExtensionPropertiesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new GetAvailableExtensionPropertiesRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/getAvailableExtensionProperties") - end - ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_available_extension_properties_response - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::EntitlementManagement::ConnectedOrganizations::Item::InternalSponsors::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_available_extension_properties/get_available_extension_properties_response.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_available_extension_properties/get_available_extension_properties_response.rb deleted file mode 100644 index b6da9e74aa..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_available_extension_properties/get_available_extension_properties_response.rb +++ /dev/null @@ -1,81 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../../models/extension_property' -require_relative '../../../../../identity_governance' -require_relative '../../../../entitlement_management' -require_relative '../../../connected_organizations' -require_relative '../../item' -require_relative '../internal_sponsors' -require_relative './get_available_extension_properties' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module ConnectedOrganizations - module Item - module InternalSponsors - module GetAvailableExtensionProperties - class GetAvailableExtensionPropertiesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_available_extension_properties_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetAvailableExtensionPropertiesResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a extension_property - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_by_ids/get_by_ids.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_by_ids/get_by_ids.rb deleted file mode 100644 index e4b0824834..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_by_ids/get_by_ids.rb +++ /dev/null @@ -1,2 +0,0 @@ -require_relative 'get_by_ids_post_request_body' -require_relative 'get_by_ids_response' diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_by_ids/get_by_ids_post_request_body.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_by_ids/get_by_ids_post_request_body.rb deleted file mode 100644 index 343176151e..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_by_ids/get_by_ids_post_request_body.rb +++ /dev/null @@ -1,117 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../identity_governance' -require_relative '../../../../entitlement_management' -require_relative '../../../connected_organizations' -require_relative '../../item' -require_relative '../internal_sponsors' -require_relative './get_by_ids' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module ConnectedOrganizations - module Item - module InternalSponsors - module GetByIds - class GetByIdsPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The ids property - @ids - ## - # The types property - @types - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new getByIdsPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_by_ids_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetByIdsPostRequestBody.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "ids" => lambda {|n| @ids = n.get_collection_of_primitive_values(String) }, - "types" => lambda {|n| @types = n.get_collection_of_primitive_values(String) }, - } - end - ## - ## Gets the ids property value. The ids property - ## @return a string - ## - def ids - return @ids - end - ## - ## Sets the ids property value. The ids property - ## @param value Value to set for the ids property. - ## @return a void - ## - def ids=(value) - @ids = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_collection_of_primitive_values("ids", @ids) - writer.write_collection_of_primitive_values("types", @types) - writer.write_additional_data(@additional_data) - end - ## - ## Gets the types property value. The types property - ## @return a string - ## - def types - return @types - end - ## - ## Sets the types property value. The types property - ## @param value Value to set for the types property. - ## @return a void - ## - def types=(value) - @types = value - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_by_ids/get_by_ids_request_builder.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_by_ids/get_by_ids_request_builder.rb deleted file mode 100644 index ecf5783254..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_by_ids/get_by_ids_request_builder.rb +++ /dev/null @@ -1,74 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../../identity_governance' -require_relative '../../../../entitlement_management' -require_relative '../../../connected_organizations' -require_relative '../../item' -require_relative '../internal_sponsors' -require_relative './get_by_ids' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module ConnectedOrganizations - module Item - module InternalSponsors - module GetByIds - ## - # Provides operations to call the getByIds method. - class GetByIdsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new GetByIdsRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/getByIds") - end - ## - ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of get_by_ids_response - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::IdentityGovernance::EntitlementManagement::ConnectedOrganizations::Item::InternalSponsors::GetByIds::GetByIdsResponse.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_by_ids/get_by_ids_response.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_by_ids/get_by_ids_response.rb deleted file mode 100644 index 68d6e5d3f8..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_by_ids/get_by_ids_response.rb +++ /dev/null @@ -1,81 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/base_collection_pagination_count_response' -require_relative '../../../../../../models/directory_object' -require_relative '../../../../../identity_governance' -require_relative '../../../../entitlement_management' -require_relative '../../../connected_organizations' -require_relative '../../item' -require_relative '../internal_sponsors' -require_relative './get_by_ids' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module ConnectedOrganizations - module Item - module InternalSponsors - module GetByIds - class GetByIdsResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::Parsable - ## - # The value property - @value - ## - ## Instantiates a new getByIdsResponse and sets the default values. - ## @return a void - ## - def initialize() - super - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a get_by_ids_response - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return GetByIdsResponse.new - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return super.merge({ - "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, - }) - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - super - writer.write_collection_of_object_values("value", @value) - end - ## - ## Gets the value property value. The value property - ## @return a directory_object - ## - def value - return @value - end - ## - ## Sets the value property value. The value property - ## @param value Value to set for the value property. - ## @return a void - ## - def value=(value) - @value = value - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/internal_sponsors_request_builder.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/internal_sponsors_request_builder.rb index ad430b6c08..253d35468e 100644 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/internal_sponsors_request_builder.rb +++ b/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/internal_sponsors_request_builder.rb @@ -1,6 +1,5 @@ require 'microsoft_kiota_abstractions' require_relative '../../../../../microsoft_graph' -require_relative '../../../../../models/directory_object' require_relative '../../../../../models/directory_object_collection_response' require_relative '../../../../../models/o_data_errors_o_data_error' require_relative '../../../../identity_governance' @@ -8,13 +7,9 @@ require_relative '../../connected_organizations' require_relative '../item' require_relative './count/count_request_builder' -require_relative './delta/delta_request_builder' -require_relative './get_available_extension_properties/get_available_extension_properties_request_builder' -require_relative './get_by_ids/get_by_ids_request_builder' require_relative './internal_sponsors' require_relative './item/directory_object_item_request_builder' require_relative './ref/ref_request_builder' -require_relative './validate_properties/validate_properties_request_builder' module MicrosoftGraph module IdentityGovernance @@ -32,33 +27,13 @@ def count() return MicrosoftGraph::IdentityGovernance::EntitlementManagement::ConnectedOrganizations::Item::InternalSponsors::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## - # Provides operations to call the delta method. - def delta() - return MicrosoftGraph::IdentityGovernance::EntitlementManagement::ConnectedOrganizations::Item::InternalSponsors::Delta::DeltaRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the getAvailableExtensionProperties method. - def get_available_extension_properties() - return MicrosoftGraph::IdentityGovernance::EntitlementManagement::ConnectedOrganizations::Item::InternalSponsors::GetAvailableExtensionProperties::GetAvailableExtensionPropertiesRequestBuilder.new(@path_parameters, @request_adapter) - end - ## - # Provides operations to call the getByIds method. - def get_by_ids() - return MicrosoftGraph::IdentityGovernance::EntitlementManagement::ConnectedOrganizations::Item::InternalSponsors::GetByIds::GetByIdsRequestBuilder.new(@path_parameters, @request_adapter) - end - ## # Provides operations to manage the collection of identityGovernance entities. def ref() return MicrosoftGraph::IdentityGovernance::EntitlementManagement::ConnectedOrganizations::Item::InternalSponsors::Ref::RefRequestBuilder.new(@path_parameters, @request_adapter) end ## - # Provides operations to call the validateProperties method. - def validate_properties() - return MicrosoftGraph::IdentityGovernance::EntitlementManagement::ConnectedOrganizations::Item::InternalSponsors::ValidateProperties::ValidatePropertiesRequestBuilder.new(@path_parameters, @request_adapter) - end - ## ## Gets an item from the MicrosoftGraph.identityGovernance.entitlementManagement.connectedOrganizations.item.internalSponsors.item collection - ## @param directory_object_id Unique identifier of the item + ## @param directory_object_id The unique identifier of directoryObject ## @return a directory_object_item_request_builder ## def by_directory_object_id(directory_object_id) @@ -74,10 +49,10 @@ def by_directory_object_id(directory_object_id) ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}") end ## - ## Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + ## Get internalSponsors from identityGovernance ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of directory_object_collection_response ## @@ -86,67 +61,39 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Add a user or a group to the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of directory_object - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) - end - ## - ## Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + ## Get internalSponsors from identityGovernance ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## - ## Add a user or a group to the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a internal_sponsors_request_builder ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - request_info.headers.add('Accept', 'application/json') - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return InternalSponsorsRequestBuilder.new(raw_url, @request_adapter) end ## - # Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + # Get internalSponsors from identityGovernance class InternalSponsorsRequestBuilderGetQueryParameters ## diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/item/ref/ref_request_builder.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/item/ref/ref_request_builder.rb index 6e0f37ecab..aaed6be6d0 100644 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/item/ref/ref_request_builder.rb +++ b/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/item/ref/ref_request_builder.rb @@ -28,7 +28,7 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/{directoryObject%2Did}/$ref{?%40id*}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/{directoryObject%2Did}/$ref") end ## ## Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. @@ -40,8 +40,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -51,38 +50,24 @@ def delete(request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end - ## - # Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. - class RefRequestBuilderDeleteQueryParameters - - ## - # Delete Uri - attr_accessor :id - ## - ## Maps the query parameters names to their encoded names for the URI template parsing. - ## @param original_name The original query parameter name in the class. - ## @return a string - ## - def get_query_parameter(original_name) - raise StandardError, 'original_name cannot be null' if original_name.nil? - case original_name - when "id" - return "%40id" - else - return original_name - end - end + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) end end end diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/ref/ref_request_builder.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/ref/ref_request_builder.rb index b1df080a17..91ce9b6dfe 100644 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/ref/ref_request_builder.rb +++ b/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/ref/ref_request_builder.rb @@ -28,10 +28,23 @@ class RefRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}") end ## - ## Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + ## Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Get ref of internalSponsors from identityGovernance ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of string_collection_response ## @@ -40,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::StringCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -56,26 +68,43 @@ def post(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + ## Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## - def to_get_request_information(request_configuration=nil) + def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + request_info.url_template = '{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/$ref?@id={%40id}' request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') + return request_info + end + ## + ## Get ref of internalSponsors from identityGovernance + ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = '{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}' + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -87,19 +116,52 @@ def to_get_request_information(request_configuration=nil) def to_post_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = '{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/$ref' + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a ref_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return RefRequestBuilder.new(raw_url, @request_adapter) + end + + ## + # Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + class RefRequestBuilderDeleteQueryParameters + + ## + # The delete Uri + attr_accessor :id + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param original_name The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "id" + return "%40id" + else + return original_name + end + end + end ## - # Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + # Get ref of internalSponsors from identityGovernance class RefRequestBuilderGetQueryParameters ## diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/validate_properties/validate_properties.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/validate_properties/validate_properties.rb deleted file mode 100644 index 6b178d139b..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/validate_properties/validate_properties.rb +++ /dev/null @@ -1 +0,0 @@ -require_relative 'validate_properties_post_request_body' diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/validate_properties/validate_properties_post_request_body.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/validate_properties/validate_properties_post_request_body.rb deleted file mode 100644 index 60b37e40f6..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/validate_properties/validate_properties_post_request_body.rb +++ /dev/null @@ -1,157 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../identity_governance' -require_relative '../../../../entitlement_management' -require_relative '../../../connected_organizations' -require_relative '../../item' -require_relative '../internal_sponsors' -require_relative './validate_properties' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module ConnectedOrganizations - module Item - module InternalSponsors - module ValidateProperties - class ValidatePropertiesPostRequestBody - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data - ## - # The displayName property - @display_name - ## - # The entityType property - @entity_type - ## - # The mailNickname property - @mail_nickname - ## - # The onBehalfOfUserId property - @on_behalf_of_user_id - ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the additionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## - ## Instantiates a new validatePropertiesPostRequestBody and sets the default values. - ## @return a void - ## - def initialize() - @additional_data = Hash.new - end - ## - ## Creates a new instance of the appropriate class based on discriminator value - ## @param parse_node The parse node to use to read the discriminator value and create the object - ## @return a validate_properties_post_request_body - ## - def self.create_from_discriminator_value(parse_node) - raise StandardError, 'parse_node cannot be null' if parse_node.nil? - return ValidatePropertiesPostRequestBody.new - end - ## - ## Gets the displayName property value. The displayName property - ## @return a string - ## - def display_name - return @display_name - end - ## - ## Sets the displayName property value. The displayName property - ## @param value Value to set for the displayName property. - ## @return a void - ## - def display_name=(value) - @display_name = value - end - ## - ## Gets the entityType property value. The entityType property - ## @return a string - ## - def entity_type - return @entity_type - end - ## - ## Sets the entityType property value. The entityType property - ## @param value Value to set for the entityType property. - ## @return a void - ## - def entity_type=(value) - @entity_type = value - end - ## - ## The deserialization information for the current model - ## @return a i_dictionary - ## - def get_field_deserializers() - return { - "displayName" => lambda {|n| @display_name = n.get_string_value() }, - "entityType" => lambda {|n| @entity_type = n.get_string_value() }, - "mailNickname" => lambda {|n| @mail_nickname = n.get_string_value() }, - "onBehalfOfUserId" => lambda {|n| @on_behalf_of_user_id = n.get_guid_value() }, - } - end - ## - ## Gets the mailNickname property value. The mailNickname property - ## @return a string - ## - def mail_nickname - return @mail_nickname - end - ## - ## Sets the mailNickname property value. The mailNickname property - ## @param value Value to set for the mailNickname property. - ## @return a void - ## - def mail_nickname=(value) - @mail_nickname = value - end - ## - ## Gets the onBehalfOfUserId property value. The onBehalfOfUserId property - ## @return a guid - ## - def on_behalf_of_user_id - return @on_behalf_of_user_id - end - ## - ## Sets the onBehalfOfUserId property value. The onBehalfOfUserId property - ## @param value Value to set for the onBehalfOfUserId property. - ## @return a void - ## - def on_behalf_of_user_id=(value) - @on_behalf_of_user_id = value - end - ## - ## Serializes information the current object - ## @param writer Serialization writer to use to serialize this model - ## @return a void - ## - def serialize(writer) - raise StandardError, 'writer cannot be null' if writer.nil? - writer.write_string_value("displayName", @display_name) - writer.write_string_value("entityType", @entity_type) - writer.write_string_value("mailNickname", @mail_nickname) - writer.write_guid_value("onBehalfOfUserId", @on_behalf_of_user_id) - writer.write_additional_data(@additional_data) - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/validate_properties/validate_properties_request_builder.rb b/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/validate_properties/validate_properties_request_builder.rb deleted file mode 100644 index 0415c9a959..0000000000 --- a/lib/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/validate_properties/validate_properties_request_builder.rb +++ /dev/null @@ -1,73 +0,0 @@ -require 'microsoft_kiota_abstractions' -require_relative '../../../../../../microsoft_graph' -require_relative '../../../../../../models/o_data_errors_o_data_error' -require_relative '../../../../../identity_governance' -require_relative '../../../../entitlement_management' -require_relative '../../../connected_organizations' -require_relative '../../item' -require_relative '../internal_sponsors' -require_relative './validate_properties' - -module MicrosoftGraph - module IdentityGovernance - module EntitlementManagement - module ConnectedOrganizations - module Item - module InternalSponsors - module ValidateProperties - ## - # Provides operations to call the validateProperties method. - class ValidatePropertiesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder - - ## - ## Instantiates a new ValidatePropertiesRequestBuilder and sets the default values. - ## @param path_parameters Path parameters for the request - ## @param request_adapter The request adapter to use to execute the requests. - ## @return a void - ## - def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/validateProperties") - end - ## - ## Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a Fiber of void - ## - def post(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = self.to_post_request_information( - body, request_configuration - ) - error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - return @request_adapter.send_async(request_info, nil, error_mapping) - end - ## - ## Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - ## @param body The request body - ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. - ## @return a request_information - ## - def to_post_request_information(body, request_configuration=nil) - raise StandardError, 'body cannot be null' if body.nil? - request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :POST - unless request_configuration.nil? - request_info.add_headers_from_raw_object(request_configuration.headers) - request_info.add_request_options(request_configuration.options) - end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) - return request_info - end - end - end - end - end - end - end - end -end diff --git a/lib/identity_governance/entitlement_management/entitlement_management_request_builder.rb b/lib/identity_governance/entitlement_management/entitlement_management_request_builder.rb index 57c923e0ac..f79d0487aa 100644 --- a/lib/identity_governance/entitlement_management/entitlement_management_request_builder.rb +++ b/lib/identity_governance/entitlement_management/entitlement_management_request_builder.rb @@ -91,7 +91,7 @@ def settings() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement{?%24expand,%24select}") end ## ## Delete navigation property entitlementManagement for identityGovernance @@ -103,8 +103,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -117,8 +116,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EntitlementManagement.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -133,8 +131,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::EntitlementManagement.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -144,13 +141,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -160,15 +158,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -180,17 +178,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a entitlement_management_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EntitlementManagementRequestBuilder.new(raw_url, @request_adapter) + end ## # Get entitlementManagement from identityGovernance diff --git a/lib/identity_governance/entitlement_management/resource_environments/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/resource_environments/count/count_request_builder.rb index 698e67c2cd..73a3d9aba4 100644 --- a/lib/identity_governance/entitlement_management/resource_environments/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/resource_environments/count/count_request_builder.rb @@ -22,7 +22,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -34,8 +34,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -45,17 +44,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/resource_environments/item/access_package_resource_environment_item_request_builder.rb b/lib/identity_governance/entitlement_management/resource_environments/item/access_package_resource_environment_item_request_builder.rb index 7094241f2b..5e94088790 100644 --- a/lib/identity_governance/entitlement_management/resource_environments/item/access_package_resource_environment_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/resource_environments/item/access_package_resource_environment_item_request_builder.rb @@ -29,7 +29,7 @@ def resources() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}{?%24expand,%24select}") end ## ## Delete navigation property resourceEnvironments for identityGovernance @@ -41,8 +41,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -55,8 +54,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceEnvironment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -71,8 +69,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceEnvironment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -82,13 +79,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -98,15 +96,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -118,17 +116,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_environment_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceEnvironmentItemRequestBuilder.new(raw_url, @request_adapter) + end ## # A reference to the geolocation environments in which a resource is located. diff --git a/lib/identity_governance/entitlement_management/resource_environments/item/resources/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/resource_environments/item/resources/count/count_request_builder.rb index a9cb6d938a..8167e62bd9 100644 --- a/lib/identity_governance/entitlement_management/resource_environments/item/resources/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/resource_environments/item/resources/count/count_request_builder.rb @@ -26,7 +26,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -38,8 +38,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -49,17 +48,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/access_package_resource_item_request_builder.rb b/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/access_package_resource_item_request_builder.rb index d6fc1ea2d9..8ba2a4d5be 100644 --- a/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/access_package_resource_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/access_package_resource_item_request_builder.rb @@ -45,7 +45,7 @@ def scopes() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}{?%24expand,%24select}") end ## ## Delete navigation property resources for identityGovernance @@ -57,8 +57,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -71,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,8 +85,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -98,13 +95,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,15 +112,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -134,17 +132,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Required. diff --git a/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/environment/environment_request_builder.rb b/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/environment/environment_request_builder.rb index 3e96a3fd2f..11be0e706f 100644 --- a/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/environment/environment_request_builder.rb +++ b/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/environment/environment_request_builder.rb @@ -29,7 +29,7 @@ class EnvironmentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/environment{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/environment{?%24expand,%24select}") end ## ## Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. @@ -41,8 +41,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceEnvironment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -52,17 +51,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a environment_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EnvironmentRequestBuilder.new(raw_url, @request_adapter) + end ## # Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. diff --git a/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/count/count_request_builder.rb index f54a4edc9f..c8ab46b3fb 100644 --- a/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/count/count_request_builder.rb @@ -30,7 +30,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -42,8 +42,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -53,17 +52,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/access_package_resource_role_item_request_builder.rb b/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/access_package_resource_role_item_request_builder.rb index f5023625dd..f5bbb679fb 100644 --- a/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/access_package_resource_role_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/access_package_resource_role_item_request_builder.rb @@ -37,7 +37,7 @@ def resource() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}{?%24expand,%24select}") end ## ## Delete navigation property roles for identityGovernance @@ -49,8 +49,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -63,8 +62,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -79,8 +77,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -90,13 +87,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -106,15 +104,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -126,17 +124,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_role_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceRoleItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/resource/environment/environment_request_builder.rb b/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/resource/environment/environment_request_builder.rb index b494257781..5ca4337943 100644 --- a/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/resource/environment/environment_request_builder.rb +++ b/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/resource/environment/environment_request_builder.rb @@ -35,7 +35,7 @@ class EnvironmentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/environment{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/environment{?%24expand,%24select}") end ## ## Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. @@ -47,8 +47,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceEnvironment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -58,17 +57,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a environment_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EnvironmentRequestBuilder.new(raw_url, @request_adapter) + end ## # Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. diff --git a/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/resource/resource_request_builder.rb b/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/resource/resource_request_builder.rb index 577f487c14..d9fc97b1c9 100644 --- a/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/resource/resource_request_builder.rb +++ b/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/resource/resource_request_builder.rb @@ -45,7 +45,7 @@ def scopes() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource{?%24expand,%24select}") end ## ## Delete navigation property resource for identityGovernance @@ -57,8 +57,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -71,8 +70,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -87,8 +85,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -98,13 +95,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -114,15 +112,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -134,17 +132,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a resource_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return ResourceRequestBuilder.new(raw_url, @request_adapter) + end ## # Get resource from identityGovernance diff --git a/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/resource/scopes/count/count_request_builder.rb b/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/resource/scopes/count/count_request_builder.rb index 007ab6e45d..3ad068bee6 100644 --- a/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/resource/scopes/count/count_request_builder.rb +++ b/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/resource/scopes/count/count_request_builder.rb @@ -36,7 +36,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/$count{?%24search,%24filter}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/$count{?%24filter,%24search}") end ## ## Get the number of the resource @@ -48,8 +48,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, number, error_mapping) end ## @@ -59,17 +58,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'text/plain') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'text/plain;q=0.9') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a count_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return CountRequestBuilder.new(raw_url, @request_adapter) + end ## # Get the number of the resource diff --git a/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb b/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb index f316396204..f6c5c60e3d 100644 --- a/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb +++ b/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/resource/scopes/item/access_package_resource_scope_item_request_builder.rb @@ -43,7 +43,7 @@ def resource() ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}{?%24expand,%24select}") end ## ## Delete navigation property scopes for identityGovernance @@ -55,8 +55,7 @@ def delete(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end ## @@ -69,8 +68,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -85,8 +83,7 @@ def patch(body, request_configuration=nil) body, request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -96,13 +93,14 @@ def patch(body, request_configuration=nil) ## def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -112,15 +110,15 @@ def to_delete_request_information(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end ## @@ -132,17 +130,26 @@ def to_get_request_information(request_configuration=nil) def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :PATCH - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.add_request_options(request_configuration.options) end - request_info.set_content_from_parsable(@request_adapter, "application/json", body) + request_info.set_content_from_parsable(@request_adapter, 'application/json', body) + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a access_package_resource_scope_item_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return AccessPackageResourceScopeItemRequestBuilder.new(raw_url, @request_adapter) + end ## # Read-only. Nullable. Supports $expand. diff --git a/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/resource/scopes/item/resource/environment/environment_request_builder.rb b/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/resource/scopes/item/resource/environment/environment_request_builder.rb index 0c454f0391..23c3de7a6d 100644 --- a/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/resource/scopes/item/resource/environment/environment_request_builder.rb +++ b/lib/identity_governance/entitlement_management/resource_environments/item/resources/item/roles/item/resource/scopes/item/resource/environment/environment_request_builder.rb @@ -41,7 +41,7 @@ class EnvironmentRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder ## @return a void ## def initialize(path_parameters, request_adapter) - super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/environment{?%24select,%24expand}") + super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/environment{?%24expand,%24select}") end ## ## Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. @@ -53,8 +53,7 @@ def get(request_configuration=nil) request_configuration ) error_mapping = Hash.new - error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } - error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } + error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceEnvironment.create_from_discriminator_value(pn) }, error_mapping) end ## @@ -64,17 +63,26 @@ def get(request_configuration=nil) ## def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() - request_info.url_template = @url_template - request_info.path_parameters = @path_parameters - request_info.http_method = :GET - request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.add_request_options(request_configuration.options) end + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.try_add('Accept', 'application/json') return request_info end + ## + ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + ## @param raw_url The raw URL to use for the request builder. + ## @return a environment_request_builder + ## + def with_url(raw_url) + raise StandardError, 'raw_url cannot be null' if raw_url.nil? + return EnvironmentRequestBuilder.new(raw_url, @request_adapter){"code":"internal","msg":"git-diff-tree: context deadline exceeded","meta":{"cause":"*fmt.wrapError"}}